/* Namespaced public version of PopupStudio's shell, preview toolbar and
   Custom rail. Keep app-native typography inside the editor. */
.pe-section { padding-block: 78px; }
.pe-section.pe-standalone { padding-top: 56px; }
.pe-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.pe-section-heading > div { max-width: 760px; }
.pe-section .pe-eyebrow { margin: 0 0 13px; color: var(--mu-accent, #087bc1); font: 900 12px/1.4 'Nunito', sans-serif; letter-spacing: .13em; }
.pe-section .pe-section-heading :is(h1,h2) { margin: 0; font-family: 'Baloo 2', 'Nunito', sans-serif; font-size: clamp(34px,3.9vw,52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--mu-ink, #132d3c); }
.pe-section .pe-section-heading h1 { font-size: clamp(38px,4.8vw,60px); }
.pe-section .pe-section-heading > div > p:last-child { margin: 14px 0 0; color: #506878; font: 600 17px/1.65 'Nunito', sans-serif; max-width: 660px; }
.pe-section .pe-full-editor { color: #087bc1; font: 850 14px/1.45 'Nunito', sans-serif; text-decoration: none; white-space: nowrap; padding-block: 7px; }
.pe-section .pe-full-editor:hover { text-decoration: underline; text-underline-offset: 4px; }
.pe-section .pe-full-editor span { margin-left: 6px; }
.pe-next-step { margin: 22px 0 0; }
.pe-follow-up { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 32px; padding-top: 26px; border-top: 1px solid #d9e5ed; }
.pe-follow-up h2 { margin: 0 0 8px; font-size: 27px; line-height: 1.2; }
.pe-follow-up p { max-width: 650px; margin: 0; color: #506878; font-size: 15px; line-height: 1.65; }
.pe-follow-up > a { flex-shrink: 0; }

/* Changing editor panes and animating the review must not move the page's scroll anchor. */
.pe-editor { container: pe-editor / inline-size; border: 1px solid #d9dfe5; border-radius: 16px; background: #f9f9f9; color: #1f2937; box-shadow: 0 14px 42px -24px rgba(22,42,58,.25); overflow: clip; isolation: isolate; overflow-anchor: none; }
.pe-section .pe-editor,
.pe-section .pe-editor :is(h2,h3,h4,p,button,input,textarea,select,label,summary,output,strong,span) { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; }
.pe-section .pe-editor * { box-sizing: border-box; }
.pe-editor [hidden] { display: none !important; }
.pe-section .pe-editor :is(button,input,textarea,select) { font-size: 13px; line-height: 1.4; letter-spacing: normal; }
.pe-section .pe-editor button { cursor: pointer; text-transform: none; min-width: 0; }
.pe-editor button:disabled { cursor: default; }
.pe-editor svg { flex: none; display: block; }
.pe-editor :is(button,a,input,textarea,select,summary):focus-visible { outline: 3px solid #3aa2e9; outline-offset: 3px; }
.pe-editor :is(button,input,textarea,select) { -webkit-tap-highlight-color: transparent; }
.pe-section .pe-header { display: flex; align-items: center; gap: 16px; padding: 13px 16px; background: #fff; min-height: 64px; }
.pe-header-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pe-section .pe-header-name > strong { color: #111827; font-size: 15px; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.pe-header-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #138ada; background: #e9f5ff; }
.pe-section .pe-type-badge { flex: none; font-size: 10px; font-weight: 700; line-height: 1.5; padding: 3px 8px; border-radius: 99px; color: #6d28d9; background: #f5f3ff; }
.pe-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pe-section .pe-editor .pe-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid transparent; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 650; box-shadow: none; transition: background .15s,transform .15s; }
.pe-section .pe-editor .pe-button-primary { background: #1f90e2; border-color: #1480cf; color: #fff; }
.pe-section .pe-editor .pe-button-primary:hover { background: #117fcf; }
.pe-section .pe-editor .pe-button-quiet { background: transparent; color: #6b7280; padding-inline: 8px; }
.pe-section .pe-editor .pe-button-quiet:hover { background: #f3f4f6; color: #374151; }
.pe-section .pe-editor .pe-button:active { transform: translateY(.5px); }

.pe-body { display: grid; grid-template-columns: minmax(0,1fr) 350px; height: 656px; }
.pe-preview-col { min-width: 0; min-height: 0; padding: 4px 10px 0; display: flex; flex-direction: column; gap: 0; }
.pe-frame { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; border: 1px solid #e0e3e8; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(23,37,53,.025); }
.pe-chrome { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 43px; padding: 7px 10px; border-bottom: 1px solid #e6e8ec; background: #fafafa; }
.pe-chrome-dots { display: flex; gap: 4px; }
.pe-chrome-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #ff6058; }
.pe-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.pe-chrome-dots span:nth-child(3) { background: #29c941; }
.pe-section .pe-chrome-url { color: #808994; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.pe-chrome-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-left: auto; }
.pe-seg { display: inline-flex; background: #eceef1; border-radius: 7px; padding: 2px; gap: 2px; }
.pe-section .pe-editor .pe-seg-button { min-height: 27px; padding: 4px 9px; border: none; border-radius: 5px; background: transparent; color: #6b7280; font-size: 10.5px; font-weight: 650; box-shadow: none; }
.pe-section .pe-editor .pe-seg-button[aria-pressed='true'] { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pe-section .pe-editor .pe-seg-button:hover { color: #111827; }
.pe-pagebox { flex: 1; display: flex; min-height: 0; padding: 12px; gap: 10px; background: #f1f2f4; }
.pe-eval { position: relative; flex: 0 0 23px; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 7px; padding-block: 1px; }
.pe-eval-track { width: 16px; flex: 1; min-height: 100px; background: #e0e4e8; border: 1px solid #d1d7dd; border-radius: 5px; position: relative; overflow: hidden; }
.pe-eval-track > span { position: absolute; inset: auto 0 0; height: 0; background: #305a40; transition: height .6s ease; }
.pe-section .pe-eval-value { color: #334155; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.4; font-weight: 750; }
.pe-canvas { display: flex; position: relative; flex: 1; min-width: 0; align-items: center; justify-content: center; align-items: safe center; padding: 24px 20px; border-radius: 5px; overflow: auto; background: #e7e8e7; transition: max-width .25s ease; }
.pe-store-backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .62; }
.pe-store-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 51px; padding: 15px 20px; background: #f5f4ef; border-bottom: 1px solid #d9ddd7; }
.pe-section .pe-store-nav strong { font-family: Georgia,serif; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: #697565; }
.pe-section .pe-store-nav > span { white-space: nowrap; font-size: 9px; color: #75806f; }
.pe-store-skeleton { display: grid; gap: 11px; padding: 35px 24px; }
.pe-store-skeleton i { height: 9px; width: 42%; background: #cfd4cb; border-radius: 4px; }
.pe-store-skeleton i:first-child { height: 15px; width: 55%; margin-bottom: 7px; }
.pe-store-skeleton i:last-child { width: 31%; }
.pe-store-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; padding: 0 24px; }
.pe-store-tiles i { height: 190px; border-radius: 5px; background: #d5d9d1; }
.pe-store-tiles i:nth-child(2) { background: #d1d6d2; }
.pe-store-tiles i:nth-child(3) { background: #d9d6ce; }
.pe-store-backdrop::after { content: ''; position: absolute; inset: 51px 0 0; background: rgba(71,79,70,.055); }

.pe-popup-card { flex-shrink: 0; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); width: 100%; max-width: 600px; min-width: 0; background: var(--pe-popup-bg,#faf8f1); color: var(--pe-popup-text,#34472e); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -15px rgba(27,39,28,.3),0 0 0 1px rgba(22,35,28,.06); transition: background-color .3s,color .3s; }
.pe-card-image { position: relative; min-height: 350px; min-width: 0; overflow: hidden; background: #dddccf; }
.pe-card-image > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; object-position: 49% center; }
.pe-section .pe-card-image > span { position: absolute; inset: auto 0 0; padding: 45px 18px 20px; background: linear-gradient(transparent,rgba(20,35,32,.65)); font: 400 24px/1.1 Georgia,serif; color: #fff; letter-spacing: -.02em; }
.pe-card-copy { min-width: 0; padding: 35px 25px 25px; align-self: center; }
.pe-section .pe-popup-brand { margin: 0 0 20px; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .21em; color: inherit; }
.pe-section .pe-editor .pe-card-heading { margin: 0 0 12px; font-family: var(--pe-popup-font,Georgia,serif); font-size: var(--pe-popup-heading-size,32px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; color: inherit; overflow-wrap: anywhere; }
.pe-section .pe-editor .pe-card-description { font-family: Arial,sans-serif; font-size: 14px; line-height: 1.5; font-weight: 400; color: inherit; opacity: .65; margin: 0 0 19px; overflow-wrap: anywhere; }
.pe-section .pe-editor .pe-inline-edit { display: block; width: 100%; padding: 0; margin: 0; min-height: 1em; border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.pe-editor[data-interaction='edit'][data-mode='edit'] .pe-inline-edit { cursor: text; caret-color: #087ccd; -webkit-user-select: text; user-select: text; }
.pe-editor[data-interaction='edit'][data-mode='edit'] .pe-inline-edit:hover { outline: 1px dashed #8aade3; outline-offset: 5px; }
.pe-editor .pe-inline-edit[contenteditable='plaintext-only']:empty::before { content: attr(data-placeholder); opacity: .45; pointer-events: none; }
.pe-section .pe-editor .pe-inline-edit:focus,
.pe-section .pe-editor .pe-preview-active { outline: 2px solid #188ddb; outline-offset: 5px; }
.pe-section .pe-editor .pe-inline-edit::selection { background: #a9d9fa; color: #123247; }
.pe-editor[data-interaction='edit'][data-mode='edit'] [data-popup-focus-field] { cursor: pointer; }
.pe-editor[data-interaction='edit'][data-mode='edit'] .pe-capture input { pointer-events: none; }
.pe-editor[data-interaction='edit'][data-mode='edit'] [data-popup-focus-field]:hover { outline: 1px dashed #188ddb; outline-offset: 4px; }
.pe-selection-layer { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.pe-selection-layer > span { display: block; position: absolute; pointer-events: none; }
.pe-mirror-caret { background: #087ccd; box-shadow: 0 0 0 1px rgba(255,255,255,.7); animation: pe-caret-blink 1.1s steps(1) infinite; }
.pe-mirror-selection { background: #75c2fb; opacity: .38; }
@keyframes pe-caret-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.pe-section .pe-editor .pe-popup-close { position: absolute; z-index: 3; top: 9px; right: 9px; width: 25px; height: 25px; min-height: 0; display: grid; place-items: center; padding: 5px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .65; box-shadow: none; }
.pe-section .pe-editor .pe-popup-close:hover { background: rgba(0,0,0,.055); opacity: 1; }
.pe-capture { display: grid; gap: 10px; margin-bottom: 13px; }
.pe-capture-field { min-width: 0; }
.pe-section .pe-editor .pe-capture-field > label { display: block; font-family: Arial,sans-serif; margin: 0 0 4px; font-size: 10px; line-height: 1.3; font-weight: 600; color: inherit; }
.pe-section .pe-editor .pe-capture-field > input { display: block; width: 100%; min-width: 0; height: 37px; padding: 9px 11px; border: 1px solid rgba(25,40,29,.22); border-radius: 5px; color: #5b685c; background: rgba(255,255,255,.65); font: 400 12px/1.4 Arial,sans-serif; box-shadow: none; }
.pe-section .pe-editor .pe-popup-submit { display: block; width: 100%; padding: 11px 15px; min-height: 40px; border: 0; border-radius: 5px; background: var(--pe-popup-button,#344f36); color: var(--pe-popup-button-text,#fff); box-shadow: none; font: 600 13px/1.4 Arial,sans-serif; transition: background-color .3s,color .3s,filter .15s; overflow-wrap: anywhere; }
.pe-section .pe-editor .pe-popup-submit > span { font-family: inherit; }
.pe-section .pe-editor .pe-popup-submit > .pe-inline-edit { min-height: 1.4em; }
.pe-section .pe-editor .pe-popup-decline > .pe-inline-edit { min-width: 40px; }
.pe-section .pe-editor .pe-popup-submit:hover { filter: brightness(.95); }
.pe-section .pe-editor .pe-popup-consent { margin: 9px 0 0; color: inherit; font-family: Arial,sans-serif; font-size: 9px; line-height: 1.5; opacity: .65; }
.pe-section .pe-editor .pe-popup-decline { display: block; width: fit-content; max-width: 100%; min-height: 30px; margin: 6px auto 0; padding: 8px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: inherit; opacity: .65; font: 400 11px/1.45 Arial,sans-serif; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.pe-section .pe-editor .pe-popup-decline:hover { opacity: 1; }
.pe-popup-card[data-layout='simple'] { display: block; max-width: 360px; }
.pe-popup-card[data-layout='simple'] .pe-card-image { display: none; }
.pe-popup-card[data-layout='simple'] .pe-card-copy { padding: 35px 34px 29px; }
.pe-popup-success { padding-block: 7px 15px; min-height: 270px; display: flex; flex-direction: column; justify-content: center; }
.pe-section .pe-success-check { display: grid; place-items: center; align-self: flex-start; width: 37px; height: 37px; margin-bottom: 20px; border-radius: 50%; background: var(--pe-popup-button,#344f36); color: var(--pe-popup-button-text,#fff); font-size: 19px; }
.pe-section .pe-success-caption { font-size: 10px; line-height: 1.4; color: inherit; opacity: .65; }
.pe-section .pe-editor .pe-reopen { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; min-height: 42px; border: 1px solid #d2d9d1; border-radius: 7px; color: #334d38; background: #fff; box-shadow: 0 4px 14px rgba(30,44,32,.06); font-size: 12px; font-weight: 650; }
.pe-section .pe-editor .pe-reopen:hover { background: #f8faf7; }
.pe-canvas[data-device='mobile'] { max-width: 390px; margin-inline: auto; padding-inline: 15px; }
.pe-canvas[data-device='mobile'] .pe-popup-card { display: block; max-width: 310px; }
.pe-canvas[data-device='mobile'] .pe-card-image { min-height: 0; height: 120px; }
.pe-canvas[data-device='mobile'] .pe-card-image > img { object-position: center 47%; }
.pe-canvas[data-device='mobile'] .pe-card-image > span { display: none; }
.pe-canvas[data-device='mobile'] .pe-card-copy { padding: 24px 23px 20px; }
.pe-canvas[data-device='mobile'] .pe-popup-brand { margin-bottom: 14px; }
.pe-canvas[data-device='mobile'] .pe-popup-success { min-height: 245px; }
.pe-preview-footer { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 7px 10px; border-top: 1px solid #e7eaed; background: #fff; }
.pe-preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #a4adb6; flex: none; }
.pe-section .pe-preview-footer p { margin: 0; color: #6d7883; font-size: 10px; line-height: 1.4; }
.pe-preview-footer { min-height: 36px; gap: 8px; justify-content: flex-start; }
.pe-preview-footer > p { flex: 1; }
.pe-editor[data-editing-field] .pe-preview-dot { background: #138dda; }
.pe-section .pe-editor .pe-preview-footer > button { flex-shrink: 0; border: 0; background: none; box-shadow: none; padding: 4px; min-height: 26px; color: #087cc1; font-size: 11px; font-weight: 650; }
.pe-section .pe-editor .pe-preview-footer > .pe-view-settings { display: none; }
.pe-example-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 9px 3px 10px; flex: none; }
.pe-section .pe-example-actions > span { margin-right: auto; color: #687582; font-size: 10px; line-height: 1.4; }
.pe-section .pe-editor .pe-example-actions > button { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 0; background: none; color: #64717f; font-size: 10.5px; line-height: 1.4; padding: 2px 0; min-height: 25px; font-weight: 600; box-shadow: none; }
.pe-section .pe-editor .pe-example-actions > button:hover { color: #147fc2; }
.pe-handoff { padding: 23px 26px; border-top: 1px solid #d9e5ed; background: #f5faff; scroll-margin-block: 20px; }
.pe-handoff-heading { display: flex; justify-content: space-between; gap: 20px; }
.pe-section .pe-handoff h3 { margin: 0 0 7px; color: #183442; font-size: 20px; line-height: 1.3; font-weight: 750; }
.pe-section .pe-handoff-heading p { max-width: 610px; margin: 0; color: #506878; font-size: 13px; line-height: 1.6; }
.pe-section .pe-editor .pe-handoff-heading > button { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #d8e3ec; border-radius: 7px; padding: 0; background: #fff; color: #627582; box-shadow: none; }
.pe-handoff-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pe-section .pe-handoff-note { max-width: 760px; margin: 13px 0 0; color: #617481; font-size: 11px; line-height: 1.6; }
.pe-section .pe-handoff-store { display: inline-block; margin-top: 17px; color: #087bc1; font: 600 12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-decoration: none; }
.pe-section .pe-handoff-store:hover { text-decoration: underline; text-underline-offset: 3px; }
.pe-copy-fallback { max-width: 760px; margin-top: 17px; }
.pe-section .pe-copy-fallback label { display: block; margin-bottom: 6px; color: #385260; font-size: 12px; font-weight: 650; }
.pe-section .pe-copy-fallback textarea { display: block; width: 100%; border: 1px solid #b7cddd; border-radius: 7px; padding: 12px; background: #fff; color: #283f4d; line-height: 1.5; resize: vertical; }

.pe-rail { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border-left: 1px solid #e8ebef; }
.pe-mode-row { display: flex; align-items: center; padding: 12px 14px; background: #fff; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; flex: none; }
.pe-mode-toggle { display: flex; flex: 1; gap: 3px; padding: 3px; background: #eceef1; border-radius: 11px; box-shadow: inset 0 1px 2px rgba(15,23,42,.06); }
.pe-section .pe-editor .pe-mode-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-height: 34px; border: 0; border-radius: 8px; box-shadow: none; background: transparent; color: #6b7280; font-size: 12.5px; font-weight: 700; }
.pe-section .pe-editor .pe-mode-button[aria-pressed='true'] { background: #fff; color: #6d28d9; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pe-section .pe-editor .pe-mode-button:hover { color: #111827; }
.pe-section .pe-editor .pe-view-preview { display: none; align-items: center; justify-content: center; gap: 5px; flex: none; min-height: 38px; padding: 7px 9px; border: 1px solid #e1e6eb; border-radius: 7px; background: #fff; color: #147fc2; font-size: 11px; font-weight: 650; white-space: nowrap; box-shadow: none; }
.pe-section .pe-editor .pe-view-preview:hover { background: #f2f8fc; }
.pe-custom,.pe-review { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #d8dbe2 transparent; }
.pe-custom { padding: 0 14px 18px; }
.pe-section .pe-custom-hint { margin: 14px 0 13px; color: #87909b; font-size: 11px; line-height: 1.5; }
.pe-acc { background: #fff; border: 1px solid #eceef3; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.03); overflow: hidden; margin: 0 0 10px; padding: 0; transition: border-color .15s,box-shadow .15s; }
.pe-acc[open] { border-color: #ddd6fe; box-shadow: 0 4px 16px -8px rgba(109,40,217,.25); }
.pe-acc > summary { display: flex; align-items: center; gap: 11px; min-height: 0; padding: 15px 16px; cursor: pointer; list-style: none; user-select: none; }
.pe-acc > summary:hover { background: #fafbfd; }
.pe-acc > summary::-webkit-details-marker { display: none; }
.pe-acc-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; background: #fff7ed; color: #c2410c; }
.pe-acc-icon svg { width: 16px; height: 16px; }
.pe-acc-layout .pe-acc-icon { background: #eff6ff; color: #2563eb; }
.pe-acc-signup .pe-acc-icon { background: #f0f9ff; color: #0284c7; }
.pe-acc-when .pe-acc-icon { background: #eef2ff; color: #4f46e5; }
.pe-acc-style .pe-acc-icon { background: #fff1f2; color: #e11d48; }
.pe-section .pe-acc-title { color: #1f2430; font-size: 15px; line-height: 1.4; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.pe-section .pe-acc-summary { margin-left: auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #9ca3af; font-size: 13px; line-height: 1.4; font-weight: 500; }
.pe-acc-chevron { flex: none; color: #9ca3af; width: 16px; height: 16px; transition: transform .18s; }
.pe-acc[open] > summary .pe-acc-chevron { transform: rotate(180deg); }
.pe-acc[open] > summary .pe-acc-title { color: #111827; }
.pe-acc-body { padding: 14px; border-top: 1px solid #f5f6f8; }
.pe-field { min-width: 0; margin-bottom: 13px; }
.pe-field:last-child { margin-bottom: 0; }
.pe-section .pe-field > label,.pe-section .pe-color-field > label,.pe-section .pe-range-label > label { display: block; margin: 0 0 6px; color: #6b7280; font-size: 11.5px; line-height: 1.4; font-weight: 650; }
.pe-section .pe-editor .pe-field > :is(input:not([type='range']),textarea,select) { display: block; width: 100%; min-width: 0; min-height: 37px; margin: 0; padding: 9px 10px; border: 1px solid #d7dce3; border-radius: 7px; box-shadow: 0 1px 2px rgba(16,24,40,.02); background: #fff; color: #374151; font-size: 12px; line-height: 1.5; }
.pe-section .pe-editor .pe-field > textarea { resize: vertical; min-height: 74px; }
.pe-section .pe-editor .pe-field > select { appearance: auto; padding-right: 7px; }
.pe-section .pe-editor .pe-field > :is(input,textarea,select):focus { border-color: #66aef0; }
.pe-editor .pe-field-active { position: relative; }
.pe-section .pe-editor .pe-field-active > label,
.pe-section .pe-editor .pe-field-active > span > strong { color: #087cc1; }
.pe-section .pe-editor .pe-field-active > :is(input:not([type='range']),textarea,select) { border-color: #2995df; box-shadow: 0 0 0 3px #e3f2fc; }
.pe-section .pe-editor .pe-field-active > label::after { content: 'Editing'; float: right; margin-left: 6px; font-size: 9px; line-height: 16px; font-weight: 600; color: #087cc1; }
.pe-section .pe-editor .pe-color-field.pe-field-active,
.pe-section .pe-editor .pe-check-row.pe-field-active { outline: 2px solid #2995df; outline-offset: 5px; border-radius: 3px; }
.pe-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-field-pair .pe-field { margin: 0; }
.pe-photo-reference { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e4e7eb; border-radius: 9px; }
.pe-photo-reference > img { display: block; width: 55px; height: 45px; border-radius: 5px; object-fit: cover; }
.pe-photo-reference > div { min-width: 0; }
.pe-section .pe-photo-reference strong { display: block; margin-bottom: 4px; font-size: 11px; line-height: 1.4; font-weight: 600; color: #4b5563; }
.pe-section .pe-photo-reference span { display: block; color: #9ca3af; font-size: 10px; line-height: 1.3; }
.pe-section .pe-setting-note { margin: 0 0 12px; color: #87909b; font-size: 11px; line-height: 1.55; }
.pe-check-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 10px; cursor: pointer; }
.pe-check-row + .pe-check-row { border-top: 1px solid #eef0f3; }
.pe-section .pe-check-row strong { display: block; color: #4b5563; font-size: 11.5px; line-height: 1.45; font-weight: 600; }
.pe-section .pe-check-row small { display: block; margin-top: 4px; color: #8b949f; font-size: 10.5px; line-height: 1.45; font-weight: 400; }
.pe-section .pe-editor .pe-check-row input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: #208ddc; cursor: pointer; }
.pe-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; margin-bottom: 19px; }
.pe-color-field { min-width: 0; }
.pe-color-field > div { display: flex; align-items: center; gap: 8px; }
.pe-section .pe-editor .pe-color-field input { appearance: none; display: block; width: 28px; height: 28px; flex: 0 0 28px; padding: 0; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.pe-color-field input::-webkit-color-swatch-wrapper { padding: 2px; }
.pe-color-field input::-webkit-color-swatch { border: 0; border-radius: 3px; }
.pe-color-field input::-moz-color-swatch { border: 2px solid #fff; border-radius: 4px; }
.pe-section .pe-color-field output { font: 500 10.5px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; color: #6b7280; }
.pe-range-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pe-section .pe-range-label > label { margin: 0; }
.pe-section .pe-range-label > output { font-size: 11px; line-height: 1.4; font-weight: 650; color: #4b5563; font-variant-numeric: tabular-nums; }
.pe-section .pe-editor .pe-field > input[type='range'] { display: block; width: 100%; height: 18px; margin: 0; padding: 0; border: 0; accent-color: #238edb; cursor: pointer; box-shadow: none; }
.pe-field input[type='range'] + .pe-setting-note { margin: 8px 0 0; }
.pe-editor-footer { display: flex; align-items: center; gap: 18px; padding: 13px 16px; border-top: 1px solid #e4e8ed; background: #fff; height: 54px; }
.pe-editor-footer > img { flex: none; width: 82px; height: auto; }
.pe-section .pe-editor-footer > p { margin: 0; margin-left: auto; font-size: 10.5px; color: #8a929b; line-height: 1.5; text-align: right; }
.pe-section .pe-noscript { margin: 15px 0 0; color: #506878; font-size: 14px; line-height: 1.6; }

/* Homepage preview, settings and review notes move together with the page.
   Keep the preview in flow so scrolling never stretches the space beneath it. */
.pe-editor[data-popup-scroll='page'] .pe-body { height: auto; align-items: start; }
.pe-editor[data-popup-scroll='page'] .pe-preview-col { min-height: 0; position: static; }
.pe-editor[data-popup-scroll='page'] .pe-frame { flex: none; overflow: clip; }
.pe-editor[data-popup-scroll='page'] .pe-pagebox { min-height: 440px; }
.pe-editor[data-popup-scroll='page'] .pe-canvas { overflow: visible; }
.pe-editor[data-popup-scroll='page'] .pe-rail { height: auto; overflow: visible; }
.pe-editor[data-popup-scroll='page'] :is(.pe-custom,.pe-review) { flex: none; overflow: visible; }
.pe-section .pe-editor[data-popup-scroll='page'] textarea { overflow: hidden; resize: none; }
.pe-section .pe-editor[data-popup-scroll='page'] .pe-view-preview,
.pe-section .pe-editor[data-popup-scroll='page'] .pe-preview-footer > .pe-view-settings { display: inline-flex; }
.pe-editor[data-popup-scroll='page'] .pe-mode-row { gap: 8px; flex-wrap: wrap; }

/* Keep the homepage editor compact without hiding editing itself. */
.pe-editor[data-popup-demo='true'] .pe-preview-col { padding: 10px; }
/* Review my pop-up is redundant while a review is on screen, so it hides.
   Reset does NOT: it is the only way out of a finished or restored review
   back to the pristine Solara sample, and it is what clears a saved review
   from tab storage. Hiding it left a visitor whose stored review had gone
   stale with no way to start over except clearing site data. */
.pe-editor[data-popup-demo='true'][data-makeover] .pe-header-actions > [data-popup-review-start] { display: none; }
.pe-editor[data-popup-demo='true'] .pe-header-actions > [hidden] { display: none; }
.pe-editor[data-popup-demo='true'] .pe-inline-edit { cursor: text; }
.pe-editor[data-popup-demo='true'] .pe-popup-submit:disabled:hover { filter: none; }

@container pe-editor (min-width: 861px) {
  .pe-editor[data-popup-scroll='page'] .pe-rail { align-self: stretch; }
}

@container pe-editor (max-width: 1040px) {
  .pe-body { grid-template-columns: minmax(0,1fr) 325px; }
  .pe-chrome-dots,.pe-chrome-url { display: none; }
  .pe-chrome-tools { width: 100%; margin: 0; justify-content: space-between; }
  .pe-canvas { padding-inline: 13px; }
  .pe-card-copy { padding: 33px 18px 23px; }
  .pe-popup-card { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); }
}
@container pe-editor (max-width: 860px) {
  .pe-body { grid-template-columns: minmax(0,1fr); height: auto; }
  .pe-preview-col { height: auto; min-height: 605px; padding: 0 12px; }
  .pe-frame { overflow: clip; }
  .pe-canvas { overflow: visible; }
  .pe-rail { height: auto; border-left: none; border-top: 1px solid #e1e6eb; }
  .pe-custom,.pe-review { flex: none; overflow: visible; }
  .pe-mode-row { border-top: none; padding: 10px 15px; gap: 8px; }
  /* The shared page offset already reserves room for the navigation. */
  .pe-header,.pe-rail { scroll-margin-top: 25px; }
  .pe-section .pe-editor .pe-view-preview { display: inline-flex; }
  .pe-section .pe-editor .pe-preview-footer > .pe-view-settings { display: inline-flex; align-items: center; }
  .pe-custom { padding-inline: 20px; }
  .pe-mode-toggle { max-width: 400px; margin: 0 auto; }
  .pe-card-copy { padding: 37px 30px 28px; }
  .pe-popup-card { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
  .pe-header { padding: 12px; gap: 10px; }
  .pe-editor-footer { padding-inline: 13px; }
}
@container pe-editor (max-width: 520px) {
  .pe-section .pe-header { flex-wrap: wrap; padding: 13px 12px 10px; gap: 10px 8px; }
  .pe-header-name { width: 100%; }
  .pe-section .pe-header-name > strong { font-size: 14px; }
  .pe-header-actions { width: 100%; flex-direction: row-reverse; gap: 8px; }
  .pe-header-actions .pe-button-primary { flex: 1; }
  .pe-section .pe-editor .pe-header-actions .pe-button { min-height: 44px; font-size: 13px; }
  .pe-section .pe-editor .pe-header-actions .pe-button-quiet { padding-inline: 10px; }
  /* Let short phone previews size to their form; review keeps its measured frame. */
  .pe-preview-col { min-height: 0; padding-inline: 7px; }
  .pe-editor:not([data-makeover]) .pe-frame { flex: none; }
  .pe-editor:not([data-makeover]) .pe-pagebox { flex: none; min-height: 0; }
  .pe-chrome { padding: 6px; }
  .pe-chrome-tools { gap: 5px; }
  .pe-section .pe-editor .pe-seg-button { padding: 8px 7px; min-height: 44px; font-size: 12px; }
  .pe-pagebox { padding: 8px 7px; gap: 6px; }
  .pe-eval { flex-basis: 18px; }
  .pe-eval-track { width: 12px; }
  .pe-canvas { padding: 15px 10px; align-items: safe center; }
  .pe-canvas .pe-popup-card { display: block; max-width: 330px; }
  .pe-canvas .pe-card-image { min-height: 0; height: 104px; }
  .pe-canvas .pe-card-image > img { object-position: center 47%; }
  .pe-canvas .pe-card-image > span { display: none; }
  .pe-canvas .pe-card-copy,.pe-canvas[data-device='mobile'] .pe-card-copy { padding: 22px 20px 17px; }
  .pe-canvas .pe-popup-card[data-layout='simple'] .pe-card-copy { padding: 35px 23px 27px; }
  .pe-section .pe-popup-brand { margin-bottom: 12px; }
  .pe-section .pe-editor .pe-card-description { margin-bottom: 14px; font-size: 16px; line-height: 1.5; }
  .pe-capture { gap: 8px; margin-bottom: 11px; }
  .pe-canvas[data-device='mobile'] { max-width: 390px; padding-inline: 7px; }
  .pe-canvas[data-device='mobile'] .pe-card-image { height: 104px; }
  .pe-section .pe-editor .pe-capture-field > label { font-size: 12px; }
  .pe-section .pe-editor .pe-capture-field > input { height: 44px; font-size: 16px; }
  .pe-section .pe-editor .pe-popup-submit { min-height: 44px; font-size: 16px; }
  .pe-section .pe-editor .pe-popup-decline { min-height: 44px; padding-block: 10px; font-size: 16px; }
  .pe-section .pe-editor .pe-popup-close { top: 3px; right: 3px; width: 44px; height: 44px; padding: 14px; }
  .pe-section .pe-editor .pe-popup-consent { font-size: 11px; }
  .pe-custom { padding-inline: 15px; }
  .pe-acc > summary { gap: 9px; padding-inline: 13px; }
  .pe-field-pair { grid-template-columns: minmax(0,1fr); }
  .pe-section .pe-editor .pe-field > :is(input:not([type='range']),textarea,select) { min-height: 44px; font-size: 16px; }
  .pe-section .pe-editor .pe-field > textarea { min-height: 88px; }
  .pe-section .pe-copy-fallback textarea { font-size: 16px; }
  .pe-section .pe-editor .pe-field > input[type='range'] { height: 44px; }
  .pe-color-field > div { flex-wrap: wrap; }
  .pe-section .pe-editor .pe-color-field input { width: 44px; height: 44px; flex-basis: 44px; }
  .pe-check-row { min-height: 44px; }
  .pe-section .pe-check-row strong { font-size: 13px; }
  .pe-section .pe-check-row small,.pe-section .pe-setting-note { font-size: 12px; }
  .pe-mode-row { flex-wrap: wrap; }
  .pe-section .pe-editor :is(.pe-mode-button,.pe-view-preview,.pe-reopen),
  .pe-section .pe-editor .pe-preview-footer > button,
  .pe-section .pe-editor .pe-example-actions > button { min-height: 44px; }
  .pe-section .pe-editor .pe-handoff-heading > button { width: 44px; height: 44px; }
  .pe-editor-footer { align-items: center; gap: 13px; height: auto; min-height: 60px; }
  .pe-section .pe-editor-footer > p { font-size: 10px; text-align: left; }
  .pe-example-actions { padding-inline: 3px; gap: 10px; }
  .pe-section .pe-example-actions > span { font-size: 9px; }
  .pe-section .pe-editor .pe-example-actions > button { font-size: 10px; }
  .pe-handoff { padding: 19px 15px; }
  .pe-section .pe-preview-footer p { font-size: 9px; }
}
@media (max-width: 760px) {
  .pe-section { padding-block: 52px; }
  .pe-section.pe-standalone { padding-top: 35px; }
  .pe-section-heading { display: block; margin-bottom: 24px; }
  .pe-section .pe-section-heading > div > p:last-child { font-size: 16px; margin-top: 12px; }
  .pe-section .pe-full-editor { display: inline-block; margin-top: 14px; font-size: 13px; }
  .pe-editor { border-radius: 12px; }
  .pe-follow-up { display: block; }
  .pe-follow-up > a { display: inline-flex; margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pe-editor * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
