/* Exit Intent Popup Styles */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.exit-popup.is-visible {
    display: block;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90vh;
    animation: slideUp 0.4s ease-out;
}

.exit-popup-link {
    display: block;
    position: relative;
}

.exit-popup-link img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.exit-popup-close {
    position: absolute;
    top: 28px;
    right: 23px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.exit-popup-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.exit-popup-close:active {
    transform: scale(0.95);
}



/* Sticky CTA Banner Styles */
.sticky-cta {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    z-index: 99999;
}

.sticky-cta.is-hidden {
    display: none;
}

.sticky-cta-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.sticky-cta-close:hover {
    transform: scale(1.1);
}

.sticky-cta-close:active {
    transform: scale(0.9);
}

.sticky-cta-link {
    display: block;
    text-decoration: none;
    width: 100%;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-cta-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: center;
}

.sticky-cta-link:hover .sticky-cta-image {
    opacity: 0.95;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .exit-popup-content {
        width: 100%;
        padding: 0;
    }

    .exit-popup-link img {
        border-radius: 0;
    }

    .exit-popup-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    .sticky-cta {
        width: calc(100% - 24px);
        max-width: 400px;
    }

    .sticky-cta-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
        top: -10px;
        right: -10px;
    }

    .sticky-cta-image {
        max-height: 85px;
    }
}

/* PC Specific Styles */
@media screen and (min-width: 769px) {
    .exit-popup-content {
        max-width: 480px;
    }

    .sticky-cta {
        max-width: 600px;
    }

    .sticky-cta-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: -12px;
        right: -12px;
    }

    .sticky-cta-image {
        max-height: 100px;
    }
}
