/**
 * Promo Popup Frontend Styles
 * Floating popup with no background
 */

/* Overlay - Blurred background */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container - Completely transparent */
.promo-popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: floatingUpDown 3.5s ease-in-out infinite;
}

/* Floating Animation - More dynamic */
@keyframes floatingUpDown {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    33% {
        transform: translate(5px, -15px) rotate(2deg);
    }

    66% {
        transform: translate(-5px, -10px) rotate(-2deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

/* Popup Content */
.promo-popup-content {
    text-align: center;
    background: none !important;
    background-color: transparent !important;
}

/* Beautiful Close Button - Rounded Square Style */
.promo-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5) !important;
    /* Semi-transparent black */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    /* Rounded Square */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    line-height: 1;
    font-size: 24px;
    font-weight: 300;
    font-family: Arial, sans-serif;
    color: #fff !important;
    text-decoration: none;
}

.promo-popup-close:hover {
    background: rgba(238, 77, 45, 0.9) !important;
    /* Shopee Orange */
    transform: scale(1.1);
    color: #fff !important;
    border-color: #ee4d2d !important;
    box-shadow: 0 6px 16px rgba(238, 77, 45, 0.4);
}

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

.promo-popup-close:focus {
    outline: none;
}

/* Image Link */
.promo-popup-image-link {
    display: block;
    position: relative;
    overflow: visible;
    background: none !important;
    border: none !important;
}

/* Image - NO border, NO radius, NO shadow */
.promo-popup-image {
    width: 100%;
    max-width: 100%;
    display: block;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* CTA Button - Enhanced */
.promo-popup-button {
    display: inline-block;
    margin: 15px 0 0;
    padding: 14px 45px;
    background: linear-gradient(135deg, #ee4d2d 0%, #ff6b4d 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(238, 77, 45, 0.4);
    transition: all 0.3s ease;
}

.promo-popup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(238, 77, 45, 0.5);
    color: #fff !important;
}

/* Body scroll lock */
body.promo-popup-open {
    overflow: hidden !important;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .promo-popup-container {
        width: 90%;
        max-width: 320px;
    }

    .promo-popup-close {
        width: 40px;
        height: 40px;
        top: -15px;
        right: -10px;
        font-size: 26px;
    }

    @keyframes floatingUpDown {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-15px);
        }
    }
}