/* CTA Banner Styles */
.cta-banner {
}

#cta-banner-desktop-container .cta-banner.d-none.d-md-block {
    display: block !important;
}

@media (max-width: 767px) {
    #cta-banner-desktop-container .cta-banner.d-none.d-md-block {
        display: none !important;
    }
}

.cta-banner-md {
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.cta-banner-sm {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.cta-banner-content {
    margin: 1.7rem 0.2rem 1.7rem 1rem;
}

.cta-banner-sm .cta-banner-content {
    margin: 1rem 1rem 1rem 1rem;
}

.cta-banner-md .cta-banner-title {
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    margin: 0;
}

.cta-banner-sm .cta-banner-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    margin: 0;
}

.timer-unit {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
}

.cta-banner-md .timer-value {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    margin: 0;
    padding: 0.3rem 0;
}

.cta-banner-sm .timer-value {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    margin: 0;
    padding: 0.3rem 0;
}

.timer-label {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    margin: 0.4rem 0 0 0;
    display: block;
    padding: 0;
}

.timer-header-label {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    text-align: center;
    display: block;
    padding: 0;
}

/* Twemoji sizing */
.cta-banner-title span img,
.cta-btn img {
    height: 1em;
    width: 1em;
    display: inline;
    margin: 0 0.05em;
    vertical-align: -0.1em;
}

/* Button styling */
.cta-btn {
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

/* Close button styling */
.cta-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    transition: opacity 0.3s ease;
    font-size: 2rem;
    line-height: 1;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .cta-close-btn:hover {
        opacity: 0.7;
    }

/* Banner Color Variants */
.cta-banner.christmas {
    background: linear-gradient(135deg, #E63946 0%, #D62828 100%);
    color: white;
}

    .cta-banner.christmas .timer-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .cta-banner.christmas .cta-btn {
        background-color: #FFD60A;
        color: #000;
    }

.cta-banner.valentines {
    background: linear-gradient(135deg, #F5E6E0 0%, #F9DDD5 100%);
    color: #E63946;
}

    .cta-banner.valentines .timer-label {
        color: #E63946;
    }

    .cta-banner.valentines .cta-btn {
        background-color: #E63946;
        color: white;
    }

.cta-banner.blackfriday {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: #FFD60A;
}

    .cta-banner.blackfriday .timer-label {
        color: #FFD60A;
    }

    .cta-banner.blackfriday .cta-btn {
        background-color: #FFD60A;
        color: #000;
    }

.cta-banner.newyear {
    background: linear-gradient(135deg, #1E3A8A 0%, #1F2937 100%);
    color: white;
}

    .cta-banner.newyear .timer-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .cta-banner.newyear .cta-btn {
        background-color: #FF6B35;
        color: white;
    }

.cta-banner.halloween {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: #FF8C00;
}

    .cta-banner.halloween .timer-label {
        color: #FF8C00;
    }

    .cta-banner.halloween .cta-btn {
        background-color: #FF8C00;
        color: white;
    }

.cta-banner.cyber {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
}

    .cta-banner.cyber .timer-label {
        color: rgba(255, 255, 255, 0.9);
    }

    .cta-banner.cyber .cta-btn {
        background-color: white;
        color: #4F46E5;
    }

.cta-banner.thanksgiving {
    background: linear-gradient(135deg, #F5A962 0%, #E8944A 100%);
    color: #333;
}

    .cta-banner.thanksgiving .timer-label {
        color: #333;
    }

    .cta-banner.thanksgiving .cta-btn {
        background-color: #5D2F1F;
        color: white;
    }

/* Responsive Layout */
.cta-banner-content {
    position: relative;
}

@media (min-width: 992px) {
    .cta-banner-content > div:last-child {
        margin-right: 46px;
    }
}

/* Large screens - centered timer */
@media (min-width: 992px) {
    .cta-banner-md .cta-banner-content {
        align-items: center;
    }

    .cta-banner-content > div:first-child {
        flex: 0 1 40%;
        align-items: center;
        padding-right: 1rem;
        flex-wrap: wrap;
    }

        .cta-banner-content > div:first-child .cta-banner-title {
            width: 100%;
            white-space: normal;
            word-wrap: break-word;
            padding-right: 40px;
        }

    .cta-banner-timer-wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex-shrink: 0;
    }

    .cta-banner-content > div:last-child {
        flex-shrink: 0;
        min-height: 2.6rem;
        display: flex;
        align-items: center;
    }

    .cta-banner-content {
        position: relative;
    }

        .cta-banner-content .cta-close-btn {
            position: absolute;
            top: -1.5rem;
            right: 0;
        }
}

/* Small screens - stacked layout */
@media (max-width: 991px) {
    .cta-banner-content {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0.7rem;
    }

        .cta-banner-content > div:first-child {
            width: 100%;
            flex-direction: column !important;
            flex-wrap: wrap !important;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            gap: 1rem !important;
        }

            .cta-banner-content > div:first-child .cta-banner-title {
                width: 100%;
                text-align: center;
                margin-bottom: 0;
                white-space: normal;
                flex-basis: 100%;
            }

    .cta-banner-timer-wrapper {
        position: static;
        transform: none;
        text-align: center;
    }

        .cta-banner-timer-wrapper .timer-unit {
            min-width: 46px;
        }

        .cta-banner-timer-wrapper .timer-value {
            font-size: 1.5rem !important;
        }

        .cta-banner-timer-wrapper .timer-label {
            font-size: 0.7rem !important;
        }

    .cta-banner-content > div:last-child {
        justify-content: center;
    }

    .cta-banner-content {
        position: relative;
    }

        .cta-banner-content .cta-close-btn {
            position: absolute;
            top: -1.5rem;
            right: 0.5rem;
        }

    @media (max-width:991px) {
        #cta-banner-mobile-container .cta-banner-content .cta-close-btn {
            top: -0.5rem !important;
            right: -0.5rem !important;
        }

        .cta-banner-content .cta-close-btn {
            top: -1.5rem;
            right: 0.5rem;
        }
    }

    /* Admin Preview Styles */
    .cta-banner-admin-preview {
        background: #f8f9fa;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border: 2px solid #e9ecef;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }

        .cta-banner-admin-preview:hover {
            border-color: #0066cc;
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
        }

        .cta-banner-admin-preview.selected {
            border-color: #28a745;
            background: #f1f8f4;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
        }

            .cta-banner-admin-preview.selected::after {
                content: "✓";
                position: absolute;
                top: 0.75rem;
                right: 0.75rem;
                background: #28a745;
                color: white;
                width: 2rem;
                height: 2rem;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: bold;
            }
