/**
 * You Save — My Presentations & Create Presentation selector styles.
 *
 * Figma source: "You Save v2 — Final", file CHOXEclayHrB690kpKuDzf, node 3567:674.
 * Nodes implemented: 3570:1102 (My Presentations), 4167:5032/5226 (workflow states),
 *   3810:7317 (Create Presentation selector).
 *
 * Depends on ys-admin-discovery.css for the shared shell tokens and nav.
 * Depends on ys-quick-badge.css for badge preview rendering inside cards.
 */

/* ============================================================
   My Presentations main area
   ============================================================ */

.ys-pres-main {
	/* ys-admin-main from discovery CSS provides margin-left:200px and padding */
}

/* ============================================================
   Notice
   ============================================================ */

.ys-pres-notice {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 20px;
}

.ys-pres-notice-success {
	background: #e8f7ee;
	color: #087a43;
	border: 1px solid #c3e6cb;
}

/* ============================================================
   Legacy Pro migration notice (LPM)
   ============================================================ */

.ys-lpm-notice {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px;
	margin-bottom: 24px;
	background: #eef4fb;
	border: 1px solid #b3d0ef;
	border-radius: 8px;
}

.ys-lpm-notice__body {
	flex: 1;
	min-width: 0;
}

.ys-lpm-notice__title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 4px;
}

.ys-lpm-notice__text {
	font-size: 13px;
	color: #3c434a;
	line-height: 1.5;
	margin-bottom: 12px;
}

.ys-lpm-notice__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ys-lpm-notice__cta.ys-admin-button {
	font-size: 13px;
	padding: 6px 14px;
}

.ys-lpm-notice__remind {
	font-size: 13px;
	color: #646970;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ys-lpm-notice__remind:hover {
	color: #1a1a1a;
}

.ys-lpm-notice__subheading {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 4px;
	margin-top: 12px;
}

.ys-lpm-notice__disclosure {
	font-size: 11px;
	color: #646970;
	margin-top: 10px;
	margin-bottom: 0;
}

/* ============================================================
   Storewide Settings shortcut bar — Figma 3570:1103
   ============================================================ */

.ys-pres-storewide-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 20px;
	margin: 20px 0 28px;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 10px;
}

.ys-pres-storewide-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ys-pres-storewide-text strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
	line-height: 20px;
}

.ys-pres-storewide-text span {
	font-size: 13px;
	color: var(--ys-muted);
	line-height: 19px;
}

.ys-pres-storewide-cta {
	flex: none;
	min-width: 0;
	height: 40px;
	padding: 0 16px;
	font-size: 13px;
}

/* ============================================================
   Presentation card grid
   ============================================================ */

.ys-pres-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* ============================================================
   Presentation card — base
   ============================================================ */

.ys-pres-card {
	--ys-pcard-warning-color: #d97706;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* ---- Card preview area ---- */

.ys-pres-card-preview {
	position: relative;
	background: var(--ys-surface);
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex: 1;
	min-height: 292px;
	padding: 11px;
}

/* AB preview fills the card preview area flush */
.ys-pres-card-announcement_bar .ys-pres-card-preview {
	padding: 11px;
	align-items: stretch;
}

/* Status text — bottom-right of preview area, plain 9px text (Figma 3570:1102) */

.ys-pres-status-text {
	position: absolute;
	bottom: 8px;
	right: 11px;
	/* R2: 9px status was below a comfortable readable minimum. Raised to 11px to match
	   the other status role (.ys-pcard-status-label) without changing its placement. */
	font-size: 11px;
	font-weight: 500;
	line-height: 14px;
	pointer-events: none;
	color: #52617a;
}

/* ---- Shared product tile (QB and SB previews) ---- */

.ys-pres-product-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 206px;
}

.ys-pres-product-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	max-width: 260px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ys-surface);
}

.ys-pres-product-image > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* QB badge inside card preview — scale slightly below storefront default */
.ys-pres-product-image .ys-qb-badge:not(.ys-qb-sp-circle) {
	font-size: 11px;
	padding: 5px 8px;
}
.ys-pres-product-image .ys-qb-sp-circle {
	font-size: 9px;
	padding: 4px;
}
/* Corner-ribbon must keep its real diagonal ribbon geometry in the card preview — NOT be
   treated as a padded pill that is merely rotated. Undo the generic badge padding above and
   restore the ribbon's own band padding / flat ends, scaled to the card thumbnail. The card
   image is position:relative; overflow:hidden, so the %-based ribbon clips to the image
   corners exactly as on the storefront. (Preview representation only — the approved
   storefront Ribbon geometry is unchanged.) */
.ys-pres-product-image .ys-qb-design-corner-ribbon {
	padding: 0.4em 0;
	border-radius: 0;
	font-size: 10px;
}

/* SB savings badge — Horizontal Strip across full image width */
.ys-pres-sb-chip {
	position: absolute;
	left: 0;
	right: 0;
	height: 28px;
	background: #da173a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	line-height: 28px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ys-pres-product-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	align-self: stretch;
}

.ys-pres-product-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	line-height: 18px;
}

.ys-pres-product-was {
	font-size: 13px;
	color: var(--ys-muted);
	text-decoration: line-through;
}

.ys-pres-product-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-pres-product-prices {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ys-pres-product-save {
	font-size: 12px;
	font-weight: 600;
	color: #d9173b;
	line-height: 17px;
}

/* ---- AB preview — mini storefront ---- */

.ys-pres-ab-preview {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.ys-pres-ab-storefront {
	border-radius: 6px;
	overflow: hidden;
	background: #f7f7fa;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Browser dots removed from Figma — keep rule hidden for any legacy markup */
.ys-pres-ab-browser { display: none; }
.ys-pres-ab-dot     { display: none; }

.ys-pres-ab-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 7px 10px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	flex: none;
	overflow: hidden;
}

.ys-pres-ab-message {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.ys-pres-ab-cta {
	flex: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	padding: 2px 6px;
	font-size: 9px;
}

/* Shop body below bar — hero + product tile rows */
.ys-pres-ab-body {
	flex: 1;
	padding: 0 5px 5px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Superseded by .ys-pres-ab-hero — keep hidden for any legacy markup */
.ys-pres-ab-body-header { display: none; }

.ys-pres-ab-body-grid {
	display: flex;
	gap: 4px;
	padding: 0 5px 5px;
}

.ys-pres-ab-body-tile {
	flex: 1;
	border-radius: 3px;
	background: #e3e5eb;
	height: 42px;
}

/* AB card — BFCM Basic mini template */
.ys-pres-ab-bfcm {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #101215;
	padding: 5px 6px;
	flex: none;
	overflow: hidden;
}

.ys-pres-ab-bfcm-label {
	flex: none;
}

.ys-pres-ab-bfcm-season {
	display: block;
	font-size: 5px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 3px;
	white-space: nowrap;
}

.ys-pres-ab-bfcm-divider {
	flex: none;
	width: 1px;
	height: 12px;
	background: rgba(255,255,255,0.65);
}

.ys-pres-ab-bfcm-offer {
	display: flex;
	align-items: baseline;
	gap: 3px;
	flex: none;
}

.ys-pres-ab-bfcm-upto {
	font-size: 5.5px;
	color: #fff;
	font-weight: 400;
	white-space: nowrap;
}

.ys-pres-ab-bfcm-pct {
	font-size: 9px;
	font-weight: 700;
	color: #ff3b3b;
	white-space: nowrap;
}

.ys-pres-ab-bfcm-ship {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
}

.ys-pres-ab-bfcm-ship-title {
	display: block;
	font-size: 5px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ys-pres-ab-bfcm-cta {
	flex: none;
	background: #ff3b3b;
	color: #fff;
	font-size: 4px;
	font-weight: 700;
	padding: 3px 5px;
	border-radius: 3px;
	white-space: nowrap;
}

/* Shop header — "THE DAILY STORE" + nav text (Figma 4294:6327/6326) */
.ys-pres-ab-shop-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 8px;
	flex: none;
}

.ys-pres-ab-shop-logo { display: none; }

.ys-pres-ab-shop-name {
	font-size: 7px;
	font-weight: 700;
	color: #141a30;
	white-space: nowrap;
	letter-spacing: 0.03em;
}

.ys-pres-ab-shop-navs {
	display: flex;
	gap: 5px;
	align-items: center;
}

.ys-pres-ab-shop-nav {
	font-size: 5px;
	color: #141a30;
	white-space: nowrap;
}

/* Hero banner — Figma #e8e3f2, grows to fill remaining space above product rows */
.ys-pres-ab-hero {
	flex: 1;
	background: #e8e3f2;
	margin: 5px 5px 4px;
	border-radius: 3px;
	min-height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

.ys-pres-ab-hero-text {
	font-size: 5px;
	font-weight: 600;
	color: #141a30;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ys-pres-ab-dates {
	font-size: 10px;
	color: var(--ys-muted);
	margin: 0;
	text-align: center;
}

/* ---- Card body ---- */

.ys-pres-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.ys-pres-card-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
	color: var(--ys-ink);
	margin: 0;
}

.ys-pres-card-meta {
	font-size: 10px;
	color: var(--ys-muted);
	line-height: 15px;
	margin: 0;
}

/* Actions row — Figma: button + Trash side-by-side on same line */
.ys-pres-card-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
}

/* Card context button — override shared min-width/height; each sub-context sets its own */
.ys-pres-card .ys-admin-button {
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
}

/* Edit/Explore action button — fills row beside Trash, Figma h-[30px] (3570:1376) */
.ys-pres-card-actions .ys-pres-card-btn {
	flex: 1;
	height: 30px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Pro-required presentation with Pro inactive — Edit disabled (not a link). */
.ys-pres-card-actions .ys-pres-card-btn--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ys-pres-trash-link {
	display: inline-block;
	font-size: 10px;
	color: var(--ys-muted);
	text-decoration: none;
	white-space: nowrap;
}

.ys-pres-trash-link:hover {
	color: #da173a;
	text-decoration: underline;
}

/* Delete link (replaces Trash link for permanent deletion) */
.ys-pres-delete-link {
	display: inline-block;
	font-size: 10px;
	color: var(--ys-muted);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.ys-pres-delete-link:hover {
	color: #da173a;
	text-decoration: underline;
}

/* Active/Inactive toggle row on card */
.ys-pcard-status-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ys-pcard-status-label {
	font-size: 11px;
	color: var(--ys-ink);
}

/* Inline error for toggle/delete failures */
.ys-pcard-error {
	font-size: 11px;
	color: #c45e00;
	margin: 0;
}

/* Draft / activation-pending toggle lock */
.ys-pcard-status-row-locked {
	cursor: default;
	opacity: 0.75;
}

.ys-builder-toggle-locked {
	pointer-events: none;
	opacity: 0.65;
}

.ys-pcard-draft-caution {
	color: var(--ys-pcard-warning-color);
	font-size: 14px;
	line-height: 1;
}

/* Caution icon wrapper — keyboard focusable, hover/focus triggers tooltip */
.ys-pcard-draft-caution-wrap {
	display: inline-flex;
	align-items: center;
	cursor: default;
	outline: none;
	border-radius: 3px;
}
.ys-pcard-draft-caution-wrap:focus-visible {
	outline: 2px solid var(--ys-purple);
	outline-offset: 2px;
}

/* Styled tooltip — rendered with position:fixed via inline style (escapes card overflow:hidden).
   Only visual styling here; placement is controlled by the inline style applied in React. */
.ys-pcard-draft-tooltip {
	max-width: 240px;
	background: #1e293b;
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 6px;
	z-index: 100000;
	pointer-events: none;
	white-space: normal;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Lightweight conflict indicator on presentation cards */
.ys-pcard-conflict-note {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 4px;
	padding: 4px 8px;
	margin: 6px 0 2px;
}

.ys-pcard-conflict-icon {
	font-size: 11px;
	line-height: 1;
	flex-shrink: 0;
}

.ys-pcard-conflict-label {
	line-height: 1.3;
}

/* Destructive action button (used in ConfirmModal and card actions) */
.ys-admin-button-destructive {
	background: #da173a;
	color: #fff;
	border: 1px solid #da173a;
}

.ys-admin-button-destructive:hover:not(:disabled) {
	background: #b30f2b;
	border-color: #b30f2b;
}

.ys-admin-button-destructive:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Confirmation modal ── */
.ys-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ys-confirm-modal {
	background: #fff;
	border-radius: 12px;
	padding: 28px 28px 24px;
	max-width: 420px;
	width: calc(100% - 48px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.ys-confirm-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--ys-ink);
	margin: 0 0 8px;
	word-break: break-word;
}

.ys-confirm-message {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0 0 22px;
	line-height: 1.55;
}

.ys-confirm-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.ys-confirm-cancel {
	min-width: 80px;
}

.ys-confirm-confirm {
	min-width: 80px;
}

/* ============================================================
   Create Presentation card (inline in the grid)
   ============================================================ */

.ys-pres-card-create {
	background: var(--ys-pale);
	border-color: #c8b8fa;
	border-style: dashed;
	min-height: 340px;
}

.ys-pres-create-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 32px 24px;
	height: 100%;
	gap: 10px;
	min-height: 340px;
}

.ys-pres-create-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ys-purple);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	font-weight: 300;
	flex: none;
	text-decoration: none;
	cursor: pointer;
}

.ys-pres-create-icon:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 4px;
}

.ys-pres-create-icon:hover {
	background: #5410dc;
	color: #fff;
}

.ys-pres-create-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-purple);
	margin: 0;
}

.ys-pres-create-desc {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	max-width: 210px;
	line-height: 19px;
}

/* Create Presentation button — fills card inner width, Figma h-[44px] w-[206px]/w-[230px] = ~90% */
.ys-pres-card-create .ys-pres-create-btn {
	margin-top: 4px;
	width: 100%;
	height: 44px;
}

/* ============================================================
   Responsive — My Presentations grid
   ============================================================ */

@media (max-width: 1400px) {
	.ys-pres-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
	.ys-pres-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.ys-pres-grid { grid-template-columns: 1fr; }
	.ys-pres-storewide-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ============================================================
   Create Presentation selector page — Figma 3810:7317
   ============================================================ */

.ys-create-page {
	min-height: 100vh;
	background: var(--ys-surface);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 56px 32px 80px;
	box-sizing: border-box;
	font-family: 'YS Inter', Inter, sans-serif;
}

.ys-create-page * { box-sizing: border-box; }

.ys-create-container {
	width: 100%;
	max-width: 1088px;
	margin: 0 auto;
}

.ys-create-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 46px;
	color: var(--ys-ink);
	margin: 0 0 8px;
}

.ys-create-subtitle {
	font-size: 16px;
	line-height: 23px;
	color: var(--ys-muted);
	margin: 0 0 32px;
}

/* ---- Selector grid ---- */

.ys-create-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
	align-items: stretch;
}

/* ---- Selector card ---- */

/* SB tile background = surface (#fafbfe), QB = pale (#f2edff), AB = white — Figma 3810:7317 */
.ys-create-card {
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ys-create-card:first-child {
	background: var(--ys-surface);
}

.ys-create-card-featured {
	background: var(--ys-pale);
}

/* Category pills */

.ys-create-pill {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* Chip backgrounds per Figma 3810:7317: SAVINGS=pale, PROMOTIONAL=white, ANNOUNCEMENT=pale */
.ys-create-pill-savings,
.ys-create-pill-announcement {
	background: var(--ys-pale);
	color: var(--ys-purple);
}

.ys-create-pill-promotional {
	background: #fff;
	color: var(--ys-purple);
}

.ys-create-card-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 32px;
	color: var(--ys-ink);
	margin: 0;
}

.ys-create-card-desc {
	font-size: 14px;
	line-height: 20px;
	color: var(--ys-muted);
	margin: 0;
}

/* ---- Card preview area ---- */

.ys-create-card-preview {
	flex: 1;
	display: flex;
	align-items: flex-start;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ys-surface);
	padding: 16px;
	min-height: 160px;
}

/* Savings Badge preview — portrait layout (Figma 3810:7326) */

.ys-create-preview-sb {
	flex-direction: column;
	padding: 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	align-items: stretch;
}

.ys-create-sb-portrait {
	display: flex;
	flex-direction: column;
	width: 100%;
	flex: 1;
}

.ys-create-sb-imgwrap {
	position: relative;
	flex: 1;
	min-height: 110px;
	overflow: hidden;
	background: var(--ys-surface);
}

.ys-create-sb-imgwrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ys-create-sb-savings-chip {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #da173a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 8px;
	white-space: nowrap;
}

.ys-create-sb-footer {
	padding: 8px 10px;
	border-top: 1px solid var(--ys-border);
	background: #fff;
	flex: none;
}

.ys-create-sb-pname {
	font-size: 11px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 3px;
	line-height: 1.35;
}

.ys-create-sb-prices {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
}

.ys-create-sb-was {
	color: var(--ys-muted);
	text-decoration: line-through;
}

.ys-create-sb-now {
	font-weight: 700;
	color: var(--ys-ink);
}

/* Quick Badge preview — Figma 3810:7341
   Layout: canvas → row1 (Clearance+NewArrival) → Staff Pick centered → More Designs in Pro → row2 (LimitedStock+Countdown) */

.ys-create-preview-qb {
	flex-direction: column;
	padding: 0;
	align-items: stretch;
}

/* Canvas: white bg, flex column, gap between rows */
.ys-cqb-canvas {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px 10px 12px;
	background: #fff;
	border-radius: 8px;
	width: 100%;
	height: 100%;
}

/* Badge rows (row 1: Clearance+NewArrival, row 2: LimitedStock+Countdown) */
.ys-cqb-row-badges {
	display: flex;
	gap: 8px;
	width: 100%;
	flex: none;
}

