/* =========================================================
   8Erikas — account.css
   Loaded only on My Account pages (inc/enqueue.php).

   Depends on main.css for the design tokens and on shop.css for
   the shared Woo button/notice rules. It is loaded AFTER both, so
   anything declared here wins at equal specificity.

   Visual contract, ported from the Fiora reference:
     surface   white on stone-50
     card      24px radius, 1px stone-200 border, no shadow at rest
     control   pill (999px), stone-900 fill or stone-200 outline
     accent    rose for destructive, emerald/amber/sky for status
   ========================================================= */

/* ---------- Tokens this file adds ---------- */
:root {
	--sky-100: #e0f2fe;
	--sky-800: #075985;
	--emerald-50: #ecfdf5;
	--emerald-100: #d1fae5;
	--emerald-200: #a7f3d0;
	--emerald-600: #059669;
	--emerald-800: #065f46;
	--rose-50: #fff1f2;
	--rose-300: #fda4af;
	--rose-600: #e11d48;
	--rose-800: #9f1239;

	--card-radius: 24px;
	--card-border: 1px solid var(--stone-200);
}

/* =========================================================
   PAGE SHELL
   ---------------------------------------------------------
   page.php already supplies .wrap.wrap--wide.woo-page.is-account
   and suppresses its own <h1> here, so the greeting below is the
   page's only level-1 heading.
   ========================================================= */
.woocommerce-account .woo-page__inner > .woocommerce {
	display: block;
}

.account {
	max-width: 72rem;
	margin-inline: auto;
}

.account__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.account__eyebrow {
	margin: 0;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--stone-400);
}

.account__greeting {
	margin: 0.5rem 0 0;
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--stone-900);
}

.account__logout {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-pill);
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: var(--stone-700);
	text-decoration: none;
	background: var(--color-surface);
	transition: border-color 0.2s;
}

.account__logout:hover { border-color: var(--stone-400); }
.account__logout .icon { width: 1rem; height: 1rem; }

.account__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.account__body { grid-template-columns: 13.75rem minmax(0, 1fr); }
}

.account__content { min-width: 0; }

/* =========================================================
   NAVIGATION
   ---------------------------------------------------------
   Horizontal scroller on mobile, vertical rail from 900px.
   Overrides the earlier MY ACCOUNT block in shop.css.
   ========================================================= */
.woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0 0 0.25rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

.woocommerce-MyAccount-navigation li { margin: 0; flex: 0 0 auto; }

.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	border-radius: 16px;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	line-height: 1.2;
	white-space: nowrap;
	color: var(--stone-600);
	text-decoration: none;
	background: transparent;
	transition: background-color 0.2s, color 0.2s;
}

.woocommerce-MyAccount-navigation a .icon { width: 1rem; height: 1rem; flex: 0 0 auto; }

.woocommerce-MyAccount-navigation a:hover {
	background: var(--stone-100);
	color: var(--stone-900);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--stone-900);
	color: #fff;
	font-weight: 500;
}

.woocommerce-MyAccount-navigation li.is-danger a { color: var(--rose-700); }

.woocommerce-MyAccount-navigation li.is-danger:hover a { background: var(--rose-50); }

.woocommerce-MyAccount-navigation li.is-danger.is-active a {
	background: var(--rose-50);
	color: var(--rose-700);
}

@media (min-width: 900px) {
	.woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		gap: 0.25rem;
		overflow: visible;
		padding-bottom: 0;
	}

	.woocommerce-MyAccount-navigation li { flex: 1 1 auto; }
	.woocommerce-MyAccount-navigation a { width: 100%; }
}

/* =========================================================
   BUTTONS
   ---------------------------------------------------------
   .btn is this module's own pill. Woo's .button rules from
   shop.css still apply to markup Woo generates itself.
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	padding: 0.8125rem 1.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn .icon { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* Was stone-900 (near-black) — this is the account area's primary CTA
   (save changes, log in, register, continue shopping…), the equivalent of
   .btn--solid in main.css, so it takes the same brand accent. */
