/* Service Platform — base front-end styles. Override in your theme as needed. */

:root {
	--svc-ink: #1B2430;
	--svc-ink-soft: #465063;
	--svc-paper: #F6F7F5;
	--svc-surface: #FFFFFF;
	--svc-line: #D8D6D0;
	--svc-accent: #1F6F5C;
	--svc-accent-dark: #164F41;
	--svc-on-accent: #FFFFFF;
	--svc-gold: #C98A2C;
	--svc-error: #B3261E;
	--svc-error-bg: #FBEAE8;
	--svc-muted: #6B7280;
	--svc-font-display: 'Instrument Sans', -apple-system, sans-serif;
	--svc-font-body: 'IBM Plex Sans', -apple-system, sans-serif;
}

.svc-checkout, .svc-account {
	max-width: 880px;
	margin: 0 auto;
	font-family: var(--svc-font-body);
	font-size: 15px;
	color: var(--svc-ink);
	line-height: 1.5;
}

.svc-checkout * , .svc-account * , .svc-cart * {
	box-sizing: border-box;
}

/* Block themes (e.g. Twenty Twenty-Four) cap every direct child of the page content
   at the theme's text width (~620px) via `body .is-layout-constrained > :where(...)`,
   printed after this stylesheet — that squeezed the two-column checkout/cart/account
   layouts. Targeting that exact situation out-ranks it; in a classic theme the plain
   rules apply, and neither ever exceeds its container. */
body .svc-checkout,
body .svc-account,
body .is-layout-constrained > .svc-checkout,
body .is-layout-constrained > .svc-account {
	max-width: min(880px, 100%);
	margin-left: auto;
	margin-right: auto;
}

body .svc-cart,
body .svc-products-grid,
body .is-layout-constrained > .svc-cart,
body .is-layout-constrained > .svc-products-grid {
	max-width: min(1040px, 100%);
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Skeleton loading state ---------- */

.svc-checkout__skeleton, .svc-cart__skeleton {
	max-width: 480px;
}

.svc-skeleton-block {
	background: linear-gradient(90deg, var(--svc-line) 25%, #E7E5DF 37%, var(--svc-line) 63%);
	background: linear-gradient(90deg, var(--svc-line) 25%, color-mix(in srgb, var(--svc-line) 60%, var(--svc-surface)) 37%, var(--svc-line) 63%);
	background-size: 400% 100%;
	animation: svc-skeleton-pulse 1.4s ease infinite;
	border-radius: 4px;
	margin-bottom: 0.75em;
}

.svc-skeleton-block--title { height: 28px; width: 60%; }
.svc-skeleton-block--line { height: 16px; width: 100%; }
.svc-skeleton-block--short { width: 40%; }

@keyframes svc-skeleton-pulse {
	0% { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

.svc-checkout__load-error {
	color: var(--svc-error);
}

/* ---------- Checkout layout ---------- */

.svc-checkout__layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5em;
	align-items: start;
}

/* Wider than the single-product checkout's summary column — a cart lists
   several item names/prices, not one product name, and needs more room
   before those start wrapping to a second line. Scoped to .svc-cart so the
   single-product checkout (which shares this same base layout class) is
   unaffected. */
.svc-cart .svc-checkout__layout {
	grid-template-columns: 1fr 400px;
}

@media (max-width: 680px) {
	.svc-checkout__layout {
		grid-template-columns: 1fr;
	}
	.svc-order-summary {
		order: -1;
		position: static;
	}
}

.svc-checkout__main {
	min-width: 0;
}

/* ---------- Step tracker ---------- */

.svc-steps {
	margin-bottom: 2em;
}

.svc-steps__track {
	position: relative;
	height: 2px;
	background: var(--svc-line);
	margin-bottom: 0.75em;
	border-radius: 2px;
}

.svc-steps__fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 2px;
	width: 0%;
	background: var(--svc-gold);
	border-radius: 2px;
	transition: width 0.35s ease;
}

.svc-steps__list {
	list-style: none;
	display: flex;
	gap: 2em;
	margin: 0;
	padding: 0;
}

.svc-steps__label {
	font-family: var(--svc-font-display);
	font-size: 14px;
	font-weight: 500;
	color: var(--svc-muted);
}

.svc-steps__item.is-active .svc-steps__label {
	color: var(--svc-ink);
	font-weight: 600;
}

.svc-steps__item.is-complete .svc-steps__label {
	color: var(--svc-accent);
}

/* ---------- Step panels ---------- */

.svc-checkout__step {
	display: none;
}

.svc-checkout__step.is-active {
	display: block;
	animation: svc-step-in 0.28s ease;
}

@keyframes svc-step-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.svc-checkout__step.is-active {
		animation: none;
	}
}

.svc-checkout__field {
	margin-bottom: 1.4em;
}

.svc-checkout__field > label,
.svc-checkout__field-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 14px;
}

.svc-checkout__field input,
.svc-checkout__field textarea {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--svc-line);
	border-radius: 5px;
	font-family: var(--svc-font-body);
	font-size: 15px;
	background: var(--svc-surface);
	color: var(--svc-ink);
}