/* Clearance: red gradient pill with tag icon + white ellipse (Figma 3808:3963) */
.ys-cqb-clearance {
	flex: 1;
	min-width: 0;
	height: 36px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px 0 10px;
	border-radius: 18px;
	background: linear-gradient(161.565deg, #ff1237 0%, #bf082c 71.43%);
	box-shadow: 0 2.5px 5px rgba(191, 8, 44, 0.18);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.ys-cqb-clearance::before {
	content: '';
	position: absolute;
	left: -12px;
	top: -10px;
	width: 55px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

/* New Arrival: Circle Icon design (Figma 4421:7380 — mint pill + green disc + leaf + dark-green text) */
.ys-cqb-new-arrival {
	flex: 1;
	min-width: 0;
	height: 36px;
	display: flex;
	align-items: center;
	padding-right: 8px;
	overflow: hidden;
	background: #d8f9e1;
	border-radius: 18px;
}

.ys-cqb-na-disc {
	width: 39px;
	height: 36px;
	border-radius: 50%;
	background: #008d60;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 7px;
}

.ys-cqb-na-text {
	font-size: 11px;
	font-weight: 700;
	color: #006242;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Staff Pick centered wrapper — fixed height for space-between distribution */
.ys-cqb-staff-pick-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex: none;
	height: 116px;
}

/* Staff Pick badge — 116×116 container matching Figma (4339:6352) */
.ys-cqb-staff-pick {
	position: relative;
	width: 116px;
	height: 116px;
	flex: none;
}

/* Badge surface SVG fills container exactly */
.ys-cqb-sp-surface-wrap {
	position: absolute;
	inset: 0;
}

.ys-cqb-sp-badge {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
}

/* Star icon at Figma position left:44/116 ≈ 37.9%, top:16/116 ≈ 13.8%, size:28/116 ≈ 24% */
.ys-cqb-sp-star {
	position: absolute;
	left: 37.9%;
	top: 13.8%;
	width: 24.1%;
	height: 24.1%;
	max-width: none;
	display: block;
}

/* "Staff Pick" text at Figma top:49/116 ≈ 42%, centered */
.ys-cqb-sp-text {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 42%;
	width: 78%;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: #ffcf61;
	white-space: nowrap;
	pointer-events: none;
}

/* More Designs in Pro banner (Figma 4339:6358) — shared with AB */
.ys-cp-more-pro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 5px 10px;
	background: var(--ys-pale, #f2edff);
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	color: var(--ys-purple, #641cff);
	flex: none;
}

/* Limited Stock: orange, rounded rect (Figma 4339:6363) */
.ys-cqb-limited-stock {
	flex: 1;
	min-width: 0;
	height: 36px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	border-radius: 6px;
	background: #ff501c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	overflow: hidden;
	white-space: nowrap;
}

/* Countdown: red pill (Figma 4339:6369) */
.ys-cqb-countdown {
	flex: 1;
	min-width: 0;
	height: 36px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	border-radius: 18px;
	background: #ff1237;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	overflow: hidden;
	white-space: nowrap;
}

/* Announcement Bar Create tile — Figma 4158:4848
   Layout: "Desktop view" label → ABBarGeneral → "Mobile view" label → mobile card →
           More Designs in Pro → Midnight Luxe bar → Flash Red bar */

.ys-create-preview-ab {
	flex-direction: column;
	gap: 7px;
	padding: 8px;
	justify-content: space-between;
	align-items: stretch;
}

/* Section labels: "Desktop view" / "Mobile view" (Figma 4339:6375, 4339:6401) */
.ys-cp-ab-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--ys-muted, #52617b);
	margin: 0;
	flex: none;
}

/* Desktop bar wrapper: scales ABBarGeneral from its 396px design width to fit the
   ~283px card preview. transform-origin: left top keeps the left edge anchored.
   Height is 33.275px (Figma bar height) × 0.715 scale ≈ 23.8px. */
.ys-cp-ab-bar-desktop {
	width: 100%;
	height: 24px;
	overflow: hidden;
	position: relative;
	flex: none;
}

.ys-cp-ab-bar-desktop .ys-ab-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 396px;
	transform: scale(0.715);
	transform-origin: left top;
}

/* Mobile General Announcement card (Figma 4339:6402 — 180×104px cream card) */
.ys-cp-ab-mobile {
	width: 180px;
	align-self: center;
	background: #f7f4ed;
	border-radius: 4px;
	padding: 9px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	flex: none;
	color: #173827;
}

.ys-cp-ab-mobile-msg {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ys-cp-ab-mobile-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ys-cp-ab-mobile-title {
	font-size: 9px;
	font-weight: 700;
	color: #173827;
	line-height: 1.25;
}

.ys-cp-ab-mobile-sub {
	font-size: 8px;
	color: #173827;
	line-height: 1.25;
}

.ys-cp-ab-mobile-coupon {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: 7.5px;
	color: #173827;
	flex-wrap: nowrap;
}

.ys-cp-ab-mobile-code {
	display: inline-block;
	border: 1px dashed #173827;
	padding: 1px 3px;
	border-radius: 2px;
	font-weight: 700;
	font-size: 7.5px;
	white-space: nowrap;
}

.ys-cp-ab-mobile-cta {
	background: #173827;
	color: #fff;
	text-align: center;
	padding: 5px 0;
	border-radius: 4px;
	font-size: 9px;
	font-weight: 700;
	align-self: stretch;
}

/* ── Midnight Luxe CP bar (Figma 4339:6426 — dark, gold accents) ── */
.ys-ab-bar-luxe-cp {
	background: #090c0d;
	color: #f6d478;
}

.ys-ab-luxe-season { flex: none; }

.ys-ab-luxe-event {
	display: block;
	font-size: 6.5px;
	font-weight: 700;
	color: #f6d478;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.ys-ab-vdiv-gold {
	background: rgba(246, 212, 120, 0.4);
}

.ys-ab-luxe-offer {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ys-ab-luxe-pre {
	display: block;
	font-size: 5px;
	color: rgba(246, 212, 120, 0.7);
	font-weight: 600;
	line-height: 1;
}

.ys-ab-luxe-pct {
	display: block;
	font-size: 9px;
	font-weight: 800;
	color: #f6d478;
	line-height: 1.1;
	white-space: nowrap;
}

.ys-ab-luxe-sub {
	display: block;
	font-size: 4.5px;
	color: rgba(246, 212, 120, 0.6);
	white-space: nowrap;
}

.ys-ab-cta-luxe-cp {
	background: linear-gradient(to bottom, #ffe49a, #f0bf5b);
	color: #090c0d;
	font-size: 5.5px;
	padding: 3px 6px;
	border-radius: 2px;
	font-weight: 700;
	white-space: nowrap;
	flex: none;
}

/* ── Flash Red CP bar (Figma 4339:6476 — red gradient) ── */
.ys-ab-bar-flash-cp {
	background: linear-gradient(to right, #cc0006, #e9000b, #c40005);
	color: #fff;
}

.ys-ab-flash-label {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ys-ab-flash-event {
	display: block;
	font-size: 6.5px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.ys-ab-flash-sub {
	display: block;
	font-size: 4.5px;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
}

.ys-ab-flash-offer {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.ys-ab-flash-pre {
	display: block;
	font-size: 5px;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 600;
	line-height: 1;
}

.ys-ab-flash-pct {
	display: block;
	font-size: 9px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	white-space: nowrap;
}

.ys-ab-cta-flash-cp {
	background: rgba(255, 255, 255, 0.92);
	color: #090c0d;
	font-size: 5.5px;
	padding: 3px 6px;
	border-radius: 2px;
	font-weight: 700;
	white-space: nowrap;
	flex: none;
}

/* ── Countdown timer (shared by Luxe CP + Flash CP bars) ── */
.ys-ab-timer {
	display: flex;
	align-items: center;
	gap: 0;
	flex: none;
}

.ys-ab-timer-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.ys-ab-timer-num {
	font-size: 7px;
	font-weight: 700;
	line-height: 1;
}

.ys-ab-timer-lbl {
	font-size: 3.5px;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.ys-ab-timer-sep {
	width: 1px;
	height: 10px;
	margin: 0 3px;
	align-self: flex-start;
	margin-top: 1px;
}

/* ---- Continue CTA button ---- */

.ys-create-card-cta {
	min-width: 0;
	width: 100%;
	height: 48px;
	font-size: 15px;
	font-weight: 600;
}

/* ---- Footer / Cancel ---- */

.ys-create-footer {
	display: flex;
	align-items: center;
}

.ys-create-footer .ys-admin-button-secondary {
	min-width: 120px;
	height: 44px;
	font-size: 14px;
}

/* ============================================================
   Responsive — Create Presentation selector
   ============================================================ */

@media (max-width: 900px) {
	.ys-create-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	.ys-create-page { padding: 32px 16px 60px; }
	.ys-create-title { font-size: 26px; line-height: 36px; }
}

/* ============================================================
   Welcome screen — Figma 3570:1074 ("01 / Welcome")
   ============================================================ */

/* ============================================================
   Welcome screen — Figma 3570:1074
   ============================================================ */

.ys-welcome-wrap {
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Vertically center the hero card within the available admin content area.
	   Subtracts: WP admin bar (~32px) + ys-admin-main top padding (28px) + bottom padding (110px). */
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px) - 138px);
	padding: 0;
}

/* Hero card (Figma 3570:1331 — #f8f6ff, 12px radius, 1px #dfe6f1 border) */
.ys-welcome-hero {
	background: #f8f6ff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	padding: 31px 29px 40px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Two-column layout: left text + right storefront preview */
.ys-welcome-hero-main {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Left content column */
.ys-welcome-content {
	flex: 1 1 0;
	min-width: 320px;
	display: flex;
	flex-direction: column;
}

/* Pill: pale purple bg + purple text (Figma: #f2edff bg, #641cff text, 6px radius) */
.ys-welcome-pill {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 12px;
	background: var(--ys-pale);
	color: var(--ys-purple);
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	width: fit-content;
	margin-bottom: 26px;
}

.ys-welcome-h1 {
	font-size: 38px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--ys-ink);
	text-wrap: balance;
	margin: 0 0 20px;
}

.ys-welcome-subtitle {
	font-size: 18px;
	line-height: 1.5;
	color: var(--ys-muted);
	margin: 0 0 36px;
	max-width: 450px;
}

/* Benefits list — 5 items, 24px gap, each 44px tall */
.ys-welcome-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.ys-welcome-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 400;
	color: var(--ys-ink);
	min-height: 44px;
}
.ys-welcome-check {
	color: var(--ys-purple);
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Right column: storefront preview panel (Figma: 425px wide) */
.ys-welcome-preview-panel {
	flex: 0 0 425px;
	max-width: 425px;
}

/* ── Storefront preview panel (Figma 3570:1349 — 425×574px) ── */
.ys-welcome-sf {
	width: 425px;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
	box-sizing: border-box;
	padding-bottom: 15px;
}

/* "Storefront preview" heading — centered relative to the preview card */
.ys-welcome-sf-heading {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 15px 0 0;
	text-align: center;
}

/* Product card — image + info (Figma 3636:605, left:17px top:51px, width:389px) */
.ys-welcome-sf-product-card {
	margin: 8px 17px 0;
}

/* Product image container — 263×263px square, clips all overlay overflow */
.ys-welcome-sf-imgwrap {
	position: relative;
	width: 263px;
	height: 263px;
	border-radius: 8px;
	background: #f9f9f7;
	overflow: hidden;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: auto;
}
.ys-welcome-sf-imgwrap > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Full-width red savings label at TOP of image (Figma: full-width strip, #da173a) */
.ys-welcome-sf-savings-label {
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	height: 22.5px;
	background: #da173a;
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9.75px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.03em;
	z-index: 1;
}

/* New Arrival badge — Figma 4360:6523, 124.8×31.2px, left:74px bottom:8px of image */
.ys-welcome-sf-na-badge {
	position: absolute;
	left: 74px;
	bottom: 8px;
	width: 124.8px;
	height: 31.2px;
	pointer-events: none;
}
.ys-welcome-sf-na-surface-wrap {
	position: absolute;
	inset: 0;
}
.ys-welcome-sf-na-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
}
.ys-welcome-sf-na-text {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 10.4px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
	z-index: 1;
}

/* Product info below image */
.ys-welcome-sf-product-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
}
.ys-welcome-sf-pname {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}
.ys-welcome-sf-prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.ys-welcome-sf-price-was {
	font-size: 13px;
	color: var(--ys-muted);
	text-decoration: line-through;
}
.ys-welcome-sf-price-now {
	font-size: 18px;
	font-weight: 700;
	color: var(--ys-ink);
}
.ys-welcome-sf-save {
	font-size: 13px;
	font-weight: 600;
	color: #da173a;
	margin: 0;
}

/* Announcement Bar (Figma 4370:6776 — #f7f4ed bg, 389×44px, gift icon + message) */
.ys-welcome-sf-ab {
	margin: 8px 17px 0;
	height: 44px;
	background: #f7f4ed;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 700;
	color: #173827;
}

/* Progress bar widget (Figma 4360:6516 — #f2edff bg, 389×88px) */
.ys-welcome-sf-progress {
	margin: 8px 17px 0;
	min-height: 88px;
	background: var(--ys-pale);
	border: 0.81px solid var(--ys-border);
	border-radius: 9.725px;
	padding: 14px 16px;
	box-sizing: border-box;
}
.ys-welcome-sf-progress-title {
	font-size: 12.97px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 8px;
}
.ys-welcome-sf-progress-track {
	background: var(--ys-border);
	height: 6.5px;
	border-radius: 100px;
	overflow: hidden;
	margin-bottom: 6px;
}
.ys-welcome-sf-progress-fill {
	background: var(--ys-purple);
	height: 100%;
	width: 65%;
	border-radius: 100px;
}
.ys-welcome-sf-progress-amounts {
	display: flex;
	justify-content: space-between;
	font-size: 10.54px;
	color: var(--ys-muted);
}
.ys-welcome-sf-progress-pct {
	font-weight: 600;
	color: var(--ys-purple);
}

/* Footer caption — centered relative to the preview card */
.ys-welcome-sf-footer {
	font-size: 12px;
	color: var(--ys-muted);
	margin: 8px 0 0;
	text-align: center;
}

/* CTA cards row (Figma 3570:1361, 3570:1365) */
.ys-welcome-ctas {
	display: flex;
	gap: 24px;
}

/* CTA card base — tall flex-column layout matching Figma 211px min-height */
.ys-welcome-cta {
	flex: 1 1 0;
	min-height: 211px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 17px 23px 23px;
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
	border: 1px solid transparent;
	transition: opacity 0.15s, transform 0.1s;
}
.ys-welcome-cta:disabled { opacity: 0.6; cursor: wait; }
.ys-welcome-cta:not(:disabled):hover { transform: translateY(-1px); }
.ys-welcome-cta:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 3px;
}

.ys-welcome-cta-primary {
	background: var(--ys-purple);
	color: #fff;
}
.ys-welcome-cta-secondary {
	background: #fff;
	color: var(--ys-ink);
	border-color: var(--ys-border);
}

/* Icon at top of card — 36px bold */
.ys-welcome-cta-icon {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	display: block;
	margin-bottom: 26px;
}
.ys-welcome-cta-icon-explore {
	font-size: 32px;
	color: var(--ys-purple);
}
.ys-welcome-cta-primary .ys-welcome-cta-icon { color: #fff; }

/* Title — 21px bold */
.ys-welcome-cta-title {
	display: block;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 12px;
}

/* Description — 16px regular, multi-line */
.ys-welcome-cta-sub {
	display: block;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}
.ys-welcome-cta-primary .ys-welcome-cta-sub { color: rgba(255,255,255,0.9); }
.ys-welcome-cta-secondary .ys-welcome-cta-sub { color: var(--ys-muted); }

@media (max-width: 1100px) {
	.ys-welcome-preview-panel { flex: 0 0 360px; max-width: 360px; }
	.ys-welcome-sf { width: 360px; }
	.ys-welcome-sf-na-badge { left: 42px; }
}
@media (max-width: 960px) {
	.ys-welcome-hero-main { flex-direction: column; }
	.ys-welcome-preview-panel { flex: 1 1 auto; max-width: 425px; }
	.ys-welcome-sf { width: 100%; }
	.ys-welcome-h1 { font-size: 28px; }
}
@media (max-width: 680px) {
	.ys-welcome-hero { padding: 24px; }
	.ys-welcome-ctas { flex-direction: column; }
	.ys-welcome-h1 { font-size: 24px; }
}

/* ============================================================
   Presentation Builder shell — Figma 3581:380
   ============================================================ */

/* Outer container — body class ys-discovery-page suppresses WP admin notices.
   The builder replaces the AdminShell entirely; no .ys-admin-shell wrapper. */
.ys-builder {
	font: 14px/1.45 'YS Inter', Inter, sans-serif;
	color: var(--ys-ink);
	background: var(--ys-surface);
	min-height: 100vh;
	box-sizing: border-box;
}
.ys-builder * { box-sizing: border-box; }
.ys-builder h1, .ys-builder h2, .ys-builder h3, .ys-builder p { margin: 0; font-family: inherit; }
.ys-builder a:focus-visible { outline: 3px solid var(--ys-purple); outline-offset: 3px; }

/* ── Fixed header (80px) ── */
.ys-builder-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: #fff;
	border-bottom: 1px solid var(--ys-border);
	z-index: 101;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 24px;
}

.ys-builder-header-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.ys-builder-header-brand-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-builder-header-context {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	overflow: hidden;
}
.ys-builder-header-type {
	font-size: 13px;
	color: var(--ys-muted);
	font-weight: 500;
	white-space: nowrap;
}
.ys-builder-header-sep { color: var(--ys-border); font-size: 16px; }
.ys-builder-header-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--ys-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}
.ys-builder-header-dirty {
	font-size: 12px;
	color: var(--ys-muted);
	font-style: italic;
	white-space: nowrap;
	flex-shrink: 0;
}

.ys-builder-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ys-builder-btn-draft {
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ys-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}
.ys-builder-btn-draft:hover:not(:disabled) { background: var(--ys-surface); }
.ys-builder-btn-draft:disabled { opacity: 0.6; cursor: wait; }

.ys-builder-btn-exit {
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	color: var(--ys-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}
.ys-builder-btn-exit:hover:not(:disabled) { background: var(--ys-surface); }

/* ── Fixed dark sidebar (200px) ── */
.ys-builder-sidebar {
	position: fixed;
	top: 80px;
	left: 0;
	bottom: 0;
	width: 200px;
	background: #192329;
	color: #fff;
	z-index: 101;
	display: flex;
	flex-direction: column;
	padding: 16px 8px;
	overflow-y: auto;
}

.ys-builder-back-btn {
	width: 100%;
	height: 40px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 6px;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	padding: 0 12px;
	margin-bottom: 20px;
	transition: background 0.15s;
}
.ys-builder-back-btn:hover { background: rgba(255,255,255,0.13); }
.ys-builder-back-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }

.ys-builder-sidebar-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.45);
	padding: 0 4px;
	margin-bottom: 8px;
}

/* Step list */
.ys-builder-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ys-builder-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 8px;
	border-radius: 6px;
	background: transparent;
	transition: background 0.15s;
}
.ys-builder-step-active {
	background: var(--ys-purple);
}
.ys-builder-step-done,
.ys-builder-step-navigable { cursor: pointer; }
.ys-builder-step-done:hover,
.ys-builder-step-navigable:hover { background: rgba(255,255,255,0.08); }

.ys-builder-step-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.ys-builder-step-active .ys-builder-step-num {
	background: rgba(255,255,255,0.25);
}
.ys-builder-step-done .ys-builder-step-num {
	background: rgba(255,255,255,0.18);
}

.ys-builder-step-label {
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255,255,255,0.75);
	line-height: 1.3;
}
.ys-builder-step-active .ys-builder-step-label { color: #fff; font-weight: 600; }

/* Sidebar bottom note */
.ys-builder-sidebar-note {
	margin-top: auto;
	padding-top: 20px;
	padding: 20px 4px 0;
	font-size: 10.5px;
	color: rgba(255,255,255,0.4);
	line-height: 1.5;
}
.ys-builder-sidebar-note a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
}
.ys-builder-sidebar-note a:hover { color: #fff; }

/* ── Scrollable main content ── */
.ys-builder-main {
	margin-left: 200px;
	padding-top: 80px;
	min-height: 100vh;
}

/* ── Fixed footer (78px) ── */
.ys-builder-footer {
	position: fixed;
	bottom: 0;
	left: 200px;
	right: 0;
	height: 78px;
	background: #fff;
	border-top: 1px solid var(--ys-border);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
}
.ys-builder-footer-step {
	font-size: 13px;
	font-weight: 500;
	color: var(--ys-muted);
}
.ys-builder-footer-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
/* Save & Exit hover/focus — builder footer secondary buttons */
.ys-builder-footer-actions .ys-admin-button-secondary:hover:not(:disabled) {
	background: var(--ys-surface);
	border-color: #b2bfd4;
}
.ys-builder-footer-actions .ys-admin-button-secondary:focus-visible:not(:disabled) {
	outline: 2px solid var(--ys-purple);
	outline-offset: 2px;
}

/* ============================================================
   Builder Step 1 — Presentation Name (Figma 3581:381)
   ============================================================ */

.ys-builder-step1 {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 80px - 78px); /* viewport minus header + footer */
}

.ys-builder-step1-layout {
	flex: 1;
	display: flex;
	gap: 32px;
	padding: 40px 32px;
}

.ys-builder-step1-form {
	flex: 0 0 460px;
	max-width: 460px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ys-builder-step-heading {
	font-size: 30px;
	font-weight: 700;
	color: var(--ys-ink);
	line-height: 1.2;
}

.ys-builder-step-sub {
	font-size: 15px;
	color: var(--ys-muted);
	line-height: 1.5;
	margin-top: 8px;
}

/* Form fields */
.ys-builder-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ys-builder-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
}
.ys-builder-field-desc {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
}
.ys-builder-input {
	width: 430px;
	max-width: 100%;
	height: 48px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 0 14px;
	font-size: 15px;
	color: var(--ys-ink);
	background: #fff;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-builder-input:focus {
	outline: none;
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px var(--ys-pale);
}
.ys-builder-input::placeholder { color: var(--ys-border); }

/* Required-field validation state for Step 1 Presentation name. */
.ys-builder-input--error {
	border-color: #d63638;
}
.ys-builder-input--error:focus {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba( 214, 54, 56, 0.15 );
}
.ys-builder-field-error {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: #d63638;
	line-height: 1.4;
}

/* Status toggle */
.ys-builder-toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}
.ys-builder-toggle {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 100px;
	background: var(--ys-border);
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s;
	padding: 0;
}
.ys-builder-toggle-on { background: #22c55e; }
.ys-builder-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ys-builder-toggle-on .ys-builder-toggle-thumb { transform: translateX(18px); }
.ys-builder-toggle-status {
	font-size: 14px;
	font-weight: 500;
	color: var(--ys-ink);
}

/* At-a-glance summary */
.ys-builder-glance {
	border: 1px solid var(--ys-border);
	border-radius: 10px;
	padding: 16px;
	background: #fff;
}
.ys-builder-glance-heading {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}
.ys-builder-glance-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.ys-builder-glance-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--ys-ink);
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ys-builder-glance-status {
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.ys-builder-status-active  { color: #087a43; }
.ys-builder-status-inactive { color: var(--ys-muted); }

/* Right — storefront preview */
.ys-builder-step1-preview {
	flex: 1 1 0;
	min-width: 0;
}

.ys-builder-sf-preview {
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
	max-width: 480px;
}
.ys-builder-sf-preview-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--ys-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 16px 20px 8px;
	border-bottom: 1px solid var(--ys-border);
}

.ys-builder-sf-product-card {
	display: flex;
	gap: 16px;
	padding: 20px;
	align-items: flex-start;
}
.ys-builder-sf-imgwrap {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
}
.ys-builder-sf-imgwrap img {
	display: block;
	border-radius: 8px;
	object-fit: cover;
}
/* Step 1 storefront-preview corner-ribbon tuning (mirrors the Step 2 preview). The Step 1
   product thumbnail is a fixed 180px square; without this the corner-ribbon used the default
   badge font-size (its text overflowed the band) and the image's rounded corners clipped the
   ribbon oddly. Flatten the ribbon ends (border-radius:0) and scale the text to the thumbnail
   so the ribbon reads correctly and is clipped cleanly to the image edges by overflow:hidden.
   This corrects the PREVIEW container/scale only — the approved storefront Ribbon geometry is
   unchanged. */
.ys-builder-sf-imgwrap .ys-qb-design-corner-ribbon {
	border-radius: 0;
	font-size: 9px;
}
.ys-builder-sf-savings-chip {
	position: absolute;
	left: 0;
	right: 0;
	height: 28px;
	background: #da173a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	line-height: 28px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ys-builder-sf-qb-chip {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #FF1237;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}
.ys-builder-sf-ab-strip {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--ys-ink);
	color: #fff;
	font-size: 9px;
	text-align: center;
	padding: 5px 6px;
}
.ys-builder-sf-product-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 4px;
}
.ys-builder-sf-pname {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}
.ys-builder-sf-prices {
	display: flex;
	gap: 8px;
	align-items: baseline;
}
.ys-builder-sf-price-now {
	font-size: 18px;
	font-weight: 700;
	color: var(--ys-ink);
}
.ys-builder-sf-price-was {
	font-size: 13px;
	color: var(--ys-muted);
	text-decoration: line-through;
}
.ys-builder-sf-save-line {
	font-size: 12px;
	color: var(--ys-purple);
	font-weight: 600;
}

/* ============================================================
   Builder Step shells (Steps 2, 3, 4)
   ============================================================ */

.ys-builder-shell-step {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 80px - 78px);
}
.ys-builder-shell-main {
	flex: 1;
	padding: 40px 32px;
	max-width: 640px;
}

