/**
 * My Account — bespoke layout per the design handoff.
 *
 * All rules are scoped to .twy-account so the design-handoff palette and
 * type tokens don't leak into the rest of the site (the same pattern used
 * by delivery.css). The shell is rendered by woocommerce/myaccount/*.php.
 */

.twy-account {
	--ink: #14160F;
	--ink-2: #1d211a;
	--ink-3: #2a2f26;
	--cream: #f6fff2;
	--cream-2: #eaf6e2;
	--cream-3: #ddf0d0;
	--paper: #ffffff;
	--sage: #93db4c;
	--sage-2: #ffcf7a;
	--sage-deep: #d97a35;
	--clay: #93db4c;
	--clay-deep: #bde858;
	--clay-soft: #cdeabf;
	--rust: #bde858;
	--stone: #8a8a7a;
	--stone-2: #6a6a5a;
	--line: rgba(20, 23, 15, 0.12);
	--line-strong: rgba(20, 23, 15, 0.22);

	--font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.twy-account * { box-sizing: border-box; }

.twy-account a { color: inherit; text-decoration: none; }

.twy-account button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

.twy-account .wrap {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}
@media (min-width: 768px) { .twy-account .wrap { padding: 0 48px; } }
@media (min-width: 1200px) { .twy-account .wrap { padding: 0 64px; } }

/* Hide the default WP page entry-header on account pages — the hero is the title. */
.twy-account .entry-header,
body.woocommerce-account .entry-header { display: none; }

.twy-account .h-display {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.02em;
}
.twy-account .h-eyebrow {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(243, 241, 232, 0.85);
}

/* ============================================================
 * Buttons (scoped — avoids stomping global .btn)
 * ============================================================ */
.twy-account .twy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
	white-space: nowrap;
	border: 1px solid transparent;
	color: inherit;
}
.twy-account .twy-btn:hover { transform: translateY(-1px); }
.twy-account .twy-btn--primary { background: var(--clay); color: #fff; }
.twy-account .twy-btn--primary:hover { background: var(--clay-deep); box-shadow: 0 8px 20px -8px rgba(196, 85, 42, 0.6); }
.twy-account .twy-btn--dark { background: var(--ink); color: var(--cream); }
.twy-account .twy-btn--dark:hover { background: var(--ink-2); }
.twy-account .twy-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.twy-account .twy-btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.twy-account .twy-btn--sage { background: var(--sage); color: var(--ink); }
.twy-account .twy-btn--sage:hover { background: var(--sage-2); }
.twy-account .twy-btn--sm { height: 36px; padding: 0 16px; font-size: 11px; }
.twy-account .twy-btn--lg { height: 56px; padding: 0 32px; font-size: 14px; }
.twy-account .twy-btn--danger { color: var(--rust); border-color: rgba(168,74,38,0.3); }

/* ============================================================
 * Hero
 * ============================================================ */
.twy-account__hero {
	background: var(--ink);
	color: var(--cream);
	padding: 160px 0 96px;
	position: relative;
	overflow: hidden;
}
.twy-account__hero--has-bg {
	background-image:
		linear-gradient(180deg, rgba(20,23,15,0.55) 0%, rgba(20,23,15,0.70) 70%, rgba(20,23,15,0.85) 100%),
		var(--twy-account-hero-bg);
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}
.twy-account__hero-grid-lines {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(243,241,232,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(243,241,232,0.03) 1px, transparent 1px);
	background-size: 80px 80px;
	pointer-events: none;
}
.twy-account__hero .wrap { position: relative; }

.twy-account__hero-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(243,241,232,0.55);
	margin-bottom: 28px;
}

.twy-account__hero-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 64px;
	align-items: end;
}

.twy-account__hello {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--clay-soft);
	margin-bottom: 14px;
}

.twy-account__title {
	font-size: clamp(48px, 7vw, 96px);
	line-height: 0.95;
	letter-spacing: -0.025em;
	margin: 0;
}
.twy-account__title em { font-style: italic; color: var(--clay); }
.twy-account__title-line2 { color: #ffffff; }

.twy-account__pill {
	margin-top: 36px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px 14px 14px;
	background: rgba(243,241,232,0.06);
	border: 1px solid rgba(243,241,232,0.12);
	border-radius: 999px;
	font-size: 13px;
}
.twy-account__pill-icon {
	width: 36px; height: 36px; border-radius: 999px;
	background: var(--clay); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	animation: twy-account-pulse 2s var(--ease-out) infinite;
}
.twy-account__pill strong { color: var(--cream); font-weight: 600; }
.twy-account__pill .twy-account__pill-lead { color: var(--clay); font-weight: 600; }

@keyframes twy-account-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(226,106,58,0.4); }
	50%      { box-shadow: 0 0 0 12px rgba(226,106,58,0); }
}