.svc-checkout__field input:focus,
.svc-checkout__field textarea:focus {
	outline: 2px solid var(--svc-accent);
	outline-offset: 1px;
	border-color: var(--svc-accent);
}

.svc-checkout__field input:read-only {
	background: #F3F2EE;
	background: color-mix(in srgb, var(--svc-line) 30%, var(--svc-surface));
	color: var(--svc-muted);
	cursor: default;
}

.svc-checkout__field input:read-only:focus {
	outline: none;
	border-color: var(--svc-line);
}

.svc-checkout__field-error {
	color: var(--svc-error);
	font-size: 13px;
	margin: 0.35em 0 0;
}

.svc-checkout__error {
	background: var(--svc-error-bg);
	color: var(--svc-error);
	padding: 0.75em 1em;
	border-radius: 5px;
	margin-bottom: 1.25em;
	font-size: 14px;
}

.svc-checkout__error a {
	color: var(--svc-error);
	text-decoration: underline;
}

/* ---------- Gateway selection ---------- */

.svc-gateway-option {
	display: flex;
	align-items: center;
	gap: 0.9em;
	padding: 0.9em 1.1em;
	border: 1px solid var(--svc-line);
	border-radius: 8px;
	margin-bottom: 0.6em;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.svc-gateway-option:hover {
	border-color: var(--svc-ink-soft);
}

.svc-gateway-option:has(.svc-gateway-option__input:checked),
.svc-gateway-option.is-selected {
	border-color: var(--svc-accent);
	background: #EEF5F2;
	background: color-mix(in srgb, var(--svc-accent) 8%, var(--svc-surface));
}

/* The native radio is kept fully functional (never display:none) for real
   accessibility and keyboard support — but it's made invisible rather than
   styled directly with appearance:none, since relying on browsers to fully
   suppress their native radio rendering is fragile (Firefox in particular
   needs extra prefixing, and some OS/browser combinations still show a
   native dot through even with every vendor prefix applied). Instead, the
   invisible input sits on top of a separately-drawn ring + dot, which react
   to its :checked/:focus-visible state via sibling selectors — this can't
   visually glitch because nothing browser-native is ever rendered. */
.svc-gateway-option__radio {
	position: relative;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	/* Visually last (far right of the row) via order, not DOM position — badge
	   and label stay first/left. margin-left:auto pushes it to the end of the
	   flex row; align-items:center on .svc-gateway-option already vertically
	   centers every child, including this one, regardless of horizontal position. */
	order: 3;
	margin-left: auto;
}

.svc-gateway-option__input {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.svc-gateway-option__ring {
	position: absolute;
	inset: 0;
	border: 2px solid var(--svc-line);
	border-radius: 50%;
	background: var(--svc-surface);
	transition: border-color 0.15s ease;
	pointer-events: none;
}

.svc-gateway-option__input:checked ~ .svc-gateway-option__ring {
	border-color: var(--svc-accent);
}

.svc-gateway-option__input:focus-visible ~ .svc-gateway-option__ring {
	outline: 2px solid var(--svc-accent);
	outline-offset: 2px;
}

.svc-gateway-option__dot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--svc-accent);
	transform: translate(-50%, -50%) scale(0.4);
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
	pointer-events: none;
}

.svc-gateway-option__input:checked ~ .svc-gateway-option__dot {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.svc-gateway-option__badge {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--svc-font-display);
	font-weight: 700;
	font-size: 13px;
	color: var(--svc-surface);
	letter-spacing: 0.02em;
	background: var(--svc-ink-soft);
	order: 1;
}

.svc-gateway-option:nth-of-type(1) .svc-gateway-option__badge { background: var(--svc-accent); }
.svc-gateway-option:nth-of-type(2) .svc-gateway-option__badge { background: var(--svc-ink-soft); }
.svc-gateway-option:nth-of-type(3) .svc-gateway-option__badge { background: var(--svc-gold); }

.svc-gateway-option__content {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 0;
	order: 2;
}

.svc-gateway-option__label {
	font-weight: 600;
	font-size: 15px;
	color: var(--svc-ink);
}

.svc-gateway-option__hint {
	font-size: 12.5px;
	color: var(--svc-muted);
}

.svc-checkout__trust-note {
	font-size: 13px;
	color: var(--svc-muted);
	margin: 0.5em 0 1.5em;
}

.svc-checkout__step-actions {
	display: flex;
	gap: 0.75em;
}

/* ---------- Buttons ---------- */

