/* ============================================================
   CherryRoad Paywall — Paywall Gate Styles
   Loads on singular posts and pages only.
   Shared styles (buttons, forms, modals) are in crpw-base.css
   ============================================================ */

/* --- Free article badge --- */
.crpw-free-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    vertical-align: middle;
}

/* --- Gate wrapper --- */
.crpw-gate-wrapper {
    position: relative;
    overflow: hidden;
}

/* Teaser (visible text above blur) */
.crpw-teaser {
    margin-bottom: 0;
}

/* Blur overlay */
.crpw-blur-overlay {
    position: relative;
    pointer-events: none;
    user-select: none;
    max-height: 80px;
    overflow: hidden;
}

.crpw-blur-content {
    filter: blur(6px);
    opacity: .5;
    padding: 0 4px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
}

.crpw-blur-line {
    margin: 0 0 .75em;
    line-height: 1.7;
}

/* --- Paywall prompt --- */
.crpw-paywall-prompt {
    position: relative;
    margin-top: 20px;
    padding: 0 0 24px;
    text-align: center;
    z-index: 10;
}

.crpw-prompt-inner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
}

/* Dark mode — add class="crpw-dark" to body element to enable */
.crpw-dark .crpw-prompt-inner {
    background: #1e1e2e;
    border-color: #2e2e3e;
    color: #e2e8f0;
}

.crpw-prompt-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.crpw-prompt-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.crpw-prompt-body {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.5;
}

.crpw-prompt-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.crpw-prompt-actions .crpw-btn {
    width: 100%;
    max-width: 280px;
}

/* Hard page gate */
.crpw-gate-wrapper--page {
    margin: 40px auto;
    max-width: 520px;
}

.crpw-gate-wrapper--page .crpw-paywall-prompt {
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ============================================================
   Comp / Metered Access Banner
   ============================================================ */
.crpw-comp-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: .85rem;
    color: #1e40af;
    line-height: 1.5;
}

.crpw-comp-banner a {
    color: #A31F34;
    font-weight: 600;
    text-decoration: underline;
}

.crpw-comp-banner strong { font-weight: 700; }

/* ============================================================
   [crpw_protected] shortcode editor preview
   ============================================================ */
.crpw-protected-preview { position: relative; }

.crpw-protected-label {
    display: inline-block;
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #854d0e;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.crpw-protected-content { }
.crpw-protected-gate    { }
