/*
 * عابرين — pages/account-dashboard.css
 * My Account redesign (SPEC §18.3): dashboard (profile card with tier and
 * progress, stat cards, last order, nearest subscriptions, recent codes,
 * quick actions, welcome state), أكوادي (search, order filter, masked code
 * cards with reveal/copy, revoked state) and اشتراكاتي (filter tabs,
 * subscription cards with dates, countdown, progress bar and mute toggle),
 * plus the nav tier/badge and the activation steps disclosure of the
 * delivered-codes block (order view). Tokens only (the light mode swaps them),
 * logical properties, mobile-first; short rules on one line like
 * components.css.
 * Handle: stv-page-account-dashboard (after stv-page-account).
 */

/* ===== Shared ===== */
.stv-dash [hidden],
.stv-codes-page [hidden],
.stv-code-list [hidden],
.stv-subs-page [hidden],
.stv-subs-block [hidden] {
	display: none !important;
}

.stv-meter {
	display: block;
	inline-size: 100%;
	block-size: 8px;
	border: 0;
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-surface-3);
	color: var(--stv-color-primary);
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.stv-meter::-webkit-progress-bar { border-radius: var(--stv-radius-pill); background: var(--stv-color-surface-3); }
.stv-meter::-webkit-progress-value { border-radius: var(--stv-radius-pill); background: var(--stv-gradient-brand); transition: inline-size var(--stv-transition); }
.stv-meter::-moz-progress-bar { border-radius: var(--stv-radius-pill); background: var(--stv-gradient-brand); }
.stv-meter--expiring::-webkit-progress-value { background: var(--stv-color-warning); }
.stv-meter--expiring::-moz-progress-bar { background: var(--stv-color-warning); }
.stv-meter--expired::-webkit-progress-value { background: var(--stv-color-text-faint); }
.stv-meter--expired::-moz-progress-bar { background: var(--stv-color-text-faint); }

.stv-tier {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding-inline: 12px;
	border: 1px solid var(--stv-color-border-strong);
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-surface-2);
	color: var(--stv-color-text);
	font-size: var(--stv-font-size-sm);
	font-weight: var(--stv-weight-ui);
	line-height: 1;
	white-space: nowrap;
}

.stv-tier .stv-icon { font-size: 16px; color: var(--stv-color-text-muted); }
.stv-tier--silver { border-color: var(--stv-color-text-faint); background: var(--stv-color-surface-3); }
.stv-tier--silver .stv-icon { color: var(--stv-color-text); }
.stv-tier--gold { border-color: var(--stv-color-secondary); background: var(--stv-color-secondary-soft); color: var(--stv-color-secondary); }
.stv-tier--diamond { border-color: var(--stv-color-primary); background: var(--stv-color-primary-soft); color: var(--stv-color-primary); }
.stv-tier--gold .stv-icon,
.stv-tier--diamond .stv-icon { color: inherit; }

.stv-dash__dist-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
	padding-inline: 12px;
	border: 1px solid var(--stv-color-success);
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-success-soft);
	color: var(--stv-color-success);
	font-size: var(--stv-font-size-sm);
	font-weight: var(--stv-weight-ui);
	line-height: 1;
}

.stv-dash__dist-badge .stv-icon { font-size: 16px; }

/* ===== Side navigation additions ===== */
.stv-account__nav-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stv-account__nav-tier { align-self: flex-start; min-height: 22px; padding-inline: 8px; font-size: var(--stv-font-size-xs); }

.stv-account__nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 22px;
	block-size: 22px;
	margin-inline-start: auto;
	padding-inline: 6px;
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-warning);
	color: var(--stv-color-background);
	font-size: var(--stv-font-size-xs);
	font-weight: var(--stv-weight-ui);
	line-height: 1;
}