.svc-btn {
	font-family: var(--svc-font-display);
	font-size: 15px;
	font-weight: 600;
	padding: 0.75em 1.5em;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.svc-btn--primary {
	background: var(--svc-accent);
	color: var(--svc-on-accent, #fff);
	flex: 1;
}

.svc-btn--primary:hover:not(:disabled) {
	background: var(--svc-accent-dark);
}

.svc-btn--primary:disabled {
	opacity: 0.6;
	cursor: default;
}

.svc-btn--ghost {
	background: transparent;
	color: var(--svc-ink-soft);
	border: 1px solid var(--svc-line);
}

.svc-btn--ghost:hover {
	border-color: var(--svc-ink-soft);
}

.svc-checkout__continue {
	width: 100%;
}

/* ---------- Order summary panel ---------- */

.svc-order-summary {
	background: var(--svc-ink);
	color: var(--svc-paper);
	border-radius: 8px;
	padding: 1.75em;
	position: sticky;
	top: 1.5em;
}

.svc-order-summary__eyebrow {
	font-size: 12px;
	color: #9AA5B5;
	color: color-mix(in srgb, var(--svc-paper) 60%, var(--svc-ink));
	margin: 0 0 0.5em;
}

.svc-order-summary__name {
	font-family: var(--svc-font-display);
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 0.3em;
	color: var(--svc-paper);
}

.svc-order-summary__price {
	color: #C7CDD8;
	color: color-mix(in srgb, var(--svc-paper) 78%, var(--svc-ink));
	margin: 0 0 1.25em;
	font-size: 14px;
}

.svc-order-summary__features {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	font-size: 14px;
	color: #DDE1E7;
	color: color-mix(in srgb, var(--svc-paper) 88%, var(--svc-ink));
}

.svc-order-summary__features li {
	padding: 0.4em 0;
	border-top: 1px solid rgba(255,255,255,0.12);
	border-top: 1px solid color-mix(in srgb, var(--svc-paper) 12%, transparent);
}

.svc-order-summary__features li:first-child {
	border-top: none;
}

.svc-order-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px solid rgba(255,255,255,0.2);
	border-top: 1px solid color-mix(in srgb, var(--svc-paper) 20%, transparent);
	padding-top: 1em;
	font-size: 14px;
	color: #C7CDD8;
	color: color-mix(in srgb, var(--svc-paper) 78%, var(--svc-ink));
}

.svc-order-summary__total-amount {
	font-family: var(--svc-font-display);
	font-size: 20px;
	color: var(--svc-paper);
}

/* ---------- Buy button ---------- */

.svc-buy-button {
	display: inline-block;
	font-family: var(--svc-font-display);
	font-size: 15px;
	line-height: 1.4;
	padding: 0.7em 1.5em;
	background: var(--svc-accent);
	color: var(--svc-on-accent, #fff);
	text-decoration: none;
	border: 0; /* "Add to Cart" is a <button>: without this it gets the browser/theme border and font, unlike the "Order Now" link */
	border-radius: 5px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.svc-buy-button:disabled {
	opacity: 0.75;
	cursor: default;
}

.svc-buy-button:hover,
.svc-buy-button:focus {
	background: var(--svc-accent-dark);
	color: var(--svc-on-accent, #fff);
}

/* ---------- Account dashboard ---------- */

.svc-account__topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	border-bottom: 1px solid var(--svc-line);
	margin-bottom: 1.5em;
}

.svc-account__tabs {
	display: flex;
	gap: 0.5em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.svc-account__tabs::-webkit-scrollbar {
	display: none;
}

.svc-account__tab {
	font-family: var(--svc-font-display);
	background: none;
	border: none;
	padding: 0.75em 0.25em;
	font-size: 15px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	color: var(--svc-muted);
	flex: 0 0 auto;
	white-space: nowrap;
}

.svc-account__tab.is-active {
	color: var(--svc-ink);
	border-bottom-color: var(--svc-accent);
	font-weight: 600;
}

#svc-account-root .svc-account__logout {
	flex: 0 0 auto;
	white-space: nowrap;
	font-family: var(--svc-font-display);
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
	color: var(--svc-accent) !important;
	background: transparent !important;
	border: 1px solid var(--svc-accent) !important;
	border-radius: 5px;
	padding: 0.4em 0.9em !important;
	margin: 0;
	text-decoration: none;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

/* Firefox-specific: an internal focus ring adds its own padding/border around a
   button's content that isn't affected by resetting padding/border on the button
   itself — a well-known quirk unique to Firefox (and its variants: Waterfox,
   LibreWolf, Tor Browser, etc., all share this Gecko-engine behavior). Without this,
   the button can end up very slightly larger/misaligned in Firefox specifically even
   though every other property matches its siblings exactly. */
#svc-account-root .svc-account__logout::-moz-focus-inner {
	border: 0;
	padding: 0;
}

#svc-account-root .svc-account__logout:hover {
	background: var(--svc-accent) !important;
	color: var(--svc-on-accent, #fff) !important;
}

.svc-service-card {
	border: 1px solid var(--svc-line);
	border-radius: 6px;
	padding: 1em 1.25em;
	margin-bottom: 1em;
}

.svc-service-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5em;
}

.svc-service-card__name {
	font-family: var(--svc-font-display);
	margin: 0;
}

.svc-service-card__status,
.svc-order-row__status {
	font-size: 0.85em;
	padding: 0.2em 0.6em;
	border-radius: 12px;
	background: #eee;
	background: color-mix(in srgb, var(--svc-muted) 12%, var(--svc-surface));
	white-space: nowrap;
}

.svc-status--active     { background: #E3F2ED; color: var(--svc-accent-dark); }
.svc-status--active     { background: color-mix(in srgb, var(--svc-accent) 12%, var(--svc-surface)); color: var(--svc-accent-dark); }
.svc-status--provisioning,
.svc-status--pending    { background: #FBF1E1; color: #8a5b00; }
.svc-status--provisioning,
.svc-status--pending    { background: color-mix(in srgb, var(--svc-gold) 14%, var(--svc-surface)); color: color-mix(in srgb, var(--svc-gold) 60%, var(--svc-ink)); }
.svc-status--suspended,
.svc-status--past_due   { background: var(--svc-error-bg); color: var(--svc-error); }
.svc-status--terminated,
.svc-status--cancelled,
.svc-status--expired,
.svc-status--failed     { background: #eee; color: #555; }
.svc-status--terminated,
.svc-status--cancelled,
.svc-status--expired,
.svc-status--failed     { background: color-mix(in srgb, var(--svc-muted) 12%, var(--svc-surface)); color: var(--svc-ink-soft); }
.svc-status--paid       { background: #E3F2ED; color: var(--svc-accent-dark); }
.svc-status--paid       { background: color-mix(in srgb, var(--svc-accent) 12%, var(--svc-surface)); color: var(--svc-accent-dark); }

.svc-service-card__meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.25em 1em;
	margin: 0;
}

.svc-service-card__meta dt {
	color: var(--svc-muted);
	text-transform: capitalize;
}

.svc-service-card__meta dd {
	margin: 0;
}

.svc-service-card__notes {
	margin-top: 0.75em;
	border-top: 1px solid #eee;
	border-top: 1px solid color-mix(in srgb, var(--svc-line) 60%, var(--svc-surface));
	padding-top: 0.5em;
}

.svc-service-card__note {
	font-size: 0.9em;
	color: var(--svc-ink-soft);
	margin: 0.4em 0;
}

.svc-subscription-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto auto;
	gap: 1em;
	align-items: center;
	padding: 0.75em 0;
	border-bottom: 1px solid var(--svc-line);
}

.svc-order-row {
	border-bottom: 1px solid var(--svc-line);
}

.svc-order-row__summary {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto auto;
	gap: 1em;
	align-items: center;
	width: 100%;
	padding: 0.75em 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--svc-font-body);
	font-size: 15px;
	color: var(--svc-ink);
}

.svc-order-row__chevron {
	color: var(--svc-muted);
	transition: transform 0.2s ease;
}

.svc-order-row__summary.is-expanded .svc-order-row__chevron {
	transform: rotate(180deg);
}

.svc-order-row__timeline {
	padding: 0 0 1em 0.25em;
}

.svc-order-event {
	display: flex;
	gap: 0.75em;
	align-items: flex-start;
	padding: 0.4em 0;
}

.svc-order-event__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--svc-accent);
	margin-top: 0.5em;
	flex-shrink: 0;
}

.svc-order-event__body {
	display: flex;
	flex-direction: column;
	font-size: 13px;
}

.svc-order-event__label {
	font-weight: 600;
	color: var(--svc-ink);
}

.svc-order-event__date {
	color: var(--svc-muted);
}

.svc-subscription-row__manage-payment {
	font-family: var(--svc-font-display);
	padding: 0.4em 0.9em;
	border: 1px solid var(--svc-ink);
	background: var(--svc-surface);
	border-radius: 5px;
	cursor: pointer;
	white-space: nowrap;
}

.svc-subscription-row__manage-payment:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ---------- Overview ---------- */

.svc-overview__greeting {
	font-family: var(--svc-font-display);
	font-size: 22px;
	margin: 0 0 1.25em;
}

.svc-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1em;
	margin-bottom: 1.5em;
}

