/* ============================================================
   Popup Banner — Fullscreen overlay + floating icon + slide panel
   ============================================================ */

/* ---- Fullscreen overlay ---- */
.popup-banner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: popupFadeIn 0.3s ease;
}

.popup-banner-overlay.popup-banner-hiding {
    animation: popupFadeOut 0.3s ease forwards;
}

.popup-banner-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.popup-banner-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    display: block;
}

.popup-banner-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: transform 0.2s;
    color: #333;
}

.popup-banner-close:hover {
    transform: scale(1.1);
    color: #000;
}

/* ---- Banner icon (injected into #gom-all-in-one) ---- */
#banner-icon-wrap .phone-vr-circle-fill {
    background-color: rgba(224, 100, 20, 0.5);
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
}

#banner-icon-wrap .banner-icon-circle {
    background: linear-gradient(135deg, #e06414, #e09f14);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

#banner-icon-wrap .banner-icon-circle svg {
    display: block;
    flex-shrink: 0;
}

#banner-icon-wrap.banner-icon-active .banner-icon-circle {
    background: linear-gradient(135deg, #b34e10, #c07f10);
    box-shadow: 0 0 0 3px rgba(224, 100, 20, 0.4);
}

/* ---- Sliding banner panel ---- */
.banner-panel {
    position: fixed;
    z-index: 9998;
    width: clamp(280px, 28vw, 480px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px) scale(0.97);
    transform-origin: bottom left;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.banner-panel.banner-panel-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.banner-panel img {
    width: 100%;
    display: block;
}

/* Overlay action buttons (top-right corner of image) */
.banner-panel-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 1;
}

.banner-panel-btn {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
    padding: 0;
}

.banner-panel-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: scale(1.1);
}

/* ---- Animations ---- */
@keyframes popupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popupFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .popup-banner-modal {
        max-width: 95vw;
    }

    .popup-banner-close {
        top: -8px;
        right: -8px;
        width: 30px;
        height: 30px;
    }
}