.twy-account__hero-note {
	margin-top: 36px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(243,241,232,0.75);
	max-width: 560px;
}
.twy-account__hero-note strong { color: var(--cream); font-weight: 600; }

.twy-account__stats {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1px;
	background: rgba(243,241,232,0.12);
	border: 1px solid rgba(243,241,232,0.12);
}
.twy-account__stat { background: var(--ink); padding: 24px 20px; }
.twy-account__stat-key {
	font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
	color: rgba(243,241,232,0.5);
}
.twy-account__stat-val {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 44px; line-height: 1;
	margin-top: 8px;
	color: var(--cream);
}
.twy-account__stat-sub {
	font-size: 11px; color: rgba(243,241,232,0.55);
	margin-top: 4px; font-family: var(--font-mono);
}

/* ============================================================
 * Layout grid
 * ============================================================ */
.twy-account__shell {
	margin-top: -36px;
	position: relative;
	z-index: 2;
	padding-bottom: 160px;
}
.twy-account__grid {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: flex-start;
}
.twy-account__main {
	min-width: 0;
	padding-bottom: 80px;
}

/* ============================================================
 * Sidebar
 * ============================================================ */
.twy-account__sidebar {
	position: sticky;
	top: 100px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px 18px;
}
.twy-account__sidebar-id {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 18px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 12px;
}
.twy-account__avatar {
	width: 44px; height: 44px; border-radius: 999px;
	background: var(--sage);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-display); font-size: 18px;
	color: var(--ink);
	overflow: hidden;
	flex-shrink: 0;
}
.twy-account__avatar img { width: 100%; height: 100%; object-fit: cover; }
.twy-account__sidebar-id-meta { min-width: 0; }
.twy-account__sidebar-name {
	font-size: 13px; font-weight: 600; line-height: 1.2;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.twy-account__sidebar-mid {
	font-size: 11px; color: var(--stone-2); margin-top: 2px;
	font-family: var(--font-mono);
}

.twy-account__nav {
	display: flex; flex-direction: column; gap: 2px;
	margin: 0; padding: 0; list-style: none;
}
.twy-account__nav li { list-style: none; }
.twy-account__nav a,
.twy-account__nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
	background: transparent;
	text-align: left;
	transition: background 0.15s, color 0.15s;
	letter-spacing: 0.01em;
	text-decoration: none;
	width: 100%;
}
.twy-account__nav a:hover,
.twy-account__nav-link:hover { background: var(--cream-2); }
.twy-account__nav .is-active a,
.twy-account__nav .is-active .twy-account__nav-link {
	background: var(--ink); color: var(--cream); font-weight: 600;
}
.twy-account__nav-count {
	font-size: 10.5px;
	font-family: var(--font-mono);
	color: var(--stone-2);
	background: var(--cream-2);
	padding: 2px 7px;
	border-radius: 999px;
	min-width: 22px;
	text-align: center;
}
.twy-account__nav .is-active .twy-account__nav-count {
	color: var(--clay-soft);
	background: rgba(243,241,232,0.1);
}

.twy-account__sidebar-foot {
	margin-top: 18px;
	padding: 14px;
	border-top: 1px solid var(--line);
	display: flex; flex-direction: column;
}
.twy-account__sidebar-foot a,
.twy-account__sidebar-foot button {
	display: block;
	text-align: left;
	font-size: 12px;
	color: var(--stone-2);
	padding: 6px 0;
	white-space: nowrap;
}
.twy-account__sidebar-foot a:hover,
.twy-account__sidebar-foot button:hover { color: var(--ink); }

/* ============================================================
 * SectionTitle
 * ============================================================ */
.twy-account__section-title {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
	margin: 8px 0 32px;
	flex-wrap: wrap;
}
.twy-account__section-title-eyebrow { margin-bottom: 14px; }
.twy-account__section-title h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 44px;
	line-height: 1.05;
	letter-spacing: -0.02em;
	padding-bottom: 4px;
	margin: 40px 0 0;
}
.twy-account__section-title p {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--stone-2);
	max-width: 560px;
	line-height: 1.55;
}

/* ============================================================
 * Card primitive
 * ============================================================ */
.twy-account__card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
}
.twy-account__card--flush { padding: 0; overflow: hidden; }

/* ============================================================
 * Status pills
 * ============================================================ */
