/**
 * WC Scheduled Discount Manager — Frontend Styles
 *
 * Strikethrough pricing, discount badges, and tiered pricing table.
 *
 * @package WC_SDM
 */

/* ── Strikethrough Price ────────────────── */
.wc-sdm-original-price {
    color: #999;
    font-weight: normal;
    text-decoration: line-through;
    margin-right: 4px;
}

.wc-sdm-sale-price {
    color: #e4002b;
    font-weight: 700;
    text-decoration: none;
}

/* ── Discount Badge ─────────────────────── */
.wc-sdm-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e4002b 0%, #ff4d4d 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Cart strikethrough ─────────────────── */
.woocommerce-cart-form .wc-sdm-original-price,
.woocommerce-checkout .wc-sdm-original-price {
    display: inline;
}

.woocommerce-cart-form .wc-sdm-sale-price,
.woocommerce-checkout .wc-sdm-sale-price {
    display: inline;
}

/* ── Mini-cart widget strikethrough ──────── */
.widget_shopping_cart .wc-sdm-original-price,
.woocommerce-mini-cart .wc-sdm-original-price {
    display: inline;
    font-size: 0.9em;
}

.widget_shopping_cart .wc-sdm-sale-price,
.woocommerce-mini-cart .wc-sdm-sale-price {
    display: inline;
    font-size: 0.9em;
}

/* ── Tiered Pricing Table ───────────────── */
.wc-sdm-tier-table-wrap {
    margin: 16px 0 24px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
}

.wc-sdm-tier-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e1e1e;
}

.wc-sdm-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-sdm-tier-table th {
    background: #e2e4e7;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #1e1e1e;
    border-bottom: 2px solid #ccc;
}

.wc-sdm-tier-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e4e7;
    color: #333;
}

.wc-sdm-tier-table tr:last-child td {
    border-bottom: none;
}

.wc-sdm-tier-table tr:hover td {
    background: #eef2f5;
}

.wc-sdm-tier-table del {
    color: #999;
    margin-right: 4px;
}

/* ── Discount Notice ────────────────────── */
.wc-sdm-discount-notice {
    border-left-color: #e4002b !important;
}

/* ── Cart Discount Notices Container ───── */
.wc-sdm-cart-notices {
    margin: 0 0 20px;
}

.wc-sdm-cart-notices:empty {
    display: none;
}

.wc-sdm-cart-notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #166534;
    line-height: 1.5;
    animation: wc-sdm-notice-slide-in 0.3s ease-out;
}

.wc-sdm-cart-notice-item:last-child {
    margin-bottom: 0;
}

@keyframes wc-sdm-notice-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}