/* Guest / preview upgrade sheet — shared host class body.wp-guest-pricing-host */
.gp-preview-banner {
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.35));
}
.gp-sensitive-blur {
    filter: blur(7px);
    opacity: 0.82;
    user-select: none;
    pointer-events: none;
}

        body.wp-guest-pricing-host.wp-guest-pricing-open {
            overflow: hidden;
            touch-action: none;
        }

        /* Fixed header ignores body padding — match scrollbar width (beats mobile_responsive .header padding-right:0 !important) */
        body.wp-guest-pricing-host.wp-guest-pricing-open .header {
            padding-right: var(--wp-scrollbar-comp, 0px) !important;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay[hidden] {
            display: none !important;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay.is-entering .wp-guest-pricing-overlay__backdrop {
            opacity: 1;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay.is-entering .wp-guest-pricing-overlay__panel {
            opacity: 1;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__backdrop {
            position: absolute;
            inset: 0;
            /* Solid dimmer only: backdrop-filter often causes a one-frame resize/composite glitch in Chrome when the sheet appears */
            background: rgba(6, 5, 3, 0.82);
            opacity: 0;
            transition: opacity 0.35s ease;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__panel {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 760px;
            max-height: min(98dvh, calc(100vh - 8px));
            margin: 0 auto;
            background: linear-gradient(180deg, #1a1510 0%, #0d0b08 100%);
            border: 1px solid rgba(201, 168, 76, 0.35);
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
            display: flex;
            flex-direction: column;
            min-height: 0;
            opacity: 0;
            /* Opacity-only entrance avoids transform + subpixel “size” glitches */
            transition: opacity 0.32s ease-out;
            /* Own compositing layer: less jank with large overlay subtree in Chrome */
            transform: translateZ(0);
            backface-visibility: hidden;
            overflow-x: hidden;
            /* One scrollbar on the sheet if needed (body area stays overflow:visible) */
            overflow-y: auto;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__chrome {
            flex-shrink: 0;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px 8px;
            padding-top: calc(10px + env(safe-area-inset-top, 0px));
            border-bottom: 1px solid rgba(201, 168, 76, 0.12);
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__eyebrow {
            margin: 0;
            font-size: 0.84rem;
            font-weight: 700;
            color: #f5efe3;
            line-height: 1.3;
            letter-spacing: 0.01em;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__eyebrow span {
            display: block;
            font-size: 0.72rem;
            font-weight: 500;
            color: rgba(201, 168, 76, 0.9);
            margin-top: 3px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__close {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: #f0e8d5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__close:hover {
            background: rgba(201, 168, 76, 0.22);
            color: #fff;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__body {
            flex: 0 1 auto;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: visible;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            padding: 6px 12px 10px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__foot {
            flex-shrink: 0;
            margin: 0;
            padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
            border-top: 1px solid rgba(201, 168, 76, 0.12);
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__secondary {
            border: none;
            background: none;
            color: rgba(201, 168, 76, 0.95);
            font-size: 0.88rem;
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 3px;
            cursor: pointer;
            padding: 8px 12px;
            min-height: 44px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay__secondary:hover {
            color: #e8c066;
        }

        /* Editorial pricing inside overlay (matches premium_features pf-pricing-editorial) */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial {
            text-align: left;
            max-width: 100%;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .editorial-kicker {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #c9a84c;
            font-weight: 700;
            margin-bottom: 4px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .section-block {
            margin: 0 auto 0;
            background: #16120c;
            border: 1px solid rgba(201, 168, 76, 0.16);
            border-radius: 14px;
            padding: 12px 12px 14px;
            color: #f0e8d5;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .section-title {
            /* System serif: avoids Cormorant webfont swap reflow in Chrome (felt like a quick resize) */
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: clamp(1.05rem, 2.8vw, 1.65rem);
            line-height: 1.18;
            margin-bottom: 6px;
            font-weight: 700;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .section-subtitle {
            color: #b8aa89;
            margin-bottom: 8px;
            font-size: 0.82rem;
            line-height: 1.35;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-disclaimer {
            font-size: 0.62rem;
            color: #8a7a5a;
            margin: -4px 0 8px 0;
            line-height: 1.4;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-plus-wrap {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
            width: 100%;
            max-width: 100%;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-draw-note {
            padding: 0 2px;
            line-height: 1.45;
            color: #9f906f !important;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-draw-note a {
            color: #e8c066;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
            align-items: start;
        }

        /* Chrome: minmax(0,1fr) columns need min-width 0; long copy must wrap so min-content width can’t blow the row */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > * {
            min-width: 0;
            max-width: 100%;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card,
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-list li {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card-link {
            display: block;
            text-decoration: none;
            color: inherit;
            -webkit-tap-highlight-color: rgba(201, 168, 76, 0.25);
            border-radius: 12px;
            min-height: 44px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card {
            background: #100e09;
            border: 1px solid rgba(201, 168, 76, 0.18);
            border-radius: 12px;
            padding: 11px 10px 12px;
            height: auto;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card-link:active .pricing-card {
            transform: scale(0.99);
        }

        @media (hover: hover) {
            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card:hover,
            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-card-link:hover .pricing-card {
                transform: translateY(-2px);
                border-color: rgba(201, 168, 76, 0.55);
            }
        }

        /* Static highlight only — any animation (shadow/filter/border) was still tripping Chrome grid reflow: Premium+ briefly wrapped under Starter. */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-plus-wrap .pricing-card {
            border-color: rgba(252, 211, 77, 0.55);
            box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-tier {
            color: #c9a84c;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-price {
            font-family: Georgia, 'Times New Roman', Times, serif;
            font-size: clamp(1.2rem, 3.5vw, 1.55rem);
            line-height: 1;
            margin: 4px 0;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-copy {
            color: #b8aa89;
            font-size: 0.76rem;
            margin-bottom: 6px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-list {
            list-style: none;
            padding: 0;
            margin: 0 0 8px;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-list li {
            color: #d8ccb3;
            font-size: 0.76rem;
            margin-bottom: 3px;
            line-height: 1.28;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-list li::before {
            content: "✓ ";
            color: #5ae68a;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-list li .pricing-voucher-asterisk {
            color: #c9a84c;
            font-size: 0.75em;
            font-weight: 600;
            top: -0.12em;
        }

        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-cta {
            display: block;
            text-align: center;
            text-decoration: none;
            border-radius: 999px;
            padding: 9px 12px;
            font-size: clamp(0.78rem, 2.4vw, 0.88rem);
            font-weight: 800;
            letter-spacing: 0.03em;
            line-height: 1.3;
            -webkit-font-smoothing: antialiased;
            transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        }

        /* Starter — light text on dark (shadow for edge contrast) */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(1) .pricing-cta {
            color: #ffffff;
            background: linear-gradient(135deg, #3f4f63 0%, #1e293b 100%);
            border: 1px solid rgba(226, 232, 240, 0.45);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        /* Premium — dark text on brighter gold (higher contrast than pale on deep gold) */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(2) .pricing-cta {
            color: #1c1410;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #e89100 100%);
            border: 1px solid rgba(120, 53, 15, 0.35);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
            box-shadow: 0 3px 14px rgba(202, 138, 4, 0.4);
        }

        /* Premium+ — white on saturated orange (reads clearly across the whole gradient) */
        body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-plus-wrap .pricing-card-link .pricing-cta {
            color: #ffffff;
            background: linear-gradient(135deg, #fb923c 0%, #f97316 40%, #ea580c 100%);
            border: 1px solid rgba(255, 237, 213, 0.65);
            font-weight: 800;
            font-size: clamp(0.8rem, 2.5vw, 0.92rem);
            padding: 10px 12px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 0, 0, 0.6);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.22) inset,
                0 4px 22px rgba(234, 88, 12, 0.45),
                0 8px 28px rgba(245, 158, 11, 0.25);
        }

        @media (hover: hover) {
            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(1):hover .pricing-cta {
                filter: brightness(1.08);
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(2):hover .pricing-cta {
                filter: brightness(1.1);
                box-shadow: 0 4px 18px rgba(202, 138, 4, 0.45);
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pf-pricing-plus-wrap .pricing-card-link:hover .pricing-cta {
                filter: brightness(1.06) saturate(1.05);
                box-shadow:
                    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
                    0 6px 26px rgba(234, 88, 12, 0.5),
                    0 10px 34px rgba(245, 158, 11, 0.35);
                transform: translateY(-1px);
            }
        }

        @media (min-width: 700px) {
            body.wp-guest-pricing-host .wp-guest-pricing-overlay {
                align-items: center;
                padding: 24px 16px;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay__panel {
                border-radius: 20px;
                max-height: min(98dvh, calc(100vh - 16px));
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay__chrome {
                padding-top: 14px;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-template-rows: auto;
                gap: 8px;
                align-items: start;
                contain: layout;
            }

            /* Pin columns (use nth-of-type: whitespace text nodes between tags break nth-child) */
            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(1) {
                grid-column: 1 / 2;
                grid-row: 1;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > a.pricing-card-link:nth-of-type(2) {
                grid-column: 2 / 3;
                grid-row: 1;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .pricing-grid > .pf-pricing-plus-wrap {
                grid-column: 3 / 4;
                grid-row: 1;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay .pf-pricing-editorial .section-block {
                padding: 12px 12px 14px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            body.wp-guest-pricing-host .wp-guest-pricing-overlay__backdrop,
            body.wp-guest-pricing-host .wp-guest-pricing-overlay__panel {
                transition: none;
            }

            body.wp-guest-pricing-host .wp-guest-pricing-overlay.is-entering .wp-guest-pricing-overlay__backdrop,
            body.wp-guest-pricing-host .wp-guest-pricing-overlay.is-entering .wp-guest-pricing-overlay__panel {
                opacity: 1;
            }

        }