.twy-account__pill-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 22px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--cream-3);
	color: var(--ink);
}
.twy-account__pill-status::before {
	content: ""; display: none;
	width: 6px; height: 6px; border-radius: 999px;
	background: currentColor; opacity: 0.85;
}
.twy-account__pill-status--dot::before { display: inline-block; }
.twy-account__pill-status--clay { background: var(--clay); color: #fff; }
.twy-account__pill-status--sage { background: var(--sage); color: var(--ink); }
.twy-account__pill-status--cream { background: var(--cream-3); color: var(--ink-2); }
.twy-account__pill-status--mute { background: var(--cream-2); color: var(--stone-2); }

/* ============================================================
 * Empty state
 * ============================================================ */
.twy-account__empty {
	text-align: center;
	padding: 56px;
}
.twy-account__empty-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 32px;
	margin: 0 0 8px;
}
.twy-account__empty p {
	font-size: 14px; color: var(--stone-2);
	max-width: 420px; margin: 0 auto 24px;
}

/* ============================================================
 * Overview — active delivery card
 * ============================================================ */
.twy-account__active-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 0;
}
.twy-account__active-main {
	padding: 32px;
	display: flex; flex-direction: column;
	justify-content: space-between;
	gap: 24px;
}
.twy-account__active-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 36px; line-height: 1.05;
	margin: 10px 0 12px;
}
.twy-account__active-title em { font-style: italic; color: var(--clay); }
.twy-account__active-body {
	font-size: 14px; color: var(--stone-2);
	line-height: 1.55; max-width: 440px; margin: 0;
}
.twy-account__active-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.twy-account__active-side {
	background: var(--cream-2);
	border-left: 1px solid var(--line);
	padding: 32px 28px;
	display: flex; flex-direction: column;
	gap: 18px;
}
.twy-account__active-date {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 30px; line-height: 1;
}
.twy-account__active-window {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-2);
}
.twy-account__active-meta {
	display: flex; flex-direction: column; gap: 10px;
	margin-top: 6px; font-size: 13px;
}
.twy-account__active-meta-row {
	display: flex; justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--line);
}
.twy-account__active-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.twy-account__active-meta-row span:first-child { color: var(--stone-2); }
.twy-account__active-meta-lead { color: var(--clay); font-weight: 600; }

.twy-account__site-note {
	margin-top: auto;
	padding: 12px 14px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ink-2);
}
.twy-account__site-note-label {
	display: block;
	font-size: 10px; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--stone-2);
	margin-bottom: 4px;
	font-weight: 700;
}

/* ============================================================
 * Delivery tracker
 * ============================================================ */
.twy-account__tracker { margin-top: 28px; position: relative; }
.twy-account__tracker-row {
	display: flex; align-items: flex-start;
	position: relative;
}
.twy-account__tracker-step {
	flex: 1; display: flex; flex-direction: column; align-items: center;
	position: relative;
	z-index: 2;
}
.twy-account__tracker-dot {
	width: 14px; height: 14px; border-radius: 999px;
	background: var(--cream-2);
	border: 2px solid var(--line-strong);
	margin-bottom: 10px;
}
.twy-account__tracker-step--done .twy-account__tracker-dot {
	background: var(--ink); border-color: transparent;
}
.twy-account__tracker-step--current .twy-account__tracker-dot {
	background: var(--clay); border-color: transparent;
	box-shadow: 0 0 0 6px rgba(226,106,58,0.18);
}
.twy-account__tracker-label {
	font-size: 11.5px; font-weight: 600; text-align: center;
	color: var(--ink);
}
.twy-account__tracker-step--current .twy-account__tracker-label { color: var(--clay); }
.twy-account__tracker-date {
	font-size: 10px; font-family: var(--font-mono);
	color: var(--stone-2); margin-top: 2px;
}
.twy-account__tracker-line {
	position: absolute;
	top: 6px; left: 12.5%; right: 12.5%;
	height: 2px;
	background: var(--line);
	z-index: 1;
}
.twy-account__tracker-line-fill {
	position: absolute; left: 0; top: 0; height: 100%;
	background: var(--ink);
}

/* ============================================================
 * Two-up overview cards
 * ============================================================ */
.twy-account__two-col {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
}
.twy-account__two-col-head {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-bottom: 18px;
}
.twy-account__two-col-head h3 {
	font-family: var(--font-display); font-weight: 400;
	letter-spacing: -0.02em; font-size: 24px;
	margin: 0;
}
.twy-account__view-all {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
}
.twy-account__view-all:hover { color: var(--ink); }

.twy-account__list { display: flex; flex-direction: column; gap: 14px; }

.twy-account__yard-row {
	display: flex; align-items: center; gap: 14px;
}
.twy-account__yard-row-meta {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 2px; flex-wrap: wrap;
}
.twy-account__yard-row-name {
	font-weight: 600; font-size: 14px; white-space: nowrap;
}
.twy-account__yard-row-next {
	font-size: 12px; color: var(--stone-2);
}

