/* 前端报价单样式 */

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

/* 空报价单提示 */
.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,
.dsxrdz-quote-table .product-moq {
    width: 140px;
}

/* 移除按钮 */
.dsxrdz-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.3s ease;
}

.dsxrdz-remove-item:hover {
    color: #e74c3c;
}
/* 按钮与数量的样式 */
.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;
    background-color: #ff7544
}

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

.dsxrdz-qty-minus:hover,
.dsxrdz-qty-plus:hover {
    background: #f5f5f5;
    border-color: #4169e1;
    color: #4169e1;
}

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

.dsxrdz-item-moq {
    width: 80px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 报价单操作按钮 */
.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-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: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.dsxrdz-form-field input:focus,
.dsxrdz-form-field select:focus,
.dsxrdz-form-field textarea:focus {
    outline: none;
    border-color: #4169e1;
}

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

.dsxrdz-submit-quote-btn:hover {
    background: #3357c4 !important;
}

.dsxrdz-submit-quote-btn: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: #4169e1;
    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: #3357c4;
    color: #fff;
}

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

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

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

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

.dsxrdz-moq {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dsxrdz-add-to-quote-single {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #4169e1 !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: #3357c4 !important;
}

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

/* 浮动报价单图标 */
.dsxrdz-quote-floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.dsxrdz-quote-floating-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #4169e1;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.dsxrdz-quote-floating-icon a:hover {
    background: #3357c4;
    transform: scale(1.05);
}

.dsxrdz-quote-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
}

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

/* 响应式样式 */
@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;
}
