/* Add-Website Wizard (FEAT-8) — Minimal-SaaS visual language.
   Scoped to .wcd-wizard so it works on the marketing hero (frontend) and inside
   the webapp Add-Website modal. Design tokens live on .wcd-wizard so any host
   page CSS can't bleed through. */

.wcd-wizard {
	--wcd-bg:        #f7f8fa;
	--wcd-panel:     #ffffff;
	--wcd-border:    #e8e6df;
	--wcd-border-hi: #d4d1c8;
	--wcd-text:      #1a1916;
	--wcd-dim:       #6b6960;
	--wcd-dim-2:     #9a978d;
	--wcd-accent:    #1f1d1a;
	--wcd-accent-fg: #fafaf7;
	/* Selection colour pulls from the site-wide brand accent (gbp). Fallback
	   matches the legacy WCD brand blue used elsewhere in the plugin so the
	   wizard never looks broken when --accent isn't defined on the host page. */
	--wcd-selected:    var(--accent, #266ECC);
	--wcd-selected-fg: var(--base-3, #ffffff);
	--wcd-blue:      #3a5fcd;
	--wcd-blue-dim:  #eaeefb;
	--wcd-ok:        #1f7a4c;
	--wcd-ok-dim:    #e6f4ec;
	--wcd-err:       #b03a2e;
	--wcd-err-dim:   #fbeae5;
	--wcd-font:      "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wcd-display:   "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

	font-family: var(--wcd-font);
	color: var(--wcd-text);
	background: var(--wcd-bg);
	border: 1px solid var(--wcd-border);
	border-radius: 14px;
	padding: 40px;
	max-width: 560px;
	margin: 0 auto;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* Marketing-shortcode Step 1 stays inline and visually neutral so the
   surrounding hero copy frames it. The Add-Website popup (modal) keeps the
   card look — its host provides no separate visual container. */
.wcd-wizard--signup:not(.wcd-wizard--overlay) {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

/* Signup context: Step 2+ promotes the wizard to a fullscreen overlay so the
   user can focus on the flow without the marketing page underneath. */
.wcd-wizard--overlay {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: var(--wcd-bg);
	overflow-y: auto;
	z-index: 100000;
	-webkit-overflow-scrolling: touch;
}

.wcd-wizard--overlay .wcd-wizard__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 88px 32px 96px;
	gap: 32px;
}

body.wcd-wizard-open {
	overflow: hidden;
}

/* X close button — small, ink-on-cream, sits over the header bar. */
.wcd-wizard__close {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 100002;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid var(--wcd-border);
	background: var(--wcd-panel);
	color: var(--wcd-dim);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.wcd-wizard__close:hover,
.wcd-wizard__close:focus {
	background: var(--wcd-bg);
	color: var(--wcd-text);
	border-color: var(--wcd-border-hi);
	outline: none;
}

@media (max-width: 640px) {
	.wcd-wizard {
		padding: 28px 24px;
		border-radius: 12px;
	}
	.wcd-wizard--overlay .wcd-wizard__inner {
		padding: 72px 20px 72px;
	}
	.wcd-wizard__close {
		top: 10px;
		right: 10px;
	}
}

/* Entry animation lives entirely in JS (see Wizard.prototype._morphFromRect):
   FLIP-style transform morph that grows the inline Step 1 card out to fullscreen.
   prefers-reduced-motion is honored inside the JS helper. */

.wcd-wizard__inner {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Brand logo shown above the step indicator in overlay mode. */
.wcd-wizard__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 4px;
}

.wcd-wizard__brand-img {
	max-height: 36px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Horizontal step indicator: small circles connected by hairlines. */
.wcd-wizard__progress {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 auto 6px;
	padding: 0;
	max-width: 380px;
	width: 100%;
	counter-reset: wcd-step;
}

.wcd-wizard__step {
	flex: 1;
	display: flex;
	align-items: center;
	font-size: 0;
	color: transparent;
	position: relative;
	counter-increment: wcd-step;
}

.wcd-wizard__step::before {
	content: counter(wcd-step);
	width: 24px;
	height: 24px;
	border-radius: 24px;
	flex: 0 0 auto;
	background: var(--wcd-panel);
	border: 1px solid var(--wcd-border-hi);
	color: var(--wcd-dim);
	font-family: var(--wcd-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 22px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.wcd-wizard__step:not(:last-child)::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wcd-border);
	margin: 0 8px;
}

.wcd-wizard__step--active::before {
	border-color: var(--wcd-selected);
	color: var(--wcd-selected);
}

.wcd-wizard__step--done::before {
	content: "✓";
	background: var(--wcd-selected);
	border-color: var(--wcd-selected);
	color: var(--wcd-selected-fg);
	font-size: 13px;
}

.wcd-wizard__step--done:not(:last-child)::after {
	background: var(--wcd-selected);
}

/* Typography */
.wcd-wizard__title {
	font-family: var(--wcd-display);
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.5px;
	line-height: 1.15;
	color: var(--wcd-text);
	margin: 0;
}

.wcd-wizard--overlay .wcd-wizard__title {
	font-size: 36px;
}

.wcd-wizard__lede {
	font-size: 15px;
	color: var(--wcd-dim);
	margin: 0;
	line-height: 1.55;
	max-width: 540px;
}

.wcd-wizard__step-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Inline alerts */
.wcd-wizard__alert {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
}

.wcd-wizard__alert--error {
	background: var(--wcd-err-dim);
	color: var(--wcd-err);
	border: 1px solid #f0c6bf;
}

.wcd-wizard__alert--info {
	background: var(--wcd-blue-dim);
	color: var(--wcd-blue);
	border: 1px solid #cdd9f7;
}

/* In-flight submission state for Step 5 — replaces the form while
   /start-onboarding runs (1-3 s, then a redirect). */
.wcd-wizard__loading {
	text-align: center;
	padding: 56px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.wcd-wizard__spinner {
	width: 44px;
	height: 44px;
	border: 3px solid var(--wcd-border);
	border-top-color: var(--wcd-selected);
	border-radius: 50%;
	animation: wcd-wizard-spin 0.8s linear infinite;
}

.wcd-wizard__loading-title {
	font-family: var(--wcd-display);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.3px;
	color: var(--wcd-text);
	margin: 0;
}

.wcd-wizard__loading-text {
	font-size: 14px;
	color: var(--wcd-dim);
	margin: 0;
	line-height: 1.5;
	max-width: 360px;
}

@keyframes wcd-wizard-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.wcd-wizard__spinner {
		animation-duration: 2s;
	}
}

/* Form fields ------------------------------------------------------------ */

.wcd-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcd-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.wcd-form-row {
		grid-template-columns: 1fr;
	}
}

.wcd-form-field > label {
	font-size: 13px;
	font-weight: 500;
	color: var(--wcd-text);
}

.wcd-form-field input[type="text"],
.wcd-form-field input[type="url"],
.wcd-form-field input[type="email"],
.wcd-form-field input[type="password"],
.wcd-form-field input[type="time"],
.wcd-form-field input[type="number"],
.wcd-form-field select,
.wcd-form-field textarea,
.wcd-wizard__domain-row input[type="url"] {
	font-family: inherit;
	font-size: 15px;
	padding: 13px 14px;
	border: 1px solid var(--wcd-border-hi);
	border-radius: 10px;
	background: var(--wcd-panel);
	color: var(--wcd-text);
	width: 100%;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.wcd-form-field select {
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%239a978d%22%20d%3D%22M5.516%207.548L10%2012.032l4.484-4.484%201.06%201.06L10%2014.152%204.456%208.608z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 38px;
	cursor: pointer;
}

.wcd-form-field input:hover,
.wcd-form-field select:hover,
.wcd-form-field textarea:hover,
.wcd-wizard__domain-row input[type="url"]:hover {
	border-color: var(--wcd-text);
}

.wcd-form-field input:focus,
.wcd-form-field select:focus,
.wcd-form-field textarea:focus,
.wcd-wizard__domain-row input[type="url"]:focus {
	outline: none;
	border-color: var(--wcd-text);
	box-shadow: 0 0 0 3px rgba(26, 25, 22, 0.08);
}

/* Step 1 layout — URL + Continue in one row. Stacks on narrow viewports. */
.wcd-wizard__domain-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.wcd-wizard__domain-row input[type="url"] {
	flex: 1 1 auto;
	min-width: 0;
}

.wcd-wizard__domain-row .gbp-button--primary {
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.wcd-wizard__domain-row {
		flex-direction: column;
	}
	.wcd-wizard__domain-row .gbp-button--primary {
		width: 100%;
	}
}

.wcd-form-field textarea {
	min-height: 96px;
	resize: vertical;
	line-height: 1.5;
}

.wcd-form-field__hint {
	font-size: 12px;
	color: var(--wcd-dim-2);
	margin: 0;
}

/* Feature cards (Step 2) ------------------------------------------------- */

.wcd-wizard__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wcd-wizard__card {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--wcd-border);
	border-radius: 14px;
	background: var(--wcd-panel);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	align-items: flex-start;
}

.wcd-wizard__card:hover {
	border-color: var(--wcd-border-hi);
}

.wcd-wizard__card--checked {
	border-color: var(--wcd-selected);
	box-shadow: 0 0 0 1px var(--wcd-selected);
}

.wcd-wizard__card input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--wcd-selected);
	cursor: pointer;
	flex: 0 0 auto;
}

.wcd-wizard__card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.wcd-wizard__card-label {
	font-family: var(--wcd-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--wcd-text);
}

.wcd-wizard__card-desc {
	color: var(--wcd-dim);
	font-size: 13px;
	line-height: 1.55;
}

/* URL picker (Step 3) ---------------------------------------------------- */

/* Homepage card --- the always-present, pre-selected row sits in its own
   ringed card so Desktop/Mobile read as deliberate viewport choices instead
   of small checkboxes lost in a table. */
.wcd-wizard__homepage-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	border: 1px solid var(--wcd-selected);
	border-radius: 14px;
	background: var(--wcd-panel);
	box-shadow: 0 0 0 1px var(--wcd-selected);
}

.wcd-wizard__homepage-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wcd-wizard__homepage-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--wcd-text);
	color: var(--wcd-accent-fg);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.wcd-wizard__homepage-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--wcd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcd-wizard__homepage-url {
	font-size: 13px;
	color: var(--wcd-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcd-wizard__homepage-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

@media (max-width: 560px) {
	.wcd-wizard__homepage-card {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}
	.wcd-wizard__homepage-actions {
		justify-content: stretch;
	}
	.wcd-wizard__homepage-actions .wcd-device-chip {
		flex: 1;
		justify-content: center;
	}
}

/* Device chip --- toggle button used on the homepage card for Desktop/Mobile. */
.wcd-device-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid var(--wcd-border-hi);
	background: var(--wcd-panel);
	color: var(--wcd-dim);
	font-family: var(--wcd-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.wcd-device-chip:hover:not(.wcd-device-chip--active) {
	border-color: var(--wcd-text);
	color: var(--wcd-text);
}

.wcd-device-chip--active {
	background: var(--wcd-selected);
	border-color: var(--wcd-selected);
	color: var(--wcd-selected-fg);
}

.wcd-device-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.wcd-device-chip__check {
	font-size: 11px;
	line-height: 1;
	margin-left: 2px;
}

/* Accordion table -------------------------------------------------------- */

.wcd-wizard__urls {
	width: 100%;
	/* table-layout: fixed is what keeps the Mobile column on-screen no matter
	   how long the URL string is — the URL cell respects its column width and
	   truncates via ellipsis instead of pushing the device columns off-screen. */
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid var(--wcd-border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--wcd-panel);
}

.wcd-wizard__urls thead {
	background: var(--wcd-bg);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wcd-dim);
	font-weight: 600;
}

.wcd-wizard__urls th,
.wcd-wizard__urls td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--wcd-border);
	font-size: 14px;
	vertical-align: middle;
}