.btn--dark { background: var(--color-accent); color: var(--color-accent-fg); border-color: var(--color-accent); }
.btn--dark:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn--ghost {
	background: var(--color-surface);
	color: var(--stone-700);
	border-color: var(--stone-200);
}
.btn--ghost:hover { border-color: var(--stone-400); color: var(--stone-900); }

.btn--danger { background: var(--rose-600); color: #fff; border-color: var(--rose-600); }
.btn--danger:hover { background: var(--rose-700); border-color: var(--rose-700); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--rose-600); border-color: var(--rose-600); }

/* =========================================================
   STATUS BADGES
   ========================================================= */
.badge {
	display: inline-flex;
	align-items: center;
	border-radius: var(--radius-pill);
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.badge--amber   { background: var(--amber-100); color: var(--amber-800); }
.badge--sky     { background: var(--sky-100); color: var(--sky-800); }
.badge--emerald { background: var(--emerald-100); color: var(--emerald-800); }
.badge--stone   { background: var(--stone-200); color: var(--stone-600); }
.badge--rose    { background: var(--rose-100); color: var(--rose-800); }

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
.account-block { margin-bottom: 2.5rem; }
.account-block:last-child { margin-bottom: 0; }

.account-block__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.account-block__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--stone-900);
}

.account-block__sub {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	color: var(--stone-500);
}

.account-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8125rem;
	color: var(--stone-500);
	text-decoration: none;
	transition: color 0.2s;
}

.account-link:hover { color: var(--stone-900); }
.account-link .icon { width: 0.875rem; height: 0.875rem; }

.account-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: var(--stone-500);
	text-decoration: none;
	transition: color 0.2s;
}

.account-back:hover { color: var(--stone-900); }
.account-back .icon { width: 1rem; height: 1rem; }

/* =========================================================
   DASHBOARD — stat tiles
   ========================================================= */
.account-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.account-stat {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.25rem;
}

.account-stat__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.5rem;
	border-radius: var(--radius-pill);
	background: var(--stone-100);
	color: var(--stone-600);
}

.account-stat__icon .icon { width: 1.125rem; height: 1.125rem; }

.account-stat__value {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--stone-900);
	font-variant-numeric: tabular-nums;
}

.account-stat__value .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

.account-stat__label {
	font-size: 0.75rem;
	color: var(--stone-500);
}

/* =========================================================
   DASHBOARD — shortcuts
   ========================================================= */
.account-shortcuts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
}

.account-shortcut {
	display: flex;
	align-items: center;
	gap: 1rem;
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.25rem;
	text-decoration: none;
	transition: border-color 0.2s;
}

.account-shortcut:hover { border-color: var(--stone-400); }

.account-shortcut__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	background: var(--stone-100);
	color: var(--stone-600);
}

.account-shortcut__icon .icon { width: 1.125rem; height: 1.125rem; }

.account-shortcut__body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }

.account-shortcut__title { font-size: 0.9375rem; font-weight: 500; color: var(--stone-900); }
.account-shortcut__text { font-size: 0.8125rem; color: var(--stone-500); }

.account-shortcut__chevron {
	width: 1rem;
	height: 1rem;
	margin-inline-start: auto;
	flex: 0 0 auto;
	color: var(--stone-300);
}

/* =========================================================
   ORDER CARDS
   ========================================================= */
.order-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.order-card {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.25rem;
}

.order-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-bottom: 1px solid var(--stone-100);
	padding-bottom: 1rem;
}

.order-card__id {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--stone-900);
	text-decoration: none;
}

.order-card__id:hover { text-decoration: underline; }

.order-card__date {
	margin: 0.125rem 0 0;
	font-size: 0.75rem;
	color: var(--stone-500);
}

.order-card__items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 0;
}

.order-card__thumbs { display: flex; }