.ys-builder-shell-placeholder {
	margin-top: 32px;
	padding: 32px;
	border: 2px dashed var(--ys-border);
	border-radius: 12px;
	background: #fff;
	text-align: center;
	color: var(--ys-muted);
}
.ys-builder-shell-placeholder-icon {
	display: block;
	font-size: 32px;
	margin-bottom: 12px;
}
.ys-builder-shell-placeholder p {
	font-size: 14px;
	margin: 0;
}

/* ============================================================
   Builder Step 2 — Savings Badge (Product Label)
   Figma: node 3581:510
   ============================================================ */

/* ── Page shell ── */
.ys-step2 {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 80px - 78px);
}

/* Two-column layout: controls (flex-grow) + preview panel (fixed) */
.ys-step2-layout {
	flex: 1;
	display: flex;
	gap: 40px;
	padding: 32px 32px 0;
	align-items: flex-start;
}

/* ── Left: controls column ── */
.ys-step2-controls {
	flex: 1 1 0;
	min-width: 0;
	max-width: 660px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-bottom: 96px; /* clears the 78px fixed footer + breathing room */
}

/* Heading + enable toggle row */
.ys-step2-top-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.ys-step2-enable-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	margin-top: 6px;
}

.ys-step2-enable-text {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
}

/* ── Style card + configure row ── */
.ys-step2-style-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

/* Horizontal Strip style card (always selected in Free) */
.ys-step2-style-card {
	flex: 0 0 180px;
	width: 180px;
	border: 2px solid var(--ys-purple);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 0 0 4px var(--ys-pale);
}

/* Style thumbnail — product image + strip overlay */
.ys-step2-style-thumb {
	position: relative;
	width: 100%;
	height: 118px;
	overflow: hidden;
	background: var(--ys-surface);
}

.ys-step2-style-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ys-step2-thumb-strip {
	position: absolute;
	left: 0;
	right: 0;
	padding: 5px 0;
	min-height: 24px;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.03em;
}

/* Style card text info */
.ys-step2-style-info {
	padding: 10px 12px 12px;
	border-top: 1px solid var(--ys-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ys-step2-style-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step2-style-desc {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

.ys-step2-style-pos {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
	margin-top: 8px;
}

/* ── Configure panel ── */
.ys-step2-config {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ys-step2-config-heading {
	/* R2: "Configure X" builder-config heading. Harmonized with the Quick Badge
	   equivalent (.ys-qb-config__type-heading) so the same semantic role reads at one
	   size/weight across builders. */
	font-size: 18px;
	font-weight: 700;
	color: var(--ys-ink);
	margin: 0;
}

/* Narrower message input (matches configure panel width) */
.ys-step2-msg-input {
	width: 100% !important;
}

/* Token insert buttons */
.ys-step2-tokens {
	display: flex;
	gap: 8px;
	margin-top: -8px;
}

.ys-step2-token-btn {
	font-size: 12px;
	font-weight: 500;
	font-family: 'Courier New', Courier, monospace;
	color: var(--ys-purple);
	background: var(--ys-pale);
	border: 1px solid #c4a8ff;
	border-radius: 5px;
	padding: 4px 10px;
	cursor: pointer;
	transition: background 0.12s;
}

.ys-step2-token-btn:hover { background: #e5d9ff; }
.ys-step2-token-btn:focus-visible { outline: 2px solid var(--ys-purple); outline-offset: 2px; }

/* Position select */
/* Position custom dropdown */
.ys-pos-select {
	position: relative;
}

.ys-pos-select-btn {
	width: 100%;
	height: 44px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 0 12px 0 14px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ys-ink);
	background: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	transition: border-color 0.15s, box-shadow 0.15s;
	text-align: left;
}

.ys-pos-select-btn:focus-visible {
	outline: none;
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px var(--ys-pale);
}

.ys-pos-select-btn[aria-expanded="true"] {
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px var(--ys-pale);
}

.ys-pos-select-val {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ys-pos-select-chevron {
	flex-shrink: 0;
	color: var(--ys-muted);
	transition: transform 0.15s;
}

.ys-pos-select-btn[aria-expanded="true"] .ys-pos-select-chevron {
	transform: rotate(180deg);
}

.ys-pos-select-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	z-index: 200;
	list-style: none;
	margin: 0;
	padding: 4px;
}

.ys-pos-select-option {
	padding: 9px 12px;
	font-size: 14px;
	color: var(--ys-ink);
	cursor: pointer;
	border-radius: 6px;
	user-select: none;
}

.ys-pos-select-option[aria-selected="true"] {
	font-weight: 600;
	color: var(--ys-purple);
}

.ys-pos-select-option-focused {
	background: var(--ys-surface);
}

/* Colors row */
.ys-step2-colors {
	display: flex;
	gap: 16px;
}

.ys-step2-color-field {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Color picker + hex input */
.ys-color-input {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 0 12px;
	background: #fff;
	transition: border-color 0.15s;
}

.ys-color-input:focus-within {
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px var(--ys-pale);
}

.ys-color-swatch-input {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: none;
	flex-shrink: 0;
}

.ys-color-swatch-input::-webkit-color-swatch-wrapper { padding: 0; }
.ys-color-swatch-input::-webkit-color-swatch { border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.12); }

.ys-color-hex-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 13px;
	font-family: 'Courier New', Courier, monospace;
	color: var(--ys-ink);
	background: transparent;
	min-width: 0;
}

/* Contrast indicator */
.ys-step2-contrast {
	font-size: 12px;
	color: var(--ys-muted);
	margin: 0;
}

.ys-step2-contrast-warn {
	color: #c45e00;
}

/* ── Pro discovery section ── */
.ys-step2-pro {
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.ys-step2-pro-hd {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--ys-border);
	background: var(--ys-pale);
}

.ys-step2-pro-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
	margin: 0 0 3px;
}

.ys-step2-pro-sub {
	font-size: 12px;
	color: var(--ys-muted);
	margin: 0;
}

.ys-step2-pro-cta {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-purple);
	text-decoration: none;
	white-space: nowrap;
	padding-top: 2px;
}

.ys-step2-pro-cta:hover { text-decoration: underline; }

/* Three Pro family cards */
.ys-step2-pro-cards {
	display: flex;
}

.ys-step2-pro-card {
	flex: 1;
	padding: 14px 14px 16px;
	border-right: 1px solid var(--ys-border);
}

.ys-step2-pro-card:last-child { border-right: none; }

.ys-step2-pro-card-titlerow {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.ys-step2-pro-card-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step2-crown-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 18px;
	background: #f0e6ff;
	border-radius: 4px;
	color: #6a1de0;
	flex-shrink: 0;
}

/* Pro card product thumbnail */
.ys-step2-pro-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 10px;
	background: var(--ys-surface);
}

.ys-step2-pro-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.85;
}

.ys-step2-pro-card-desc {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

/* ── Pro label overlays (CSS-drawn) ── */
.ys-pro-overlay {
	position: absolute;
}

/* Ribbon: narrow diagonal promotional band, upper-left — Figma proportions */
.ys-pro-overlay-ribbon {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* The band itself: a rectangle rotated -45° across the upper-left corner.
   Geometry derived from Figma 135 px thumbnail: band ≈ 71 % wide × 14 % tall,
   centre at (20 %, 18 %) of thumbnail. translate(-50%,-50%) shifts origin to
   the specified centre point; rotate(-45deg) then tilts it diagonally. */
.ys-pro-overlay-ribbon-band {
	position: absolute;
	left: 20%;
	top: 18%;
	width: 71%;
	height: 14%;
	background: var(--ys-purple);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%) rotate(-45deg);
	white-space: nowrap;
	overflow: hidden;
	font-size: 7px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	line-height: 1;
}

/* Compact Pill: rounded badge top-right — unchanged */
.ys-pro-overlay-pill {
	top: 7px;
	right: 7px;
	background: var(--ys-purple);
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	padding: 3px 6px;
	border-radius: 100px;
	white-space: nowrap;
}

/* Corner Flag: right-angled triangle top-right, Figma proportions (~44 % of
   thumbnail, matching 98 px flag in 224 px Figma desktop product image).
   clip-path polygon(0 0, 100% 0, 100% 100%) = vertices top-left/top-right/
   bottom-right, matching the Figma SVG triangle shape. */
.ys-pro-overlay-flag {
	top: 0;
	right: 0;
	width: 44%;
	height: 44%;
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	background: var(--ys-purple);
	overflow: hidden;
}

/* Text centered at triangle centroid (67 %, 33 %), rotated 45 ° clockwise
   to read along the hypotenuse (top-left → bottom-right direction). */
.ys-pro-overlay-flag-text {
	position: absolute;
	top: 33%;
	left: 67%;
	transform: translate(-50%, -50%) rotate(45deg);
	font-size: 7px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	text-align: center;
	pointer-events: none;
	line-height: 1.2;
}

/* ── Right: storefront preview panel ── */
.ys-step2-preview-panel {
	flex: 0 0 388px;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
	position: sticky;
	top: 96px;
	align-self: flex-start;
}

.ys-step2-sf-hd {
	padding: 16px 18px 13px;
	border-bottom: 1px solid var(--ys-border);
}

.ys-step2-sf-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 3px;
}

.ys-step2-sf-sub {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
}

/* Device tabs */
.ys-step2-sf-tabs {
	display: flex;
	border-bottom: 1px solid var(--ys-border);
}

.ys-step2-sf-tab {
	flex: 1;
	padding: 9px 4px;
	font-size: 13px;
	font-family: inherit;
	color: var(--ys-muted);
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.12s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}

.ys-tab-label { font-size: 11px; }
.ys-tab-width { font-size: 9px; font-variant-numeric: tabular-nums; }
.ys-step2-sf-tab.ys-active .ys-tab-width { color: var(--ys-purple); }

.ys-step2-sf-tab.ys-active {
	color: var(--ys-purple);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 var(--ys-purple);
}

.ys-step2-sf-tab:hover:not(.ys-active) { color: var(--ys-ink); }
.ys-step2-sf-tab:focus-visible { outline: 2px solid var(--ys-purple); outline-offset: -2px; }

/* Preview product card */
.ys-step2-sf-body {
	padding: 16px;
}

.ys-step2-sf-product {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Device-specific card widths — simulates viewport column proportions.
   Desktop (1440 px) → narrow grid column; Mobile (390 px) → full-width card.
   Compound selectors: ys-sf-* class lives on the same element as ys-step2-sf-product. */
.ys-step2-sf-product.ys-sf-desktop { max-width: 170px; }
.ys-step2-sf-product.ys-sf-tablet  { max-width: 230px; }

/* Square product thumbnails */
.ys-step2-sf-imgwrap { aspect-ratio: 1; }

/* Badge text scales with card size */
.ys-sf-desktop .ys-step2-sf-strip { font-size: 10px; padding: 5px 8px;   min-height: 20px; }
.ys-sf-tablet  .ys-step2-sf-strip { font-size: 11px; padding: 6px 10px; min-height: 23px; }

.ys-step2-sf-imgwrap {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
}

.ys-step2-sf-imgwrap > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Corner Ribbon text is sized for full storefront images; in the much smaller right-side
   live preview the same font looks compressed. Scale only the ribbon's font down in the
   preview (geometry/proportions unchanged; storefront font untouched). */
/* The ribbon's own zero-radius is overridden by a later generic .ys-qb-badge
   border-radius:20px (equal specificity, later in source). Re-assert square ends on the
   actual ribbon element so the image boundary — not a pill radius — slices its ends. */
.ys-step2-sf-imgwrap .ys-qb-design-corner-ribbon { border-radius: 0; font-size: 9px; }
.ys-sf-tablet .ys-step2-sf-imgwrap .ys-qb-design-corner-ribbon { font-size: 8px; }
.ys-step2-sf-product:not(.ys-sf-desktop):not(.ys-sf-tablet) .ys-step2-sf-imgwrap .ys-qb-design-corner-ribbon { font-size: 7px; }

/* Live strip label in preview */
.ys-step2-sf-strip {
	position: absolute;
	left: 0;
	right: 0;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0.03em;
	min-height: 28px;
}

.ys-step2-sf-pname {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step2-sf-prices {
	display: flex;
	gap: 8px;
	align-items: baseline;
}

/* Reuse existing price classes from Step 1 */

.ys-step2-sf-note {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
	padding: 10px 18px 14px;
	border-top: 1px solid var(--ys-border);
	line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 3 — WHERE TO DISPLAY
   Figma: CHOXEclayHrB690kpKuDzf · node 3570:1245
   ═══════════════════════════════════════════════════════════════════ */

.ys-step3 {
	display: flex;
	flex-direction: column;
	min-height: calc( 100vh - 80px - 78px );
}

.ys-step3-layout {
	display: flex;
	flex-direction: row;
	gap: 32px;
	padding: 32px 32px 96px;
	flex: 1;
}

.ys-step3-controls {
	flex: 1 1 0;
	max-width: 580px;
}

.ys-step3-panels {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 64px;
}

/* ── Targeting cards ── */

.ys-step3-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.ys-step3-card {
	background: #fff;
	border: 1.5px solid var(--ys-border);
	border-radius: 9px;
	cursor: pointer;
	transition: border-color 0.14s ease;
	outline: none;
}

.ys-step3-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(100, 28, 255, 0.18);
}

.ys-step3-card-selected {
	border-color: var(--ys-purple);
}

.ys-step3-card-header {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 15px;
}

.ys-step3-radio {
	font-size: 20px;
	line-height: 1.4;
	color: var(--ys-muted);
	flex-shrink: 0;
	margin-top: 1px;
	transition: color 0.12s ease;
}

.ys-step3-radio-selected {
	color: var(--ys-purple);
}

.ys-step3-card-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
	margin-bottom: 2px;
}

.ys-step3-card-desc {
	font-size: 14px;
	color: var(--ys-muted);
}

.ys-step3-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 15px 16px 47px;
}

