/**
 * My Account surfaces.
 *
 * Primitives shared with checkout (.wsa-thumbs, .wsa-thumb, .wsa-row and the
 * progress bar) live in frontend.css, which loads on both. Only rules unique
 * to the account pages belong here.
 *
 * These rules used to be inline style="" attributes inside PHP echo
 * statements and template markup, where no stylesheet could reach them and
 * no reviewer would find them. Colour and type come from theme.json via
 * custom properties, each carrying its literal fallback so the plugin
 * degrades to plain rather than broken without the theme.
 *
 * One inline style remains legitimate and the brand-token guard allows it:
 * a value the server computes, passed in as a custom property. The archive
 * progress bar is the only case — see --wsa-fill below.
 */



/* ——— Ship-your-current-archive panel ——— */
.wsa-partial-ship {
	margin-top: 16px;
	padding: 12px;
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
}
.wsa-partial-ship h3 { margin: 0 0 6px; }
.wsa-partial-ship p {
	margin: 0 0 10px;
	color: var(--wp--preset--color--ink, #23201A);
}


/* ——— Tracking ——— */
.wsa-tracking { margin-top: 6px; }
.wsa-track-head { margin-bottom: 2px; }
.wsa-track-label {
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-track-list {
	margin: 0;
	padding-left: 16px;
}
.wsa-track-item {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* A text affordance, not a boxed button. */
.wsa-copy-track {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-dark, #7E621F);
}

/* ——— Case modal ———
   Hidden by default in CSS rather than by an inline display:none, so opening
   it is a class change instead of a style write. */
.wsa-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: color-mix(in srgb, var(--wp--preset--color--ink, #23201A) 45%, transparent);
}
.wsa-modal.is-open { display: block; }
.wsa-modal-content {
	max-width: 540px;
	margin: 10% auto;
	padding: 16px;
	position: relative;
	background: var(--wp--preset--color--ivory, #FEFCF7);
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
}
.wsa-modal-close {
	position: absolute;
	right: 10px;
	top: 8px;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-modal-actions { margin-top: 10px; }
.wsa-modal-actions.wsa-row { gap: 8px; }

/* ——— Scheduling forms ——— */
.wsa-schedule-form { max-width: 520px; }
.wsa-multi-schedule { max-width: 640px; }
.wsa-schedule-table { width: 100%; }
.wsa-notice {
	margin: 12px 0;
	padding: 12px;
	background: var(--wp--preset--color--paper-deep, #F1E9DA);
	border-left: 4px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
}

/* ——— Orders table: the Fulfillment column ———
   State reads as a word, not as a colour. The old version used green for
   delivered, blue for shipped and amber for scheduled — traffic lights on a
   paper record, and unreadable to anyone who cannot separate those hues. */
.wsa-badge {
	display: inline-block;
	padding: 2px 6px;
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--umber, #5C5648);
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.wsa-badge-link { margin-left: 6px; }

.wsa-state {
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #23201A);
}
.wsa-state--quiet { color: var(--wp--preset--color--umber, #5C5648); }
.wsa-state-date {
	display: block;
	font-size: var(--wp--preset--font-size--meta, 13px);
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-state-track { margin-top: 4px; }

/* ——— Order detail: the WineShipping panel ——— */
.wsa-order-ws-info {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
	background: var(--wp--preset--color--paper, #FBF7EF);
}
.wsa-order-ws-info h3 {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	color: var(--wp--preset--color--ink, #23201A);
}
/* One status line, stated rather than flagged. */
.wsa-status-line {
	display: block;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #23201A);
}

.wsa-tracking-list { margin: 12px 0; }
.wsa-tracking-card {
	margin-bottom: 10px;
	padding: 14px;
	background: var(--wp--preset--color--ivory, #FEFCF7);
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	border-radius: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.wsa-tracking-main { flex: 1 1 200px; min-width: 0; }
/* The carrier was a #0073aa badge — WordPress admin blue, on a customer page. */
.wsa-carrier {
	display: inline-block;
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-tracking-number {
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--meta, 13px);
	color: var(--wp--preset--color--umber, #5C5648);
	word-break: break-all;
}
.wsa-tracking-number strong {
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	color: var(--wp--preset--color--ink, #23201A);
}
.wsa-tracking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}
.wsa-p { margin: 10px 0; }
.wsa-p--tight { margin: 6px 0; }


/* ——— Ship an incomplete archive ———
   The one destructive-ish action on this page: it ends the case early and
   charges shipping. It takes the theme's button shape exactly — Courier Prime,
   square, 16px/40px — and swaps gold for oxblood, so it reads as the same
   family of control while clearly not being the safe default. */
.wsa-ship-archive-now,
a.button.wsa-ship-archive-now {
	display: inline-block;
	padding: 16px 40px;
	background: var(--wp--preset--color--oxblood, #7A1F2B);
	border: 1px solid var(--wp--preset--color--oxblood, #7A1F2B);
	border-radius: 0;
	color: var(--wp--preset--color--paper, #FBF7EF);
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}
.wsa-ship-archive-now:hover,
a.button.wsa-ship-archive-now:hover,
.wsa-ship-archive-now:focus-visible {
	background: var(--wp--preset--color--ink, #23201A);
	border-color: var(--wp--preset--color--ink, #23201A);
	color: var(--wp--preset--color--paper, #FBF7EF);
}

/* Says what the button will actually do, under the button that does it. */
.wsa-ship-archive-note {
	margin: 10px 0 0;
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--umber, #5C5648);
}

/* ——— Dashboard: the activity panel ——— */
.wsa-dash-section { margin-bottom: var(--wp--preset--spacing--40, 40px); }
.wsa-dash-heading {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--umber, #5C5648);
	border-bottom: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	padding-bottom: 6px;
}
.wsa-dash-record {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--brass, #9C7A2C);
}
/* Ready is the one state allowed to draw the eye. */
.wsa-dash-record--ready {
	background: var(--wp--preset--color--ivory, #FEFCF7);
	border-left: 3px solid var(--wp--preset--color--gold, #D2A63C);
	padding-left: 12px;
}
.wsa-dash-case {
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #23201A);
}
.wsa-dash-fact {
	font-family: var(--wp--preset--font-family--text, Georgia, serif);
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-dash-action { margin-left: auto; }
.wsa-dash-invite {
	margin: 10px 0 0;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-dash-empty {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--text, Georgia, serif);
}

/* ——— The dashboard's label strip ——— */
.wsa-strip { display: flex; flex-wrap: wrap; gap: 14px; }
/* 68px was a thumbnail — you could tell one label from another and nothing
   more. These are the flats, so they get room to be read. */
.wsa-strip-item { display: block; width: 132px; }
.wsa-strip-item .wsa-label-img { width: 100%; height: auto; display: block; }
.wsa-strip-item .wsa-label-frame {
	display: block;
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	background: var(--wp--preset--color--ivory, #FEFCF7);
	padding: 6px;
}
a.wsa-strip-item { text-decoration: none; }
a.wsa-strip-item:hover .wsa-label-frame,
a.wsa-strip-item:focus-visible .wsa-label-frame {
	border-color: var(--wp--preset--color--gold, #D2A63C);
}

/* ——— Collection: the wall ——— */
.wsa-collection-count {
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--wp--preset--spacing--40, 40px);
}
.wsa-label { margin: 0; }
.wsa-label-link { display: block; text-decoration: none; }
.wsa-label-link:hover .wsa-label-frame,
.wsa-label-link:focus-visible .wsa-label-frame {
	border-color: var(--wp--preset--color--gold, #D2A63C);
}
.wsa-label-caption { display: block; }
.wsa-label-frame {
	display: block;
	border: 1px solid var(--wp--preset--color--brass, #9C7A2C);
	background: var(--wp--preset--color--ivory, #FEFCF7);
	padding: 8px;
}
.wsa-label-img { width: 100%; height: auto; display: block; }
/* A record awaiting its plate. */
.wsa-label-plate {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--paper-deep, #F1E9DA);
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--title, 34px);
	color: var(--wp--preset--color--oak, #97897A);
}
.wsa-label-no,
.wsa-label-meta,
.wsa-label-state {
	display: block;
	font-family: var(--wp--preset--font-family--ledger, "Courier Prime", monospace);
	font-size: var(--wp--preset--font-size--meta, 13px);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-label-no { margin-top: 10px; }
a.wsa-label-name,
.wsa-label-name {
	display: block;
	margin: 2px 0;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	color: var(--wp--preset--color--ink, #23201A);
	text-decoration: none;
}
a.wsa-label-name:hover,
a.wsa-label-name:focus-visible { text-decoration: underline; }
.wsa-label-state { color: var(--wp--preset--color--gold-dark, #7E621F); }

/* ——— The record behind a label ——— */
.wsa-record {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--wp--preset--color--brass, #9C7A2C);
}
.wsa-record-specs,
.wsa-record-note { margin: 0 0 8px; }
.wsa-record-note { font-style: italic; }

/* Shown only where there is no page to link to, so the wine still reads. */
.wsa-record--inline { margin-top: 8px; }

@media (max-width: 600px) {
	.wsa-wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.wsa-strip-item { width: 108px; }
	.wsa-dash-action { margin-left: 0; }
}

/* The greeting that replaces WooCommerce's paragraph: says who you are and
   offers the way out, nothing more. */
.wsa-dash-greeting {
	margin: 0 0 var(--wp--preset--spacing--30, 28px);
	font-family: var(--wp--preset--font-family--text, Georgia, serif);
	color: var(--wp--preset--color--umber, #5C5648);
}
.wsa-dash-greeting strong {
	font-weight: 400;
	color: var(--wp--preset--color--ink, #23201A);
}
