/* 前端报价单样式 */

/* 报价单容器 */
.dsxrdz-quote-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important ;
}

/* 空报价单提示 */
.dsxrdz-quote-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.dsxrdz-empty-icon {
    color: #ccc;
    margin-bottom: 20px;
}

.dsxrdz-quote-empty h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.dsxrdz-quote-empty p {
    color: #666;
    margin-bottom: 20px;
}

/* 报价单商品列表 */
.dsxrdz-quote-items {
    margin-bottom: 40px;
}

.dsxrdz-quote-items h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.dsxrdz-quote-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.dsxrdz-quote-table thead {
    background: #f5f5f5;
}

.dsxrdz-quote-table th,
.dsxrdz-quote-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dsxrdz-quote-table th {
    font-weight: 600;
    color: #333;
}

.dsxrdz-quote-table .product-remove {
    width: 40px;
    text-align: center;
}

.dsxrdz-quote-table .product-thumbnail {
    width: 80px;
}

.dsxrdz-quote-table .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.dsxrdz-quote-table .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.dsxrdz-quote-table .product-name a:hover {
    color: #4169e1;
}

.dsxrdz-quote-table .product-sku {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.dsxrdz-quote-table .product-variations {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.dsxrdz-quote-table .product-variations span {
    display: inline-block;
    margin-right: 10px;
}

.dsxrdz-quote-table .product-quantity {
    width: 140px;
}

/* 移除按钮 */
.dsxrdz-remove-item {
    background: none !important;
    border: 1px solid transparent !important;
    cursor: pointer;
    padding: 5px;
    color: #000 !important;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.dsxrdz-remove-item:hover {
    color: #000 !important;
    border-color: #ff7544 !important;
}
/* 按钮与数量的样式 */
.dsxrdz-quantity-woo{
    float: none!important;
    margin: 0!important;
}
.dsxrdz-quantity-woo label{
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
/* 数量输入框 */
.dsxrdz-quantity-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
/*按钮*/
.dsxrdz-add-to-quote-variable{
    margin-top: 1em!important;
    background-color: #ff7544!important;
}

.dsxrdz-qty-minus,
.dsxrdz-qty-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd !important;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000 !important;
}

.dsxrdz-qty-minus:hover,
.dsxrdz-qty-plus:hover {
    background: #f5f5f5;
    border-color: #ff7544 !important;
    color: #000 !important;
}

.dsxrdz-item-qty,
.dsxrdz-quantity {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-size: 14px;
    color: #000 !important;
    background: #fff !important;
}

.dsxrdz-item-qty::placeholder,
.dsxrdz-quantity::placeholder {
    color: #000 !important;
}

.dsxrdz-item-qty:hover,
.dsxrdz-quantity:hover,
.dsxrdz-item-qty:focus,
.dsxrdz-quantity:focus {
    border-color: #ff7544 !important;
    outline: none !important;
}

/* 报价单操作按钮 */
.dsxrdz-quote-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dsxrdz-continue-shopping,
.dsxrdz-update-quote {
    padding: 10px 20px;
}

.dsxrdz-quote-form-container .button,
.dsxrdz-quote-actions .button,
.dsxrdz-quote-empty .button {
    background: #ff7544;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dsxrdz-quote-form-container .button:hover,
.dsxrdz-quote-actions .button:hover,
.dsxrdz-quote-empty .button:hover {
    background: #e85d2c;
    color: #fff;
}

.dsxrdz-read-quote-link {
    margin-left: 12px;
    color: #ff7544;
    font-weight: 600;
    text-decoration: none;
}

.dsxrdz-read-quote-link:hover {
    color: #e85d2c;
    text-decoration: underline;
}

/* 联系信息表单 */
.dsxrdz-quote-form-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dsxrdz-quote-form-section h2 {
    font-size: 24px;
    margin: 0 0 30px 0;
    color: #333;
}

.dsxrdz-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dsxrdz-form-field {
    flex: 1;
}

.dsxrdz-form-field-full {
    flex: none;
    width: 100%;
}

.dsxrdz-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.dsxrdz-form-field label .required {
    color: #e74c3c;
}

.dsxrdz-form-field input[type="text"],
.dsxrdz-form-field input[type="email"],
.dsxrdz-form-field input[type="tel"],
.dsxrdz-form-field select,
.dsxrdz-form-field textarea {
    width: 100%;
    padding: 2px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}
.dsxrdz-form-field select {
    padding: 2px 15px!important;
}


.dsxrdz-form-field input:focus,
.dsxrdz-form-field select:focus,
.dsxrdz-form-field textarea:focus {
    outline: none;
    border-color: #ff7544!important;
}

.dsxrdz-submit-quote-btn {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #ff7544 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.3s ease;
}
#dsxrdz-submit-quote-button{
    background: #ff7544 !important;
}

.dsxrdz-submit-quote-btn:hover {
    background: #e85d2c !important;
}
#dsxrdz-submit-quote-button:hover {
    background: #e85d2c !important;
}

.dsxrdz-submit-quote-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}
#dsxrdz-submit-quote-button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* 表单消息 */
.dsxrdz-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.dsxrdz-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.dsxrdz-form-message.error {
    background: #ffebee;
    color: #c62828;
}