/* ===== Dashboard ===== */
/* Size container of the stat cards (see "Stat cards"): the account nav column narrows it from 900px. */
.stv-dash { display: flex; flex-direction: column; gap: var(--stv-space-5); container: stv-dash / inline-size; }
.stv-dash__section-title { margin-block-end: var(--stv-space-3); font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }

/* Profile card */
.stv-dash__profile {
	gap: var(--stv-space-5);
	padding: var(--stv-space-5);
	background-image: linear-gradient(135deg, var(--stv-color-primary-soft) 0%, transparent 60%);
}

.stv-dash__identity { display: flex; align-items: center; gap: var(--stv-space-4); min-width: 0; }

.stv-dash__avatar {
	display: inline-flex;
	flex: 0 0 auto;
	inline-size: 72px;
	block-size: 72px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--stv-color-surface-2);
	box-shadow: 0 0 0 2px var(--stv-color-primary), 0 0 0 6px var(--stv-color-primary-soft);
}

.stv-dash__avatar-img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.stv-dash__who { display: flex; flex-direction: column; gap: var(--stv-space-1); min-width: 0; }
.stv-dash__greeting { overflow-wrap: anywhere; font-size: var(--stv-font-size-2xl); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }
.stv-dash__since { font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }
.stv-dash__badges { display: flex; flex-wrap: wrap; gap: var(--stv-space-2); margin-block-start: var(--stv-space-1); }

.stv-dash__tier {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-2);
	padding: var(--stv-space-4);
	border: 1px solid var(--stv-color-border);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-surface-2);
}

.stv-dash__tier-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--stv-space-2);
	font-size: var(--stv-font-size-sm);
	color: var(--stv-color-text-muted);
}

.stv-dash__tier-head strong { color: var(--stv-color-text); font-weight: var(--stv-weight-ui); }
.stv-dash__tier-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-1); font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }
.stv-dash__tier-note .stv-price { color: var(--stv-color-text); font-weight: var(--stv-weight-ui); }
.stv-dash__tier-note--top { color: var(--stv-color-success); font-weight: var(--stv-weight-ui); }

/*
 * Stat cards: two columns (2×2), or one row (1×4) once the dashboard is at
 * least 600px wide (each card then keeps 141px or more), so the four cards
 * never wrap 3 + 1. The row follows the card count (2–4: the codes and
 * subscriptions cards come and go with their features); in two columns a
 * third card spans the row. The width is the dashboard's own (container
 * query), since the account nav column narrows it from 900px.
 */
.stv-dash__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stv-space-3); list-style: none; }
.stv-dash__stat-item:nth-child(3):last-child { grid-column: 1 / -1; }

@container stv-dash (min-width: 600px) {
	.stv-dash__stats { grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; }
	.stv-dash__stat-item:nth-child(3):last-child { grid-column: auto; }
}

.stv-dash__stat-item,
.stv-dash__action-item { display: flex; min-width: 0; }
.stv-dash-stat { flex: 1 1 auto; gap: var(--stv-space-1); padding: var(--stv-space-4); color: var(--stv-color-text); text-decoration: none; }

.stv-dash-stat:focus-visible,
.stv-dash-action:focus-visible,
.stv-codes-filter__clear:focus-visible,
.stv-code-card__value:focus-visible {
	outline: none;
	box-shadow: var(--stv-focus-ring);
}

.stv-dash-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 40px;
	block-size: 40px;
	margin-block-end: var(--stv-space-2);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
}

.stv-dash-stat__value { overflow-wrap: anywhere; font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); line-height: 1.25; }
.stv-dash-stat__value .stv-price { font-weight: inherit; }
.stv-dash-stat__label { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

/* Welcome state */
.stv-dash__welcome {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--stv-space-4);
	padding: var(--stv-space-5);
	border-color: var(--stv-color-primary);
	background-image: linear-gradient(160deg, var(--stv-color-primary-soft) 0%, transparent 70%);
}

.stv-dash__welcome-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: var(--stv-radius-lg);
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
}