@media (max-width: 560px) {
	.svc-stat-grid {
		grid-template-columns: 1fr;
	}
}

.svc-stat-card {
	border: 1px solid var(--svc-line);
	border-radius: 6px;
	padding: 1.1em 1.25em;
	display: flex;
	flex-direction: column;
	gap: 0.3em;
}

.svc-stat-card__value {
	font-family: var(--svc-font-display);
	font-size: 26px;
	font-weight: 600;
	color: var(--svc-ink);
}

.svc-stat-card__label {
	font-size: 13px;
	color: var(--svc-muted);
}

.svc-overview__attention {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.svc-attention-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75em 1em;
	border: 1px solid var(--svc-error-bg);
	background: var(--svc-error-bg);
	border-radius: 6px;
	text-decoration: none;
	color: var(--svc-ink);
	font-size: 14px;
}

.svc-attention-item__action {
	font-weight: 600;
	color: var(--svc-error);
}

.svc-empty-state {
	color: var(--svc-muted);
	padding: 1em 0;
}

/* ---------- Status stepper (services) ---------- */

.svc-status-track {
	display: flex;
	align-items: center;
	margin: 0.75em 0 1em;
}

.svc-status-track__step {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex: 1;
	position: relative;
}

.svc-status-track__step:not(:last-child)::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--svc-line);
	margin: 0 0.5em;
}

.svc-status-track__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--svc-line);
	flex-shrink: 0;
}

.svc-status-track__label {
	font-size: 12px;
	color: var(--svc-muted);
	white-space: nowrap;
}

.svc-status-track__step.is-complete .svc-status-track__dot {
	background: var(--svc-accent);
}

