/* ============================================
   TABLAS DE DESCUENTOS
   ============================================ */

:root {
    --wdm-brand-blue: #0286d0;
    --wdm-brand-red: #c22d39;
    --wdm-brand-blue-soft: #eaf6fc;
    --wdm-brand-red-soft: #fcedef;
    --wdm-border: #dce5eb;
    --wdm-text: #344454;
}

.wdm-discount-tables-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: var(--wdm-brand-blue-soft);
    border: 1px solid var(--wdm-border);
    border-radius: 8px;
}

.wdm-discount-tables-wrapper h3 {
    font-size: 18px;
    color: var(--wdm-text);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--wdm-brand-red);
    padding-bottom: 10px;
}

.wdm-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fff;
}

.wdm-product-discount-table,
.wdm-amount-discount-table,
.wdm-payment-adjustment-table {
    max-width: 100%;
    overflow-x: auto;
}

.wdm-table th,
.wdm-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--wdm-border);
    color: var(--wdm-text);
}

.wdm-table th {
    background: var(--wdm-brand-blue);
    color: #fff;
    font-weight: 600;
}

.wdm-table tr:hover {
    background: #f5fbfe;
}

.wdm-table tr:last-child td {
    border-bottom: none;
}

.wdm-discount-percent {
    color: var(--wdm-brand-red);
    font-weight: 700;
}

.wdm-purchase-range {
    white-space: nowrap;
}

.wdm-range-discount {
    color: var(--wdm-brand-red);
    font-weight: 700;
    margin-left: 4px;
}

.wdm-negative {
    color: var(--wdm-brand-red);
    font-weight: 600;
}

.wdm-positive {
    color: var(--wdm-brand-red);
    font-weight: 600;
}

/* ============================================
   AVISO DE MÍNIMO EN CARRITO
   ============================================ */

.wdm-cart-minimum-notice {
    background-color: var(--wdm-brand-red-soft) !important;
    border-left-color: var(--wdm-brand-red) !important;
    color: #7f2029;
}

.wdm-cart-minimum-notice strong {
    color: var(--wdm-brand-red);
}

.wdm-cart-minimum-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wdm-next-discount-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: var(--wdm-brand-blue-soft) !important;
    border-left-color: var(--wdm-brand-blue) !important;
    color: #fff !important;
}

.woocommerce .woocommerce-info.wdm-next-discount-notice strong {
    color: #fff !important;
}

.woocommerce .woocommerce-info.wdm-next-discount-notice > div {
    color: #fff !important;
}

.wdm-continue-shopping {
    flex: 0 0 auto;
    background: var(--wdm-brand-blue) !important;
    border-color: var(--wdm-brand-blue) !important;
    color: #fff !important;
    text-decoration: none;
}

.woocommerce .wdm-continue-shopping,
.woocommerce a.wdm-continue-shopping.button {
    background-color: #0286d0 !important;
    border: 1px solid #0286d0 !important;
    color: #fff !important;
}

.wdm-continue-shopping:hover,
.wdm-continue-shopping:focus {
    background: #016da9 !important;
    border-color: #016da9 !important;
    color: #fff !important;
}

.woocommerce .wdm-continue-shopping:hover,
.woocommerce .wdm-continue-shopping:focus,
.woocommerce a.wdm-continue-shopping.button:hover,
.woocommerce a.wdm-continue-shopping.button:focus {
    background-color: #016da9 !important;
    border-color: #016da9 !important;
    color: #fff !important;
}

/* ============================================
   INFO DE MÉTODOS DE PAGO EN CHECKOUT
   ============================================ */

.wdm-payment-adjustments-info {
    margin: 20px 0;
    padding: 15px;
    background: var(--wdm-brand-blue-soft);
    border: 1px solid var(--wdm-border);
    border-radius: 4px;
}

.wdm-payment-adjustments-info h4 {
    margin-bottom: 15px;
    color: var(--wdm-text);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .wdm-table th,
    .wdm-table td {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .wdm-discount-tables-wrapper {
        padding: 15px;
    }

    .wdm-next-discount-notice,
    .wdm-cart-minimum-notice {
        align-items: flex-start;
        flex-direction: column;
    }
}