/**
 * Reservation Resources Promo Code Popup Modal Styles
 *
 * Provides responsive, celebratory modal styling for SweetAlert2,
 * featuring a bright green brand accent, party popper badge, and clear CTA buttons.
 *
 * @package Reservation_Promo_Codes
 */

/* Modal Container Overrides */
.rr-promo-swal-modal {
    border-radius: 16px !important;
    padding: 0 0 28px 0 !important;
    overflow: hidden !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25) !important;
    font-family: inherit !important;
    max-width: 480px !important;
    width: 90% !important;
}

/* Bright Green Celebration Header */
.rr-promo-modal-header {
    background: linear-gradient(135deg, #26c281 0%, #1ea56d 100%);
    color: #ffffff;
    padding: 28px 20px 24px 20px;
    text-align: center;
    position: relative;
}

.rr-promo-modal-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: rrPromoPop 0.5s ease-out;
}

@keyframes rrPromoPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.rr-promo-modal-tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.rr-promo-modal-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

/* Modal Body Content */
.rr-promo-modal-body {
    padding: 24px 24px 8px 24px;
    text-align: center;
}

.rr-promo-discount-badge {
    display: inline-block;
    background: #e8f8f0;
    border: 1px dashed #26c281;
    color: #1a8256;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.rr-promo-modal-description {
    font-size: 15px;
    line-height: 1.55;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.rr-promo-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 10px;
}

.rr-promo-code-pill code {
    background: transparent !important;
    color: #26c281 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
    padding: 0 !important;
}

/* Button Custom Classes */
.rr-promo-btn-apply {
    background-color: #26c281 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(38, 194, 129, 0.35) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.rr-promo-btn-apply:hover {
    background-color: #21a870 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(38, 194, 129, 0.45) !important;
}

.rr-promo-btn-cancel {
    background-color: transparent !important;
    color: #718096 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.rr-promo-btn-cancel:hover {
    background-color: #f7fafc !important;
    color: #4a5568 !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .rr-promo-modal-title {
        font-size: 19px;
    }
    .rr-promo-modal-description {
        font-size: 14px;
    }
    .rr-promo-btn-apply,
    .rr-promo-btn-cancel {
        width: 100% !important;
        margin: 6px 0 !important;
    }
}