.svc-status-track__step.is-complete .svc-status-track__label {
	color: var(--svc-accent-dark);
}

.svc-status-track__step.is-current .svc-status-track__label {
	font-weight: 600;
	color: var(--svc-ink);
}

.svc-status-track__step.is-current--active .svc-status-track__dot {
	background: var(--svc-accent);
	box-shadow: 0 0 0 3px #E3F2ED;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-accent) 12%, var(--svc-surface));
}

.svc-status-track__step.is-current--provisioning .svc-status-track__dot {
	background: var(--svc-gold);
	box-shadow: 0 0 0 3px #FBF1E1;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--svc-gold) 14%, var(--svc-surface));
}

.svc-status-track__step.is-current--suspended .svc-status-track__dot,
.svc-status-track__step.is-current--terminated .svc-status-track__dot {
	background: var(--svc-error);
	box-shadow: 0 0 0 3px var(--svc-error-bg);
}

/* ---------- Profile & security ---------- */

.svc-profile {
	max-width: 100%;
}

.svc-profile__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 4em;
}

@media (max-width: 720px) {
	.svc-profile__grid {
		grid-template-columns: 1fr;
	}
}

.svc-profile-section {
	padding: 1.5em 0;
	border-top: 1px solid var(--svc-line);
}

.svc-profile-section:first-child {
	padding-top: 0;
	border-top: none;
}

.svc-profile-section__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75em;
}

.svc-profile-section__title {
	font-family: var(--svc-font-display);
	font-size: 16px;
	margin: 0;
}

.svc-profile-section__toggle {
	background: none;
	border: 1px solid var(--svc-line);
	border-radius: 5px;
	padding: 0.4em 0.9em;
	font-family: var(--svc-font-display);
	font-size: 13px;
	font-weight: 600;
	color: var(--svc-ink-soft);
	cursor: pointer;
}

.svc-profile-section__toggle:hover {
	border-color: var(--svc-ink-soft);
}

.svc-profile-details {
	margin: 0;
}

.svc-profile-details__row {
	display: flex;
	justify-content: space-between;
	padding: 0.5em 0;
	font-size: 14px;
	border-bottom: 1px solid #F0EFEA;
	border-bottom: 1px solid color-mix(in srgb, var(--svc-line) 45%, var(--svc-surface));
}

.svc-profile-details__row:last-child {
	border-bottom: none;
}

.svc-profile-details__row dt {
	color: var(--svc-muted);
}

.svc-profile-details__row dd {
	margin: 0;
	font-weight: 500;
}

.svc-profile-password-dots {
	font-size: 20px;
	letter-spacing: 0.15em;
	color: var(--svc-ink-soft);
	margin: 0.25em 0;
}

.svc-profile-static-value {
	font-size: 15px;
	color: var(--svc-ink);
	margin: 0.25em 0;
}

.svc-profile-section__form {
	margin-top: 0.5em;
}

.svc-profile-section__actions {
	display: flex;
	gap: 0.75em;
	margin-top: 0.5em;
}

.svc-profile-section__actions .svc-btn--primary {
	flex: 0 0 auto;
	padding: 0.65em 1.5em;
}

.svc-checkout__field-help {
	font-size: 13px;
	color: var(--svc-muted);
	margin: 0.35em 0 0;
}

.svc-profile-success {
	background: #E3F2ED;
	background: color-mix(in srgb, var(--svc-accent) 12%, var(--svc-surface));
	color: var(--svc-accent-dark);
	padding: 0.75em 1em;
	border-radius: 5px;
	margin-bottom: 1.25em;
	font-size: 14px;
}

/* ---------- Mobile responsiveness ---------- */

@media (max-width: 640px) {
	.svc-checkout, .svc-account {
		font-size: 14px;
	}

	/* Order rows and subscription rows use fixed multi-column grids sized for
	   desktop; on a narrow screen those columns get crushed into unreadable
	   slivers. Both switch to a stacked layout instead. */

	.svc-subscription-row {
		grid-template-columns: 1fr;
		gap: 0.35em;
		padding: 1em 0;
	}

	.svc-subscription-row__manage-payment {
		width: 100%;
		margin-top: 0.5em;
		padding: 0.65em;
	}

	.svc-order-row__summary {
		grid-template-columns: 1fr auto;
		gap: 0.15em 0.75em;
		padding: 0.85em 0;
	}

	.svc-order-row__date,
	.svc-order-row__name,
	.svc-order-row__amount,
	.svc-order-row__status {
		grid-column: 1;
	}

	.svc-order-row__status {
		justify-self: start;
		margin-top: 0.15em;
	}

	.svc-order-row__chevron {
		grid-row: 1 / span 4;
		grid-column: 2;
		align-self: center;
	}

	/* The status stepper's four labels ("Provisioning", "Suspended", etc.)
	   are too wide to sit comfortably on one line at this width. */
	.svc-status-track__label {
		font-size: 10.5px;
	}

	.svc-status-track__step:not(:last-child)::after {
		margin: 0 0.3em;
	}

	/* An attention item's action text ("Pay now") can end up cramped against
	   its message on a narrow screen — let it wrap to its own line instead
	   of truncating or overlapping. */
	.svc-attention-item {
		flex-wrap: wrap;
		gap: 0.35em;
	}

	.svc-order-summary {
		padding: 1.25em;
	}

	.svc-stat-card {
		padding: 1em;
	}

	.svc-checkout__step-actions {
		flex-wrap: wrap;
	}

	.svc-btn--ghost {
		padding: 0.75em 1em;
	}
}

