/* MBS Promo Table - Modern & Responsive */

.mbs-promo-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mbs-promo-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.mbs-promo-table thead {
    background: linear-gradient(135deg, #00b67a 0%, #005128 100%);
    color: #fff;
}

.mbs-promo-table thead th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.mbs-promo-table thead th.mbs-col-provider {
    text-align: left;
}

/* Body */
.mbs-promo-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.mbs-promo-table tbody tr:hover {
    background: #f9fafb;
}

.mbs-promo-table tbody td {
    padding: 20px 12px;
    text-align: center;
    vertical-align: middle;
}

.mbs-promo-table tbody td.mbs-col-provider {
    text-align: left;
}

/* Provider cell */
.mbs-provider-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mbs-provider-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

.mbs-provider-name {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.mbs-provider-name:hover {
    color: #00b67a;
}

/* Promo code */
.mbs-promo-code {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    color: #00b67a;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

/* Discount */
.mbs-discount {
    font-weight: 700;
    font-size: 18px;
    color: #e53935;
}

/* Validity */
.mbs-validity {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    background: #f5f5f5;
    color: #666;
}

.mbs-validity.mbs-validity-ok {
    background: #e7f5f0;
    color: #00b67a;
    font-weight: 600;
}

/* CTA Button */
.mbs-cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #00b67a;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mbs-cta-button:hover {
    background: #00a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 182, 122, 0.3);
}

.mbs-cta-button:active {
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .mbs-promo-table thead th {
        padding: 14px 10px;
        font-size: 13px;
    }

    .mbs-promo-table tbody td {
        padding: 16px 10px;
    }

    .mbs-provider-logo {
        width: 45px;
        height: 45px;
    }

    .mbs-promo-code {
        font-size: 14px;
        padding: 6px 12px;
    }

    .mbs-cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .mbs-promo-table-wrapper {
        border-radius: 0;
        box-shadow: none;
    }

    .mbs-promo-table thead {
        display: none;
    }

    .mbs-promo-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    .mbs-promo-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }

    .mbs-promo-table tbody td:last-child {
        border-bottom: none;
    }

    .mbs-promo-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 13px;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mbs-promo-table tbody td.mbs-col-provider {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        background: #f9fafb;
        border-bottom: 2px solid #00b67a;
    }

    .mbs-promo-table tbody td.mbs-col-provider::before {
        display: none;
    }

    .mbs-provider-cell {
        width: 100%;
    }

    .mbs-provider-logo {
        width: 50px;
        height: 50px;
    }

    .mbs-provider-name {
        font-size: 16px;
    }

    .mbs-promo-code {
        font-size: 15px;
    }

    .mbs-cta-button {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .mbs-promo-table tbody td.mbs-col-action {
        padding: 16px;
    }

    .mbs-promo-table tbody td.mbs-col-action::before {
        display: none;
    }
}