.stv-dash__welcome-body { display: flex; flex-direction: column; gap: var(--stv-space-1); min-width: 0; }
.stv-dash__welcome-title { font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }
.stv-dash__welcome-text { max-inline-size: 60ch; color: var(--stv-color-text-muted); }

/* Cards grid */
.stv-dash__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-5); align-items: start; }
.stv-dash-card { gap: var(--stv-space-4); padding: var(--stv-space-5); }
.stv-dash-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--stv-space-2); }
.stv-dash-card__title { display: inline-flex; align-items: center; gap: var(--stv-space-2); font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }
.stv-dash-card__title .stv-icon { color: var(--stv-color-primary); }
.stv-dash-card__more { font-size: var(--stv-font-size-sm); font-weight: var(--stv-weight-ui); color: var(--stv-color-primary); text-decoration: none; }

.stv-dash-card__more:hover,
.stv-dash-card__more:focus-visible,
.stv-code-card__order:hover,
.stv-code-card__order:focus-visible,
.stv-code-card__steps:hover,
.stv-code-card__steps:focus-visible {
	text-decoration: underline;
}

/* Last order */
.stv-dash-order__summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-3); }
.stv-dash-order__number { font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); color: var(--stv-color-text); text-decoration: none; }

.stv-dash-order__number:hover,
.stv-dash-order__number:focus-visible,
.stv-code-card__name a:hover,
.stv-code-card__name a:focus-visible,
.stv-sub-card__name a:hover,
.stv-sub-card__name a:focus-visible {
	color: var(--stv-color-primary);
}

.stv-dash-order__meta,
.stv-sub-card__dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--stv-space-2) var(--stv-space-4);
	font-size: var(--stv-font-size-xs);
}

.stv-dash-order__meta-row dt,
.stv-sub-card__date dt { color: var(--stv-color-text-muted); }

.stv-dash-order__meta-row dd,
.stv-sub-card__date dd { font-size: var(--stv-font-size-sm); font-weight: var(--stv-weight-ui); }

.stv-dash-order__meta-row--total dd { color: var(--stv-color-price); }
.stv-dash-order__items { display: flex; flex-direction: column; gap: var(--stv-space-2); list-style: none; }
.stv-dash-order__item { display: flex; align-items: center; gap: var(--stv-space-3); min-width: 0; }
.stv-dash-order__thumb { flex: 0 0 auto; inline-size: 48px; block-size: 48px; border-radius: var(--stv-radius-sm); background: var(--stv-color-surface-2); object-fit: cover; }
.stv-dash-order__item-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--stv-space-2); min-width: 0; font-size: var(--stv-font-size-sm); }
.stv-dash-order__item-name { overflow: hidden; font-weight: var(--stv-weight-ui); white-space: nowrap; text-overflow: ellipsis; }

.stv-dash-order__item-qty,
.stv-dash-order__more { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-dash-order__actions,
.stv-sub-card__actions,
.stv-code-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-2); }

/* Quick actions */
.stv-dash__actions-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--stv-space-3); list-style: none; }

.stv-dash-action {
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: var(--stv-space-2);
	min-block-size: 104px;
	padding: var(--stv-space-4) var(--stv-space-3);
	color: var(--stv-color-text);
	font-size: var(--stv-font-size-sm);
	font-weight: var(--stv-weight-ui);
	text-align: center;
	text-decoration: none;
}

.stv-dash-action__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 50%;
	background: var(--stv-color-surface-2);
	color: var(--stv-color-primary);
	transition: background-color var(--stv-transition), color var(--stv-transition);
}

@media (hover: hover) {
	.stv-dash-action:hover .stv-dash-action__icon { background: var(--stv-color-primary); color: var(--stv-color-on-primary); }
}

/* ===== Codes (أكوادي) ===== */
.stv-codes-page,
.stv-subs-page { display: flex; flex-direction: column; gap: var(--stv-space-4); }