.ys-step3-sub-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	margin-top: 4px;
}

/* ── Checkbox group (product types) ── */

.ys-step3-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-step3-checkbox-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--ys-ink);
	outline: none;
	border-radius: 4px;
	user-select: none;
}

.ys-step3-checkbox-item:focus-visible {
	box-shadow: 0 0 0 2px rgba(100, 28, 255, 0.22);
}

.ys-step3-checkbox {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	border: 1.5px solid #b0bac8;
	background: #fff;
	flex-shrink: 0;
	font-size: 12px;
	color: #fff;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.ys-step3-checkbox-checked {
	background: var(--ys-purple);
	border-color: var(--ys-purple);
}

.ys-step3-type-hint {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 2px 0 0;
}

/* ── Validation error ── */

.ys-step3-error {
	font-size: 13px;
	color: #b35c00;
	background: #fff7ed;
	border: 1px solid #f5c582;
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 14px;
}

/* ── Conflict warning (Step 3) ── */

.ys-step3-conflict-warning {
	font-size: 13px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 14px;
	line-height: 1.5;
}

/* ── Right column panels ── */

.ys-step3-summary-panel {
	background: var(--ys-pale);
	border-radius: 12px;
	padding: 19px 20px;
}

.ys-step3-panel-heading {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 10px;
}

.ys-step3-summary-value {
	font-size: 17px;
	font-weight: 600;
	color: var(--ys-purple);
	margin: 0 0 6px;
}

.ys-step3-summary-detail {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════
   MULTI-SEARCH SELECT  (.ys-mss-*)
   ═══════════════════════════════════════════════════════════════════ */

.ys-mss-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-mss-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ys-mss-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--ys-pale);
	color: var(--ys-purple);
	font-size: 12px;
	font-weight: 600;
	height: 26px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid rgba(100, 28, 255, 0.2);
}

.ys-mss-chip-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--ys-purple);
	font-size: 15px;
	line-height: 1;
	padding: 0 0 0 2px;
	opacity: 0.7;
}

.ys-mss-chip-remove:hover {
	opacity: 1;
}

.ys-mss-input-row {
	position: relative;
	display: flex;
	align-items: center;
}

.ys-mss-input {
	width: 100%;
	height: 40px;
	padding: 0 38px 0 12px;
	border: 1.5px solid #7b879b;
	border-radius: 8px;
	font-size: 14px;
	color: var(--ys-ink);
	background: #fff;
	outline: none;
	box-sizing: border-box;
}

.ys-mss-input:focus {
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px rgba(100, 28, 255, 0.12);
}

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

.ys-mss-spinner {
	position: absolute;
	right: 10px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(100, 28, 255, 0.2);
	border-top-color: var(--ys-purple);
	border-radius: 50%;
	animation: ys-spin 0.7s linear infinite;
	pointer-events: none;
}

.ys-mss-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1.5px solid var(--ys-border);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(16, 19, 45, 0.1);
	z-index: 300;
	max-height: 200px;
	overflow-y: auto;
	margin: 0;
	padding: 4px 0;
	list-style: none;
}

.ys-mss-option {
	padding: 9px 13px;
	font-size: 14px;
	color: var(--ys-ink);
	cursor: pointer;
}

.ys-mss-option-focused,
.ys-mss-option:hover {
	background: var(--ys-pale);
	color: var(--ys-purple);
}

.ys-mss-empty {
	padding: 10px 13px;
	font-size: 13px;
	color: var(--ys-muted);
	list-style: none;
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 4 — REVIEW & SAVE
   Figma: CHOXEclayHrB690kpKuDzf · Final root 3567:674 · node 3570:1274
   ═══════════════════════════════════════════════════════════════════ */

.ys-step4 {
	display: flex;
	flex-direction: column;
	min-height: calc( 100vh - 80px - 78px );
}

/* Two-column layout: review cards (left, flex) + preview panel (right, fixed) */
.ys-step4-layout {
	flex: 1;
	display: flex;
	gap: 40px;
	padding: 32px 32px 0;
	align-items: flex-start;
}

/* ── Left: review cards column ── */

.ys-step4-review {
	flex: 1 1 0;
	min-width: 0;
	max-width: 540px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 96px;
}

/* Individual review card */
.ys-step4-card {
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 10px;
	padding: 18px 20px 20px;
}

.ys-step4-card-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ys-step4-card-heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ys-muted);
	margin: 0;
}

.ys-step4-edit-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-purple);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	flex-shrink: 0;
}

.ys-step4-edit-link:hover { text-decoration: underline; }
.ys-step4-edit-link:focus-visible { outline: 2px solid var(--ys-purple); outline-offset: 2px; border-radius: 2px; }

.ys-step4-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Presentation name card */
.ys-step4-name-value {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step4-status-pill {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.ys-step4-status-active {
	background: #eaf7f0;
	color: #087a43;
}

.ys-step4-status-inactive {
	background: #f2f4f7;
	color: var(--ys-muted);
}

/* Product label card — definition list */
.ys-step4-dl {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.ys-step4-dl-row {
	display: flex;
	gap: 12px;
	font-size: 13.5px;
	line-height: 1.4;
}

.ys-step4-dl-row dt {
	color: var(--ys-muted);
	min-width: 68px;
	font-weight: 500;
	flex-shrink: 0;
}

.ys-step4-dl-row dd {
	color: var(--ys-ink);
	margin: 0;
	font-weight: 500;
}

.ys-step4-dl-mono {
	font-family: 'Courier New', Courier, monospace;
	font-size: 13px;
}

/* Color swatches row */
.ys-step4-dl-row-colors dd { display: flex; flex-direction: column; gap: 6px; }

.ys-step4-swatches {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-step4-color-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ys-step4-swatch-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--ys-muted);
	min-width: 76px;
}

.ys-step4-swatch {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid rgba(0, 0, 0, 0.12);
	flex-shrink: 0;
	vertical-align: middle;
}

.ys-step4-label-off {
	font-size: 13.5px;
	color: var(--ys-muted);
	font-style: italic;
	margin: 0;
}

/* Targeting card */
.ys-step4-targeting-mode {
	font-size: 15px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step4-targeting-names {
	font-size: 13.5px;
	color: var(--ys-purple);
	font-weight: 500;
	margin: 2px 0 0;
}

.ys-step4-targeting-sub {
	font-size: 12.5px;
	color: var(--ys-muted);
	margin: 0;
}

/* Global savings messages panel */
.ys-step4-global-msg {
	background: var(--ys-pale);
	border: 1px solid #c4a8ff;
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-step4-global-msg-text {
	font-size: 13.5px;
	color: var(--ys-ink);
	font-weight: 500;
	margin: 0;
}

.ys-step4-global-msg-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-purple);
	text-decoration: none;
}

.ys-step4-global-msg-link:hover { text-decoration: underline; }

/* Publish error */
.ys-step4-publish-error {
	font-size: 13px;
	color: #b30f2b;
	background: #fff1f3;
	border: 1px solid #f9a8b5;
	border-radius: 6px;
	padding: 10px 16px;
	margin: 0 32px 16px;
}

/* Save error shown above the footer in Steps 1–3 */
.ys-builder-save-error {
	font-size: 13px;
	color: #b30f2b;
	background: #fff1f3;
	border: 1px solid #f9a8b5;
	border-radius: 6px;
	padding: 10px 16px;
	margin: 0 32px 16px;
}

/* ── Right: storefront preview panel (D1: no device tabs) ── */

.ys-step4-preview-panel {
	flex: 0 0 388px;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
	position: sticky;
	top: 96px;
	align-self: flex-start;
}

.ys-step4-preview-hd {
	padding: 16px 18px 13px;
	border-bottom: 1px solid var(--ys-border);
}

.ys-step4-preview-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 3px;
}

.ys-step4-preview-sub {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
}

.ys-step4-preview-body {
	padding: 16px;
}

/* The shared SavingsBadgeStorefrontPreview uses ys-step2-sf-* classes.
   On Step 4 there is no device tab so the product card fills the panel width. */
.ys-step4-preview-body .ys-step2-sf-product {
	max-width: 100%;
}

.ys-step4-preview-note {
	font-size: 11px;
	color: var(--ys-muted);
	margin: 0;
	padding: 10px 18px 14px;
	border-top: 1px solid var(--ys-border);
	line-height: 1.5;
}

/* C2: Advisory collision warning — non-blocking, shown when an active QB shares the same edge. */
.ys-step4-conflict-warning {
	margin: 16px 24px 0;
	padding: 10px 14px;
	background: #fef9e7;
	border-left: 3px solid #e6a817;
	font-size: 13px;
	line-height: 1.5;
	color: #3c3100;
	border-radius: 0 3px 3px 0;
}


/* ── QB Review — editable Presentation card fields ──────────────── */

/* "Presentation name" label above the editable input on QB Review */
.ys-step4-field-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ys-muted);
	margin-bottom: 6px;
}

/* Editable name input on QB Review — full width inside the card */
.ys-step4-name-input {
	width: 100%;
	box-sizing: border-box;
}

/* Status toggle row inside the Presentation card */
.ys-step4-status-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Text rows within QB Review section cards */
.ys-step4-review-primary {
	font-size: 15px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

.ys-step4-review-secondary {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.45;
}

/* ── fromReview breadcrumb ─────────────────────────────────────── */

/* Shown in Step 2 and Step 3 footer when merchant entered from Review's Edit button */
.ys-builder-from-review-hint {
	font-size: 12px;
	color: var(--ys-muted);
	text-align: center;
	margin: 0 0 10px;
	opacity: 0.8;
}

/* ============================================================
   Global Settings — Savings Messages (§2.16, DEP-14)
   Figma source: node 4191:5167. Split-panel layout: editor left,
   storefront preview right. Fixed footer action bar.
   ============================================================ */

/* Page wrap — no max-width; uses full AdminShell content area.
   Bottom padding clears the fixed 68px footer bar. */
.ys-gs-wrap {
	padding: 30px 32px 88px;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.ys-gs-heading {
	margin-bottom: 28px;
}

.ys-gs-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ys-ink);
	margin: 0 0 8px;
	text-wrap: balance;
}

.ys-gs-subtitle {
	font-size: 14px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.5;
}

.ys-gs-loading {
	font-size: 14px;
	color: var(--ys-muted);
	margin: 0;
}

/* ── Notice ──────────────────────────────────────────────────────────────── */

.ys-gs-notice {
	margin-bottom: 20px;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
}

.ys-gs-notice--success {
	background: #edfcf2;
	border: 1px solid #aad8ba;
	color: #1a5c37;
}

.ys-gs-notice--error {
	background: #fff4f4;
	border: 1px solid #f5c5c5;
	color: #8b2020;
}

/* ── Surface list ────────────────────────────────────────────────────────── */

.ys-gs-surfaces {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Individual surface card ─────────────────────────────────────────────── */

.ys-gs-surface {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	overflow: hidden;
}

/* Split-panel inner layout: editor (left) / storefront preview (right) */
.ys-gs-surface-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 220px;
}

/* ── Editor panel (left) ─────────────────────────────────────────────────── */

.ys-gs-surface-editor {
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-right: 1px solid var(--ys-border);
}

/* Top row: title/desc left, toggle right */
.ys-gs-surface-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

.ys-gs-surface-labels {
	flex: 1;
	min-width: 0;
}

.ys-gs-surface-title {
	font-size: 20px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0 0 4px;
	line-height: 1.3;
}

.ys-gs-surface-desc {
	font-size: 14px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

/* ── Toggle — 42x24px, top-right corner of card editor (Figma) ───────────── */

.ys-gs-toggle {
	flex: none;
	width: 42px;
	height: 24px;
	border: none;
	border-radius: 12px;
	background: var(--ys-border);
	padding: 2px;
	cursor: pointer;
	transition: background 0.15s;
}

.ys-gs-toggle--on {
	background: var(--ys-purple);
}

.ys-gs-toggle:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

.ys-gs-toggle-thumb {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 1px 3px rgba(0,0,0,.18);
	transition: transform 0.15s;
}

.ys-gs-toggle--on .ys-gs-toggle-thumb {
	transform: translateX(18px);
}

/* ── Template fields ─────────────────────────────────────────────────────── */

.ys-gs-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/*
 * Disabled state: Figma does not define an explicit disabled-card treatment
 * (all 5 surfaces are on in node 4191:5167). Implemented as a dimmed,
 * stable-height state: card structure intact, fields dimmed to signal
 * the surface is off. This avoids a collapsed-card interaction without
 * a Figma-approved alternative.
 */
.ys-gs-fields--off {
	opacity: 0.4;
	pointer-events: none;
}

.ys-gs-field-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
}