/* ---------- Products grid ---------- */

.svc-products-grid {
	display: grid;
	grid-template-columns: repeat(var(--svc-products-columns, 3), 1fr);
	gap: 1.5em;
	font-family: var(--svc-font-body);
}

@media (max-width: 900px) {
	.svc-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.svc-products-grid {
		grid-template-columns: 1fr;
	}
}

.svc-product-card {
	border: 1px solid var(--svc-line);
	border-radius: 8px;
	padding: 1.5em;
	display: flex;
	flex-direction: column;
	background: var(--svc-surface);
}

.svc-product-card__name {
	font-family: var(--svc-font-display);
	font-size: 18px;
	margin: 0 0 0.35em;
	color: var(--svc-ink);
}

.svc-product-card__price {
	font-family: var(--svc-font-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--svc-accent-dark);
	margin: 0 0 1em;
}

.svc-product-card__features {
	list-style: none;
	margin: 0 0 1.25em;
	padding: 0;
	font-size: 13.5px;
	color: var(--svc-ink-soft);
	flex: 1;
}

.svc-product-card__features li {
	padding: 0.3em 0;
	border-top: 1px solid #F0EFEA;
	border-top: 1px solid color-mix(in srgb, var(--svc-line) 45%, var(--svc-surface));
}

.svc-product-card__features li:first-child {
	border-top: none;
}

.svc-product-card__button {
	text-align: center;
	margin-top: auto;
}

/* ---------- Login (OTP-primary, password secondary) ---------- */

.svc-login {
	max-width: 400px;
}

.svc-login__title {
	font-family: var(--svc-font-display);
	font-size: 22px;
	margin: 0 0 1.25em;
}

.svc-login__sent-to {
	font-size: 14px;
	color: var(--svc-muted);
	margin: 0 0 1em;
}

.svc-login__code-form #svc-login-code {
	font-family: var(--svc-font-display);
	font-size: 22px;
	letter-spacing: 0.3em;
	text-align: center;
}

.svc-login__send-code,
.svc-login__verify-code {
	width: 100%;
	margin-bottom: 0.75em;
}

.svc-login__resend,
.svc-login__resend-sms {
	width: 100%;
	background: none;
	border: 1px solid var(--svc-line);
	border-radius: 5px;
	padding: 0.6em;
	font-family: var(--svc-font-display);
	font-size: 13px;
	color: var(--svc-ink-soft);
	cursor: pointer;
}

.svc-login__resend:disabled,
.svc-login__resend-sms:disabled {
	opacity: 0.6;
	cursor: default;
}

.svc-login__toggle {
	text-align: center;
	margin: 1.5em 0 0.5em;
}

