/* _content/CrayolaApps/Components/Pages/PaywallOffer.razor.rz.scp.css */
/* ============================================================
   PaywallOffer — Scoped CSS
   Portrait-first, landscape-responsive for in-app webview.
   ============================================================ */

/* --- Container --- */
.paywall-container[b-37ujhw4ost] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 1.25rem;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow-y: auto;
    gap: 0.75rem;
}

/* --- Logo --- */
.paywall-logo-wrap[b-37ujhw4ost] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.paywall-logo[b-37ujhw4ost] {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* --- Content pane --- */
.paywall-content[b-37ujhw4ost] {
    flex: 1;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.paywall-title[b-37ujhw4ost] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.paywall-subtitle[b-37ujhw4ost] {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

/* --- Feature list --- */
.paywall-features[b-37ujhw4ost] {
    list-style: none;
    padding: 0;
    margin: 0 auto 1rem auto;
    max-width: 280px;
    text-align: left;
}

.paywall-feature-item[b-37ujhw4ost] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.paywall-feature-item svg[b-37ujhw4ost] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #2563eb;
}

/* --- CTA pane --- */
.paywall-cta[b-37ujhw4ost] {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* --- Price display --- */
.paywall-price[b-37ujhw4ost] {
    text-align: center;
    margin-bottom: 0.75rem;
}

.paywall-price-amount[b-37ujhw4ost] {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.paywall-price-period[b-37ujhw4ost] {
    font-size: 0.875rem;
    color: #6b7280;
}

/* --- Subscribe button --- */
.paywall-btn-subscribe[b-37ujhw4ost] {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.paywall-btn-subscribe:hover:not(:disabled)[b-37ujhw4ost] {
    background-color: #1d4ed8;
}

.paywall-btn-subscribe:disabled[b-37ujhw4ost] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Maybe later button --- */
.paywall-btn-later[b-37ujhw4ost] {
    width: 100%;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.paywall-btn-later:hover[b-37ujhw4ost] {
    color: #374151;
}

/* --- Loading spinner --- */
.paywall-spinner[b-37ujhw4ost] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.paywall-spinner-icon[b-37ujhw4ost] {
    width: 2rem;
    height: 2rem;
    color: #e5e7eb;
    fill: #2563eb;
    animation: spin-b-37ujhw4ost 1s linear infinite;
}

@keyframes spin-b-37ujhw4ost {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   LANDSCAPE ORIENTATION — two-column layout
   ============================================================ */
@media (orientation: landscape) {
    .paywall-container[b-37ujhw4ost] {
        flex-direction: row;
        align-items: stretch;
        padding: 1rem;
        gap: 1.5rem;
        min-height: 100vh;
        overflow-y: auto;
    }

    .paywall-logo-wrap[b-37ujhw4ost] {
        flex: 0 0 auto;
        width: 80px;
        align-self: flex-start;
        padding-top: 0.25rem;
    }

    .paywall-logo[b-37ujhw4ost] {
        width: 80px;
        height: 80px;
    }

    .paywall-content[b-37ujhw4ost] {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
    }

    .paywall-features[b-37ujhw4ost] {
        margin-left: 0;
        max-width: none;
    }

    .paywall-cta[b-37ujhw4ost] {
        flex: 0 0 220px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: none;
    }

    .paywall-price[b-37ujhw4ost] {
        text-align: left;
    }
}

/* ============================================================
   VERY SHORT SCREENS (landscape phones with small height)
   ============================================================ */
@media (max-height: 420px) {
    .paywall-subtitle[b-37ujhw4ost] {
        display: none;
    }

    .paywall-title[b-37ujhw4ost] {
        font-size: 1.1rem;
    }

    .paywall-price-amount[b-37ujhw4ost] {
        font-size: 1.5rem;
    }

    .paywall-features[b-37ujhw4ost] {
        margin-bottom: 0.5rem;
    }

    .paywall-feature-item[b-37ujhw4ost] {
        margin-bottom: 0.25rem;
    }

    .paywall-btn-subscribe[b-37ujhw4ost] {
        padding: 0.5rem 1rem;
    }
}
