/* ================================================================
   Support plugin — frontend styles
   Covers two contexts:
     1. Visitor inquiry page  (standalone, no theme) — .iq-* classes
     2. Support modal on theme pages                 — .support-* classes
   Loaded via wp_enqueue_style (theme pages) and a <link> tag
   (standalone inquiry page) so both contexts get the same file.
================================================================ */

/* ================================================================
   INQUIRY PAGE — standalone thread view (iq- prefix)
================================================================ */

*,*::before,*::after { box-sizing:border-box; }

/* Tokens below are copied literal values from the omorphos-visual skill —
   this page is a fully standalone shell with no wp_head()/theme CSS, so it
   can't read the theme's own CSS custom properties (see this file's own
   "Brand palette (hardcoded)" note in the plugin's CLAUDE.md). Never invent
   a hex here that isn't already named in that skill. */
body {
	margin:0; padding:0; background:var(--band-b-bg, #F7F5F2); /* Off-white */
	font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
	color:var(--color-text-strong, #3A3530); /* Stone-800 */
	font-size:16px; line-height:1.62;
	-webkit-font-smoothing:antialiased;
}

/* ---- Layout ---- */
.iq-wrap   { max-width:680px; margin:0 auto; padding:32px 16px 64px; }
.iq-header { text-align:center; margin-bottom:24px; }
.iq-header a { font-size:15px; font-weight:600; color:var(--color-text, #1C1917); text-decoration:none; }
.iq-header__logo { height:32px; width:auto; display:inline-block; vertical-align:middle; filter:var(--logo-filter, none); } /* the logo is a black SVG: inverted in dark (planner-494) */
.iq-footer { text-align:center; margin-top:20px; font-size:12px; color:var(--color-muted, #6B6259); } /* Stone-600 */
.iq-footer a {
	color:var(--color-coffee, #4A3B31); /* Coffee */
	text-decoration:underline; text-decoration-color:var(--color-link-rule, rgba(74,59,49,.35));
	text-decoration-thickness:2px; text-underline-offset:3px;
}
.iq-footer a:hover { text-decoration-color:var(--color-coffee, #4A3B31); }
.iq-footer a:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:3px; }
.iq-footer__copy { margin:0; }

/* ---- Card shell — .iq-card/.iq-body are no longer boxed (no background/
   border/shadow/padding of their own — see the mockup's own bare `.head`),
   so both carry no rules here at all; content flows flush with .iq-wrap's
   own gutter. Only .iq-current-card and .iq-composer below are real boxes
   now. ---- */
.iq-card-header { margin-bottom:24px; }
.iq-card-header h1 { margin:0; font-size:20px; font-weight:600; color:var(--color-text, #1C1917); letter-spacing:-.015em; }
.iq-card-header p  { margin:5px 0 0; font-size:14px; color:var(--color-muted, #6B6259); }

/* ---- Ticket ID ---- */
.iq-ticket-id { font-family:monospace; font-weight:700; letter-spacing:.04em; }

/* ---- Attribution line — shared by the current message and every history
   turn (see .iq-msg / .iq-current-card below). Plain text, no fill/border/
   radius, so a message reads as one turn in a conversation rather than its
   own filed document. */
.iq-msg__meta,
.iq-current-card__meta {
	padding:0; margin:0 0 8px; background:none; border:0; border-radius:0;
	font-size:13.5px; color:var(--color-muted, #6B6259); display:flex; align-items:baseline; flex-wrap:wrap; gap:6px;
}
.iq-msg__meta strong,
.iq-current-card__meta strong { font-weight:600; font-size:14px; color:var(--color-text-strong, #3A3530); }

/* ---- History messages — turns separated by a rule, not filed documents ---- */
.iq-msg { border:0; border-radius:0; margin:0; padding:20px 0; border-bottom:1px solid var(--color-border, #E2DDD6); overflow:visible; }
.iq-msg:last-child { border-bottom:0; padding-bottom:0; }

.iq-msg__body { padding:0; font-size:15px; line-height:1.7; color:var(--color-text-strong, #3A3530); overflow-wrap:anywhere; }
.iq-msg__body p:first-child { margin-top:0; }
.iq-msg__body p:last-child  { margin-bottom:0; }

/* The visitor's own messages get a tinted body so a speaker is
   distinguishable without reading the name — admin messages stay plain on
   the page background. */
.iq-msg--visitor .iq-msg__body,
.iq-msg--original .iq-msg__body,
.iq-current-card__msg--visitor .iq-msg__body,
.iq-current-card__msg--visitor .iq-current-card__body { background:var(--color-stone-50, #F0EDE8); border-radius:7px; padding:14px 16px; } /* Stone-50 */

/* ---- Inline badges — an autoresponse, "Original message" and "Awaiting
   response" are all the same class of thing (a provenance/status label),
   so all three share one visual treatment and differ only in their words.
   Ochre was previously spent on .iq-waiting-label for no real reason —
   Ochre's actual jobs are the Note "accent" variant and chart series 2,
   not a status pill here, and having three labels of the same kind in
   three different treatments (border/radius/tint all differing) read as
   three different kinds of thing when they aren't. */
.iq-badge--autoresponse,
.iq-original-badge,
.iq-waiting-label {
	display:inline-block; padding:2px 7px; border-radius:4px;
	font-size:10.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
	color:var(--color-text-strong, #3A3530); background:var(--color-stone-50, #F0EDE8); line-height:1.6; /* Stone-800 on Stone-50 */
}

/* ---- Current-message card — the one message that's still a card, since
   it holds the action bar. ---- */
.iq-current-card { background:var(--color-surface, #fff); border-radius:8px; overflow:hidden; margin-bottom:20px; border:1px solid var(--color-border, #E2DDD6); }
.iq-current-card__msg { padding:20px 22px 0; }

.iq-current-card__body { padding:0; font-size:15px; line-height:1.7; color:var(--color-text-strong, #3A3530); overflow-wrap:anywhere; }
.iq-current-card__body p:first-child { margin-top:0; }
.iq-current-card__body p:last-child  { margin-bottom:0; }

.iq-current-card__actions {
	margin-top:18px; padding:13px 22px; border-top:1px solid var(--color-border, #E2DDD6);
	display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
}
.iq-current-card__closed  { padding:14px 22px 20px; font-size:13px; color:var(--color-muted, #6B6259); text-align:center; }

/* ---- Composer — its own block below the card, not nested inside it, so
   the message doesn't visually appear to contain the reply form. ---- */
.iq-composer { margin-top:16px; background:var(--color-surface, #fff); border:1px solid var(--color-border, #E2DDD6); border-radius:8px; padding:20px 22px 22px; }
.iq-composer label { display:block; font-size:14px; font-weight:600; color:var(--color-text-strong, #3A3530); margin-bottom:8px; }
.iq-composer__foot { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.iq-composer__hint { font-size:13px; color:var(--color-muted, #6B6259); margin:10px 0 0; }

/* ---- Buttons ---- */
.iq-btn { padding:10px 18px; background:var(--color-text, #1C1917); color:var(--color-surface, #fff); border:1px solid var(--color-text, #1C1917); border-radius:5px; font-size:14px; font-weight:500; cursor:pointer; font-family:inherit; line-height:1.2; }
.iq-btn:hover { background:var(--color-text-strong, #332C25); border-color:var(--color-text-strong, #332C25); }
.iq-btn:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:2px; }
.iq-btn:disabled { opacity:.6; cursor:not-allowed; }

.iq-btn-action { padding:9px 16px; background:var(--color-surface, #fff); color:var(--color-text-strong, #3A3530); border:1px solid var(--color-border, #E2DDD6); border-radius:5px; font-size:13px; font-weight:500; cursor:pointer; font-family:inherit; line-height:1.2; }
.iq-btn-action:hover { background:var(--color-stone-50, #F0EDE8); border-color:var(--color-border, #E2DDD6); color:var(--color-text, #1C1917); }
.iq-btn-action:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:2px; }
.iq-btn-action--resolve { color:var(--color-muted, #6B6259); }

/* Cancel demotes to a quiet text button so it stops competing with Send —
   same link treatment as every other secondary action on this page. */
.iq-btn-action--cancel {
	background:none; border:1px solid transparent; color:var(--color-coffee, #4A3B31);
	text-decoration:underline; text-decoration-color:var(--color-link-rule, rgba(74,59,49,.35));
	text-decoration-thickness:2px; text-underline-offset:3px; padding:10px 4px;
}
.iq-btn-action--cancel:hover { background:none; text-decoration-color:var(--color-coffee, #4A3B31); color:var(--color-coffee, #4A3B31); }

.iq-btn-undo { padding:5px 14px; background:transparent; color:var(--color-muted, #6B6259); border:1px solid var(--color-border, #E2DDD6); border-radius:5px; font-size:12px; cursor:pointer; font-family:inherit; line-height:1; }
.iq-btn-undo:hover { background:var(--color-stone-50, #F0EDE8); border-color:var(--color-border, #E2DDD6); color:var(--color-text, #1C1917); }

/* ---- Form helpers ---- */
.iq-form-inline  { display:inline; }

/* ---- Textarea — 16px stops iOS Safari auto-zooming the page on focus
   (anything smaller triggers it); 150px min-height shows ~6 lines at rest. */
textarea {
	width:100%; min-height:150px; padding:13px 14px; border:1px solid var(--color-border, #E2DDD6); border-radius:6px;
	font-size:16px; font-family:inherit; line-height:1.55; resize:vertical; color:var(--color-text, #1C1917);
	background:var(--color-surface, #fff); box-sizing:border-box;
}
textarea::placeholder { color:var(--color-muted, #6B6259); }
textarea:focus { outline:none; }
textarea:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:2px; border-color:var(--color-coffee, #4A3B31); }

/* ---- Notices — tint fill + matching ink text/border, one per state, so
   success/failure read as distinct at a glance (direct decision,
   overriding this file's original "success stays neutral" draft — see
   omorphos-visual's own "Teal — a scoped exception" note for why success
   is Teal here even though the palette's general rule is "never use teal
   to mean good"). Same tint/ink pairing shape the Note component's own
   variants already use, just with a border added (unlike Note's own
   `filled`, which is borderless) so the two notice states read as
   consistent siblings differing only in hue. */
.iq-notice { padding:10px 14px; border-radius:5px; font-size:13px; margin-bottom:16px; }
.iq-notice--success { background:var(--color-teal-tint, #E2EDEA); color:var(--color-teal-ink, #1A5F52); border:1px solid var(--color-teal-ink, #1A5F52); } /* Teal-tint / Teal-ink */
.iq-notice--error   { background:var(--color-danger-tint, #F5E7E5); color:var(--color-danger-ink, #8C1D17); border:1px solid var(--color-error, #B3261E); } /* Danger-tint / Danger-ink */
.iq-notice--error strong { display:block; margin-bottom:2px; }
.iq-notice--flex { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.iq-notice--flex > form { flex-shrink:0; }
.iq-notice--flex .iq-btn-undo { margin-left:auto; }

/* Undo is a quiet text action inside the notice, not a bordered pill — a
   bordered button nested inside the notice's own border read as boxes
   stacked inside boxes. Same underlined-text treatment
   .iq-btn-action--cancel already uses elsewhere on this page, recolored
   to the notice's own Teal-ink so it still reads as this notice's action. */
.iq-notice--success .iq-btn-undo {
	background:none; border:0; padding:0; color:var(--color-teal-ink, #1A5F52);
	text-decoration:underline; text-decoration-color:rgba(26,95,82,.4);
	text-decoration-thickness:2px; text-underline-offset:3px;
}
.iq-notice--success .iq-btn-undo:hover { background:none; text-decoration-color:var(--color-teal-ink, #1A5F52); color:var(--color-teal-ink, #1A5F52); }

/* ---- Previous replies section ---- */
.iq-previous { margin-top:34px; padding-top:22px; border-top:1px solid var(--color-border, #E2DDD6); }
.iq-previous__header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:4px; }
.iq-previous__label  { font-size:11.5px; font-weight:600; color:var(--color-muted, #6B6259); text-transform:uppercase; letter-spacing:.11em; }
.iq-previous__jump   {
	font-size:13.5px; color:var(--color-coffee, #4A3B31);
	text-decoration:underline; text-decoration-color:var(--color-link-rule, rgba(74,59,49,.35));
	text-decoration-thickness:2px; text-underline-offset:3px;
}
.iq-previous__jump:hover { text-decoration-color:var(--color-coffee, #4A3B31); }
.iq-previous__jump:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:3px; }

/* ---- Message-body links (pasted URLs, survey links, etc.) ---- */
.iq-msg__body a,
.iq-current-card__body a {
	color:var(--color-coffee, #4A3B31); text-decoration:underline; text-decoration-color:var(--color-link-rule, rgba(74,59,49,.35));
	text-decoration-thickness:2px; text-underline-offset:3px;
}
.iq-msg__body a:hover,
.iq-current-card__body a:hover { text-decoration-color:var(--color-coffee, #4A3B31); }
.iq-msg__body a:focus-visible,
.iq-current-card__body a:focus-visible { outline:2px solid var(--color-coffee, #4A3B31); outline-offset:3px; }

/* ---- Reopen / undo ---- */
.iq-reopen-note { margin:6px 0 0; font-size:11px; color:var(--color-muted, #6B6259); line-height:1.4; }


/* ================================================================
   SUPPORT MODAL — theme-page overlay (support- prefix)
================================================================ */

@keyframes support-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes support-overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes support-modal-in-mobile  { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes support-modal-out-mobile { from { transform: translateY(0);    opacity: 1; } to { transform: translateY(16px); opacity: 0; } }
@keyframes support-modal-in-desktop  { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1);    opacity: 1; } }
@keyframes support-modal-out-desktop { from { transform: scale(1);    opacity: 1; } to { transform: scale(0.96); opacity: 0; } }
@keyframes support-screen-in { from { opacity: 0; } to { opacity: 1; } }

.support-overlay {
	position: fixed;
	inset: 0;
	background: var(--color-scrim, rgba(28, 25, 23, 0.55));
	backdrop-filter: blur(2px);
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	animation: support-overlay-in 200ms ease both;
}
.support-overlay--closing {
	animation: support-overlay-out 200ms ease both;
}

@media (min-width: 640px) {
	.support-overlay {
		align-items: center;
		padding: 1.5rem;
	}
}

/* Shown briefly before a preset-topic open() while its FAQ data is still
   in flight — see SupportModal.jsx's onReady handler. Same overlay shell,
   centered spinner instead of the modal card, so opening never shows a
   'Loading...' screen that then re-animates once data lands. */
.support-overlay--preloading {
	align-items: center;
	justify-content: center;
}
@keyframes support-preload-spin { to { transform: rotate(360deg); } }
.support-preload-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: var(--color-surface, #fff);
	border-radius: 50%;
	animation: support-preload-spin 700ms linear infinite;
}

.support-modal {
	background: var(--color-surface, #fff);
	width: 100%;
	max-width: 560px;
	max-height: 92vh;
	border-radius: 12px 12px 0 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: support-modal-in-mobile 220ms ease both;
}
.support-overlay--closing .support-modal {
	animation: support-modal-out-mobile 200ms ease both;
}

@media (min-width: 640px) {
	.support-modal {
		border-radius: 12px;
		max-height: 85vh;
		animation: support-modal-in-desktop 200ms ease both;
	}
	.support-overlay--closing .support-modal {
		animation: support-modal-out-desktop 200ms ease both;
	}
}

.support-screen {
	animation: support-screen-in 160ms ease both;
}

.support-modal__header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--color-border, #E2DDD6);
	flex-shrink: 0;
}
.support-modal__header > :last-child { justify-self: end; }

.support-modal__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--color-text, #1C1917);
}

.support-modal__back {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: none;
	border: none;
	font-size: 0.8125rem;
	color: var(--color-muted, #6B6259);
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	line-height: 1;
	white-space: nowrap;
}
.support-modal__back:hover { color: var(--color-text, #1C1917); background: var(--color-stone-50, #f5f5f4); }

.support-modal__close {
	background: none;
	border: none;
	font-size: 1.1rem;
	color: var(--color-muted, #6B6259);
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	line-height: 1;
}
.support-modal__close:hover { color: var(--color-text, #1C1917); background: var(--color-stone-50, #f5f5f4); }

.support-modal__body {
	overflow-y: auto;
	padding: 1.5rem;
	flex: 1;
}

/* ---- Loading ---- */
.support-loading {
	text-align: center;
	padding: 2rem;
	color: var(--color-muted, #6B6259);
	font-size: 0.875rem;
}

/* ---- Topic screen ---- */
.support-topics__intro {
	color: var(--color-muted, #6B6259);
	font-size: 0.9375rem;
	margin-bottom: 1.25rem;
}
.support-topics__intro b { color: var(--color-text, #1C1917); }

.support-topic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.support-topic-btn {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	background: var(--color-bg, #F7F5F2);
	border: 1px solid var(--color-border, #E2DDD6);
	border-radius: 8px;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms, background 150ms;
}
.support-topic-btn:hover {
	border-color: var(--color-coffee, #4A3B31);
	background: var(--color-stone-50, #F0EDE8);
}
.support-topic-btn--loading {
	border-color: var(--color-coffee, #4A3B31);
	background: var(--color-stone-50, #F0EDE8);
	opacity: 0.7;
	cursor: wait;
}
.support-topic-btn__name {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--color-text, #1C1917);
}
.support-topic-btn__count {
	font-size: 0.75rem;
	color: var(--color-muted, #6B6259);
}

.support-topics__other {
	margin-top: 1rem;
	text-align: center;
}
.support-topics__other-btn {
	background: none;
	border: none;
	font-size: 0.875rem;
	color: var(--color-muted, #6B6259);
	cursor: pointer;
	padding: 0.25rem 0;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.support-topics__other-btn:hover { color: var(--color-text, #1C1917); }

/* ---- FAQ screen ---- */
.support-faq__list {
	margin-bottom: 1.5rem;
}

.support-faq-item {
	border-bottom: 1px solid var(--color-border, #E2DDD6);
}
.support-faq-item:first-child { border-top: none; }
.support-faq-item:last-child { border-bottom: none; }

.support-faq-item__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 1rem;
	padding: 0.875rem 0;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-text, #1C1917);
}
.support-faq-item__question:hover { color: var(--color-coffee, #4A3B31); }
.support-faq-item--open .support-faq-item__question { font-weight: 700; }
.support-faq-item__chevron {
	color: var(--color-muted, #6B6259);
	flex-shrink: 0;
	transition: transform 220ms ease;
}
.support-faq-item__chevron--open { transform: rotate(180deg); }

.support-faq-item__answer-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 250ms ease;
}
.support-faq-item--open .support-faq-item__answer-wrap {
	grid-template-rows: 1fr;
}
.support-faq-item__answer {
	overflow: hidden;
	min-height: 0;
}
.support-faq-item__answer-inner {
	padding: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--color-text-strong, #44403C);
}
.support-faq-item__answer-inner p:last-child { margin-bottom: 0; }

.support-faq-item__vote {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	color: var(--color-muted, #6B6259);
	justify-content: flex-end;
}
.support-vote-btn {
	background: var(--color-stone-50, #f5f5f4);
	border: 1px solid var(--color-border, #E2DDD6);
	border-radius: 4px;
	padding: 0.2rem 0.6rem;
	font-size: 0.8125rem;
	cursor: pointer;
}
.support-vote-btn:hover { border-color: var(--color-coffee, #4A3B31); }
.support-vote-thanks { font-style: italic; }

.support-faq__empty { color: var(--color-muted, #6B6259); }

.support-faq__cta {
	border-top: 1px solid var(--color-border, #E2DDD6);
	padding-top: 1.25rem;
	text-align: center;
}
.support-faq__cta p {
	margin-bottom: 0.75rem;
	color: var(--color-muted, #6B6259);
	font-size: 0.9375rem;
}

/* ---- Contact form ---- */
.support-contact-form { display: flex; flex-direction: column; gap: 1rem; }

.support-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.support-form-field label { font-size: 0.875rem; font-weight: 600; color: var(--color-text, #1C1917); }
.support-form-field label span { color: var(--color-muted, #6B6259); }

.support-form-field input,
.support-form-field textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border, #E2DDD6);
	border-radius: 6px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: var(--color-text, #1C1917);
	background: var(--color-surface, #fff);
	transition: border-color 150ms;
}
.support-form-field input:focus,
.support-form-field textarea:focus {
	outline: none;
	border-color: var(--color-coffee, #4A3B31);
	box-shadow: 0 0 0 3px var(--color-stone-50, #F0EDE8);
}

.support-form-error {
	padding: 0.75rem 1rem;
	background: var(--color-danger-tint, #fff5f5);
	border: 1px solid #fca5a5;
	border-radius: 6px;
	font-size: 0.875rem;
	color: var(--color-error, #b91c1c);
}

.support-form-field--consent { margin-top: 0.25rem; }
.support-form-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: 400;
}
.support-form-consent input[type="checkbox"] {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.1875rem;
	accent-color: var(--color-coffee, #4A3B31);
	cursor: pointer;
}
.support-form-consent span {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--color-muted, #6B6259);
	font-weight: 400;
}
.support-form-consent .support-form-consent__translation {
	display: block;
	margin-top: 0.5rem;
}
.support-form-consent span a {
	color: var(--color-coffee, #4A3B31);
	text-decoration: underline;
}

.support-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 0.5rem;
}

/* ---- Confirm screen ---- */
.support-confirm {
	text-align: center;
	padding: 1.5rem 0;
}
.support-confirm__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	background: var(--color-success-tint, #d1fae5);
	color: var(--color-success-ink, #065f46);
	border-radius: 50%;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}
.support-confirm__heading {
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}
.support-confirm__body {
	color: var(--color-muted, #6B6259);
	margin-bottom: 1.5rem;
}

/* ---- Inline / embedded mode ---- */
.support-embed {
	width: 100%;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}
.support-embed .support-modal {
	max-width: 100%;
	max-height: none;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	animation: none;
}
.support-embed .support-modal__header--inline {
	background: transparent;
	border-bottom: 2px solid var(--color-border, #E2DDD6);
	padding-left: 0;
	padding-right: 0;
}
.support-embed .support-modal__title {
	font-size: 1.125rem;
}
.support-embed .support-modal__reset {
	background: none;
	border: none;
	font-size: 1rem;
	color: var(--color-muted, #6B6259);
	cursor: pointer;
	padding: 4px;
	line-height: 1;
}
.support-embed .support-modal__reset:hover {
	color: var(--color-text, #1C1917);
}
.support-embed .support-modal__body {
	padding-left: 0;
	padding-right: 0;
}

/* FAQ SEO page — [omorphos_faq] shortcode, server-rendered (see inc/faq-seo.php) */
.faq-seo {
	max-width: 720px;
	margin: 0 auto;
}
.faq-seo__nav {
	margin-bottom: 2rem;
	padding: 1rem 1.25rem;
	background: var(--color-bg, #F7F5F2);
	border: 1px solid var(--color-border, #E2DDD6);
	border-radius: 6px;
}
.faq-seo__nav-title {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted, #6B6259);
}
.faq-seo__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 2rem;
}
.faq-seo__nav-item {
	break-inside: avoid;
	padding: 0.25rem 0;
}
.faq-seo__nav-item a {
	color: var(--color-coffee, #4A3B31);
	text-decoration: none;
}
.faq-seo__nav-item a:hover {
	text-decoration: underline;
}
@media (max-width: 480px) {
	.faq-seo__nav-list {
		columns: 1;
	}
}
.faq-seo__topic {
	margin-bottom: 2.5rem;
	/* .site-header is position: sticky (theme style.css) with a variable
	   height (logo + title + wrapping nav) — no fixed px value to read from,
	   so this offset is a generous estimate sized to clear it comfortably
	   rather than an exact measurement. */
	scroll-margin-top: 9rem;
}
.faq-seo__topic-title {
	font-size: 1.375rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--color-border, #E2DDD6);
}
.faq-seo__item {
	margin-bottom: 1.5rem;
	/* Same sticky .site-header clearance as .faq-seo__topic above (same
	   value, same reasoning) -- this element's own #faq-{id} anchor is
	   what the two FAQ-to-FAQ cross-reference links actually jump to. */
	scroll-margin-top: 9rem;
}
.faq-seo__question {
	font-size: 1.0625rem;
	margin-bottom: 0.375rem;
	color: var(--color-text, #1C1917);
}
.faq-seo__edit-link {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-coffee, #4A3B31);
	background: var(--color-stone-50, #F0EDE8);
	border-radius: 4px;
	padding: 0.125rem 0.4rem;
	text-decoration: none;
	vertical-align: middle;
}
.faq-seo__edit-link:hover {
	background: var(--color-border, #E2DDD6);
}
.faq-seo__answer {
	color: var(--color-text-strong, #44403C);
	line-height: 1.6;
}