.twy-account__activity-row {
	display: flex; align-items: center; gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--line);
}
.twy-account__activity-row:last-child { border-bottom: none; padding-bottom: 0; }
.twy-account__activity-date {
	width: 40px; height: 40px; flex-shrink: 0;
	background: var(--cream-2); border-radius: 6px;
	display: flex; align-items: center; justify-content: center; flex-direction: column;
	font-family: var(--font-mono); font-size: 9px;
	color: var(--stone-2); letter-spacing: 0.04em;
	line-height: 1.1;
	text-align: center;
}
.twy-account__activity-meta { flex: 1; min-width: 0; }
.twy-account__activity-name { font-size: 13px; font-weight: 600; }
.twy-account__activity-id {
	font-size: 11px; color: var(--stone-2);
	font-family: var(--font-mono); margin-top: 2px;
}

/* ============================================================
 * Product thumb
 * ============================================================ */
.twy-account__thumb {
	background: var(--cream-2);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--line);
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-size: 10px;
	color: var(--stone-2); letter-spacing: 0.1em;
}
.twy-account__thumb--56 { width: 56px; height: 56px; }
.twy-account__thumb--64 { width: 64px; height: 64px; }
.twy-account__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
 * Aftercare reorder strip
 * ============================================================ */
.twy-account__reorder {
	background: var(--sage);
	border: 1px solid var(--sage-2);
	border-radius: 14px;
	overflow: hidden;
}
.twy-account__reorder-inner {
	padding: 28px 32px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}
.twy-account__reorder-eyebrow { color: var(--sage-deep); }
.twy-account__reorder-title {
	font-family: var(--font-display); font-weight: 400;
	letter-spacing: -0.02em; font-size: 26px;
	margin: 6px 0 4px;
}
.twy-account__reorder p {
	font-size: 13px; color: var(--ink-2); max-width: 540px;
	margin: 0;
}
.twy-account__reorder-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
 * Yard rows
 * ============================================================ */
.twy-account__yard-card { display: grid; grid-template-columns: 200px 1fr auto; gap: 0; align-items: stretch; }
.twy-account__yard-img {
	background: var(--cream-2); aspect-ratio: 4 / 3; overflow: hidden;
}
.twy-account__yard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.twy-account__yard-body { padding: 20px 24px; }
.twy-account__yard-head {
	display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.twy-account__yard-head h4 {
	font-family: var(--font-display); font-weight: 400;
	letter-spacing: -0.02em; font-size: 26px;
	margin: 0;
}
.twy-account__yard-room {
	font-size: 12.5px; color: var(--stone-2); margin-bottom: 14px;
}
.twy-account__yard-next {
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--cream-2);
	color: var(--ink-2);
	display: inline-block;
}
.twy-account__yard-next--incoming { background: var(--clay-soft); }
.twy-account__yard-stats {
	display: flex; gap: 28px; margin-top: 16px;
	font-family: var(--font-mono); font-size: 12px;
	flex-wrap: wrap;
}
.twy-account__yard-stats span { color: var(--stone-2); }
.twy-account__yard-stats strong { color: var(--ink); font-weight: 600; }
.twy-account__yard-actions {
	padding: 20px;
	display: flex; flex-direction: column; gap: 8px;
	justify-content: center;
	border-left: 1px solid var(--line);
}

/* ============================================================
 * Orders
 * ============================================================ */
.twy-account__order-filters {
	display: flex; gap: 4px;
	padding: 4px;
	background: var(--cream-2);
	border-radius: 999px;
}
.twy-account__order-filters button,
.twy-account__order-filters a {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: transparent;
	color: var(--ink-2);
	transition: background 0.15s, color 0.15s;
}
.twy-account__order-filters .is-active {
	background: var(--ink);
	color: var(--cream);
}