.ys-gs-field-input {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #7b879b;
	border-radius: 8px;
	font-size: 14px;
	color: var(--ys-ink);
	background: white;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ys-gs-field-input:focus {
	outline: none;
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px rgba(100,28,255,.12);
}

.ys-gs-field-input:disabled {
	background: var(--ys-surface);
	color: var(--ys-muted);
	cursor: not-allowed;
}
/* Doubled class raises specificity to (0,2,0) so it beats the base (0,1,0) rule reliably. */
.ys-gs-field-input.ys-gs-field-input--error {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.ys-gs-field-error {
	font-size: 12px;
	color: #c0392b;
	margin: 0;
	line-height: 1.4;
}

.ys-gs-field-hint {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

.ys-gs-field-hint code {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: 11px;
	background: var(--ys-pale);
	padding: 1px 4px;
	border-radius: 3px;
	color: var(--ys-purple);
}

/* ── Preview panel (right) ───────────────────────────────────────────────── */

.ys-gs-surface-preview {
	background: var(--ys-surface);
	padding: 16px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.ys-gs-prev-wrap {
	width: 100%;
}

/* Savings message text — Figma: #da173a SemiBold 13px */
.ys-gs-prev-savings {
	font-size: 13px;
	font-weight: 600;
	color: #da173a;
	line-height: 1.4;
	display: block;
	margin-top: 2px;
}

/* Product Page preview */
.ys-gs-prev-product {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
}

/* Figma: product-photo-matte #f6f3ec — left column of side-by-side product card */
.ys-gs-prev-photo {
	background: #f6f3ec;
	flex: none;
	width: 100px;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.ys-gs-prev-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ys-gs-prev-info {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.ys-gs-prev-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
	line-height: 1.3;
}

.ys-gs-prev-prices {
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.ys-gs-prev-was {
	font-size: 14px;
	color: var(--ys-muted);
	text-decoration: line-through;
}

.ys-gs-prev-now {
	font-size: 16px;
	font-weight: 600;
	color: var(--ys-ink);
}

/* Shop / Archive preview — two-card mini grid */
.ys-gs-prev-shop-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ys-gs-prev-shop-card {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	overflow: hidden;
}

/* Figma 4191:5268/5275 — square container, image uses object-contain (matches Figma) */
.ys-gs-prev-shop-photo {
	background: #f6f3ec;
	width: 100%;
	/* Reduce the sample product image's dominance in the Shop/Archive Savings Message
	   preview (~25% shorter: height = width × 3/4 instead of the previous square), so the
	   savings message and price read as the subject while the product-card context stays
	   clear. The image uses object-fit:contain, so it simply recenters in the shorter box
	   — no stretching or clipping. Admin-preview only; selector is isolated from the other
	   Savings Message previews and absent from all storefront stylesheets. */
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}
.ys-gs-prev-shop-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Cart Item preview */
.ys-gs-prev-cart {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 12px;
}

.ys-gs-prev-cart-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.ys-gs-prev-thumb {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 4px;
	background: #f6f3ec;
}

.ys-gs-prev-thumb--sm {
	width: 34px;
	height: 34px;
}

.ys-gs-prev-cart-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.ys-gs-prev-cart-price {
	font-size: 13px;
	color: var(--ys-muted);
}

/* Savings row — accurate WooCommerce table row representation */
.ys-gs-prev-savings-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	padding: 5px 0;
	border-radius: 5px;
	gap: 8px;
}

/* Inline mode: red message text, full width */
.ys-gs-prev-savings-inline .ys-gs-prev-savings {
	font-size: 13px;
	font-weight: 600;
	color: #da173a;
}

/* Highlighted Amount mode: pale background, message left, amount right */
.ys-gs-prev-savings-highlighted {
	padding: 6px 10px;
}

.ys-gs-prev-savings-highlighted .ys-gs-prev-savings-text {
	font-size: 13px;
	font-weight: 600;
	color: #10132d;
	flex: 1;
}

.ys-gs-prev-savings-highlighted .ys-gs-prev-savings-amount {
	font-size: 18px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Cart Total preview */
.ys-gs-prev-totals {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ys-gs-prev-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--ys-muted);
}

.ys-gs-prev-totals-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

/* Checkout preview */
.ys-gs-prev-co {
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-gs-prev-co-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ys-gs-prev-co-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ys-gs-prev-divider {
	border: none;
	border-top: 1px solid var(--ys-border);
	margin: 2px 0;
}

/* ── Fixed footer action bar ─────────────────────────────────────────────── */

/*
 * Figma: position=fixed, left=200px (nav), height=68px, padding=0 20px,
 * space-between layout: secondary ("Global Settings") left, primary
 * ("Save changes") right.
 */
.ys-gs-footer-bar {
	position: fixed;
	bottom: 0;
	left: 200px;
	right: 0;
	height: 68px;
	background: white;
	border-top: 1px solid var(--ys-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 32px;
	z-index: 100;
}

.ys-gs-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	min-width: 200px;
	padding: 0 20px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: white;
	color: var(--ys-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s;
}

.ys-gs-back-btn:hover {
	background: var(--ys-surface);
}

.ys-gs-back-btn:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

.ys-gs-save-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	min-width: 200px;
	padding: 0 20px;
	border: none;
	border-radius: 8px;
	background: var(--ys-purple);
	color: white;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s;
}

.ys-gs-save-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ys-gs-save-btn:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 3px;
}


/* ── Heading row: h1 + "← Back" link ────────────────────────────────────────── */

.ys-gs-heading-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}

/*
 * Figma: Admin shell · ← Back (node 4350:6461) — 96×44px, top-right of
 * content header, same horizontal row as the h1.
 */
.ys-gs-header-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: white;
	color: var(--ys-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.ys-gs-header-back:hover {
	background: var(--ys-surface);
	color: var(--ys-ink);
}

.ys-gs-header-back:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

/* ── Editor enrichments: Example line, token chips, context line ─────────────── */

/* "Example: You save $12.00 (20%)" — resolved template preview */
.ys-gs-example {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

/* Row of clickable token chips */
.ys-gs-token-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Figma: purple monospace text, acts as one-click token inserter */
.ys-gs-token-chip {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-family: 'SFMono-Regular', Consolas, monospace;
	color: var(--ys-purple);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	line-height: 1.4;
}

.ys-gs-token-chip:hover {
	opacity: 0.75;
}

.ys-gs-token-chip:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* "Regular $60.00 · Sale $48.00 · Save $12.00 (20%)" context line */
.ys-gs-context {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
	line-height: 1.4;
}

/* ── Token hint (Highlighted Amount mode) ────────────────────────────────────── */

.ys-gs-token-hint {
	font-size: 12px;
	color: var(--ys-muted);
	font-style: italic;
	line-height: 1.4;
}

/* ── Display style toggle (Cart Total / Checkout) ────────────────────────────── */

.ys-gs-display-style-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-gs-style-toggle {
	display: flex;
	gap: 8px;
}

.ys-gs-style-btn {
	flex: 1;
	height: 44px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: white;
	color: var(--ys-ink);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ys-gs-style-btn:hover:not(:disabled) {
	background: var(--ys-surface);
}

.ys-gs-style-btn--active {
	background: #F2EDFF;
	border-color: var(--ys-purple);
	color: var(--ys-purple);
}

.ys-gs-style-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ys-gs-style-btn:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

/* ── Color inputs (Highlighted Amount: highlight_bg + amount_color) ────────── */

.ys-gs-color-fields {
	display: flex;
	gap: 16px;
}

.ys-gs-color-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-gs-color-field-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ys-gs-color-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 6px 10px;
	background: white;
	transition: border-color 0.15s;
}

.ys-gs-color-input-wrap:focus-within {
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px rgba(100,28,255,.12);
}

.ys-gs-color-input-wrap--disabled {
	opacity: 0.4;
	pointer-events: none;
}

.ys-gs-color-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.ys-gs-color-input {
	border: none;
	outline: none;
	font-size: 13px;
	font-family: 'SFMono-Regular', Consolas, monospace;
	width: 76px;
	background: transparent;
	color: var(--ys-ink);
}

.ys-gs-color-input--invalid {
	color: #c0392b;
}

/* ── Product Page preview: description line ──────────────────────────────────── */

.ys-gs-prev-desc {
	font-size: 12px;
	color: var(--ys-muted);
	line-height: 1.4;
	margin-top: 1px;
}

/* ── Cart Item preview: WooCommerce cart table ───────────────────────────────── */

.ys-gs-prev-cart-table {
	width: 100%;
	background: white;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	overflow: hidden;
	padding: 10px;
	box-sizing: border-box;
}

.ys-gs-prev-cart-head {
	display: grid;
	grid-template-columns: 1fr 36px 64px;
	gap: 4px;
	padding: 0 2px 6px;
}

.ys-gs-prev-cart-head span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--ys-muted);
}

.ys-gs-prev-cart-head-qty,
.ys-gs-prev-cart-head-sub {
	text-align: right;
}

.ys-gs-prev-cart-body {
	display: grid;
	grid-template-columns: 1fr 36px 64px;
	gap: 4px;
	padding: 8px 2px 2px;
	align-items: start;
}

.ys-gs-prev-cart-product-col {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.ys-gs-prev-cart-qty {
	text-align: right;
	font-size: 13px;
	color: var(--ys-muted);
	padding-top: 2px;
}

.ys-gs-prev-cart-subtotal {
	text-align: right;
	font-size: 13px;
	color: var(--ys-muted);
	padding-top: 2px;
}

/* ── Cart Total / Checkout preview: section headers ─────────────────────────── */

.ys-gs-prev-totals-header {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-gs-prev-co-header {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-gs-prev-co-label {
	font-size: 13px;
	color: var(--ys-muted);
}

/* ============================================================
   Presentation card — Pro-required entitlement notice
   Shown when a saved Quick Badge presentation uses a Pro type
   but the Pro plugin is currently inactive.
   ============================================================ */

.ys-pcard-pro-notice {
	background: #fff8ec;
	border: 1px solid #f0b429;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0 4px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ys-pcard-pro-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #7c5a00;
}

.ys-pcard-pro-msg {
	font-size: 12px;
	color: #594000;
	margin: 0;
	line-height: 1.45;
}

/* ============================================================
   Global Settings — Highlighted Amount contrast accessibility warning
   Shown below color pickers when WCAG 4.5:1 contrast ratio is not met.
   Pattern mirrors .ys-pcard-pro-notice (amber / warning).
   ============================================================ */

.ys-gs-contrast-warning {
	background: #fff8ec;
	border: 1px solid #f0b429;
	border-radius: 6px;
	padding: 8px 12px;
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ys-gs-contrast-warning-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #7c5a00;
}

.ys-gs-contrast-warning-msg {
	font-size: 12px;
	color: #594000;
	margin: 0;
	line-height: 1.45;
}

/* ============================================================================
   QB v2 — Free Quick Badge Builder styles
   Phase 4 implementation: Step 2 type picker + config + badge designs
   ============================================================================ */

/* ── QB badge base + position helpers ───────────────────────────────────────── */

.ys-qb-badge {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	border-radius: 20px;
	padding: 5px 10px;
	white-space: nowrap;
	z-index: 10;
}

.ys-qb-badge--mini {
	font-size: 10px;
	padding: 3px 7px;
	gap: 3px;
	position: static;
}

/* Corner positions */
.ys-qb-pos-top_left     { top: 8px;    left: 8px;    }
.ys-qb-pos-top_right    { top: 8px;    right: 8px;   }
.ys-qb-pos-bottom_left  { bottom: 8px; left: 8px;    }
.ys-qb-pos-bottom_right { bottom: 8px; right: 8px;   }

/* Vertical-edge positions */
.ys-qb-pos-top    { top: 8px; left: 8px; }
.ys-qb-pos-bottom { bottom: 8px; left: 8px; }

/* Icon disc — shared across circle-icon designs */
.ys-qbc-disc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
}
.ys-qb-badge--mini .ys-qbc-disc {
	width: 14px;
	height: 14px;
}

.ys-qbc-icon {
	flex-shrink: 0;
}

/* ── Clearance designs ───────────────────────────────────────────────────── */

.ys-qb-clearance-premium {
	border-radius: 20px;
}

.ys-qb-clearance-clean-pill {
	border-radius: 20px;
}

.ys-qb-clearance-outline {
	border-radius: 20px;
}

/* ── New Arrival designs ─────────────────────────────────────────────────── */

.ys-qb-na-circle-icon {
	border-radius: 20px;
}

.ys-qb-na-star-icon {
	border-radius: 20px;
}

.ys-qb-na-clean-pill {
	border-radius: 20px;
}

/* ── Staff Pick designs ──────────────────────────────────────────────────── */

.ys-qb-sp-star-pill {
	border-radius: 6px;
}

.ys-qb-sp-outline {
	border-radius: 20px;
}

.ys-qb-sp-circle {
	border-radius: 50%;
	width: 44px;
	height: 44px;
	flex-direction: column;
	gap: 2px;
	padding: 4px;
	font-size: 9px;
}
.ys-qb-sp-circle.ys-qb-badge--mini {
	width: 32px;
	height: 32px;
}

/* ── QB Step 2 — Full step shell ─────────────────────────────────────────── */

.ys-builder-shell-step--qb .ys-builder-shell-main {
	overflow-y: auto;
	max-width: none;
	padding: 32px 32px 110px;
}

.ys-qb-step2-main {
	flex: 1;
	overflow-y: auto;
	padding-right: 4px;
}

/* ── QB Step 2 — Type picker ─────────────────────────────────────────────── */

.ys-qb-type-picker {
	padding: 8px 0 24px;
}

.ys-qb-type-picker__heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 6px;
}

.ys-qb-type-picker__sub {
	font-size: 13px;
	color: var(--ys-muted, #6b7280);
	margin: 0 0 24px;
}

.ys-qb-type-grid--free {
	display: grid;
	/* R3: cap each type tile's width so the square thumbnail (and its sample product
	   photo) stops stretching to ~461px on wide screens and dominating the badge being
	   configured. Tiles stay left-aligned at a readable size; internal badge/photo
	   proportions and badge geometry are unchanged. Admin preview layout only. */
	grid-template-columns: repeat(3, minmax(0, 340px));
	justify-content: start;
	gap: 16px;
	margin-bottom: 20px;
}

.ys-qb-type-grid--pro {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ys-qb-type-card {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--ys-border, #e5e7eb);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ys-qb-type-card--free {
	cursor: pointer;
}
.ys-qb-type-card--free:hover {
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.ys-qb-type-card--pro {
	opacity: 0.65;
	cursor: default;
}

.ys-qb-type-card__thumb {
	aspect-ratio: 1;
	position: relative;
	overflow: hidden;
	background: #fafbfe;
}

.ys-qb-type-card__shoe {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ys-qb-type-card__photo {
	position: absolute;
	left: 12.5%;
	right: 12.5%;
	top: 20%;
	bottom: 4%;
	border-radius: 6px;
	overflow: hidden;
}

.ys-qb-type-card__crown-wrap {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 6px;
	padding: 4px 5px;
	display: flex;
	align-items: center;
}

.ys-qb-type-card__crown {
	width: 18px;
	height: 18px;
	display: block;
}

/* Badge prominence in type-chooser thumbnail (Figma 3756:1568 / 1573) */
.ys-qb-type-card__thumb .ys-qb-badge {
	top: 4px;
	font-size: 14px;
	padding: 11px 13px;
	gap: 7px;
}
/* Pill badges span full width within free cards */
.ys-qb-type-card--free .ys-qb-type-card__thumb .ys-qb-badge:not(.ys-qb-sp-circle) {
	right: 8px;
}
/* Scale up disc and icon for the larger in-card badges */
.ys-qb-type-card__thumb .ys-qbc-disc {
	width: 26px;
	height: 26px;
}
.ys-qb-type-card__thumb .ys-qbc-icon {
	width: 17px;
	height: 17px;
}
/* Staff Pick circle badge: larger in type card */
.ys-qb-type-card__thumb .ys-qb-sp-circle {
	width: 62px;
	height: 62px;
	font-size: 11px;
	gap: 3px;
	padding: 6px;
}
/* Pro badge placeholder (Figma 3756:1573) */
.ys-qb-type-card__pro-badge {
	position: absolute;
	top: 4px;
	left: 8px;
	max-width: calc(100% - 40px);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border-radius: 22px;
	padding: 11px 13px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	color: #ffffff;
}
.ys-qb-type-card__pro-badge-icon {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

.ys-qb-type-card__body {
	padding: 12px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ys-qb-type-card__name {
	font-size: 13px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
}

.ys-qb-type-card__desc {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	line-height: 1.45;
}

.ys-qb-type-card__cta {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #7c3aed;
	margin-top: 6px;
}

.ys-qb-type-card__pro-lock {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #7c3aed;
	margin-top: 6px;
}

.ys-qb-pro-section-header {
	margin-bottom: 12px;
}

.ys-qb-pro-section-header__label {
	font-size: 12px;
	color: #7c3aed;
	font-weight: 600;
	text-decoration: none;
}

/* ── QB Step 2 — Config layout ───────────────────────────────────────────── */

.ys-qb-config {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
	padding: 8px 0 24px;
}

@media (max-width: 1024px) {
	.ys-qb-config {
		grid-template-columns: 1fr;
	}
}

.ys-qb-config__back {
	background: none;
	border: none;
	padding: 0;
	font-size: 12px;
	color: var(--ys-muted, #6b7280);
	cursor: pointer;
	margin-bottom: 12px;
	display: inline-block;
}
.ys-qb-config__back:hover {
	color: var(--ys-ink, #1e1e1e);
}

.ys-qb-config__type-heading {
	/* R2: "Configure X" builder-config heading. Harmonized with the Savings Badge
	   equivalent (.ys-step2-config-heading) to one shared size/weight for this role. */
	font-size: 18px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 20px;
}

/* Design section header row */
.ys-qb-design-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.ys-qb-design-count {
	font-size: 11px;
	font-weight: 600;
	color: #7c3aed;
	background: #f3eeff;
	border-radius: 20px;
	padding: 2px 8px;
}

/* Design picker */
.ys-qb-section-heading {
	font-size: 11px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}

.ys-qb-section-heading--tight {
	margin: 0;
}

.ys-qb-design-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 8px;
}

.ys-qb-design-card {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s;
}
.ys-qb-design-card:hover {
	border-color: #c4b5fd;
}
.ys-qb-design-card--selected {
	border-color: #7c3aed;
	background: #f9f7ff;
}

.ys-qb-design-card__preview {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

/* Corner Ribbon geometry (ys-quick-badge.css) places its centre on the image's visual
   45° diagonal using percentage top/left offsets, which only coincide on a SQUARE box.
   The 4/3 design thumbnail therefore pushed the ribbon off-diagonal → sliver. Make only
   the ribbon thumbnail square so it reproduces the approved square-image storefront
   geometry; Clean Pill / Outline thumbnails keep their 4/3 ratio. The shoe image is
   object-fit:cover, so the square crop is clean. */
.ys-qb-design-card__preview:has(.ys-qb-design-corner-ribbon) {
	aspect-ratio: 1 / 1;
}

.ys-qb-design-card__shoe-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ys-qb-design-card__label {
	font-size: 11px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	padding: 6px 8px 8px;
	text-align: center;
}

.ys-qb-design-pro-link {
	font-size: 11px;
	font-weight: 600;
	color: #7c3aed;
	margin: 4px 0 20px;
}

/* Type description */
.ys-qb-type-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	background: #f9fafb;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	margin-bottom: 20px;
}

.ys-qb-type-info__name {
	font-size: 12px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
}

.ys-qb-type-info__desc {
	font-size: 12px;
	color: var(--ys-muted, #6b7280);
	line-height: 1.5;
}

/* Appearance fields */
.ys-qb-appearance-note {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 4px 0 12px;
}

.ys-qb-appearance-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.ys-qb-field-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ys-qb-field-row--colors {
	flex-wrap: wrap;
	align-items: flex-start;
}

.ys-qb-field-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	min-width: 60px;
}

.ys-qb-select {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 13px;
	background: #fff;
	color: var(--ys-ink, #1e1e1e);
}

/* 3-column appearance layout (Figma 3756:1569) */
.ys-qb-afield-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.ys-qb-afield {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ys-qb-afield__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	white-space: nowrap;
}
.ys-qb-select--full {
	width: 100%;
	box-sizing: border-box;
}
/* ColorInput expands to fill its column */
.ys-qb-afield .ys-color-input {
	width: 100%;
}
.ys-qb-afield .ys-color-input__controls {
	width: 100%;
}
.ys-qb-afield .ys-color-input__text {
	flex: 1;
	width: auto;
	min-width: 0;
}

/* ColorInput in QB Appearance fields — resets the SB pill style */
.ys-qb-afield .ys-color-input {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: auto;
	border: none;
	border-radius: 0;
	padding: 0;
	background: transparent;
	align-items: stretch;
	box-shadow: none;
}
.ys-qb-afield .ys-color-input:focus-within {
	border-color: initial;
	box-shadow: none;
}

.ys-color-input__label {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	font-weight: 600;
}

.ys-color-input__controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ys-color-swatch {
	width: 26px;
	height: 26px;
	border-radius: 6px;
	border: 1px solid var(--ys-border, #e5e7eb);
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

.ys-color-input__text {
	width: 72px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 4px;
	padding: 3px 6px;
	font-size: 12px;
	font-family: monospace;
}

/* Mode — radio-style (New Arrival only) */
.ys-qb-mode-section {
	margin-bottom: 20px;
}

.ys-qb-mode-radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.ys-qb-mode-radio {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 2px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s;
}

.ys-qb-mode-radio--selected {
	border-color: #7c3aed;
	background: #faf8ff;
}

.ys-qb-mode-radio__dot-wrap {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--ys-border, #e5e7eb);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.ys-qb-mode-radio--selected .ys-qb-mode-radio__dot-wrap {
	border-color: #7c3aed;
}

.ys-qb-mode-radio__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: transparent;
}

.ys-qb-mode-radio--selected .ys-qb-mode-radio__dot {
	background: #7c3aed;
}

.ys-qb-mode-radio__content {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ys-qb-mode-radio__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
}

.ys-qb-mode-radio__desc {
	font-size: 12px;
	color: var(--ys-muted, #6b7280);
	line-height: 1.5;
}

.ys-qb-mode-radio__desc--secondary {
	color: #9ca3af;
}

/* Info box */
.ys-qb-info-box {
	background: #f2edff;
	border: 1px solid #c4b5fd;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 12px;
	color: #5b21b6;
	margin-top: 4px;
}

.ys-qb-info-box__title {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.ys-qb-info-box__body {
	margin: 0;
	line-height: 1.5;
}

/* ── QB Step 2 — Preview panel ───────────────────────────────────────────── */

.ys-qb-config__right {
	position: sticky;
	top: 20px;
}

.ys-qb-preview__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 10px;
}

.ys-qb-preview__context-tabs {
	display: flex;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 8px;
}

.ys-qb-preview__context-tab {
	flex: 1;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 600;
	border: none;
	background: #fff;
	color: var(--ys-muted, #6b7280);
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
}

.ys-qb-preview__context-tab--active {
	background: #f2edff;
	color: #7c3aed;
}

.ys-qb-preview__device-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
}

.ys-qb-preview__device-tab {
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 20px;
	background: #fff;
	color: var(--ys-muted, #6b7280);
	cursor: pointer;
	transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.ys-qb-preview__device-tab--active {
	background: #7c3aed;
	color: #fff;
	border-color: #7c3aed;
}

.ys-qb-preview__stage {
	transition: max-width 0.2s;
}

.ys-qb-preview__stage--desktop { max-width: 100%; }
.ys-qb-preview__stage--tablet  { max-width: 280px; }
.ys-qb-preview__stage--mobile  { max-width: 200px; }

.ys-qb-preview__card {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.ys-qb-preview__image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}

.ys-qb-preview__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ys-qb-preview__product-info {
	padding: 10px 12px 12px;
	border-top: 1px solid var(--ys-border, #e5e7eb);
}

.ys-qb-preview__product-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 4px;
}

.ys-qb-preview__pricing {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 2px;
}

.ys-qb-preview__price-sale {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
}

.ys-qb-preview__price-orig {
	font-size: 12px;
	color: var(--ys-muted, #6b7280);
	text-decoration: line-through;
}

.ys-qb-preview__savings {
	font-size: 11px;
	font-weight: 600;
	color: #059669;
	margin: 0;
}

.ys-qb-preview__note {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 8px 0 0;
	line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR BUILDER — Steps 1–4 (Figma: 4366:6667, 4158:4159/4187/4215/4243)
   Storewide, schedule-based. All selectors scoped to .ys-ab-* / AB-specific
   wrappers so nothing bleeds into Savings Badge or Quick Badge rules.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared AB step shell ─────────────────────────────────────────────────── */
.ys-builder-shell-step--ab .ys-builder-shell-main {
	overflow-y: auto;
	max-width: none;
	padding: 32px 32px 110px;
}
.ys-ab-step2-main {
	flex: 1;
	overflow-y: auto;
	padding-right: 4px;
}

/* Real banner artwork image (ABTemplatePreview, non-General) */
.ys-ab-tpl-art-img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Live General bar (ABBarGeneralLive) ─────────────────────────────────── */
.ys-ab-live-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 18px;
	font-size: 13px;
	font-family: inherit;
	min-height: 44px;
	box-sizing: border-box;
	width: 100%;
}
.ys-ab-live-bar__msg    { font-weight: 600; }
.ys-ab-live-bar__copy   { opacity: 0.8; }
.ys-ab-live-bar__timer  { font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.ys-ab-live-bar__cta    { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 5px; white-space: nowrap; }
.ys-ab-live-bar__div    { display: inline-block; width: 1px; height: 16px; flex-shrink: 0; align-self: center; }

/* ── Step 1 — AB storefront preview (desktop + mobile, no product) ────────── */
.ys-builder-ab-sf-preview {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	padding: 20px;
}
.ys-builder-ab-sf-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 16px;
}
.ys-builder-ab-sf-context {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	margin: 18px 0 8px;
}
.ys-builder-ab-sf-context:first-of-type { margin-top: 0; }
.ys-builder-ab-sf-desktop {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
}
.ys-builder-ab-sf-desktop .ys-ab-tpl-art-img { width: 100%; }
.ys-builder-ab-sf-mobile {
	width: 100%;
	max-width: 390px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ys-builder-ab-sf-caption {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 12px 0 0;
}

/* ── Step 2A — Choose Template ────────────────────────────────────────────── */
.ys-ab-tpicker { padding: 8px 0 32px; }

.ys-ab-tpicker__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}
@media (max-width: 1200px) {
	.ys-ab-tpicker__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.ys-ab-tpicker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ys-ab-tpl-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	border: 2px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-ab-tpl-card:hover {
	border-color: var(--ys-purple, #641cff);
}
.ys-ab-tpl-card--selected {
	border-color: var(--ys-purple, #641cff);
	box-shadow: 0 0 0 3px rgba(100,28,255,0.12);
}
.ys-ab-tpl-card--pro {
	cursor: default;
}
.ys-ab-tpl-card--pro:hover {
	border-color: var(--ys-border, #e5e7eb);
}

.ys-ab-tpl-card__art {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
	min-height: 48px;
	display: flex;
	align-items: center;
}
.ys-ab-tpl-card__art .ys-ab-live-bar { min-height: 0; padding: 8px 10px; font-size: 9px; gap: 4px; }
.ys-ab-tpl-card__art .ys-ab-live-bar__timer { font-size: 8px; }
.ys-ab-tpl-card__art .ys-ab-live-bar__cta { font-size: 8px; padding: 3px 6px; }

.ys-ab-tpl-card__lock {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: rgba(0,0,0,0.6);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 20px;
	pointer-events: none;
}
.ys-ab-tpl-card__name {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	line-height: 1.3;
	padding: 0 2px 2px;
}

/* Selected-template live band */
.ys-ab-tpicker__selected {
	margin-top: 20px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	padding: 16px;
}
.ys-ab-tpicker__selected-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 12px;
}
.ys-ab-tpicker__selected-bar {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	overflow: hidden;
}

/* ── Step 2B — Customize ──────────────────────────────────────────────────── */
.ys-ab-config {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 32px;
	align-items: start;
	padding: 8px 0 24px;
}
@media (max-width: 1100px) {
	.ys-ab-config { grid-template-columns: 1fr; }
}

.ys-ab-config__card {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	padding: 20px;
}
.ys-ab-config__card-heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 16px;
}

.ys-ab-config__field { margin-bottom: 16px; }
.ys-ab-config__field-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	margin-bottom: 5px;
}
.ys-ab-config__field-helper {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 4px 0 0;
	line-height: 1.4;
}
.ys-ab-config__countdown-hint { margin-top: 8px; }
.ys-ab-config__input {
	width: 100%;
	box-sizing: border-box;
	height: 38px;
	padding: 0 11px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 7px;
	font-size: 13px;
	color: var(--ys-ink, #1e1e1e);
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-ab-config__input:focus {
	border-color: var(--ys-purple, #641cff);
	box-shadow: 0 0 0 3px rgba(100,28,255,0.12);
}

.ys-ab-config__colors-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}
.ys-ab-config__colors-row .ys-ab-config__field { margin-bottom: 0; }

.ys-ab-config__toggle-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--ys-border, #e5e7eb);
}
.ys-ab-config__toggle-info { flex: 1; }
.ys-ab-config__toggle-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
	margin-bottom: 2px;
}

.ys-ab-config__right {
	position: sticky;
	top: 20px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	padding: 20px;
}
.ys-ab-config__preview-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 4px;
	text-align: center;
}
.ys-ab-config__preview-sub {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 0 0 16px;
	text-align: center;
}
.ys-ab-config__preview-mobile-frame {
	width: 100%;
	max-width: 390px;
	margin: 0 auto;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0,0,0,0.08);
	background: #fff;
}
.ys-ab-config__preview-caption {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 10px 0 0;
	text-align: center;
}
.ys-ab-config__preview-note {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 14px 0 0;
	line-height: 1.5;
	text-align: center;
}

/* ── Step 3 — Publication schedule ────────────────────────────────────────── */
.ys-ab-sched { padding: 8px 0 24px; }
.ys-ab-sched-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
	margin-top: 20px;
}
@media (max-width: 1100px) {
	.ys-ab-sched-layout { grid-template-columns: 1fr; }
}

.ys-ab-sched-card {
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 12px;
	background: #fff;
	padding: 20px;
}
.ys-ab-sched-card-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0 0 16px;
}

.ys-ab-sched-choices { display: flex; flex-direction: column; gap: 10px; }
.ys-ab-sched-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
}
.ys-ab-sched-choice--selected {
	border-color: var(--ys-purple, #641cff);
	background: rgba(100,28,255,0.06);
}
.ys-ab-sched-radio {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--ys-border, #cbd5e1);
	flex-shrink: 0;
	position: relative;
}
.ys-ab-sched-choice--selected .ys-ab-sched-radio {
	border-color: var(--ys-purple, #641cff);
}
.ys-ab-sched-choice--selected .ys-ab-sched-radio::after {
	content: '';
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: var(--ys-purple, #641cff);
}
.ys-ab-sched-choice-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
}

.ys-ab-sched-dates {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed var(--ys-border, #e5e7eb);
}
.ys-ab-sched-field { display: flex; flex-direction: column; gap: 5px; }
.ys-ab-sched-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink, #1e1e1e);
}
.ys-ab-sched-helper {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 14px 0 0;
	line-height: 1.4;
}
.ys-ab-sched-countdown-warn {
	font-size: 11px;
	color: #92400e;
	background: #fef3c7;
	border: 1px solid #fde68a;
	border-radius: 7px;
	padding: 9px 11px;
	margin: 12px 0 0;
	line-height: 1.45;
}

.ys-ab-sched-constraint-body {
	font-size: 12px;
	color: var(--ys-muted, #6b7280);
	line-height: 1.5;
	margin: 0 0 14px;
}
.ys-ab-sched-chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	background: #e5e7eb;
	color: #374151;
}
.ys-ab-sched-chip--scheduled {
	background: rgba(100,28,255,0.12);
	color: var(--ys-purple, #641cff);
}
.ys-ab-sched-summary { margin-top: 14px; }
.ys-ab-sched-summary-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink, #1e1e1e);
	margin: 0;
}
.ys-ab-sched-summary-window {
	font-size: 12px;
	color: var(--ys-ink, #1e1e1e);
	margin: 2px 0 0;
}
.ys-ab-sched-summary-full {
	font-size: 11px;
	color: var(--ys-muted, #6b7280);
	margin: 2px 0 0;
}

/* ── Step 4 — Review & Publish (AB) ───────────────────────────────────────── */
.ys-ab-review-card { width: 100%; }
.ys-ab-review-dl .ys-step4-dl-row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--ys-border, #f1f1f1);
}
.ys-ab-review-dl .ys-step4-dl-row:last-child { border-bottom: none; }
.ys-ab-review-dl dt {
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-muted, #6b7280);
}
.ys-ab-review-dl dd {
	font-size: 13px;
	color: var(--ys-ink, #1e1e1e);
	margin: 0;
}
.ys-ab-review-dd-wrap { word-break: break-word; }
.ys-ab-review-edit { margin-top: 14px; }
.ys-ab-review-preview {
	width: 100%;
	max-width: 390px;
	margin: 0 auto;
	border: 1px solid var(--ys-border, #e5e7eb);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR — Phase B admin layout (shared <ABBarX> previews)
   Figma: 4158:4159 / 4187 / 4215 / 4243, General responsive 4452:7532.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Step 1 preview: desktop + mobile bars (no product) ── */
.ys-builder-ab-sf-desktop { border: 1px solid var(--ys-border, #e5e7eb); border-radius: 8px; overflow: hidden; }
.ys-builder-ab-sf-mobile  { width: 100%; max-width: 390px; border: 1px solid var(--ys-border, #e5e7eb); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

/* ── Step 2A template cards (clean rendered bars) ── */
.ys-ab-tpicker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
	.ys-ab-tpicker__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	/* Row 1: two wide cards; row 2: three cards. */
	.ys-ab-tpicker__grid > *:nth-child(1),
	.ys-ab-tpicker__grid > *:nth-child(2) { grid-column: span 3; }
	.ys-ab-tpicker__grid > *:nth-child(3),
	.ys-ab-tpicker__grid > *:nth-child(4),
	.ys-ab-tpicker__grid > *:nth-child(5) { grid-column: span 2; }
}

.ys-ab-tpl-card { padding: 0; overflow: hidden; gap: 0; }
.ys-ab-tpl-card__bar { position: relative; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ys-ab-tpl-card__crown {
	position: absolute; top: 6px; right: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255,255,255,0.92); box-shadow: 0 1px 3px rgba(0,0,0,0.25);
	pointer-events: none;
}
.ys-ab-tpl-card__name { display: block; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ys-ink, #1e1e1e); text-align: center; }
.ys-ab-tpl-card--previewing { box-shadow: 0 0 0 2px rgba(100,28,255,0.25); }

/* ── Step 2A large preview (Desktop + Mobile) ── */
.ys-ab-tpicker__preview { margin-top: 24px; border-top: 1px solid var(--ys-border, #e5e7eb); padding-top: 20px; }
.ys-ab-tpicker__preview-name { font-size: 15px; font-weight: 700; color: var(--ys-ink, #1e1e1e); }
.ys-ab-tpicker__view-label { font-size: 12px; font-weight: 600; color: var(--ys-muted, #6b7280); margin: 16px 0 8px; }
.ys-ab-tpicker__view-label--center { text-align: center; }
.ys-ab-tpicker__desktop { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.ys-ab-tpicker__mobile-row { display: flex; align-items: center; gap: 40px; margin-top: 18px; flex-wrap: wrap; }
.ys-ab-tpicker__mobile-col { flex: 0 0 auto; }
.ys-ab-tpicker__mobile { width: 360px; max-width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.1); }
.ys-ab-tpicker__avail { flex: 1 1 200px; }
.ys-ab-tpicker__avail-ok { font-size: 14px; color: var(--ys-ink, #1e1e1e); font-weight: 500; }
.ys-ab-tpicker__avail-pro { display: flex; flex-direction: column; gap: 4px; }
.ys-ab-tpicker__avail-pro-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ys-ink, #1e1e1e); }
.ys-ab-tpicker__avail-pro-sub { font-size: 12px; color: var(--ys-muted, #6b7280); }

/* ── Step 2B preview: desktop + mobile ── */
.ys-ab-config__view-label { font-size: 11px; font-weight: 600; color: var(--ys-muted, #6b7280); margin: 2px 0 6px; text-align: center; }
.ys-ab-config__preview-desktop { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 14px; }
.ys-ab-config__preview-mobile-frame { width: 100%; max-width: 360px; margin: 0 auto; }

/* ── Step 3 display location ── */
.ys-ab-sched-card--full { margin-bottom: 20px; }
.ys-ab-sched-paths { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ys-border, #e5e7eb); display: flex; flex-direction: column; gap: 5px; }
.ys-ab-sched-label--required { color: #b91c1c; }
.ys-ab-config__input--error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }

/* ── Step 4 review: desktop + mobile ── */
.ys-ab-review-view-label { font-size: 12px; font-weight: 600; color: var(--ys-muted, #6b7280); margin: 14px 0 8px; }
.ys-ab-review-preview--desktop { border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.ys-ab-review-preview--mobile { width: 100%; max-width: 360px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.1); }
.ys-ab-review-preview { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   AB Phase B — correction pass: desktop/mobile preview framing + centering
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop preview containers render the TRUE desktop composition (view="desktop").
   Allow horizontal scroll as a safety net if content exceeds a narrow panel. */
.ys-builder-ab-sf-desktop,
.ys-ab-tpicker__desktop,
.ys-ab-config__preview-desktop,
.ys-ab-review-preview--desktop { overflow-x: auto; }

/* Mobile preview frames: forced mobile composition, centered in their area. */
.ys-builder-ab-sf-mobile,
.ys-ab-config__preview-mobile-frame,
.ys-ab-review-preview--mobile { margin-left: auto; margin-right: auto; }

/* Step 1 — centre the "Mobile announcement" label + add breathing room. */
.ys-builder-ab-sf-context--center { text-align: center; }
.ys-builder-ab-sf-desktop { margin-bottom: 8px; }
.ys-builder-ab-sf-mobile  { margin-top: 4px; }

/* Step 2A — centre the Mobile View; keep the availability note to its right. */
.ys-ab-tpicker__mobile-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
}
.ys-ab-tpicker__mobile-col { grid-column: 2; justify-self: center; }
.ys-ab-tpicker__avail { grid-column: 3; justify-self: start; }
.ys-ab-tpicker__mobile { margin: 0 auto; }
@media (max-width: 860px) {
	.ys-ab-tpicker__mobile-row { grid-template-columns: 1fr; }
	.ys-ab-tpicker__mobile-col, .ys-ab-tpicker__avail { grid-column: 1; justify-self: center; text-align: center; }
}

/* My Presentations thumbnail — real template bar (compact) at the top of the frame. */
.ys-pres-ab-barwrap { width: 100%; overflow: hidden; }
.ys-pres-ab-barwrap .ys-abx { border-radius: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   AB Phase B — final fidelity pass: scaled desktop previews + side-by-side Review
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reusable scale-to-fit wrapper (admin previews only). The inner sizes to the
   bar's natural content width (max-content); a min-width baseline gives light
   templates comfortable spacing while content-heavy templates (Flash/Cyber) grow
   so nothing is ever clipped. ScaledPreview measures this width and scales to fit. */
.ys-ab-scaled { width: 100%; overflow: hidden; }
.ys-ab-scaled__inner { transform-origin: top left; width: max-content; }
.ys-ab-scaled__inner .ys-abx { width: max-content; }
/* Bar fills the container width (prominent, natural size); content-heavy templates
   grow past it and ScaledPreview scales the whole composition down to fit. */
/* max-width: none overrides the 1240px cap on .ys-abx__inner so long-message
   compositions (BFCM eyebrow + text + coupon + CTA) don't exceed the reference
   width, pushing the CTA outside the bar background and creating a white gap. */
.ys-ab-scaled__inner .ys-abx--view-desktop .ys-abx__inner { min-width: var( --ab-fit-w, 820px ); max-width: none; margin: 0; }
/* Mobile bars inside ScaledPreview render at a fixed reference viewport width
   (--ab-ref-w set by ScaledPreview.js) and are proportionally scaled to fit.
   This prevents uncontrolled vertical growth when message text is long. */
.ys-ab-scaled__inner .ys-abx--view-mobile { width: var( --ab-ref-w, 390px ); max-width: var( --ab-ref-w, 390px ); }

/* Desktop preview containers now host a ScaledPreview → the full composition is
   always visible; no horizontal scrollbar. */
.ys-builder-ab-sf-desktop,
.ys-ab-tpicker__desktop,
.ys-ab-config__preview-desktop,
.ys-ab-review-preview--desktop { overflow: hidden; }

/* Mobile preview frames — centered, ~360 px (matches Figma Mobile View). */
.ys-builder-ab-sf-mobile,
.ys-ab-config__preview-mobile-frame,
.ys-ab-review-preview--mobile { width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
.ys-ab-tpicker__mobile { width: 340px; max-width: 100%; margin: 0 auto; }

/* ── Review & Publish — side-by-side (summary left, preview card right), Figma 4158:4243 ── */
/* Heading above the two-column layout so both cards share the same top edge. */
.ys-step4-ab-hd { padding: 32px 32px 20px; }
.ys-step4-ab-hd .ys-builder-step-heading { margin-top: 0; }
/* Two-column layout: no extra top padding — heading provides the spacing above. */
/* Override the base sticky positioning — in the AB2 layout the left card can
   start higher than 96px from the viewport top, causing sticky to pull the
   right panel up and misalign the two card top edges. */
.ys-step4-layout--ab2 .ys-step4-preview-panel { position: relative; top: auto; }
.ys-step4-layout--ab2 { flex-direction: row; padding-top: 0; }
.ys-step4-layout--ab2 .ys-step4-review { flex: 1 1 0; max-width: none; }
.ys-step4-layout--ab2 .ys-step4-preview-panel {
	flex: 1.12 1 0;
	width: auto;
	max-width: none;
	padding: 22px 24px;
}
.ys-step4-layout--ab2 .ys-step4-preview-title { text-align: center; }
.ys-ab-review-view-label { text-align: center; }
.ys-ab-review-preview--desktop { margin: 2px 0 18px; }
.ys-ab-review-preview--mobile  { margin-top: 2px; }

/* ── Cyber Midnight (and any Pro) picker tile — reserve right space so the
   Pro crown never overlaps the compact CTA. ── */
.ys-ab-tpl-card--pro .ys-ab-tpl-card__bar .ys-abx--compact .ys-abx__inner { padding-right: 36px; }
.ys-ab-tpl-card__crown { z-index: 2; }

/* ── Review & Publish proportions (Figma 4158:4243): preview card holds a
   prominent full-width Desktop View and a small ~250px centered Mobile View.
   Summary and preview stay close to balanced (mild preview advantage for the
   horizontal desktop bar), so neither side disproportionately dominates. ── */
.ys-step4-layout--ab2 .ys-step4-review { flex: 1 1 0; }
.ys-step4-layout--ab2 .ys-step4-preview-panel { flex: 1.25 1 0; }
/* Desktop preview fills the preview card (overrides the base 390px cap) so the
   horizontal bar is prominent; mobile stays a small ~250px centered card. */
.ys-ab-review-preview--desktop { width: 100%; max-width: none; margin: 2px 0 20px; }
.ys-ab-review-preview--mobile  { width: 100%; max-width: 250px; margin: 2px auto 0; }

/* ============================================================================
   Global Settings Hub — Figma 3570:1130
   Three entry cards; purely navigational, no save button.
   ============================================================================ */

.ys-gs-hub-cards {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 24px;
	max-width: 968px;
}

.ys-gs-hub-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
}

.ys-gs-hub-card-info {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-gs-hub-card-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ys-gs-hub-card-title {
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 29px !important;
	color: var(--ys-ink) !important;
	margin: 0 !important;
}

.ys-gs-hub-card-desc {
	font-size: 14px !important;
	color: var(--ys-muted) !important;
	line-height: 20px !important;
	margin: 0 !important;
}

.ys-gs-hub-card-subinfo {
	font-size: 13px !important;
	font-weight: 500;
	color: var(--ys-muted) !important;
	margin: 0 !important;
}

.ys-gs-hub-cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* R5: compact, content-sized action button. The card uses .ys-gs-hub-card-info
	   { flex:1 } which pushes this CTA to the right column, so the button right-aligns
	   regardless of its own width — no fixed width is needed to hold alignment. Width is
	   now content + padding (with a small min-width for a tidy shape). Height, purple
	   treatment, hover/focus and navigation are unchanged. */
	width: auto;
	min-width: 112px;
	height: 44px;
	padding: 0 20px;
	border-radius: 8px;
	background: var(--ys-purple);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.ys-gs-hub-cta:hover {
	background: #5410dc;
}

.ys-gs-hub-cta:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 3px;
}

/* ── QB Rotation: Pro-only discovery card ──────────────────────────────────── */

/* Slightly muted background signals non-interactive state without hiding it. */
.ys-gs-hub-card--pro-only {
	background: var(--ys-surface);
}

/* "Pro" text pill beside the crown icon */
.ys-gs-hub-pro-badge {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 7px;
	border-radius: 20px;
	background: var(--ys-pale);
	color: var(--ys-purple);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Right-side label replacing the CTA button for Free users */
.ys-gs-hub-pro-only-label {
	flex: none;
	/* Content-sized to sit in the same right column as the compact CTA (R5); the card's
	   flex:1 info column keeps it right-aligned. */
	width: auto;
	text-align: right;
	font-size: 13px;
	font-weight: 500;
	color: var(--ys-muted);
}

/* ============================================================================
   Progress Bar admin screen — Figma 3691:1191
   Split panel: left = controls, right = simulated storefront preview.
   ============================================================================ */

.ys-pb-wrap {
	max-width: 1200px;
}

.ys-pb-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

/* Split body */
.ys-pb-body {
	display: grid;
	grid-template-columns: 624px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* ── Left panel ── */
.ys-pb-panel-left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ys-pb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ys-pb-field-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
}

.ys-pb-field-hint {
	font-size: 13px !important;
	color: var(--ys-muted) !important;
	margin: 0 !important;
	line-height: 1.45 !important;
}

.ys-pb-select {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--ys-ink);
	cursor: pointer;
}

.ys-pb-select:focus {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

.ys-pb-select--locked {
	opacity: 0.6;
	cursor: not-allowed;
	background: var(--ys-surface);
}

/* ── Coupon searchable combobox ── */
.ys-pb-combobox {
	position: relative;
	width: 100%;
}

.ys-pb-combobox-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--ys-ink);
	cursor: pointer;
	text-align: left;
	gap: 8px;
	box-sizing: border-box;
}

.ys-pb-combobox-trigger:hover {
	border-color: rgba(100, 28, 255, 0.4);
}

.ys-pb-combobox-trigger:focus {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

.ys-pb-combobox-trigger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: var(--ys-surface);
}

.ys-pb-combobox--no-coupons {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: var(--ys-surface);
	font-size: 14px;
	color: var(--ys-muted);
	opacity: 0.75;
	box-sizing: border-box;
}

.ys-pb-combobox-placeholder {
	color: var(--ys-muted);
}

.ys-pb-combobox-caret {
	flex-shrink: 0;
	font-size: 10px;
	color: var(--ys-muted);
	pointer-events: none;
	margin-left: auto;
}

.ys-pb-combobox-input-row {
	display: flex;
	align-items: center;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ys-purple);
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
	gap: 8px;
	outline: 3px solid rgba(100, 28, 255, 0.25);
	outline-offset: 2px;
}

.ys-pb-combobox-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	color: var(--ys-ink);
	min-width: 0;
	padding: 0;
}

.ys-pb-combobox-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	max-height: 220px;
	overflow-y: auto;
	z-index: 100;
	list-style: none;
	margin: 0;
	padding: 4px 0;
}

.ys-pb-combobox-option {
	display: flex;
	flex-direction: column;
	padding: 8px 12px;
	cursor: pointer;
	gap: 1px;
}

.ys-pb-combobox-option--hl {
	background: #f2edff;
}

.ys-pb-combobox-option--sel .ys-pb-combobox-opt-code::after {
	content: ' \2713';
	color: var(--ys-purple);
	font-size: 11px;
}

.ys-pb-combobox-opt-code {
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	line-height: 1.4;
}

.ys-pb-combobox-opt-info {
	font-size: 12px;
	color: var(--ys-muted);
	line-height: 1.4;
}

.ys-pb-combobox-noresult {
	padding: 10px 12px;
	font-size: 13px;
	color: var(--ys-muted);
	list-style: none;
}

.ys-pb-input {
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--ys-ink);
}

.ys-pb-input:focus {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

.ys-pb-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Toggle row: label+hint on the left, toggle on the right */
.ys-pb-field-row--toggle {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.ys-pb-field-label-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* WC shipping status pills */
.ys-pb-shipping-status {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-pb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ys-pb-pill {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.ys-pb-pill--active {
	background: #e8f7ee;
	color: #087a43;
}

.ys-pb-pill--muted {
	background: var(--ys-surface);
	color: var(--ys-muted);
	border: 1px solid var(--ys-border);
}

/* Pro upsell banner */
.ys-pb-pro-upsell {
	border: 1px solid var(--ys-border);
	border-radius: 10px;
	padding: 16px;
	background: var(--ys-pale);
}

.ys-pb-pro-upsell-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ys-pb-pro-upsell-copy {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ys-pb-pro-upsell-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-pb-pro-upsell-desc {
	font-size: 13px !important;
	color: var(--ys-muted) !important;
	margin: 0 !important;
	line-height: 1.45 !important;
}

.ys-pb-pro-upsell-cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	border-radius: 6px;
	background: var(--ys-purple);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s;
}

.ys-pb-pro-upsell-cta:hover {
	background: #5410dc;
}

/* ── Right panel: simulated storefront preview ── */
.ys-pb-panel-right {
	position: sticky;
	top: 32px;
}

.ys-pb-prev-wrap {
	background: #fff;
	border: 1px solid var(--ys-border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ys-pb-prev-label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--ys-ink) !important;
	margin: 0 !important;
}

.ys-pb-prev-sublabel {
	font-size: 12px !important;
	color: var(--ys-muted) !important;
	margin: 0 !important;
}

.ys-pb-prev-cart {
	background: var(--ys-surface);
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-pb-prev-totals-header {
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

.ys-pb-prev-divider {
	height: 1px;
	background: var(--ys-border);
}

.ys-pb-prev-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--ys-muted);
}

.ys-pb-prev-shipping-label {
	font-style: italic;
}

.ys-pb-prev-total {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	font-weight: 700;
	color: var(--ys-ink);
}

/* Progress bar widget */
.ys-pb-prev-widget {
	margin-top: 4px;
	padding: 10px;
	border-radius: 6px;
	background: #f2edff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-pb-prev-widget--off {
	background: var(--ys-surface);
}

.ys-pb-prev-msg {
	font-size: 13px !important;
	color: var(--ys-ink) !important;
	margin: 0 !important;
	font-weight: 500;
}

.ys-pb-prev-widget--off .ys-pb-prev-msg {
	color: var(--ys-muted) !important;
	font-style: italic;
	font-weight: 400;
}

.ys-pb-prev-track {
	height: 8px;
	border-radius: 20px;
	background: rgba(100, 28, 255, 0.15);
	overflow: hidden;
}

.ys-pb-prev-fill {
	height: 100%;
	border-radius: 20px;
	background: var(--ys-purple);
	transition: width 0.3s ease;
}

/* Footer note (left side of footer bar) */
.ys-pb-footer-note {
	font-size: 13px;
	color: var(--ys-muted);
}

/* ── Tab strip (General / Messages) ── */
.ys-pb-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--ys-border);
	margin-bottom: 24px;
}

.ys-pb-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ys-muted);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.ys-pb-tab:hover {
	color: var(--ys-ink);
}

.ys-pb-tab--active {
	color: var(--ys-purple);
	border-bottom-color: var(--ys-purple);
	font-weight: 600;
}

/* ── Pill variants ── */
.ys-pb-pill--inactive {
	background: #fff0f0;
	color: #c0392b;
}

.ys-pb-pill--locked {
	background: var(--ys-surface);
	color: var(--ys-muted);
	border: 1px solid var(--ys-border);
	font-size: 11px;
}

/* ── Display location read-only value ── */
/* Plain text field — no arrow, no interactive appearance. Pro replaces this
   with an actual selector via its own overriding component. */
.ys-pb-location-value {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: var(--ys-surface);
	font-size: 14px;
	color: var(--ys-ink);
	font-weight: 500;
	align-self: flex-start;
	user-select: none;
}

/* ── WC shipping section ── */
.ys-pb-wc-shipping {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ys-pb-link {
	font-size: 13px;
	color: var(--ys-purple);
	text-decoration: none;
}

.ys-pb-link:hover {
	text-decoration: underline;
}

/* ── Coupon info pill ── */
.ys-pb-coupon-info-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 20px;
	background: #f2edff;
	border: 1px solid rgba(100, 28, 255, 0.2);
	font-size: 12px;
	font-weight: 500;
	color: var(--ys-purple);
	align-self: flex-start;
}

/* ── Coupon action section ── */
.ys-pb-coupon-action-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--ys-ink);
	margin: 0;
}

/* ── Error hint ── */
.ys-pb-field-hint--error {
	color: #c0392b !important;
}

/* ── Section description (Messages tab) ── */
.ys-pb-section-desc {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 0;
}

/* ── Message state pill selector ── */
.ys-pb-msg-states {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ys-pb-msg-state-btn {
	height: 32px;
	padding: 0 14px;
	border-radius: 20px;
	border: 1px solid var(--ys-border);
	background: var(--ys-surface);
	font-size: 13px;
	font-weight: 500;
	color: var(--ys-muted);
	cursor: pointer;
	transition: all 0.15s;
}

.ys-pb-msg-state-btn:hover {
	border-color: var(--ys-purple);
	color: var(--ys-purple);
}

.ys-pb-msg-state-btn--active {
	background: #f2edff;
	border-color: var(--ys-purple);
	color: var(--ys-purple);
	font-weight: 600;
}

/* ── Message textarea ── */
.ys-pb-msg-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ys-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--ys-ink);
	font-family: inherit;
	resize: vertical;
	box-sizing: border-box;
}

.ys-pb-msg-textarea:focus {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}

/* ── Placeholder chips ── */
.ys-pb-placeholder-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ys-pb-chip {
	height: 28px;
	padding: 0 10px;
	border-radius: 6px;
	border: 1px solid var(--ys-border);
	background: var(--ys-surface);
	font-size: 12px;
	font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
	color: var(--ys-purple);
	cursor: pointer;
	transition: background 0.15s;
}

.ys-pb-chip:hover {
	background: #f2edff;
	border-color: rgba(100, 28, 255, 0.3);
}

/* ── Sample values box ── */
.ys-pb-sample-values {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: var(--ys-surface);
	border: 1px solid var(--ys-border);
	border-radius: 8px;
}

.ys-pb-sample-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ys-muted);
}

.ys-pb-sample-row {
	font-size: 13px;
	color: var(--ys-ink);
}

/* ── Preview: order header and product rows ── */
.ys-pb-prev-order-header {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	color: var(--ys-ink);
	margin-bottom: 2px;
}

.ys-pb-prev-product-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--ys-muted);
}

/* ── Preview: qualifying line below bar ── */
.ys-pb-prev-qualifying-line {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--ys-muted);
	margin-top: -2px;
}

.ys-pb-prev-pct {
	font-weight: 600;
	color: var(--ys-purple);
}

.ys-pb-prev-pct--success {
	color: #087a43;
}

/* ── Preview: WC info note ── */
.ys-pb-prev-wc-note {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--ys-border);
	font-size: 11px;
	color: var(--ys-muted);
}

/* ── Preview: Customize messages button ── */
.ys-pb-prev-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
}

.ys-pb-prev-nav-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-purple);
	cursor: pointer;
	text-align: left;
}

.ys-pb-prev-nav-btn:hover {
	text-decoration: underline;
}

/* ── Preview: success state (CD reveal) ── */
.ys-pb-prev-widget--success {
	background: #f2edff;
}

.ys-pb-prev-msg--success {
	color: #087a43 !important;
}

.ys-pb-prev-track--success {
	background: rgba(8, 122, 67, 0.15);
}

.ys-pb-prev-fill--success {
	background: #087a43;
}

/* ── Preview: coupon reveal card ── */
.ys-pb-prev-coupon-reveal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border: 1.5px dashed var(--ys-purple);
	border-radius: 8px;
	background: rgba(100, 28, 255, 0.04);
}

.ys-pb-prev-coupon-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ys-muted);
}

.ys-pb-prev-coupon-code {
	font-size: 16px;
	font-weight: 700;
	font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
	color: var(--ys-purple);
	letter-spacing: 0.04em;
}

/* ── Preview: storefront Progress Bar visual replica ─────────────────────────
   Values mirror ys-progress-bar.css. Scoped under .ys-pb-prev-sf-wrap to avoid
   colliding with admin shell rules. Keep in sync when ys-progress-bar.css changes.
   ──────────────────────────────────────────────────────────────────────────── */
.ys-pb-prev-sf-wrap .ys-pb-wrap {
	box-sizing: border-box;
	width: 100%;
	margin: 6px 0 0;
	padding: 16px;
	background: #f2edff;
	border: 1px solid #dfe6f1;
	border-radius: 12px;
	font-size: 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
	display: block;
}

.ys-pb-prev-sf-wrap .ys-pb-message {
	margin: 0 0 10px;
	padding: 0;
	color: #10132d;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

.ys-pb-prev-sf-wrap .ys-pb-wrap .ys-pb-track {
	display: block;
	height: 8px;
	background: rgba(100, 28, 255, 0.15);
	border-radius: 4px;
	overflow: hidden;
}

.ys-pb-prev-sf-wrap .ys-pb-wrap .ys-pb-fill {
	height: 100%;
	background: #641cff;
	border-radius: 4px;
	min-width: 0;
}

.ys-pb-prev-sf-wrap .ys-pb-success .ys-pb-message {
	color: #087a43;
}

.ys-pb-prev-sf-wrap .ys-pb-success.ys-pb-wrap .ys-pb-fill {
	background: #087a43;
}

.ys-pb-prev-sf-wrap .ys-pb-success.ys-pb-wrap .ys-pb-track {
	background: rgba(8, 122, 67, 0.15);
}

.ys-pb-prev-sf-wrap .ys-pb-qualifying-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.75rem;
	color: rgba(16, 19, 45, 0.55);
	line-height: 1.4;
}

.ys-pb-prev-sf-wrap .ys-pb-qualifying-pct {
	font-weight: 600;
	color: #641cff;
	font-size: 0.75rem;
}

.ys-pb-prev-sf-wrap .ys-pb-success .ys-pb-qualifying-pct {
	color: #087a43;
}

.ys-pb-prev-sf-wrap .ys-pb-coupon-reveal {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 10px 0 0;
	padding: 10px 12px;
	border: 1.5px dashed #087a43;
	border-radius: 8px;
	background: rgba(8, 122, 67, 0.04);
}

.ys-pb-prev-sf-wrap .ys-pb-coupon-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(8, 122, 67, 0.65);
	line-height: 1.4;
}

.ys-pb-prev-sf-wrap .ys-pb-coupon-code {
	display: block;
	font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #087a43;
	line-height: 1.4;
}

/* Off / disabled preview state */
.ys-pb-prev-sf-wrap--off {
	margin-top: 6px;
	padding: 10px;
	border-radius: 6px;
	background: var(--ys-surface);
}

.ys-pb-prev-sf-wrap--off .ys-pb-prev-msg {
	font-size: 13px;
	color: var(--ys-muted);
	font-style: italic;
	font-weight: 400;
	margin: 0;
}

/* ============================================================
   QUICK BADGE — Design Gallery (admin only)
   ============================================================ */

/* The Configure-state "Selected Design" summary + Change Design trigger is rendered and
   styled by the provider (Pro: .ys-qb-ct-selected) so it matches the approved Figma per
   type. Free owns only the gallery view + persistent preview below. */

/* Gallery layout: badge-only tile grid on the left, persistent storefront preview on
   the right (preview stays mounted while browsing designs). */
.ys-qb-gallery-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}
.ys-qb-gallery__head {
	margin-bottom: 16px;
}
.ys-qb-gallery__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--ys-ink);
	margin: 0;
}
.ys-qb-gallery__sub {
	font-size: 13px;
	color: var(--ys-muted);
	margin: 2px 0 0;
}
.ys-qb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.ys-qb-gallery-tile {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 2px solid var(--ys-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ys-qb-gallery-tile:hover {
	border-color: var(--ys-purple);
}
/* Selected state: purple border + subtle ring. Card keeps the SAME dimensions as the others
   (no enlargement) so the grid stays even. */
.ys-qb-gallery-tile--selected {
	border-color: var(--ys-purple);
	box-shadow: 0 0 0 3px rgba(100, 28, 255, 0.08);
}
/* Badge-only preview surface — neutral, compact (Figma proportions): a short wide area with
   the badge prominent and minimal whitespace. No product-image canvas, no large min-height. */
.ys-qb-gallery-tile__badge {
	position: relative;
	height: 62px;
	padding: 8px 12px;
	background: #fafbfe;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* Pill-family designs (Clean Pill, Outline, Premium) render inline-centred at a legible
   scale. Banner and Corner Ribbon are handled specially below so each is visibly distinct. */
.ys-qb-gallery-tile__badge .ys-qb-badge:not(.ys-qb-design-corner-ribbon):not(.ys-qb-design-custom-text-icon-pill) {
	position: static;
	transform: none;
	font-size: 0.8rem;
	margin: 0;
}
/* Banner (custom_text_icon_pill): compact content-sized forked banner, centred inline. */
.ys-qb-gallery-tile__badge .ys-qb-design-custom-text-icon-pill {
	position: static;
	transform: none;
	font-size: 0.78rem;
	margin: 0;
	width: auto;
}
/* Corner Ribbon (corner_ribbon) — GALLERY-ONLY representative treatment. There is no product
   image here, so render the genuine diagonal ribbon inside a small CONTAINED square demo box
   (not the whole tile): the square gives the %-based ribbon a corner to cross and clips it,
   communicating "corner ribbon" compactly without a huge tile or a rotated-pill look. This is
   scoped to the gallery tile only — the real storefront/preview/My-Presentations P1 geometry
   is untouched. */
.ys-qb-gallery-tile__badge .ys-qb-ct-ribbon-demo {
	position: relative;
	width: 62px;
	height: 46px;
	overflow: hidden;
	border-radius: 4px;
	background: #eef0f6;
}
.ys-qb-gallery-tile__badge .ys-qb-ct-ribbon-demo .ys-qb-design-corner-ribbon {
	font-size: 7px;
	border-radius: 0;
}
.ys-qb-gallery-tile__label {
	padding: 7px 12px 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ys-ink);
	border-top: 1px solid var(--ys-border);
}
.ys-qb-gallery-tile__state {
	color: var(--ys-purple);
	font-weight: 600;
}
.ys-qb-gallery__actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 20px;
}
.ys-qb-gallery__cancel,
.ys-qb-gallery__use {
	height: 40px;
	padding: 0 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
/* Action hierarchy: Next (step footer) is the only solid-purple primary. "Use/Keep this
   design" is a SECONDARY local gallery action — white bg, purple border/text, light-purple
   hover — so it does not compete with Next. Cancel is tertiary (lowest emphasis). */
.ys-qb-gallery__cancel {
	border: 1px solid var(--ys-border);
	background: #fff;
	color: var(--ys-muted);
}
.ys-qb-gallery__cancel:hover {
	color: var(--ys-ink);
	border-color: var(--ys-ink);
}
.ys-qb-gallery__use {
	border: 1px solid var(--ys-purple);
	background: #fff;
	color: var(--ys-purple);
	transition: background 0.15s, color 0.15s;
}
.ys-qb-gallery__use:hover {
	background: var(--ys-pale);
}
.ys-qb-gallery__use:focus-visible {
	outline: 3px solid var(--ys-purple);
	outline-offset: 2px;
}
.ys-qb-gallery__use:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Custom Text swatches: Figma 4525:8120 uses two 304 × 112 cards, a 52px
   artwork row, 12px label gap, and 16px gutters. Other badge galleries are unchanged. */
.ys-qb-gallery-layout:has(.ys-qb-design-custom-text-icon-pill) {
	grid-template-columns: minmax(0, 624px) 360px;
}
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery__grid { gap: 16px; }
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile {
	box-sizing: border-box;
	padding: 15px 16px 11px;
	gap: 12px;
	border-width: 1px;
	border-radius: 12px;
	text-align: center;
	align-items: center;
	overflow: visible;
}
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile--selected { box-shadow: none; }
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile__badge {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0;
	background: transparent;
}
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile__label {
	padding: 0;
	border: 0;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: var(--ys-muted);
}
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile__badge .ys-qb-badge:not(.ys-qb-design-corner-ribbon) {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	box-sizing: border-box;
	width: 208px;
	max-width: 100%;
	height: 52px;
	font-size: 17.333px;
	line-height: 25.133px;
	letter-spacing: 0;
	text-transform: none;
}
/* A square positioning frame is essential to the approved percentage-based ribbon.
   Show its upper corner through a wide, shallow swatch viewport at a readable scale. */
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-gallery-tile__badge .ys-qb-ct-ribbon-demo {
	width: 136px;
	height: 82px;
	flex: none;
	border-radius: 0;
	background: linear-gradient(135deg, #eef0f6, #fafbfe);
}
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-ct-ribbon-demo .ys-qb-design-corner-ribbon {
	/* Exit through the top and left edges, clear of the demo's bottom-left corner.
	   The long band keeps both end caps outside this gallery-only clipping box. */
	width: 160px;
	top: 32px;
	left: 32px;
	font-size: 11px;
	text-transform: none;
}
@media (max-width: 1100px) {
	.ys-qb-gallery-layout:has(.ys-qb-design-custom-text-icon-pill) { grid-template-columns: minmax(0, 1fr); }
}

.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-design-clean-pill,
.ys-qb-gallery:has(.ys-qb-design-custom-text-icon-pill) .ys-qb-design-outline { border-radius: 26px; }

/* Change Design is a temporary candidate state, not a workflow step. */
.ys-builder-step-disabled,
.ys-builder-step-disabled:hover {
	opacity: 0.4;
	cursor: not-allowed;
	background: transparent;
}
.ys-builder-back-btn:disabled,
.ys-builder-back-btn:disabled:hover {
	opacity: 0.4;
	cursor: not-allowed;
	background: rgba(255,255,255,0.08);
}
.ys-builder:has(.ys-qb-gallery) .ys-builder-footer-actions button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.ys-qb-gallery__help {
	margin: 20px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ys-muted);
}
.ys-qb-gallery__help + .ys-qb-gallery__actions { margin-top: 8px; }

/* Provider-derived runtime information is separate from merchant enablement. */
.ys-pcard-runtime-state {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ys-ink);
}
.ys-pcard-runtime-state strong,
.ys-pcard-runtime-state time {
	display: block;
}
.ys-pcard-runtime-state strong {
	color: #92400e;
}
.ys-pcard-runtime-state time {
	margin-top: 3px;
}

/* Standard Quick Badge positions: top row, then bottom row. */
.ys-pos-select-list--grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:300px;}
.ys-pos-select-list--grid .ys-pos-select-option {text-align:center;white-space:normal;}

/* Built-in design contributions: same shared shell, art-only gallery and host. */
.ys-design-discovery-status{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:14px;background:var(--ys-pale,#f2edff);color:var(--ys-purple,#641cff);font-size:11px;font-weight:600;white-space:nowrap}
.ys-qb-type-card__discovery-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.ys-design-discovery-message{margin:12px 0;padding:12px 16px;background:var(--ys-pale,#f2edff);color:var(--ys-purple,#641cff);border-radius:8px;font-size:13px}
.ys-design-discovery-message p{margin:4px 0 0;color:var(--ys-muted)}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--ys-border,#dbe3f0);border-radius:12px;background:#fff;margin-bottom:12px}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__badgewrap{position:relative;display:flex;justify-content:center;align-items:center;width:146px;min-width:100px;height:88px;background:#fafbfe;border-radius:8px;flex-shrink:0}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__badgewrap .ys-qb-badge{position:relative!important;inset:auto!important;transform:none!important;max-width:100%}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__info{display:flex;flex:1;flex-direction:column;gap:6px}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__eyebrow{font-size:11px;color:var(--ys-muted)}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__name{font-size:18px;font-weight:600}
:is(.ys-na-config,.ys-sb-config) .ys-qb-ct-selected__change{padding:10px 16px;border:1px solid var(--ys-border,#dbe3f0);border-radius:6px;background:white;color:var(--ys-ink);cursor:pointer;white-space:nowrap}
.ys-na-config .ys-qb-mode-section,.ys-na-config .ys-qb-appearance{padding:16px;border:1px solid var(--ys-border,#dbe3f0);border-radius:12px;background:#fff;margin-bottom:12px}
.ys-na-appearance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ys-na-gallery .ys-qb-gallery__grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:470px;overflow-y:auto;padding:2px}
.ys-na-gallery .ys-qb-gallery-tile{position:relative;min-height:128px;padding:12px}
.ys-qb-gallery-entitlement,.ys-qb-gallery-new{position:absolute;right:8px;top:8px;z-index:2}
.ys-qb-gallery-entitlement{width:16px;height:16px}
.ys-qb-gallery-new{padding:3px 7px;border-radius:6px;background:var(--ys-pale,#f2edff);color:var(--ys-purple,#641cff);font-size:11px;font-weight:600}
.ys-design-unavailable{font-size:13px;color:var(--ys-muted)}
.ys-design-unavailable img{width:16px;height:16px;vertical-align:middle}
.ys-qb-new-arrival-preview{position:absolute;top:8px;left:8px;width:min(132px,48%);max-width:calc(100% - 16px);padding:0!important;background:transparent!important;border:0!important;line-height:0;pointer-events:none}
.ys-qb-new-arrival-preview.ys-na-orbit{width:min(100px,45%)}
.ys-qb-new-arrival-preview.ys-na-tag{width:min(145px,calc(100% - 16px))}
.ys-qb-new-arrival-preview img{display:block;width:100%;height:auto}
.ys-qb-new-arrival-preview.ys-qb-pos-top_right{left:auto;right:8px}
.ys-qb-new-arrival-preview.ys-qb-pos-bottom_left{top:auto;bottom:8px}
.ys-qb-new-arrival-preview.ys-qb-pos-bottom_right{top:auto;left:auto;right:8px;bottom:8px}
:is(.ys-qb-gallery-tile__badge,.ys-qb-ct-selected__badgewrap) .ys-qb-new-arrival-preview{position:relative!important;inset:auto!important;width:158px;max-width:100%}
:is(.ys-qb-gallery-tile__badge,.ys-qb-ct-selected__badgewrap) .ys-qb-new-arrival-preview.ys-na-orbit{width:80px}
@media(max-width:1100px){.ys-na-config .ys-qb-ct-selected{flex-wrap:wrap}.ys-na-appearance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ys-na-gallery .ys-qb-gallery-tile__badge{height:84px;min-height:84px;padding:4px;background:transparent;border:0}
.ys-na-gallery .ys-qb-gallery-tile__label{padding:8px 4px 2px;font-weight:500}
.ys-na-gallery .ys-qb-gallery-tile{padding:8px 10px}
.ys-na-gallery .ys-qb-gallery-tile__badge :is(.ys-qb-new-arrival-art,.ys-qb-new-arrival-preview){width:130px}
.ys-na-gallery .ys-qb-gallery-tile__badge .ys-na-orbit{width:80px}
.ys-na-gallery .ys-qb-gallery-tile__badge .ys-na-tag{width:158px}

/* Collection advertising is deliberately outside the selectable design list. */
.ys-qb-collection-promo{display:flex;align-items:center;gap:16px;margin-top:16px;padding:12px;border:1px solid #ded4fb;border-radius:12px;background:#f7f3ff}
.ys-qb-collection-promo__image{width:46%;max-width:280px;height:auto;border-radius:8px}
.ys-qb-collection-promo__copy{flex:1;color:var(--ys-text)}
.ys-qb-collection-promo__copy strong{font-size:14px;line-height:1.5}
.ys-qb-collection-promo__copy strong img{width:16px;height:16px;vertical-align:middle;margin-right:5px}
.ys-qb-collection-promo__copy p{font-size:12px;color:var(--ys-muted);line-height:1.5;margin:8px 0 0}
@media(max-width:600px){.ys-qb-collection-promo{flex-direction:column;align-items:stretch}.ys-qb-collection-promo__image{width:100%;max-width:100%}}
/* Savings Badge uses the established selector/gallery with its own content controls. */
.ys-sb-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}
.ys-sb-config .ys-qb-config__left{display:flex;flex-direction:column;gap:18px;min-width:0}
.ys-sb-config .ys-qb-config__right{min-width:0}
.ys-sb-config .ys-builder-field{margin:0}
.ys-sb-colors{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:16px}
.ys-sb-standard-demo{display:block;background:#c91f37;color:white;padding:7px 14px;font-size:12px;font-weight:700;text-align:center;max-width:100%;line-height:1.3}
.ys-sb-upsell{padding:18px;border-radius:12px;background:#f0e9ff}
.ys-sb-upsell h3{margin:0 0 8px}.ys-sb-upsell>img{display:block;width:100%;max-width:440px;height:auto;pointer-events:none}
.ys-sb-upsell p{font-size:13px}.ys-sb-config .ys-step2-sf-product{margin-top:16px}
.ys-sb-config .ys-qb-collection-promo__image{max-width:100%;object-fit:contain}
@media(max-width:850px){.ys-sb-heading{align-items:flex-start;flex-direction:column}}
.ys-step2--savings{padding:32px}
.ys-sb-config .ys-builder-input{width:100%;max-width:none}
.ys-sb-colors .ys-color-input{display:flex;flex-direction:column;align-items:stretch;padding:0;border:0;background:none;gap:6px;min-width:0}
.ys-sb-colors .ys-color-input__controls{display:flex;gap:8px;min-width:0}
.ys-sb-colors .ys-color-input__text{width:100%;min-width:80px;flex:1}
@media(max-width:850px){.ys-step2--savings{padding:20px}}
.ys-sb-config .ys-qb-collection-promo{display:block}
.ys-sb-config .ys-qb-collection-promo__image{width:100%;max-width:100%}
.ys-sb-config .ys-qb-collection-promo__copy{display:none}
.ys-sb-colors .ys-color-input{height:auto;min-height:0}
.ys-sb-colors .ys-color-input__controls{min-height:40px}
.ys-sb-config .ys-step2-contrast{margin-top:12px}
.ys-sb-config .ys-qb-ct-selected__badgewrap{width:146px;height:88px;min-height:88px}
.ys-sb-config .ys-qb-ct-selected{min-height:120px}

/* The cropped premium artwork needs a taller shared tile preview surface. */
.ys-sb-config .ys-qb-gallery-tile__badge{height:128px}
/* Keep the gallery actions reachable above the builder's fixed footer. */
.ys-step2.ys-step2--savings{padding-bottom:120px}

/* Announcement Bar: meaningful color regions, shared with storefront previews. */
.ys-ab-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ys-ab-colors input[type="color"] { flex: 0 0 36px; width: 36px; height: 40px; padding: 2px; }
.ys-ab-colors .ys-ab-config__input { min-width: 0; }
@media (max-width: 600px) { .ys-ab-colors { grid-template-columns: 1fr; } }

/* Savings Messages: per-surface controls and the two-behavior Checkout card. */
.ys-gs-appearance { margin-top:20px; padding:14px 16px; border:1px solid #dfe6f1; border-radius:8px; }
.ys-gs-appearance summary { cursor:pointer; font-weight:600; }
.ys-gs-appearance[open] summary { margin-bottom:16px; }
.ys-gs-appearance label { display:flex; flex-direction:column; gap:8px; font-weight:600; }
.ys-gs-appearance input[type=text] { width:100%; min-width:0; font-weight:400; padding:10px; border:1px solid #dfe6f1; border-radius:8px; }
.ys-gs-appearance .ys-gs-shadow { flex-direction:row; align-items:center; margin:16px 0; }
.ys-gs-discovery { display:flex; justify-content:space-between; gap:16px; padding:10px 14px; border:1px solid #dfe6f1; border-radius:8px; font-size:13px; }
.ys-gs-checkout { padding:22px; }
.ys-gs-checkout > p { color:#52617b; }
.ys-gs-surface--embedded { border:0; padding:0; box-shadow:none; margin:0 0 24px; }
.ys-gs-surface--embedded + .ys-gs-surface--embedded { border-top:1px solid #dfe6f1; padding-top:24px; }
.ys-gs-surface--embedded .ys-gs-surface-inner { display:block; padding:0; }
.ys-gs-surface--embedded .ys-gs-surface-preview { display:none; }
.ys-gs-surface--embedded .ys-gs-surface-title { font-size:16px; }
.ys-gs-product-thumb { width:56px; height:56px; object-fit:contain; flex-shrink:0; }
.ys-gs-prev-co-item { justify-content:flex-start; gap:12px; }
.ys-gs-prev-thumb { object-fit:contain; }
@media(max-width:780px) { .ys-gs-discovery { display:block; } .ys-gs-discovery a { display:block; margin-top:6px; } }
.ys-gs-surfaces .ys-gs-surface-editor, .ys-gs-surfaces .ys-gs-surface-preview { min-width:0; }
.ys-gs-surfaces .ys-gs-prev-savings { overflow-wrap:anywhere; }
@media(max-width:980px) {
 .ys-gs-surfaces .ys-gs-surface-inner { grid-template-columns:minmax(0,1fr); }
 .ys-gs-surfaces .ys-gs-surface-editor { border-right:0; }
 .ys-gs-surface--embedded .ys-gs-surface-editor { padding-left:0; padding-right:0; }
}
@media(max-width:480px) { .ys-gs-appearance .ys-gs-color-fields { grid-template-columns:minmax(0,1fr); } }

/* Stable card regions, independent of notice-copy length. */
.ys-pres-grid .ys-pres-card{height:auto;min-width:0}
.ys-pres-grid .ys-pres-card-preview{flex:0 0 292px;min-height:292px;box-sizing:border-box}
.ys-pres-grid .ys-pres-card-body{min-height:0;gap:4px;box-sizing:border-box}
.ys-pres-grid .ys-pres-card-meta{max-height:30px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.ys-pres-grid .ys-pcard-status-row{min-height:24px;flex-shrink:0}
.ys-pres-grid .ys-pcard-runtime-state{max-height:28px;overflow:hidden;margin:0}
.ys-pres-grid .ys-pres-card-actions{min-height:40px;flex-shrink:0;padding-top:8px}
.ys-card-notice{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;flex-shrink:0;box-sizing:border-box;padding:4px 8px;background:#fffcf4;border:1px solid #f1dfb4;border-radius:9px;color:#92400e;font-size:12px;line-height:16px;min-width:0}
.ys-card-notice>strong{display:flex;flex:1 1 145px;min-width:0;margin:0;align-items:center;gap:6px;font-size:12px;line-height:18px;text-transform:none}

.ys-card-notice>button{display:block;flex:0 0 auto;margin-left:auto;white-space:nowrap;padding:0;border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;line-height:20px}
.ys-card-notice-detail{position:fixed;z-index:100100;background:#fff;color:#18202e;padding:12px;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 30px #0003;max-height:45vh;overflow:auto;overflow-wrap:anywhere;box-sizing:border-box;font-size:14px;line-height:1.5}
.ys-card-notice-detail p{white-space:pre-wrap}.ys-card-notice button:focus-visible,.ys-card-notice-detail button:focus-visible{outline:2px solid #641cff;outline-offset:3px}
.ys-card-notices{display:flex;flex-direction:column;gap:6px;flex-shrink:0;min-width:0}
.ys-card-notice-slot{flex:0 0 auto;min-width:0}
.ys-card-notice-icon{color:var(--ys-pcard-warning-color);flex:none;font-size:13px;line-height:18px}
.ys-card-notice>strong{white-space:normal;overflow-wrap:anywhere}
.ys-card-notice-detail>strong{display:block;padding-right:30px}
.ys-card-notice-detail>p{margin-bottom:0}
.ys-card-notice-detail>.ys-card-notice-close{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer}
@media(max-width:600px){.ys-card-notice-detail>.ys-card-notice-close{width:44px;height:44px}.ys-card-notice-detail>strong{padding-right:38px;min-height:32px}}
/* Keep the close control reachable while a very long description scrolls. */
.ys-card-notice-detail{display:flex;flex-direction:column;overflow:hidden}
.ys-card-notice-detail>strong{flex-shrink:0}
.ys-card-notice-detail>p{min-height:0;overflow:auto}