.stv-codes-page > .stv-account__head,
.stv-subs-page > .stv-account__head { margin-block-end: var(--stv-space-1); }

.stv-codes-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--stv-space-2); }
.stv-codes-search__field { position: relative; display: flex; flex: 1 1 240px; min-width: 0; }

.stv-codes-search__icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: var(--stv-space-3);
	font-size: 20px;
	color: var(--stv-color-text-faint);
	transform: translateY(-50%);
	pointer-events: none;
}

.stv-codes-search__input { inline-size: 100%; padding-inline-start: 44px; }
.stv-codes-filter { display: flex; flex-wrap: wrap; gap: var(--stv-space-2); }
.stv-codes-filter__chip { gap: var(--stv-space-2); padding-inline-end: 6px; }

.stv-codes-filter__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 24px;
	block-size: 24px;
	border-radius: 50%;
	color: inherit;
	transition: background-color var(--stv-transition);
}

.stv-codes-filter__clear:hover,
.stv-codes-filter__clear:focus-visible { background: var(--stv-color-primary); color: var(--stv-color-on-primary); }

.stv-codes-page__count { font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }

.stv-code-list,
.stv-subs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-3); list-style: none; }

.stv-code-card,
.stv-sub-card { gap: var(--stv-space-3); padding: var(--stv-space-4); border-inline-start: 3px solid var(--stv-color-success); }

.stv-code-list--compact .stv-code-card,
.stv-subs--compact .stv-sub-card { padding: var(--stv-space-3) var(--stv-space-4); background: var(--stv-color-surface-2); }

.stv-code-card.is-revoked { border-inline-start-color: var(--stv-color-error); }

.stv-code-card__head,
.stv-sub-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--stv-space-2); }

.stv-code-card__product { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-2); min-width: 0; }

.stv-code-card__name,
.stv-sub-card__name { overflow-wrap: anywhere; font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-ui); line-height: var(--stv-lh-heading); }

.stv-code-card__name a,
.stv-sub-card__name a { color: inherit; text-decoration: none; }

.stv-code-card__body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-2); }

.stv-code-card__value {
	flex: 1 1 200px;
	min-width: 0;
	white-space: pre-line;
	unicode-bidi: plaintext;
	padding: var(--stv-space-2) var(--stv-space-3);
	overflow-wrap: anywhere;
	border: 1px dashed var(--stv-color-border-strong);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-surface-2);
	color: var(--stv-color-text-muted);
	font-family: var(--stv-font-family-mono);
	font-size: var(--stv-font-size-lg);
	letter-spacing: .08em;
	text-align: start;
	transition: border-color var(--stv-transition), color var(--stv-transition);
}

.stv-code-list--compact .stv-code-card__value { background: var(--stv-color-surface); font-size: var(--stv-font-size-base); }

.stv-code-card.is-revealed .stv-code-card__value {
	border-style: solid;
	border-color: var(--stv-color-primary);
	color: var(--stv-color-text);
	-webkit-user-select: all;
	user-select: all;
}

.stv-code-card__value:focus { outline: none; }
.stv-code-card.is-revoked .stv-code-card__value { color: var(--stv-color-text-muted); text-decoration: line-through; }

.stv-code-card__icon-hide,
.stv-code-card.is-revealed .stv-code-card__icon-show { display: none; }

.stv-code-card.is-revealed .stv-code-card__icon-hide { display: inline-block; }
.stv-code-card__nojs { display: none; flex: 1 1 100%; font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-no-js .stv-code-card__nojs { display: block; }

.stv-code-card__revoked,
.stv-sub-card__note {
	display: flex;
	align-items: flex-start;
	gap: var(--stv-space-2);
	padding: var(--stv-space-2) var(--stv-space-3);
	border-radius: var(--stv-radius-sm);
	font-size: var(--stv-font-size-sm);
}

.stv-code-card__revoked { background: var(--stv-color-error-soft); color: var(--stv-color-error); }
.stv-sub-card__note { background: var(--stv-color-info-soft); color: var(--stv-color-info); }

.stv-code-card__revoked .stv-icon,
.stv-sub-card__note .stv-icon { flex: 0 0 auto; margin-block-start: 2px; }

.stv-code-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stv-space-1) var(--stv-space-4);
	font-size: var(--stv-font-size-xs);
	color: var(--stv-color-text-muted);
}