.svc-login__toggle-btn {
	background: none;
	border: none;
	color: var(--svc-muted);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.svc-login__toggle-btn:hover {
	color: var(--svc-ink);
}

.svc-login__password {
	margin-top: 1em;
	padding-top: 1.5em;
	border-top: 1px solid var(--svc-line);
}

.svc-login__forgot {
	font-size: 13px;
	color: var(--svc-muted);
	margin-top: 1em;
}

.svc-login__use-code-link {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	color: var(--svc-accent-dark);
	text-decoration: underline;
	cursor: pointer;
}

.svc-login__use-code-link:hover {
	color: var(--svc-accent);
}

.svc-login__password input[type="text"],
.svc-login__password input[type="password"] {
	width: 100%;
	padding: 0.65em 0.8em;
	border: 1px solid var(--svc-line);
	border-radius: 5px;
	font-family: var(--svc-font-body);
	font-size: 15px;
	margin-bottom: 0.75em;
	box-sizing: border-box;
}

.svc-login__password .login-remember {
	font-size: 13px;
	color: var(--svc-muted);
	margin-bottom: 0.75em;
}

.svc-login__password input[type="submit"] {
	width: 100%;
	background: var(--svc-accent);
	border-color: var(--svc-accent-dark);
	font-family: var(--svc-font-display);
	padding: 0.6em;
	text-align: center;
	text-shadow: none;
	box-shadow: none;
	color: var(--svc-on-accent, #fff);
	border-radius: 5px;
	cursor: pointer;
}

/* ---------- Login channel switcher (Email / Phone) ---------- */

.svc-login__channels {
	display: flex;
	gap: 0.5em;
	margin-bottom: 1.25em;
	border-bottom: 1px solid var(--svc-line);
}

.svc-login__channel-btn {
	font-family: var(--svc-font-display);
	background: none;
	border: none;
	padding: 0.6em 0.25em;
	font-size: 14px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	color: var(--svc-muted);
}

.svc-login__channel-btn.is-active {
	color: var(--svc-ink);
	border-bottom-color: var(--svc-accent);
	font-weight: 600;
}

.svc-sms-consent-notice {
	margin-top: 0.5em;
	color: var(--svc-muted);
}

.svc-checkout__legal-consent {
	font-size: 12.5px;
	color: var(--svc-muted);
	margin: 0.75em 0;
}

.svc-checkout__legal-consent a {
	color: var(--svc-ink-soft);
	text-decoration: underline;
}

/* ---------- Checkout discount code ---------- */

.svc-checkout__discount-row {
	display: flex;
	gap: 0.5em;
}

.svc-checkout__discount-row input,
.svc-checkout__discount-row .svc-btn {
	height: 44px;
}

.svc-checkout__discount-row input {
	flex: 1;
	padding: 0 0.85em;
	border: 1px solid var(--svc-line);
	border-radius: 5px;
	font-size: 14px;
}

.svc-checkout__discount-row .svc-btn {
	padding: 0 1.25em;
	white-space: nowrap;
	flex: 0 0 auto;
}

.svc-cart__discount-toggle {
	display: block;
	background: none;
	border: none;
	padding: 0;
	margin: 0 0 1em;
	color: var(--svc-accent);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.svc-cart__discount-toggle:hover {
	color: var(--svc-accent-dark);
}

.svc-checkout__discount-message {
	font-size: 13px;
	margin-top: 0.5em;
}

.svc-checkout__discount-message--success {
	color: var(--svc-accent-dark);
}

.svc-checkout__discount-message--error {
	color: var(--svc-error);
}

.svc-order-summary__discount {
	color: var(--svc-accent-dark);
	font-size: 14px;
	margin: 0.5em 0;
}

.svc-order-row__extras {
	font-size: 13px;
	color: var(--svc-accent-dark);
	margin: 0 0 0.5em 0;
	padding: 0 0.25em;
}

/* ---------- Checkout order bump ---------- */

.svc-checkout__order-bump {
	border: 1px dashed var(--svc-accent);
	border-radius: 8px;
	padding: 1em;
	margin-bottom: 1.25em;
	background: #F7FBF9;
	background: color-mix(in srgb, var(--svc-accent) 4%, var(--svc-surface));
}

.svc-checkout__bump-fields {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px dashed var(--svc-line);
}

.svc-checkout__order-bump-label {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	cursor: pointer;
}

/* Same technical approach as .svc-gateway-option__radio (checkout.js's payment
   method picker) — the native checkbox is kept fully functional and never
   display:none/appearance:none, for the same documented cross-browser reliability
   reasons, but made invisible and layered over a separately-drawn box + checkmark
   that react to its :checked/:focus-visible state via sibling selectors. */
.svc-checkout__order-bump-box {
	position: relative;
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	margin-top: 0.15em;
}

.svc-checkout__order-bump-checkbox {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.svc-checkout__order-bump-box-check {
	position: absolute;
	inset: 0;
	border: 2px solid var(--svc-line);
	border-radius: 4px;
	background: var(--svc-surface);
	transition: border-color 0.15s ease, background-color 0.15s ease;
	pointer-events: none;
}

.svc-checkout__order-bump-box-check::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid var(--svc-on-accent, #fff);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.svc-checkout__order-bump-checkbox:checked ~ .svc-checkout__order-bump-box-check {
	border-color: var(--svc-accent);
	background: var(--svc-accent);
}

.svc-checkout__order-bump-checkbox:checked ~ .svc-checkout__order-bump-box-check::after {
	opacity: 1;
}

.svc-checkout__order-bump-checkbox:focus-visible ~ .svc-checkout__order-bump-box-check {
	outline: 2px solid var(--svc-accent);
	outline-offset: 2px;
}

.svc-checkout__order-bump-headline {
	display: block;
	font-family: var(--svc-font-display);
}

.svc-checkout__order-bump-price {
	color: var(--svc-accent-dark);
	font-weight: 600;
}

.svc-checkout__order-bump-description {
	display: block;
	font-size: 13px;
	color: var(--svc-muted);
	margin-top: 0.25em;
}

.svc-order-summary__bump {
	color: var(--svc-ink-soft);
	font-size: 14px;
	margin: 0.5em 0;
}

.svc-checkout__restricted-notice {
	padding: 1.25em;
	background: var(--svc-error-bg);
	border: 1px solid var(--svc-error);
	border-radius: 8px;
	color: var(--svc-ink);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- Account: support info ---------- */

.svc-account__support {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid var(--svc-line);
}

.svc-account__support h3 {
	font-family: var(--svc-font-display);
	font-size: 15px;
	margin: 0 0 0.5em;
	color: var(--svc-ink-soft);
}

.svc-account__support p {
	margin: 0.25em 0;
	font-size: 14px;
}

/* ---------- Cart page ---------- */

.svc-cart {
	margin: 0 auto;
	font-family: var(--svc-font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--svc-ink);
}

/* Two columns from 900px: details/payment on the left, the cart itself on the right.
   Below that, one column with the cart first — on a phone you see what you're buying
   before the form. (These must out-rank `.svc-cart .svc-checkout__layout`, which is
   why the old generic 680px rule never applied to the cart.) */
.svc-cart .svc-checkout__layout {
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 3em;
}

@media (max-width: 1080px) {
	.svc-cart .svc-checkout__layout {
		grid-template-columns: minmax(0, 1fr) 330px;
		gap: 2em;
	}
}

@media (max-width: 899px) {
	.svc-cart .svc-checkout__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5em;
	}
	.svc-cart .svc-order-summary {
		order: -1;
		position: static;
	}
}

@media (max-width: 480px) {
	.svc-cart .svc-order-summary {
		padding: 1.1em 1.1em 1.25em;
		border-radius: 6px;
	}
}

/* Cart lines inside the dark summary panel: name | price | remove. */
.svc-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	padding: 0.85em 0;
	border-bottom: 1px solid rgba(255,255,255,0.12);
	border-bottom: 1px solid color-mix(in srgb, var(--svc-paper) 12%, transparent);
	transition: opacity 0.15s ease;
}

.svc-cart-item.is-removing {
	opacity: 0.45;
}

.svc-cart-item__name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	color: var(--svc-paper);
	overflow-wrap: anywhere;
}

.svc-cart-item__line-total {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--svc-paper);
	text-align: right;
	white-space: nowrap;
}

.svc-cart-item__remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -3px -6px 0 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: #9AA5B5;
	color: color-mix(in srgb, var(--svc-paper) 60%, var(--svc-ink));
	cursor: pointer;
}