.wcd-wizard__urls tr:last-child td {
	border-bottom: none;
}

.wcd-wizard__urls tbody tr {
	transition: background-color .12s ease;
}

.wcd-wizard__urls tbody tr:hover {
	background: rgba(0, 0, 0, 0.015);
}

.wcd-wizard__url-col {
	width: auto;
}

.wcd-wizard__url-cell {
	color: var(--wcd-text);
	overflow: hidden;
}

.wcd-wizard__url-title {
	font-weight: 500;
	font-size: 13.5px;
	color: var(--wcd-text);
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcd-wizard__url-link {
	font-size: 12px;
	color: var(--wcd-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcd-wizard__device-col,
.wcd-wizard__device-cell {
	width: 105px;
	text-align: center;
}

/* Headers include an icon next to the label so the viewport columns stay
   visually anchored. The icon is inline-block via flex inside the th. */
.wcd-wizard__device-col {
	color: var(--wcd-dim);
}

.wcd-wizard__device-col .wcd-device-icon {
	display: inline-flex;
	vertical-align: middle;
	margin-right: 5px;
	transform: translateY(-1px);
}

.wcd-wizard__device-col-label {
	vertical-align: middle;
}

.wcd-wizard__device-cell input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--wcd-selected);
	cursor: pointer;
}

.wcd-wizard__pages-loading {
	font-size: 13px;
	color: var(--wcd-dim);
	margin: 4px 0 0 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wcd-wizard__pages-loading::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 8px;
	background: var(--wcd-blue);
	animation: wcd-wizard-pulse 1.4s ease-in-out infinite;
}

@keyframes wcd-wizard-pulse {
	0%, 100% { opacity: 0.35; }
	50%      { opacity: 1; }
}

/* Accordion (Step 3 "Other pages") --------------------------------------- */

.wcd-wizard__accordion {
	border: 1px solid var(--wcd-border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--wcd-panel);
}

.wcd-wizard__accordion-toggle {
	width: 100%;
	background: transparent;
	border: none;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--wcd-text);
	padding: 16px 18px;
	cursor: pointer;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: background-color .15s ease;
}
/*
.wcd-wizard__accordion-toggle:hover {
	background: rgba(0, 0, 0, 0.025);
}
*/
.wcd-wizard__accordion-toggle::before {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 1.5px solid var(--wcd-dim);
	border-bottom: 1.5px solid var(--wcd-dim);
	transform: rotate(-45deg);
	transition: transform .15s ease;
	margin-right: 2px;
}