.stv-code-card__order,
.stv-code-card__steps { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--stv-weight-ui); color: var(--stv-color-primary); text-decoration: none; }

/* ===== Subscriptions (اشتراكاتي) ===== */
.stv-sub-filter__list { gap: var(--stv-space-1); }
.stv-sub-filter__tab { gap: var(--stv-space-2); }

.stv-sub-filter__tab .stv-chip__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 22px;
	block-size: 22px;
	padding-inline: 6px;
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-surface-2);
	color: var(--stv-color-text-muted);
	font-size: var(--stv-font-size-xs);
	font-weight: var(--stv-weight-ui);
}

.stv-sub-filter__tab[aria-selected="true"] .stv-chip__count { background: var(--stv-color-primary-soft); color: var(--stv-color-primary); }

.stv-sub-card--expiring { border-inline-start-color: var(--stv-color-warning); }
.stv-sub-card--expired { border-inline-start-color: var(--stv-color-text-faint); }
.stv-sub-card__product { display: flex; flex-direction: column; gap: var(--stv-space-1); min-width: 0; }
.stv-sub-card__tags { display: flex; flex-wrap: wrap; gap: var(--stv-space-1); }
.stv-sub-card__tags:empty { display: none; }
.stv-sub-card__user { display: flex; flex-wrap: wrap; align-items: center; gap: var(--stv-space-1); font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }
.stv-sub-card__user .stv-icon { color: var(--stv-color-text-faint); }
.stv-sub-card__user-value { color: var(--stv-color-text); font-weight: var(--stv-weight-ui); overflow-wrap: anywhere; }
.stv-sub-card__progress { display: flex; flex-direction: column; gap: var(--stv-space-2); }
.stv-sub-card__left { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--stv-space-1) var(--stv-space-3); }
.stv-sub-card__countdown { font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-heading); color: var(--stv-color-text); font-variant-numeric: tabular-nums; }
.stv-sub-card--expiring .stv-sub-card__countdown { color: var(--stv-color-warning); }
.stv-sub-card--expired .stv-sub-card__countdown { color: var(--stv-color-text-muted); font-weight: var(--stv-weight-ui); }
.stv-sub-card__total { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-sub-card__mute { margin-inline-start: auto; }
.stv-sub-card.is-muted .stv-sub-card__mute-btn { color: var(--stv-color-text-muted); }
.stv-sub-card.is-muted .stv-sub-card__mute-btn .stv-icon { opacity: .6; }

.stv-subs__none {
	padding: var(--stv-space-5);
	border: 1px dashed var(--stv-color-border-strong);
	border-radius: var(--stv-radius-lg);
	color: var(--stv-color-text-muted);
	text-align: center;
}

/* ===== Breakpoints ===== */
@media (min-width: 600px) {
	.stv-dash__profile { padding: var(--stv-space-6); }
	.stv-dash__welcome { flex-direction: row; align-items: center; }
	.stv-dash__welcome-body { flex: 1 1 auto; }
	.stv-dash__welcome-cta { flex: 0 0 auto; }
	.stv-dash-order__meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.stv-dash__profile { flex-direction: row; align-items: center; justify-content: space-between; }
	.stv-dash__identity { flex: 1 1 auto; }
	.stv-dash__tier { flex: 0 1 340px; }
	.stv-dash-card { padding: var(--stv-space-6); }

	.stv-code-card,
	.stv-sub-card { padding: var(--stv-space-5); }
}

@media (min-width: 1200px) {
	.stv-dash__grid--2,
	.stv-subs-page .stv-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Review prompt (dashboard and order view, SPEC §21.5) ===== */
.stv-review-prompt { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--stv-space-3) var(--stv-space-4); padding: var(--stv-space-4); border-color: color-mix(in srgb, var(--stv-color-rating) 35%, var(--stv-color-border)); background: linear-gradient(135deg, var(--stv-color-secondary-soft), transparent 70%), var(--stv-color-surface); }
.stv-review-prompt__icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--stv-radius-md); background: var(--stv-color-secondary-soft); color: var(--stv-color-rating); }
.stv-review-prompt__icon .stv-icon { fill: currentColor; }
.stv-review-prompt__body { flex: 1 1 220px; min-width: 0; }
.stv-review-prompt__title { margin: 0; font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-heading); line-height: 1.5; }
.stv-review-prompt__text { margin: 2px 0 0; font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }
.stv-review-prompt__btn { flex: 0 0 auto; }
.stv-review-prompt--order { margin-block-start: var(--stv-space-5); }