.order-card__thumb {
	display: block;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-pill);
	border: 2px solid #fff;
	background: var(--stone-100);
	overflow: hidden;
	flex: 0 0 auto;
}

.order-card__thumb + .order-card__thumb { margin-inline-start: -0.75rem; }

.order-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.order-card__thumb--more {
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--stone-600);
	background: var(--stone-200);
}

.order-card__names {
	margin: 0;
	min-width: 10rem;
	flex: 1 1 12rem;
	font-size: 0.875rem;
	color: var(--stone-600);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.order-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-top: 1px solid var(--stone-100);
	padding-top: 1rem;
}

.order-card__count { font-size: 0.75rem; color: var(--stone-500); }

.order-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.order-card__total { font-size: 0.9375rem; font-weight: 600; color: var(--stone-900); }

.order-list--compact .order-card__foot { border-top: 0; padding-top: 0; }

/* Pagination */
.account-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.account-pagination__pos { font-size: 0.8125rem; color: var(--stone-500); }

/* =========================================================
   EMPTY STATES
   ========================================================= */
.account-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	border: 1px dashed var(--stone-300);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 3rem 1.5rem;
	text-align: center;
}

/* Woo's notice rules also match .woocommerce-info on the orders
   empty state; neutralise the parts that fight the card. */
.account-empty.woocommerce-info {
	border-inline-start: 1px dashed var(--stone-300);
	justify-content: center;
}

.account-empty__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-pill);
	background: var(--stone-100);
	color: var(--stone-400);
}

.account-empty__icon .icon { width: 1.375rem; height: 1.375rem; }

.account-empty__title {
	margin: 0.5rem 0 0;
	font-family: var(--font-serif);
	font-size: 1.125rem;
	color: var(--stone-900);
}

.account-empty__text { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--stone-500); }

/* =========================================================
   FORMS — account details, addresses, auth
   ========================================================= */
.account-card {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin: 0 0 1.5rem;
}

.account-card__legend {
	padding: 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stone-500);
}

.account-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) {
	.account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.account-field--wide,
	.account-grid > .form-row-wide { grid-column: 1 / -1; }
}

.account-field { margin: 0; display: block; }

.account-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--stone-500);
}

.account-field .required { color: var(--rose-600); text-decoration: none; }

.account-field__optional,
.account-field__hint {
	display: block;
	margin-top: 0.375rem;
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--stone-400);
}

.account-field__optional { display: inline; margin: 0 0 0 0.25rem; }

.account-field input[type="text"],
.account-field input[type="email"],
.account-field input[type="tel"],
.account-field input[type="date"],
.account-field input[type="password"],
.account-field input[type="number"],
.account-field select,
.account-field textarea,
.woocommerce-address-fields .input-text,
.woocommerce-address-fields select {
	width: 100%;
	border: 1px solid var(--stone-200);
	border-radius: 16px;
	background: var(--color-surface);
	padding: 0.8125rem 1rem;
	font-size: 0.875rem;
	color: var(--stone-900);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus,
.woocommerce-address-fields .input-text:focus,
.woocommerce-address-fields select:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.15);
}

.account-field input::placeholder { color: var(--stone-400); }

/* Woo marks invalid rows with .woocommerce-invalid */
.woocommerce-invalid input.input-text,
.woocommerce-invalid select { border-color: var(--rose-300); }

/* Checkbox rows */
.account-checks { display: flex; flex-direction: column; gap: 0.75rem; }

.account-check {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--stone-700);
	cursor: pointer;
}

.account-check input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.125rem 0 0;
	flex: 0 0 auto;
	accent-color: var(--color-accent);
	cursor: pointer;
}

.account-check--danger { align-items: flex-start; }
.account-check--danger input[type="checkbox"] { accent-color: var(--rose-600); }

.account-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.account-form__cancel {
	padding: 0.8125rem 1rem;
	font-size: 0.875rem;
	color: var(--stone-500);
	text-decoration: none;
}