.wcd-wizard__accordion--open .wcd-wizard__accordion-toggle::before {
	transform: rotate(45deg);
}

.wcd-wizard__accordion-body {
	border-top: 1px solid var(--wcd-border);
	background: var(--wcd-panel);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 14px 18px 18px;
}

/* Inside the accordion we use a borderless inner table — the accordion shell
   already provides the chrome. */
.wcd-wizard__accordion-body .wcd-wizard__urls {
	border: none;
	border-radius: 0;
}

.wcd-wizard__accordion-body .wcd-wizard__urls th {
	background: var(--wcd-bg);
}

.wcd-wizard__bulk {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Pagination */
.wcd-wizard__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 4px;
}

.wcd-wizard__pager-label {
	font-size: 13px;
	color: var(--wcd-dim);
}

.wcd-wizard__pager-btn {
	font-size: 13px;
	padding: 6px 12px;
}

/* Buttons --------------------------------------------------------------- */
/* Main action buttons (Continue, Back, Save, bulk selects) use the site-wide
   GenerateBlocks pill button classes — .gbp-button--primary / --secondary —
   so the wizard sits visually inside the marketing brand. Pagination buttons
   keep .wcd-btn / --ghost below because uppercase pills would dominate an
   in-table pager. */

.wcd-wizard__actions {
	display: flex;
	gap: 10px;
	padding-top: 10px;
	flex-wrap: wrap;
}

