/* ================================================================
   Prestigo Ads WP — Frontend Popup Styles
   ================================================================ */

/* ---- Overlay — sāk kā display:none (JS kontrolē rādīšanu) ------- */
#paw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    transition: background .30s ease;
    box-sizing: border-box;
}

/* JS iestata display:flex tieši uz elementa, tad pievieno šo klasi */
#paw-overlay.paw-active {
    background: rgba(0, 0, 0, .65);
}

/* ---- Popup box --------------------------------------------------- */
#paw-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.15);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: scale(.88) translateY(24px);
    transition: opacity .30s cubic-bezier(.22,.68,0,1.2),
                transform .30s cubic-bezier(.22,.68,0,1.2);
}

#paw-popup.paw-pop-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

#paw-popup.paw-pop-out {
    opacity: 0;
    transform: scale(.92) translateY(-14px);
    transition: opacity .22s ease, transform .22s ease;
}

/* ---- Close button ------------------------------------------------ */
#paw-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 18px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .18s;
}
#paw-close-btn:hover { background: rgba(0,0,0,.78); }

/* ---- Countdown badge -------------------------------------------- */
.paw-countdown {
    display: inline-block;
    background: #1e8cfb;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

/* ---- Banner link + image ---------------------------------------- */
.paw-banner-link { display: block; line-height: 0; }
.paw-banner-img  { width: 100%; height: auto; display: block; }

/* ---- Ad notice -------------------------------------------------- */
.paw-ad-notice {
    margin: 0;
    padding: 8px 14px;
    font-size: 11px;
    color: #888;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 480px) {
    #paw-popup      { border-radius: 8px; }
    #paw-close-btn  { font-size: 16px; padding: 3px 9px; }
}

/* ---- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #paw-overlay, #paw-popup { transition: none; }
}

/* ---- Locked close button (early-close delay active) ------------- */
#paw-close-btn.paw-close-locked {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