.account-form__cancel:hover { color: var(--stone-900); }

/* Edit-address form (Woo's own template, no override) */
.woocommerce-address-fields .form-row { margin: 0 0 1rem; }

.woocommerce-address-fields label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--stone-500);
}

.woocommerce-address-fields__field-wrapper {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

/* =========================================================
   ADDRESSES
   ========================================================= */
.address-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
}

.address-grid--single { grid-template-columns: minmax(0, 26rem); }

.address-card {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
}

.address-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.address-card__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--stone-900);
}

.address-card__title .icon { width: 1rem; height: 1rem; color: var(--stone-400); }

.address-card__body {
	font-style: normal;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--stone-600);
}

.address-card__empty { color: var(--stone-400); }

/* =========================================================
   SINGLE ORDER VIEW
   ========================================================= */
.order-view__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.order-view__id {
	margin: 0.5rem 0 0;
	font-family: var(--font-serif);
	font-size: 1.75rem;
	font-weight: 400;
	color: var(--stone-900);
}

.order-view__date { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--stone-500); }

.order-view__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

/* Tracking */
.order-tracking,
.order-timeline {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.order-tracking__title,
.order-timeline__title,
.order-details__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-family: var(--font-serif);
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--stone-900);
}

.order-tracking__title .icon { width: 1.125rem; height: 1.125rem; color: var(--stone-400); }

.order-tracking__list { list-style: none; margin: 0; padding: 0; }

.order-tracking__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border-radius: 16px;
	background: var(--stone-50);
	padding: 0.875rem 1rem;
}

.order-tracking__row + .order-tracking__row { margin-top: 0.5rem; }

.order-tracking__carrier {
	display: block;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stone-400);
}

.order-tracking__number {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.875rem;
	color: var(--stone-900);
}

/* Timeline */
.order-timeline__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.25rem;
	border-inline-start: 1px solid var(--stone-200);
}

.order-timeline__item { position: relative; padding-bottom: 1.25rem; }
.order-timeline__item:last-child { padding-bottom: 0; }

.order-timeline__item::before {
	content: "";
	position: absolute;
	inset-inline-start: -1.6875rem;
	top: 0.4rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--radius-pill);
	background: var(--stone-300);
}

.order-timeline__date { font-size: 0.6875rem; color: var(--stone-400); }

.order-timeline__text { font-size: 0.875rem; color: var(--stone-600); }
.order-timeline__text p { margin: 0.25rem 0 0; }

/* Order details table */
.order-details {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.order-details__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.order-details__table thead th {
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--stone-200);
	text-align: start;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--stone-400);
}

.order-details__table thead th:last-child,
.order-details__table tbody td:last-child,
.order-details__table tfoot td { text-align: end; }

.order-details__table tbody td {
	padding: 1rem 0;
	border-bottom: 1px solid var(--stone-100);
	vertical-align: top;
}

.order-details__table tfoot th,
.order-details__table tfoot td {
	padding: 0.5rem 0;
	font-weight: 400;
	color: var(--stone-600);
}

.order-details__table tfoot th { text-align: start; }

.order-details__table tfoot tr:first-child th,
.order-details__table tfoot tr:first-child td { padding-top: 1rem; }

.order-details__table tfoot tr:last-child th,
.order-details__table tfoot tr:last-child td {
	font-size: 1rem;
	font-weight: 600;
	color: var(--stone-900);
}

.order-item { display: flex; align-items: flex-start; gap: 0.875rem; }

.order-item__thumb {
	display: block;
	flex: 0 0 auto;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 14px;
	background: var(--stone-100);
	overflow: hidden;
}

.order-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.order-item__body { min-width: 0; }

.order-item__name { color: var(--stone-900); text-decoration: none; font-weight: 500; }
.order-item__name:hover { text-decoration: underline; }

.order-item__qty { font-weight: 400; color: var(--stone-500); }