.twy-account__order-card { display: flex; flex-direction: column; }
.twy-account__order-head {
	padding: 16px 24px;
	border-bottom: 1px solid var(--line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.twy-account__order-head-meta { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
.twy-account__order-head-key {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
}
.twy-account__order-head-id { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.twy-account__order-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.twy-account__order-items { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.twy-account__order-item { display: flex; align-items: center; gap: 14px; }
.twy-account__order-item-name { font-size: 14px; font-weight: 600; }
.twy-account__order-item-sub { font-size: 12px; color: var(--stone-2); }
.twy-account__order-item-price { font-size: 13px; font-family: var(--font-mono); }

/* ============================================================
 * Bookings
 * ============================================================ */
.twy-account__booking { display: grid; grid-template-columns: 150px 1fr auto; gap: 0; }
.twy-account__booking-strip {
	background: var(--ink); color: var(--cream);
	padding: 22px 18px;
	display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.twy-account__booking-strip--clay { background: var(--clay); }
.twy-account__booking-kind {
	font-size: 10px; letter-spacing: 0.18em;
	text-transform: uppercase; opacity: 0.7;
}
.twy-account__booking-date {
	font-family: var(--font-display); font-weight: 400;
	letter-spacing: -0.02em; font-size: 26px; line-height: 1; margin-top: 4px;
}
.twy-account__booking-window {
	font-size: 11px; font-family: var(--font-mono); opacity: 0.85; margin-top: 2px;
}
.twy-account__booking-body { padding: 20px 24px; }
.twy-account__booking-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.twy-account__booking-crew { font-size: 13px; color: var(--stone-2); margin-bottom: 10px; }
.twy-account__booking-note {
	font-size: 13px; padding: 10px 12px;
	background: var(--cream-2); border-radius: 8px;
	display: inline-block;
}
.twy-account__booking-actions {
	padding: 20px 24px;
	display: flex; flex-direction: column; gap: 8px;
	justify-content: center;
	border-left: 1px solid var(--line);
}

/* ============================================================
 * Wishlist
 * ============================================================ */
.twy-account__wishlist {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* List view — text-left, image-right. Each row is one card. */
.twy-account__wish-row {
	display: grid;
	grid-template-columns: 1fr 200px;
	align-items: center;
}
.twy-account__wish-content {
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}
.twy-account__wish-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.twy-account__wish-name {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 28px;
	line-height: 1.05;
	color: var(--ink);
	text-decoration: none;
	margin: 0;
}
.twy-account__wish-name:hover { color: var(--clay); }
.twy-account__wish-price {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
}

.twy-account__wish-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.twy-account__wish-spec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--cream-2);
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.twy-account__wish-spec svg { width: 14px; height: 14px; flex-shrink: 0; }

.twy-account__wish-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: auto;
	padding-top: 4px;
	flex-wrap: wrap;
}

.twy-account__wish-thumb {
	display: block;
	background: var(--cream-2);
	overflow: hidden;
	margin: 16px 20px 16px 0;
	border-radius: 14px;
	aspect-ratio: 1.1 / 1;  /* matches .twy-card__frame on the archive */
}
.twy-account__wish-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ============================================================
 * Addresses & payment grids
 * ============================================================ */
.twy-account__grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.twy-account__address-head {
	display: flex; justify-content: space-between; align-items: flex-start;
	margin-bottom: 12px;
}
.twy-account__address-label-wrap { display: flex; align-items: center; gap: 8px; }
.twy-account__address-label { font-size: 16px; font-weight: 600; margin: 0; }
.twy-account__default-chip {
	font-size: 9px; font-weight: 700;
	letter-spacing: 0.12em; text-transform: uppercase;
	padding: 2px 8px; border-radius: 999px;
	background: var(--ink); color: var(--cream);
}
.twy-account__address-edit {
	font-size: 11px; color: var(--stone-2);
	letter-spacing: 0.08em; text-transform: uppercase;
}
.twy-account__address-edit:hover { color: var(--ink); }
.twy-account__address-body {
	font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
}
.twy-account__address-body .twy-account__address-name { font-weight: 600; }
.twy-account__address-note {
	margin-top: 14px;
	padding: 10px 12px;
	background: var(--cream-2); border-radius: 8px;
	font-size: 12px; color: var(--ink-2);
}

.twy-account__pay-card {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.twy-account__pay-card-left { display: flex; align-items: center; gap: 16px; }
.twy-account__pay-tile {
	width: 56px; height: 36px; border-radius: 6px;
	background: var(--ink); color: var(--cream);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
	flex-shrink: 0;
}
.twy-account__pay-tile--clay { background: var(--clay); }
.twy-account__pay-tile--sage { background: var(--sage-deep); }
.twy-account__pay-name { font-size: 14px; font-weight: 600; }
.twy-account__pay-sub { font-size: 12px; color: var(--stone-2); margin-top: 2px; }

.twy-account__credit { margin-top: 24px; }
.twy-account__credit-row {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	flex-wrap: wrap;
}
.twy-account__credit-balance {
	font-family: var(--font-display); font-weight: 400;
	letter-spacing: -0.02em; font-size: 36px; line-height: 1;
}
.twy-account__credit-sub { font-size: 12.5px; color: var(--stone-2); margin-top: 6px; }

/* ============================================================
 * Profile
 * ============================================================ */
.twy-account__profile-card { margin-bottom: 16px; }
.twy-account__profile-card:last-child { margin-bottom: 0; }
.twy-account__profile-card h3 {
	font-size: 14px; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--stone-2);
	margin: 0 0 18px; font-weight: 600;
}
.twy-account__field { display: block; }
.twy-account__field-label {
	font-size: 10.5px; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--stone-2);
	display: block; margin-bottom: 6px;
}
.twy-account__field-input,
.twy-account__field input,
.twy-account__field select,
.twy-account__field textarea {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	color: var(--ink);
	font-family: inherit;
	transition: border-color 0.2s, background 0.2s;
}
.twy-account__field textarea {
	height: auto;
	min-height: 96px;
	padding: 12px 14px;
	line-height: 1.55;
}
.twy-account__field-input:focus,
.twy-account__field input:focus,
.twy-account__field select:focus,
.twy-account__field textarea:focus {
	outline: none;
	border-color: var(--ink);
	background: #fff;
}
.twy-account__field-readonly {
	display: flex; align-items: center; justify-content: space-between;
	height: 48px; padding: 0 14px;
	background: var(--cream-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	color: var(--stone-2);
}

.twy-account__pref {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
	gap: 16px;
}
.twy-account__pref:last-child { border-bottom: none; }
.twy-account__pref-label { font-size: 14px; font-weight: 500; }
.twy-account__pref-sub { font-size: 12px; color: var(--stone-2); margin-top: 2px; }
.twy-account__toggle {
	width: 44px; height: 24px; border-radius: 999px;
	background: var(--cream-3);
	position: relative;
	cursor: pointer;
	transition: background 0.2s;
	flex-shrink: 0;
	border: none;
	padding: 0;
}
.twy-account__toggle::after {
	content: "";
	position: absolute; top: 2px; left: 2px;
	width: 20px; height: 20px; border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
	transition: left 0.2s;
}
.twy-account__toggle.is-on { background: var(--clay); }
.twy-account__toggle.is-on::after { left: 22px; }
.twy-account__toggle.is-locked { opacity: 0.6; cursor: not-allowed; }

.twy-account__account-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	gap: 16px;
	flex-wrap: wrap;
}
.twy-account__account-row:last-child { border-bottom: none; }
.twy-account__account-row-label { font-size: 14px; font-weight: 500; }
.twy-account__account-row--danger .twy-account__account-row-label { color: var(--rust); }
.twy-account__account-row-action {
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--ink);
	padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: transparent;
}
.twy-account__account-row--danger .twy-account__account-row-action {
	color: var(--rust);
	border-color: rgba(168,74,38,0.3);
}

/* ============================================================
 * Form layout (edit-account, edit-address, add-payment)
 * ============================================================ */
.twy-account__form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.twy-account__form-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.twy-account__form-grid--full { grid-template-columns: 1fr; }
.twy-account__form-actions {
	display: flex; gap: 10px; align-items: center; margin-top: 8px;
	flex-wrap: wrap;
}
.twy-account__notices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.twy-account__notice {
	padding: 12px 14px; border-radius: 10px;
	font-size: 13px;
	background: var(--cream-2);
	border: 1px solid var(--line);
}
.twy-account__notice--error { background: rgba(168,74,38,0.08); border-color: rgba(168,74,38,0.24); color: var(--rust); }
.twy-account__notice--success { background: var(--sage); border-color: var(--sage-2); color: var(--ink); }

/* ============================================================
 * Section gap helper
 * ============================================================ */
.twy-account__stack { display: flex; flex-direction: column; gap: 32px; }

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 960px) {
	.twy-account__grid { grid-template-columns: 1fr; gap: 24px; }
	.twy-account__sidebar { position: static; top: 0; }
	.twy-account__hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.twy-account__active-grid { grid-template-columns: 1fr; }
	.twy-account__active-side { border-left: none; border-top: 1px solid var(--line); }
	.twy-account__two-col { grid-template-columns: 1fr; }
	.twy-account__yard-card { grid-template-columns: 1fr; }
	.twy-account__yard-img { aspect-ratio: 16 / 9; }
	.twy-account__yard-actions { flex-direction: row; border-left: none; border-top: 1px solid var(--line); justify-content: stretch; }
	.twy-account__yard-actions .twy-btn { flex: 1; }
	.twy-account__wish-row { grid-template-columns: 1fr; }
	.twy-account__wish-thumb { aspect-ratio: 1.1 / 1; margin: 16px 16px 0; order: -1; }
	.twy-account__wish-content { padding: 20px 22px; }
	.twy-account__wish-name { font-size: 24px; }
	.twy-account__grid-2 { grid-template-columns: 1fr; }
	.twy-account__form-grid { grid-template-columns: 1fr; }
	.twy-account__booking { grid-template-columns: 1fr; }
	.twy-account__booking-actions { flex-direction: row; border-left: none; border-top: 1px solid var(--line); }
	.twy-account__active-actions { gap: 8px; }
}

@media (max-width: 640px) {
	.twy-account__hero { padding: 140px 0 64px; }
	.twy-account__shell { padding-bottom: 96px; }
	.twy-account__main { padding-bottom: 48px; }
	.twy-account__order-head { gap: 12px; }
	.twy-account__order-head-meta { gap: 16px; }
	.twy-account__active-main,
	.twy-account__active-side { padding: 24px 20px; }
	.twy-account__reorder-inner { grid-template-columns: 1fr; }
	.twy-account__credit-row { flex-direction: column; align-items: flex-start; }
	.twy-account__section-title h2 { font-size: 32px; }
	.twy-account__title { font-size: clamp(40px, 11vw, 64px); }
	.twy-account__stat-val { font-size: 32px; }
}

/* ============================================
   Walkthrough video — My Account integration
   ============================================ */

/* Dashboard banner — visible at the top of the account dashboard when one
   or more of the customer's orders need a walkthrough video. */
.twy-vw-account-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 28px;
	background: var(--ink);
	color: var(--cream);
	border-radius: 12px;
	flex-wrap: wrap;
}
.twy-vw-account-banner__copy {
	flex: 1 1 320px;
	min-width: 0;
}
.twy-vw-account-banner__eyebrow {
	color: var(--clay);
	margin-bottom: 6px;
}
.twy-vw-account-banner__line {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
}
.twy-vw-account-banner__cta { flex-shrink: 0; }

/* Per-order inline notice — sits between order header and line items in
   the orders list. */
.twy-vw-account-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	background: var(--cream);
	flex-wrap: wrap;
}
.twy-vw-account-row--has-video { background: rgba(212, 224, 168, 0.18); }
.twy-vw-account-row__copy {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ink);
	flex: 1 1 auto;
	min-width: 0;
}
.twy-vw-account-row__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
}
.twy-vw-account-row--needs .twy-vw-account-row__icon {
	background: var(--clay);
	color: var(--cream);
}
.twy-vw-account-row--has-video .twy-vw-account-row__icon {
	background: var(--sage);
	color: var(--ink);
}
.twy-vw-account-row__ref {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--stone-2);
	margin-left: 6px;
	letter-spacing: 0.04em;
}

