/* assets/css/public-offer.css | Plugin Offer — Public Styles */

#pof-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    transition: opacity 0.35s ease;
}

.pof-offer-modal {
    background: #fff;
    padding: 38px 28px;
    border-radius: 16px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.08);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: pof-pop 0.42s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
    position: relative;
    margin: 23px;
}

@keyframes pof-pop {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(14px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pof-offer-modal h3 {
    margin: 0 0 14px;
    font-size: 23px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.pof-offer-modal p {
    margin: 0 0 28px;
    color: #555;
    line-height: 1.65;
    font-size: 15px;
    font-weight: 400;
}

.pof-offer-cancel {
    background: none !important;
    border: none !important;
    color: #777;
    cursor: pointer !important;
    font-size: 0.9em !important;
    padding: 0 !important;
    margin-top: 10px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.pof-offer-cancel:hover {
    opacity: 0.7;
    text-decoration: underline !important;
}

.pof-offer-btn {
    appearance: none;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    padding: 18px 24px;
    letter-spacing: 0.01em;
}

.pof-offer-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pof-offer-btn:active {
    transform: translateY(0);
}

.pof-offer-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.pof-offer-btn svg {
    width: 22px;
    height: 22px;
}

/* Footer & Small Cancel */
.pof-modal-footer {
    margin: 22px 0px 0px 42px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

/* Spinner */
.pof-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: pof-spin .8s linear infinite;
}

@keyframes pof-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Body Lock — trava apenas a rolagem. Continua valendo enquanto o anúncio do
   Google está na tela, por isso esta regra não pode borrar nem desabilitar
   nada: o iframe do anúncio também é filho do body. */
html.pof-body-locked,
body.pof-body-locked {
    overflow: hidden !important;
}

/* position:fixed é o que realmente segura a rolagem por toque no iOS, onde
   overflow:hidden no body é ignorado. O deslocamento vem do JS, que guarda e
   restaura a posição para a página não pular. */
body.pof-body-locked {
    position: fixed !important;
    width: 100% !important;
}

/* Desfoque do conteúdo: só enquanto o modal está visível. */
body.pof-gate-blur>*:not(#pof-gate-overlay) {
    filter: blur(16px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}

/* ============================================
   VARIATIONS: IOS STYLE
   ============================================ */

.skin-ios.pof-offer-modal {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
    border-radius: 26px !important;
    padding: 30px !important;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.15) !important;
}

.skin-ios.pof-offer-modal h3 {
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #000 !important;
}

.skin-ios.pof-offer-modal p {
    color: #666 !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
}

.skin-ios .pof-offer-btn {
    border-radius: 22px !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    padding: 12px 20px !important;
    box-shadow: none !important;
}

.skin-ios .pof-offer-cancel {
    font-weight: 400 !important;
    color: #007aff !important;
}

.skin-ios .pof-modal-footer {
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
    padding-top: 15px;
}