.svc-cart-item__remove:hover,
.svc-cart-item__remove:focus-visible {
	background: rgba(255,255,255,0.1);
	background: color-mix(in srgb, var(--svc-paper) 10%, transparent);
	color: #FF8A80;
	color: color-mix(in srgb, var(--svc-error) 45%, var(--svc-paper));
	outline: none;
}

.svc-cart-item__remove:disabled {
	cursor: default;
}

.svc-cart .svc-order-summary__total {
	border-top: none;
	padding-top: 1.1em;
}

.svc-cart__item-fields {
	margin: 1.5em 0;
}

.svc-cart__item-field-group {
	padding: 1em 0;
	border-top: 1px solid var(--svc-line);
}

.svc-cart__item-field-heading {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 0.75em;
}

.svc-cart__checkout-btn {
	width: 100%;
	margin-top: 0.5em;
}

/* ---------- Empty cart ---------- */

.svc-cart__empty {
	max-width: 440px;
	margin: 0 auto;
	padding: 3.5em 1.5em;
	text-align: center;
}

.svc-cart__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 1.25em;
	border-radius: 50%;
	background: var(--svc-line);
	color: var(--svc-ink-soft, var(--svc-ink));
}

.svc-cart__empty-icon svg {
	width: 32px;
	height: 32px;
}

.svc-cart .svc-cart__empty-title {
	margin: 0 0 0.4em;
	font-family: var(--svc-font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--svc-ink);
}

.svc-cart__empty-text {
	margin: 0 0 1.75em;
	color: var(--svc-muted);
}

.svc-cart .svc-cart__empty-cta {
	display: inline-flex;
	justify-content: center;
	text-decoration: none;
	min-width: 200px;
}

@media (max-width: 480px) {
	.svc-cart__empty {
		padding: 2.5em 0.5em;
	}
	.svc-cart .svc-cart__empty-cta {
		width: 100%;
	}
}

/* ---------- Cart nav menu badge ---------- */

/* Hidden the instant the page paints — CSS applies before any script runs, so
   there's never a flash of a visible link that then disappears once
   cart-widget.js determines the cart is empty. visibility, not display: the
   reserved space stays constant whether hidden or shown, so revealing it (see
   cart-widget.js's updateMenuBadge()) never shifts surrounding content either.
   If cart-widget.js fails to load or run for any reason, the item simply stays
   hidden — a safe failure mode for something that only ever matters when Cart
   Mode is on and there's actually something in the cart to show. */
.svc-cart-menu-item {
	visibility: hidden;
}

/* Cart Icon block (block themes' header). Inherits the header's text colour. */
.svc-cart-block {
	display: inline-flex;
	align-items: center;
}

.svc-cart-block a {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	font-size: inherit;
	margin-right: 10px; /* room for the bubble when the icon is the last thing */
}

.svc-cart-block .svc-cart-menu-item__icon {
	width: 22px;
	height: 22px;
	margin: 0;
}

/* Bubble pinned to the icon's top-right corner (icon is the link's first child,
   22px wide). Out of the flow, so it appearing, disappearing or growing (9 -> 10)
   never changes the block's width or shifts the header. */
.svc-cart-block .svc-cart-menu-item__count {
	position: absolute;
	top: -6px;
	left: 14px;
	box-sizing: border-box;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	margin: 0;
	font-size: 10px;
	line-height: 16px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--base, #ffffff);
	pointer-events: none;
}

.svc-cart-block .svc-cart-menu-item__count[hidden] {
	display: none;
}

.svc-cart-block__label {
	margin-left: 14px; /* clears the bubble */
}

.svc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.svc-cart-menu-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	vertical-align: middle;
}

.svc-cart-menu-item__icon svg {
	width: 100%;
	height: 100%;
}

.svc-cart-menu-item__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	border-radius: 999px;
	background: var(--svc-accent);
	color: var(--svc-on-accent, #fff);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}