@media (min-width: 600px) {
	.stv-review-prompt { padding: var(--stv-space-4) var(--stv-space-5); }
	.stv-review-prompt__title { font-size: var(--stv-font-size-lg); }
}

/* ===== Order view: activation steps of a line, collapsed under its codes (native disclosure) ===== */
.stv-codes__guide { margin-block-start: var(--stv-space-3); border: 1px solid var(--stv-color-border); border-radius: var(--stv-radius-md); background: var(--stv-color-surface-2); }
.stv-codes__guide-summary { display: flex; align-items: center; gap: var(--stv-space-2); min-height: 44px; padding: var(--stv-space-2) var(--stv-space-3); border-radius: var(--stv-radius-md); cursor: pointer; list-style: none; font-weight: var(--stv-weight-ui); color: var(--stv-color-text); }
.stv-codes__guide-summary::-webkit-details-marker { display: none; }
.stv-codes__guide-icon { flex: 0 0 auto; color: var(--stv-color-primary); }
.stv-codes__guide-title { flex: 1 1 auto; min-width: 0; }
.stv-codes__guide-count { padding: 2px 8px; border-radius: var(--stv-radius-pill); background: var(--stv-color-surface-3); font-size: var(--stv-font-size-xs); font-weight: var(--stv-weight-body); color: var(--stv-color-text-muted); }
.stv-codes__guide-chevron { flex: 0 0 auto; color: var(--stv-color-text-muted); transition: transform var(--stv-transition); }
.stv-codes__guide[open] .stv-codes__guide-chevron { transform: rotate(180deg); }
.stv-codes__guide-body { padding: 0 var(--stv-space-3) var(--stv-space-3); }
.stv-codes__guide .stv-steps-list { margin: 0; padding: 0; }

/* Step text with links, then the step's button (inc/woocommerce/activation-steps.php) */
.stv-steps-list__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stv-space-2); min-width: 0; }
.stv-steps-list__inline-link { color: var(--stv-color-primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.stv-steps-list__link { gap: var(--stv-space-2); max-inline-size: 100%; }
.stv-steps-list__link-label { min-width: 0; overflow-wrap: anywhere; }
.stv-steps-list__link-icon { flex: 0 0 auto; }

@media (hover: hover) {
	.stv-steps-list__inline-link:hover { color: var(--stv-color-primary-hover); }
	.stv-codes__guide-summary:hover { color: var(--stv-color-primary); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	.stv-meter::-webkit-progress-value,
	.stv-dash-action__icon,
	.stv-code-card__value,
	.stv-codes-filter__clear,
	.stv-codes__guide-chevron {
		transition: none;
	}
}

/* ===== Print ===== */
@media print {
	.stv-code-card__actions,
	.stv-sub-card__actions,
	.stv-dash__actions,
	.stv-codes-search,
	.stv-sub-filter {
		display: none !important;
	}
}