.order-item__body .wc-item-meta {
	list-style: none;
	margin: 0.375rem 0 0;
	padding: 0;
	font-size: 0.75rem;
	color: var(--stone-500);
}

.order-item__body .wc-item-meta p { margin: 0; }

/* Customer details */
.order-addresses { margin-top: 1.5rem; }

.order-addresses__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
}

.order-addresses__grid--single { grid-template-columns: minmax(0, 26rem); }

.order-address {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
}

.order-address__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--stone-900);
}

.order-address__title .icon { width: 1rem; height: 1rem; color: var(--stone-400); }

.order-address__body {
	font-style: normal;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--stone-600);
}

.order-address__line { display: block; }

/* =========================================================
   ALERTS / DANGER ZONE
   ========================================================= */
.account-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.account-alert--danger { border-color: var(--rose-200); background: var(--rose-50); }

.account-alert__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	background: var(--stone-100);
	color: var(--stone-600);
}

.account-alert--danger .account-alert__icon { background: var(--rose-100); color: var(--rose-600); }

.account-alert__icon .icon { width: 1.25rem; height: 1.25rem; }

.account-alert__title {
	margin: 0 0 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--stone-900);
}

.account-alert__body p { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--stone-600); }
.account-alert__body form { margin: 0; }

.account-countdown,
.delete-modal__grace {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid var(--stone-200);
	border-radius: 16px;
	background: var(--color-surface);
	padding: 0.75rem 1rem;
	margin: 0 0 1rem;
}

.account-countdown__label { font-size: 0.75rem; color: var(--stone-500); }

.account-countdown__value {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--stone-900);
	font-variant-numeric: tabular-nums;
}

.danger-card {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	border: 1px solid var(--rose-200);
	border-radius: var(--card-radius);
	background: var(--rose-50);
	padding: 1.5rem;
}

.danger-card__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	background: var(--rose-100);
	color: var(--rose-600);
}

.danger-card__icon .icon { width: 1.25rem; height: 1.25rem; }

.danger-card__title { margin: 0 0 0.375rem; font-size: 0.9375rem; font-weight: 600; color: var(--stone-900); }

.danger-card__text { margin: 0 0 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--stone-600); }

.danger-card__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: var(--stone-600);
}

.danger-card__list li { display: flex; align-items: flex-start; gap: 0.5rem; }

.danger-card__list .icon {
	width: 0.875rem;
	height: 0.875rem;
	margin-top: 0.25rem;
	flex: 0 0 auto;
	color: var(--rose-400);
}

/* =========================================================
   DELETE CONFIRMATION
   ---------------------------------------------------------
   Without JavaScript this is a plain card below the danger
   block and the form submits normally. account.js adds
   [data-enhanced] and the same markup becomes a modal.
   ========================================================= */
.delete-modal {
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.delete-modal__backdrop,
.delete-modal__close { display: none; }

.delete-modal[data-enhanced] {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 1rem;
	margin: 0;
}

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

.delete-modal[data-enhanced] .delete-modal__backdrop {
	display: block;
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.4);
	backdrop-filter: blur(4px);
	animation: erikas-fade-in 0.25s ease-out;
}

.delete-modal[data-enhanced] .delete-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 28rem;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: var(--card-radius);
	background: var(--color-surface);
	box-shadow: var(--shadow-soft);
	padding: 2rem;
	animation: erikas-scale-in 0.2s ease-out;
}

.delete-modal[data-enhanced] .delete-modal__close {
	display: grid;
	place-items: center;
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-end: 1rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--stone-400);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.delete-modal[data-enhanced] .delete-modal__close:hover {
	background: var(--stone-100);
	color: var(--stone-700);
}

.delete-modal__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--radius-pill);
	background: var(--rose-100);
	color: var(--rose-600);
}

.delete-modal__icon .icon { width: 1.5rem; height: 1.5rem; }

.delete-modal__title {
	margin: 1rem 0 0;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--stone-900);
}

