@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root { color-scheme: light; font-family: Outfit, sans-serif; color: #24252a; background: #f5f5f7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, iframe:focus-visible { outline: 3px solid #0055d4; outline-offset: 4px; }
.preview-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 20px; border-bottom: 1px solid #e2e3e8; background: #fafafb; }
.preview-back { font-size: 14px; font-weight: 500; text-decoration: none; }
.preview-help { font-size: 13px; color: #656671; margin-left: auto; }
.preview-help a { color: #0055d4; font-weight: 500; }
.preview-stage { height: calc(100dvh - 170px); position: relative; }
.preview-frame { display: block; width: 100%; height: 100%; border: 0; background: #f0f1f3; }
.preview-buybar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(760px, calc(100% - 40px)); min-height: 74px; border: 1px solid #dddfe5; border-radius: 14px; padding: 14px 16px 14px 22px; background: #fafafb; box-shadow: 0 8px 28px #252a3e12; display: flex; align-items: center; gap: 24px; }
.preview-template { flex: 1; min-width: 0; }
.preview-template small { display: block; color: #747580; font-size: 11px; margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase; }
.preview-template h1 { font-size: 19px; line-height: 1.2; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.preview-price { font-size: 22px; font-weight: 600; white-space: nowrap; text-align: right; }
.preview-price small { display: block; font-size: 11px; color: #747580; font-weight: 400; margin-top: 3px; }
.preview-buy { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 12px 22px; border-radius: 8px; background: #0055d4; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.preview-buy:hover { background: #0045ad; }
.preview-buy-top { flex-shrink: 0; }
.preview-unavailable { max-width: 520px; padding: 48px 24px; margin: auto; }
.preview-unavailable h2 { font-size: 28px; }
.preview-unavailable p { color: #656671; line-height: 1.6; }
@media (max-width: 767px) {
    .preview-header { height: 116px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 7px; padding: 12px 16px; }
    .preview-help { font-size: 12px; grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
    .preview-header .preview-buy-top { grid-column: 2; grid-row: 1; padding: 10px 14px; }
    .preview-stage { height: calc(100dvh - 272px - env(safe-area-inset-bottom, 0px)); }
    .preview-buybar { bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; }
    .preview-template h1 { font-size: 18px; }
    .preview-template small { font-size: 10px; }
    .preview-price { font-size: 20px; }
    .preview-buy { grid-column: 1 / -1; }
}