/* View-order panel — full status block on the single order view. */
.twy-vw-account {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 28px 32px;
	margin: 0 0 32px;
}
.twy-vw-account__head { margin-bottom: 16px; }
.twy-vw-account__eyebrow {
	color: var(--clay);
	display: block;
	margin-bottom: 8px;
}
.twy-vw-account__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--ink);
}
.twy-vw-account__body {
	font-size: 15px;
	line-height: 1.55;
	color: var(--stone-2);
	margin: 0 0 18px;
}
.twy-vw-account__actions {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.twy-vw-account__retention {
	font-size: 12.5px;
	color: var(--stone-2);
	margin: 0;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

@media (max-width: 600px) {
	.twy-vw-account { padding: 22px 20px; }
	.twy-vw-account-banner { padding: 18px 20px; }
	.twy-vw-account-row { padding: 12px 16px; }
}

/* ============================================================
 * Login + register page (form-login.php override)
 * Uses .twy-account scoped tokens — sits on the cream background.
 * ============================================================ */
.twy-account-login {
	padding: 80px 0 120px;
	min-height: 60vh;
}
.twy-account-login__head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}
.twy-account-login__head .h-eyebrow {
	color: var(--stone-2);
	margin-bottom: 12px;
}
.twy-account-login__title {
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1.05;
	margin: 0 0 16px;
}
.twy-account-login__title em { font-style: italic; color: var(--clay); }
.twy-account-login__sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--stone-2);
	margin: 0;
}