.delete-modal__text { margin: 0.75rem 0 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--stone-600); }

.delete-modal__grace { background: var(--stone-50); }

.delete-modal__form { display: flex; flex-direction: column; gap: 1rem; }

.delete-modal__actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.delete-modal__actions .btn { width: 100%; }

@media (min-width: 480px) {
	.delete-modal__actions { flex-direction: row-reverse; }
	.delete-modal__actions .btn { flex: 1 1 0; }
}

@keyframes erikas-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes erikas-scale-in {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   AUTH — login / register
   ---------------------------------------------------------
   Tabs are radio inputs plus :checked sibling selectors, so
   the panel needs no JavaScript at all.
   ========================================================= */
.auth {
	width: min(100%, 28rem);
	margin-inline: auto;
	padding-block: 2rem;
}

.auth__head { text-align: center; margin-bottom: 2rem; }

.auth__brand {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 1.875rem;
	color: var(--stone-900);
}

.auth__sub { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--stone-500); }

.auth__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.auth__tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.25rem;
	border-radius: var(--radius-pill);
	background: var(--stone-100);
	padding: 0.25rem;
	margin-bottom: 1.5rem;
}

.auth__tab {
	border-radius: var(--radius-pill);
	padding: 0.625rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--stone-500);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.auth__tab:hover { color: var(--stone-800); }

/* Tab ↔ panel wiring. The two radios sit before .auth__tabs, so
   the panels are general siblings of both. */
.auth--tabs .auth__panel--register { display: none; }

#erikas-tab-register:checked ~ .auth__panel--login { display: none; }
#erikas-tab-register:checked ~ .auth__panel--register { display: block; }

#erikas-tab-login:checked ~ .auth__tabs label[for="erikas-tab-login"],
#erikas-tab-register:checked ~ .auth__tabs label[for="erikas-tab-register"] {
	background: var(--color-surface);
	color: var(--stone-900);
	box-shadow: 0 1px 2px rgba(41, 37, 36, 0.08);
}

/* The radios are visually hidden, so the focus ring has to be drawn on the
   label the focused radio controls — otherwise keyboard users see nothing. */
#erikas-tab-login:focus-visible ~ .auth__tabs label[for="erikas-tab-login"],
#erikas-tab-register:focus-visible ~ .auth__tabs label[for="erikas-tab-register"] {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border: var(--card-border);
	border-radius: var(--card-radius);
	background: var(--color-surface);
	padding: 1.5rem;
	margin: 0;
	max-width: none;
}

.auth-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.auth-form__lost { font-size: 0.75rem; color: var(--stone-500); text-decoration: none; }
.auth-form__lost:hover { color: var(--stone-900); }

.auth-form__hint { margin: 0; font-size: 0.75rem; line-height: 1.6; color: var(--stone-400); }

.auth-form .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 0.6875rem;
	line-height: 1.6;
	color: var(--stone-400);
}

/* Goodbye screen */
.auth-goodbye {
	width: min(100%, 28rem);
	margin-inline: auto;
	padding-block: 4rem;
	text-align: center;
}

.auth-goodbye__icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto;
	border-radius: var(--radius-pill);
	background: var(--stone-200);
	color: var(--stone-600);
}

.auth-goodbye__icon .icon { width: 1.75rem; height: 1.75rem; }

.auth-goodbye__title {
	margin: 1.25rem 0 0;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--stone-900);
}

.auth-goodbye__text { margin: 0.75rem 0 0; font-size: 0.875rem; line-height: 1.7; color: var(--stone-600); }
.auth-goodbye__hint { margin: 0.75rem 0 1.5rem; font-size: 0.75rem; color: var(--stone-400); }

/* =========================================================
   PRINT — order view is the one page people print
   ========================================================= */
@media print {
	.account__nav,
	.account__logout,
	.account-back,
	.order-view__actions,
	.delete-modal { display: none !important; }

	.order-details,
	.order-address { border-color: #ccc; }
}