/* GenerateBlocks doesn't ship a disabled state for gbp-button. We add one
   scoped to the wizard so a button gated by form validity reads as inert. */
.wcd-wizard .gbp-button--primary:disabled,
.wcd-wizard .gbp-button--secondary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Small in-table button used by the URL accordion pagination. Kept compact
   (not pill / not uppercase) so it fits the row chrome. */
.wcd-btn {
	font: inherit;
	font-family: var(--wcd-font);
	font-size: 14px;
	font-weight: 500;
	padding: 12px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}

.wcd-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.wcd-btn--ghost {
	background: transparent;
	color: var(--wcd-text);
	border-color: var(--wcd-border-hi);
}

.wcd-btn--ghost:hover:not(:disabled) {
	background: var(--wcd-bg);
	border-color: var(--wcd-text);
}

.wcd-btn--ghost:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(26, 25, 22, 0.08);
}

/* Modal wrapper (welcome + add-website share .wcd-modal). */
.wcd-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcd-modal[hidden] {
	display: none;
}

.wcd-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 25, 22, 0.55);
}

.wcd-modal__panel {
	position: relative;
	background: var(--wcd-panel, #ffffff);
	border: 1px solid #e8e6df;
	border-radius: 14px;
	max-width: 560px;
	width: calc(100% - 32px);
	padding: 32px;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.wcd-modal__header {
	margin-bottom: 20px;
}

.wcd-modal__header h2 {
	font-family: "Instrument Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.3px;
	margin: 0 0 8px 0;
}

.wcd-modal__subtitle {
	font-size: 14px;
	color: #6b6960;
	margin: 0;
}

.wcd-modal__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wcd-modal__feedback {
	font-size: 14px;
	padding: 10px 12px;
	border-radius: 8px;
}

.wcd-modal__feedback[data-state="error"] {
	background: #fbeae5;
	color: #b03a2e;
}

.wcd-modal__footer {
	display: flex;
	justify-content: flex-end;
}

/* Settings cards (Step 4) ----------------------------------------------- */

.wcd-settings-card {
	background: var(--wcd-panel);
	border: 1px solid var(--wcd-border);
	border-radius: 14px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wcd-settings-card + .wcd-settings-card {
	margin-top: 14px;
}

.wcd-settings-card__title {
	font-family: var(--wcd-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--wcd-text);
	margin: 0;
}

.wcd-settings-card__info {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--wcd-dim);
	line-height: 1.5;
}

.wcd-settings-card__body {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
}

/* Row pattern: label on the left (110px), control on the right.
   Hairline separator between rows = a soft visual rhythm. */
.wcd-settings-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--wcd-bg);
}