.twy-account-login__grid {
	display: grid;
	gap: 24px;
	max-width: 480px;
	margin: 0 auto;
}
.twy-account-login__grid--two {
	max-width: 920px;
	grid-template-columns: 1fr 1fr;
}

.twy-account-login__card { padding: 32px; }
.twy-account-login__card-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 28px;
	line-height: 1;
	margin: 0 0 8px;
}
.twy-account-login__card-sub {
	font-size: 13.5px;
	color: var(--stone-2);
	margin: 0 0 20px;
	line-height: 1.5;
}

.twy-account-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 4px;
	font-size: 13px;
}
.twy-account-login__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: var(--ink);
}
.twy-account-login__remember input[type=checkbox] {
	width: 16px; height: 16px; margin: 0;
	accent-color: var(--clay);
}
.twy-account-login__forgot {
	color: var(--stone-2);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.twy-account-login__forgot:hover { color: var(--ink); }
.twy-account-login__hint {
	font-size: 13px;
	color: var(--stone-2);
	background: var(--cream-2);
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0;
}

@media (max-width: 768px) {
	.twy-account-login { padding: 48px 0 80px; }
	.twy-account-login__grid--two { grid-template-columns: 1fr; max-width: 480px; }
	.twy-account-login__card { padding: 24px; }
	.twy-account-login__row { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ============================================================
 * Avatar field on the Profile form
 * ============================================================ */
.twy-account__avatar-row {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px dashed var(--line);
}
.twy-account__avatar--lg {
	width: 80px;
	height: 80px;
	font-size: 28px;
}
.twy-account__avatar-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.twy-account__avatar-input {
	position: absolute;
	width: 1px; height: 1px;
	clip: rect(0,0,0,0);
	overflow: hidden;
}
.twy-account__avatar-upload-btn {
	cursor: pointer;
	align-self: flex-start;
}
.twy-account__avatar-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--stone-2);
	cursor: pointer;
}
.twy-account__avatar-remove input { width: 14px; height: 14px; accent-color: var(--clay); }
.twy-account__avatar-hint {
	font-size: 11px;
	color: var(--stone-2);
	margin: 0;
}

/* ============================================================
 * Edit-address form (form-edit-address.php)
 * Manually-rendered fields with brand classes; just need a couple
 * of bits of glue for the locked-country indicator and stretch.
 * ============================================================ */
.twy-account__edit-address { max-width: 720px; }
.twy-account__country-locked {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 14px;
	background: var(--cream-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	font-size: 14px;
}
.twy-account__country-flag {
	flex-shrink: 0;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.twy-account__country-hint {
	margin-left: auto;
	font-size: 12px;
	color: var(--stone-2);
	font-style: italic;
}

/* sr-only utility for visually-hidden labels (Address line 2). */
.twy-account__field-label.sr-only,
.twy-account .sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ============================================================
 * Profile — avatar preview status + pending-remove visual
 * ============================================================ */
.twy-account__avatar-status {
	font-size: 12px;
	color: var(--ink-2);
	background: var(--cream-2);
	padding: 6px 10px;
	border-radius: 8px;
	margin: 0;
	font-family: var(--font-mono);
}
.twy-account__avatar.is-pending-remove {
	opacity: 0.4;
	filter: grayscale(1);
	transition: opacity 0.2s, filter 0.2s;
}

/* ============================================================
 * Unsaved-changes banner — sticky at the top of the Profile
 * form. Slides in the first time the user touches a field.
 * ============================================================ */
.twy-account__dirty-banner {
	position: sticky;
	top: 0;
	z-index: 10;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--clay-soft);
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	border: 1px solid rgba(196, 85, 42, 0.2);
	box-shadow: 0 4px 12px rgba(20, 23, 15, 0.08);
}
.twy-account__dirty-banner.is-visible { display: inline-flex; }
.twy-account__dirty-banner svg { flex-shrink: 0; color: var(--clay-deep); }

/* ============================================================
 * Order notes panel — view-order page
 * ============================================================ */
.twy-account__notes-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}
.twy-account__notes-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.02em;
	font-size: 24px;
	margin: 0;
}
.twy-account__notes-empty,
.twy-account__notes-closed {
	font-size: 13px;
	color: var(--stone-2);
	background: var(--cream-2);
	padding: 12px 14px;
	border-radius: 10px;
	margin: 0 0 16px;
	line-height: 1.5;
}
.twy-account__notes-thread {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 480px;
	overflow-y: auto;
}
.twy-account__note {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	background: var(--paper);
}
.twy-account__note--customer {
	background: var(--cream-2);
	border-color: var(--cream-3);
}
.twy-account__note--ops {
	background: var(--paper);
	border-left: 3px solid var(--clay);
}
.twy-account__note-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
	font-size: 12px;
}
.twy-account__note-meta strong { font-weight: 600; }
.twy-account__note-date {
	font-family: var(--font-mono);
	color: var(--stone-2);
	font-size: 11px;
}
.twy-account__note-body {
	font-size: 14px;
	color: var(--ink);
	line-height: 1.55;
}
.twy-account__note-body p:last-child { margin-bottom: 0; }

.twy-account__notes-form { margin-top: 4px; }
.twy-account__notes-hint {
	font-size: 12px;
	color: var(--stone-2);
	font-style: italic;
}