/* 加入报价单按钮 */
.dsxrdz-add-to-quote,
.dsxrdz-view-options {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    background: #ff7544;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.dsxrdz-add-to-quote:hover,
.dsxrdz-view-options:hover {
    background: #e85d2c;
    color: #fff;
}

.dsxrdz-add-to-quote.added {
    background: #4caf50;
}

/* 单品页面样式 */
.dsxrdz-single-add-to-quote {
    margin-top: 20px;
}

.dsxrdz-quantity-wrapper {
    margin-bottom: 15px;
}

.dsxrdz-quantity-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.dsxrdz-add-to-quote-single {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #ff7544 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.dsxrdz-add-to-quote-single:hover {
    background: #e85d2c !important;
}

.dsxrdz-add-to-quote-single.added {
    background: #4caf50 !important;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .dsxrdz-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .dsxrdz-quote-table .product-thumbnail {
        display: none;
    }
    
    .dsxrdz-quote-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .dsxrdz-continue-shopping,
    .dsxrdz-update-quote {
        width: 100%;
        text-align: center;
    }
}

/* Turnstile 样式 */
.cf-turnstile {
    margin: 20px 0;
}

/* ==================== 报价单侧边栏样式 ==================== */

/* 侧边栏触发图标 */
.dsxrdz-quote-sidebar-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.dsxrdz-quote-sidebar-trigger:hover {
    opacity: 0.7;
}

.dsxrdz-quote-sidebar-trigger svg {
    width: 24px;
    height: 24px;
}

.dsxrdz-quote-sidebar-trigger .dsxrdz-quote-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ff7544;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

.dsxrdz-quote-sidebar-trigger .dsxrdz-quote-count:empty,
.dsxrdz-quote-sidebar-trigger .dsxrdz-quote-count[data-count="0"] {
    display: none;
}

/* 侧边栏遮罩 */
.dsxrdz-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
}

.dsxrdz-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 侧边栏主体 */
.dsxrdz-quote-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 99999;
}

.dsxrdz-quote-sidebar.active {
    right: 0;
}

/* 侧边栏头部 */
.dsxrdz-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.dsxrdz-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    letter-spacing: 1px;
}

.dsxrdz-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.dsxrdz-sidebar-close:hover {
    background-color: #fff!important;
    border-color: transparent!important;
    color: #333!important;
}

.dsxrdz-sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* 侧边栏内容区 */
.dsxrdz-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.dsxrdz-sidebar-items {
    padding: 0;
}

/* 加载状态 */
.dsxrdz-sidebar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.dsxrdz-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff7544;
    border-radius: 50%;
    animation: dsxrdz-spin 1s linear infinite;
}

@keyframes dsxrdz-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.dsxrdz-sidebar-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.dsxrdz-sidebar-empty svg {
    width: 64px;
    height: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.dsxrdz-sidebar-empty p {
    margin: 0;
    font-size: 14px;
}

/* 商品项 */
.dsxrdz-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dsxrdz-sidebar-item:last-child {
    border-bottom: none;
}

/* 商品图片 */
.dsxrdz-sidebar-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
}

.dsxrdz-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* 商品详情 */
.dsxrdz-sidebar-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dsxrdz-sidebar-item-variation {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.dsxrdz-sidebar-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dsxrdz-sidebar-item-title a {
    color: inherit;
    text-decoration: none;
}

.dsxrdz-sidebar-item-title a:hover {
    color: #ff7544;
}

/* 移除按钮 */
.dsxrdz-sidebar-item-remove {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.dsxrdz-sidebar-remove-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #000;
    font-size: 11px;
    text-decoration: underline!important;
    transition: color 0.2s ease;
    box-shadow: none!important;
}
.dsxrdz-sidebar-remove-btn:hover {    
    background-color: transparent!important;
    color: #000;
}

/* 侧边栏底部 */
.dsxrdz-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.dsxrdz-view-quotes-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dsxrdz-view-quotes-btn:hover {
    background: #333;
    color: #fff;
}

/* 响应式 - 移动端 */
@media (max-width: 480px) {
    .dsxrdz-quote-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .dsxrdz-sidebar-item {
        padding: 15px;
        gap: 12px;
    }
    
    .dsxrdz-sidebar-item-image {
        width: 70px;
        height: 90px;
    }
    
    .dsxrdz-sidebar-item-title {
        font-size: 12px;
    }
    
    .dsxrdz-sidebar-footer {
        padding: 15px;
    }
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    .dsxrdz-quote-sidebar {
        width: 380px;
    }
}