.wcd-settings-row:first-child {
	border-top: none;
	padding-top: 4px;
}

.wcd-settings-row__label {
	width: 110px;
	color: var(--wcd-dim);
	font-size: 13px;
	flex: 0 0 auto;
}

.wcd-settings-row__control {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* On mobile the fixed-width label squeezes the control area to the point
   where segmented buttons / day-pill grids wrap awkwardly. Stack instead. */
@media (max-width: 640px) {
	.wcd-settings-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.wcd-settings-row__label {
		width: auto;
	}
}

/* Segmented control — toggle between mutually exclusive options. */
.wcd-segmented {
	display: inline-flex;
	background: var(--wcd-bg);
	border-radius: 10px;
	padding: 3px;
	gap: 0;
}

.wcd-segmented__btn {
	border: none;
	background: transparent;
	font-family: var(--wcd-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--wcd-dim);
	padding: 7px 14px;
	border-radius: 7px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.wcd-segmented__btn:hover:not(.wcd-segmented__btn--active) {
	color: var(--wcd-text);
}

.wcd-segmented__btn--active {
	background: var(--wcd-panel);
	color: var(--wcd-text);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--wcd-border);
}

/* Pill toggle (used for weekdays + monthly days). */
.wcd-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wcd-pill {
	border: 1px solid var(--wcd-border);
	background: var(--wcd-panel);
	color: var(--wcd-text);
	font-family: var(--wcd-font);
	font-size: 13px;
	font-weight: 500;
	padding: 7px 12px;
	border-radius: 20px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	min-width: 40px;
	text-align: center;
}

.wcd-pill:hover:not(.wcd-pill--active) {
	border-color: var(--wcd-border-hi);
	
}

.wcd-pill--active {
	background: var(--wcd-selected);
	border-color: var(--wcd-selected);
	color: var(--wcd-selected-fg);
}

.wcd-pill--sm {
	padding: 5px 10px;
	font-size: 12px;
	min-width: 30px;
}

/* Inline select that sits naturally inside a settings row. */
.wcd-settings-row select {
	font-family: var(--wcd-font);
	font-size: 14px;
	padding: 8px 32px 8px 12px;
	border: 1px solid var(--wcd-border-hi);
	border-radius: 8px;
	background: var(--wcd-panel);
	color: var(--wcd-text);
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22%239a978d%22%20d%3D%22M5.516%207.548L10%2012.032l4.484-4.484%201.06%201.06L10%2014.152%204.456%208.608z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.wcd-settings-row select:hover {
	border-color: var(--wcd-text);
}

.wcd-settings-row select:focus {
	outline: none;
	border-color: var(--wcd-text);
	box-shadow: 0 0 0 3px rgba(26, 25, 22, 0.08);
}

.wcd-settings-row__sep {
	color: var(--wcd-dim);
	font-size: 13px;
}

.wcd-settings-row__hint {
	color: var(--wcd-dim);
	font-size: 12px;
	flex-basis: 100%;
	margin-top: 4px;
}

/* Frontend-only banners (rendered by wcd-onboarding-continue.js). */
.wcd-activation-banner,
.wcd-onboarding-notice {
	position: relative;
	z-index: 9999;
	padding: 14px 20px;
	font-size: 14px;
	line-height: 1.5;
	border-bottom: 1px solid transparent;
	text-align: center;
}

.wcd-activation-banner {
	background: #fff7ed;
	color: #9a3412;
	border-bottom-color: #fed7aa;
}

.wcd-onboarding-notice--warning {
	background: #fff7ed;
	color: #9a3412;
}

.wcd-onboarding-notice--error {
	background: #fef2f2;
	color: #991b1b;
}
