/* === My Account Discounts Card === */
.ebd-account-discounts {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.ebd-account-discounts h3 {
    color: #1f2f47;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ebd-discounts-table {
    width: 100%;
    border-collapse: collapse;
}

.ebd-discounts-table th {
    background-color: #f8fafc;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.ebd-discounts-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ebd-discounts-table tr:hover td {
    background-color: #f8fafc;
}

.ebd-discounts-table tr:last-child td {
    border-bottom: none;
}

/* === Discount Badge === */
.ebd-discount-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

/* === Cart Notice === */
.ebd-cart-notice {
    background: linear-gradient(to right, #f0f9ff, #f0fdf4);
    border-left: 4px solid #4c789e;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ebd-cart-notice-title {
    font-weight: 700;
    color: #1f2f47;
    margin-bottom: 10px;
    font-size: 15px;
}

.ebd-cart-notice-list {
    margin: 0;
    padding-left: 20px;
    color: #334155;
}

.ebd-cart-notice-list li {
    margin-bottom: 5px;
}

.ebd-cart-notice-list li:last-child {
    margin-bottom: 0;
}

/* === Cart Item Discount Badge === */
.ebd-cart-item-discount {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

/* === Dark Theme Support === */
body.dark-theme .ebd-account-discounts {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

body.dark-theme .ebd-account-discounts h3 {
    color: #f8fafc;
}

body.dark-theme .ebd-discounts-table th {
    background-color: #0f172a;
    border-bottom-color: #334155;
    color: #cbd5e1;
}

body.dark-theme .ebd-discounts-table td {
    border-bottom-color: #334155;
    color: #f1f5f9;
}

body.dark-theme .ebd-discounts-table tr:hover td {
    background-color: #0f172a;
}

body.dark-theme .ebd-discount-badge {
    background-color: #064e3b;
    color: #34d399;
}

body.dark-theme .ebd-cart-notice {
    background: linear-gradient(to right, #0f172a, #064e3b);
    border-left-color: #3b82f6;
}

body.dark-theme .ebd-cart-notice-title {
    color: #f8fafc;
}

body.dark-theme .ebd-cart-notice-list {
    color: #cbd5e1;
}

body.dark-theme .ebd-cart-item-discount {
    background-color: #064e3b;
    color: #34d399;
}
