/**
 * Decorrect WooCommerce — a fiókoldal.
 *
 * Sizes are in px and em, never rem. Automatic.css sets
 * `html { font-size: 62.5% !important }` on these sites, so 1rem is 10px here
 * and 16px on a site without it — a stylesheet that shipped rem would be two
 * different account pages depending on where it landed.
 *
 * Colours come through `--dcw-*` tokens with an ACSS variable as the first
 * fallback and a literal as the last, so the page takes the site's palette
 * where there is one and still looks finished where there is not. Reskinning is
 * overriding the tokens on `.dcw-account`, not rewriting the rules below.
 *
 * One rule that is easy to miss and expensive to rediscover: Automatic.css
 * ships three declarations against a top-level `<section>`, all through
 * `:where()`, which has no specificity and therefore loses to everything here —
 * but only for the properties these rules actually name:
 *
 *     :where(section:not(section section)) {
 *         display: flex; flex-direction: column;
 *         padding-block: var(--section-padding-block);   — 72px+
 *         padding-inline: var(--gutter);                 — 16px+
 *         gap: var(--container-gap);                     — 57px
 *     }
 *     :where(section:not(section section)) > :where(div, ul, ol) {
 *         gap: var(--content-gap);
 *     }
 *
 * So **every `<section>` this file owns states its own `display`, `gap`,
 * `padding` and `margin`, and so does every `div`, `ul` or `ol` directly
 * inside one**. Leaving `padding` out of `.dcw-offers` cost 150px of blank
 * page between the tastings and the ones on offer, on an ACSS site and on no
 * other. Anything added below follows the same rule.
 */

.dcw-account {
	--dcw-ink: var(--primary, #17181c);
	--dcw-ink-soft: var(--neutral-semi-dark, #5c5b57);
	/* A fixed grey, not the host's --neutral-semi-light: on an ACSS site that
	   is 2.4:1 on white. This is 5.4:1 on white, 4.8:1 on the soft surfaces. */
	--dcw-muted: #6b6a66;
	--dcw-line: var(--base-light, #e6e3dd);
	--dcw-line-soft: var(--base-ultra-light, #f4f1ec);
	--dcw-line-strong: var(--base-semi-light, #cfcac0);
	--dcw-surface: var(--white, #fff);
	--dcw-surface-soft: var(--base-ultra-light, #f7f5f1);
	--dcw-accent: var(--accent, #6d1f2a);
	--dcw-accent-ink: var(--white, #fff);
	/* The three status inks are fixed, not the host's semi-dark tokens: on an
	   ACSS site those are 3.2-3.8:1 on their own soft grounds. These pass WCAG
	   AA there and on white, and under white button text. */
	--dcw-ok: #2f7a55;
	--dcw-ok-soft: var(--success-ultra-light, #eaf5ef);
	--dcw-wait: #8a6100;
	--dcw-wait-soft: var(--warning-ultra-light, #fcf4e2);
	--dcw-bad: var(--danger-semi-dark, #b3261e);
	--dcw-bad-soft: var(--danger-ultra-light, #fbeceb);
	--dcw-live: var(--accent, #6d1f2a);
	--dcw-live-soft: var(--accent-ultra-light, #f6ecec);
	/*
	 * Three icons this file draws where it cannot reach the markup: inside
	 * WooCommerce's notice banner and in front of the e-mail and phone lines of
	 * an order's customer details, all three of which ship a glyph from
	 * WooCommerce's own icon font. They are masks rather than background
	 * images, so they take `currentColor` the way every other icon on this page
	 * does. The stroke colour inside the data URI is irrelevant: a mask reads
	 * alpha only.
	 */
	--dcw-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 7.6v.5'/%3E%3C/svg%3E");
	--dcw-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='m3.8 7.4 8.2 5.8 8.2-5.8'/%3E%3C/svg%3E");
	--dcw-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 3.5h2.9l1.4 3.8-2 1.4a12.4 12.4 0 0 0 5.8 5.8l1.4-2 3.8 1.4v2.9a2 2 0 0 1-2.2 2A16.6 16.6 0 0 1 5.2 5.7a2 2 0 0 1 2-2.2Z'/%3E%3C/svg%3E");
	--dcw-info: #0e6674;
	--dcw-info-soft: var(--info-ultra-light, #eff6ff);
	--dcw-info-line: var(--info-light, #bfdbfe);

	/*
	 * The radius scale is shadcn/ui's, spelled out rather than taken from
	 * Automatic.css: shadcn is built on one `--radius` of 0.5rem with the rest
	 * derived from it (`md` is −2px, `xl` is +4px), and ACSS's own scale runs
	 * far rounder — `--radius-l` is 15px where a shadcn card wants 12 and a
	 * shadcn input wants 6. Mixing the two is what makes an interface look like
	 * two interfaces. Colour still comes from the site; shape is the library's.
	 */
	--dcw-radius-s: 4px;
	--dcw-radius-m: 6px;
	--dcw-radius: 8px;
	--dcw-radius-l: 12px;

	/* shadcn's `ring`: the foreground colour, one pixel, no offset on inputs. */
	--dcw-ring: var(--dcw-ink);

	/* Tailwind's `shadow-sm`, `shadow` and `shadow-lg`, which is what shadcn
	   components are described in. */
	--dcw-shadow-sm: 0 1px 2px 0 rgba(17, 18, 22, 0.05);
	--dcw-shadow: 0 1px 3px 0 rgba(17, 18, 22, 0.1), 0 1px 2px -1px rgba(17, 18, 22, 0.1);
	--dcw-shadow-lg: 0 10px 15px -3px rgba(17, 18, 22, 0.1), 0 4px 6px -4px rgba(17, 18, 22, 0.1);
	--dcw-shadow-lift: 0 10px 15px -3px rgba(17, 18, 22, 0.1), 0 4px 6px -4px rgba(17, 18, 22, 0.1);
	--dcw-ease: cubic-bezier(0.32, 0.72, 0, 1);

	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 1000px;
	margin-inline: auto;
	color: var(--dcw-ink);
	font-size: 15px;
	line-height: 1.5;
}

.dcw-account *,
.dcw-account *::before,
.dcw-account *::after {
	box-sizing: border-box;
}

.dcw-account ul,
.dcw-account ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcw-account p {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * 1. Who you are — in the sidebar, above the menu
 *
 * The name is the same fixed furniture the menu is: read once, then ignored.
 * It shares the menu's card so the sidebar is one object rather than two
 * stacked ones, and the full width of the page stays with the thing worth it.
 * ------------------------------------------------------------------------ */

.dcw-account__side {
	position: sticky;
	/*
	 * Automatic.css keeps the height of a sticky site header in
	 * `--sticky-offset`. Falling back to a bare 16px is right on a site with no
	 * sticky header and wrong under one, which is why the variable comes first.
	 */
	top: calc(var(--sticky-offset, 0px) + 16px);
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-sm);
	overflow: hidden;
}

.dcw-account__who {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 16px;
	border-bottom: 1px solid var(--dcw-line-soft);
}

.dcw-account__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	background: var(--dcw-ink);
	border-radius: 50%;
	color: var(--dcw-surface);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.dcw-account__greeting {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dcw-account__name {
	overflow: hidden;
	color: var(--dcw-ink);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.005em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dcw-account__since {
	color: var(--dcw-muted);
	font-size: 12px;
	line-height: 1.35;
}

/* ---------------------------------------------------------------------------
 * 2. The club bar
 *
 * One card, not a card inside one. It says the level, draws the ladder and
 * names what is still missing — and nothing else: the money, the order count
 * and the discount used to sit under it in a row of three, which is a summary
 * of a summary. Everything that used to be there is one click away in the
 * Szintek panel, where there is room to explain it.
 *
 * Each step carries its own `--dcw-level` from PHP, keyed on the role slug.
 * Where a shop has not named a colour the variable is absent and every rule
 * below falls through to the site's accent.
 * ------------------------------------------------------------------------ */

.dcw-ladder {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 20px 22px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-sm);
}

.dcw-ladder__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* Sentence case, ordinary tracking. Small caps with 0.08em of letter-spacing
   is a lot of styling for two words that only say what comes next. */
.dcw-ladder__eyebrow {
	color: var(--dcw-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.dcw-ladder__name {
	margin-top: 3px;
	color: var(--dcw-level, var(--dcw-ink));
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

/*
 * The sentence and the button are one group at the end of the head row: both
 * answer "what now", and under the bar the sentence was a third line the eye
 * skipped. `flex-wrap` on the head lets the pair drop under the level's name
 * before the text starts squeezing.
 */
.dcw-ladder__aside {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.dcw-ladder__hint {
	max-width: 42ch;
	color: var(--dcw-ink-soft);
	font-size: 13px;
	line-height: 1.45;
	text-align: end;
}

.dcw-ladder__bar {
	display: block;
}

.dcw-ladder__steps {
	display: flex;
	gap: 10px;
}

.dcw-ladder__step {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
}

.dcw-ladder__seg {
	position: relative;
	display: block;
	height: 6px;
	background: var(--dcw-line);
	border-radius: 99px;
	overflow: hidden;
}

.dcw-ladder__seg::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: var(--dcw-fill, 0%);
	/*
	 * Faded, because a segment can be full without its level having been
	 * granted: the conditions are met and the promotion lands on the next order
	 * status change. Solid would say "this is yours" about a price the checkout
	 * is not charging yet. `is-reached` below is the one that says that.
	 */
	background: var(--dcw-level, var(--dcw-accent));
	border-radius: 99px;
	opacity: 0.4;
	transition: width 0.9s var(--dcw-ease);
}

.dcw-ladder__step.is-reached .dcw-ladder__seg::after {
	opacity: 1;
}

.dcw-ladder__meta {
	display: flex;
	align-items: baseline;
	gap: 7px;
	min-width: 0;
}

/* The tick is the one thing in the row that is not text. */
.dcw-ladder__meta .dcw-ladder__dot {
	align-self: center;
}

.dcw-ladder__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 18px;
	height: 18px;
	background: var(--dcw-surface);
	border: 2px solid var(--dcw-line);
	border-radius: 50%;
	color: #fff;
}

.dcw-ladder__tick {
	width: 10px;
	height: 10px;
	stroke-width: 3;
}

.dcw-ladder__step.is-reached .dcw-ladder__dot {
	background: var(--dcw-level, var(--dcw-accent));
	border-color: var(--dcw-level, var(--dcw-accent));
}

.dcw-ladder__step.is-next .dcw-ladder__dot {
	border-color: var(--dcw-level, var(--dcw-accent));
}

.dcw-ladder__label {
	overflow: hidden;
	color: var(--dcw-muted);
	font-size: 13px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * What the level is worth, on the level itself. It is the one number a
 * customer is looking for when they read a ladder, and putting it here means
 * the Szintek panel is for detail rather than for the headline.
 */
.dcw-ladder__discount {
	flex: none;
	color: var(--dcw-muted);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.dcw-ladder__step.is-reached .dcw-ladder__discount,
.dcw-ladder__step.is-next .dcw-ladder__discount {
	color: var(--dcw-level, var(--dcw-ink-soft));
}

.dcw-ladder__step.is-reached .dcw-ladder__label {
	color: var(--dcw-level, var(--dcw-ink));
}

.dcw-ladder__step.is-next .dcw-ladder__label {
	color: var(--dcw-ink);
}

/* ---------------------------------------------------------------------------
 * 3. The levels drawer — a <details>, so it opens with the script blocked
 * ------------------------------------------------------------------------ */

.dcw-levels {
	position: static;
}

/* In the head row now, beside the level's name — it used to be pinned to the
   card's top corner, which needed the head to reserve 96px it could not use. */
.dcw-levels__tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-m);
	box-shadow: var(--dcw-shadow-sm);
	color: var(--dcw-ink);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dcw-levels__tab::-webkit-details-marker {
	display: none;
}

.dcw-levels__tab:hover {
	border-color: var(--dcw-accent);
	box-shadow: var(--dcw-shadow);
}

.dcw-levels__icon {
	width: 14px;
	height: 14px;
	color: var(--dcw-accent);
}

.dcw-levels__scrim {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(17, 18, 22, 0.42);
	animation: dcw-fade 0.24s ease both;
}

.dcw-levels__panel {
	position: fixed;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: min(380px, 100vw);
	padding: 22px;
	overflow-y: auto;
	background: var(--dcw-surface);
	box-shadow: -18px 0 46px rgba(17, 18, 22, 0.16);
	animation: dcw-slide 0.28s var(--dcw-ease) both;
}

@keyframes dcw-fade {
	from {
		opacity: 0;
	}
}

@keyframes dcw-slide {
	from {
		transform: translateX(100%);
	}
}

.dcw-levels__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dcw-levels__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.dcw-levels__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--dcw-muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.dcw-levels__close:hover {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink);
}

.dcw-levels__lead {
	color: var(--dcw-ink-soft);
	font-size: 13px;
}

.dcw-levels__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dcw-level {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 14px 14px 18px;
	background: var(--dcw-surface-soft);
	border: 1px solid transparent;
	border-radius: var(--dcw-radius);
	overflow: hidden;
}

.dcw-level.is-current {
	background: var(--dcw-surface);
	border-color: var(--dcw-level, var(--dcw-accent));
	box-shadow: var(--dcw-shadow-sm);
}

/* A stripe in the level's own colour down the side, so the panel reads as the
   same ladder as the bar rather than as a list that happens to agree with it. */
.dcw-level::before {
	content: "";
	position: absolute;
	inset-block: 10px;
	inset-inline-start: 0;
	width: 3px;
	background: var(--dcw-level, var(--dcw-accent));
	border-radius: 0 99px 99px 0;
	opacity: 0.35;
}

.dcw-level.is-reached::before {
	opacity: 1;
}

.dcw-level__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.dcw-level__name {
	color: var(--dcw-level, var(--dcw-ink));
	font-size: 15px;
	font-weight: 600;
}

.dcw-level__discount {
	color: var(--dcw-level, var(--dcw-accent));
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.dcw-level__desc,
.dcw-level__cond {
	color: var(--dcw-ink-soft);
	font-size: 12.5px;
}

.dcw-level__flag {
	align-self: flex-start;
	margin-top: 4px;
	padding: 2px 9px;
	background: var(--dcw-level, var(--dcw-accent));
	border-radius: var(--dcw-radius-m);
	color: var(--dcw-accent-ink);
	font-size: 11px;
	font-weight: 600;
}

/* A level not yet reached is told apart by its faded side stripe alone. Its
   name used to fade too, to 75%, which took Gold to 3.2:1 on the soft
   surface (WCAG AA wants 4.5); the name is text and stays at full colour. */

/* ---------------------------------------------------------------------------
 * 4. The tab bar
 * ------------------------------------------------------------------------ */

/*
 * The sidebar and the panel are one grid, and **both are placed explicitly**.
 * `woocommerce_before_account_navigation` and `_after_` sit inside this
 * container and a plugin may print anything into them; auto-placed, such an
 * element would otherwise take the sidebar's cell and push the menu into the
 * content column.
 */
.dcw-account__layout {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin: 0;
	padding: 0;
}

.dcw-account__side {
	grid-column: 1;
	grid-row: 1;
}

.dcw-account__panel {
	grid-column: 2;
	grid-row: 1;
}

/*
 * WooCommerce ships `.woocommerce-account .woocommerce-MyAccount-navigation
 * { float: left; width: 30% }` and the matching 68% for the content, which is
 * the two-column account page every shop has had since 2015. Those classes are
 * kept on our markup on purpose — themes and gateways query for them — so the
 * float has to be undone, and undone at a higher specificity than (0,2,0) or
 * the sidebar renders 30% wide inside a grid track that was already sized for
 * it. Hence the doubled class: (0,3,0) wins whichever stylesheet the shop
 * loads last.
 */
.dcw-account .dcw-account__nav.woocommerce-MyAccount-navigation,
.dcw-account .dcw-account__panel.woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.dcw-account__nav {
	border: 0;
}

/*
 * Three classes deep, and every rule in the sidebar below is too. On a block
 * theme WooCommerce loads a *third* stylesheet — `woocommerce-blocktheme.css`,
 * which neither `woocommerce.css` nor `woocommerce-layout.css` hints at — and
 * it styles this menu at (0,2,1):
 *
 *     .woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0 0 2em }
 *     .woocommerce-account .woocommerce-MyAccount-navigation li { padding: .35em 0 }
 *     .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { text-decoration: underline }
 *
 * A single class loses to that, which is how the sidebar came out with 15px of
 * padding on every row, no padding on the card and the current item underlined.
 */
.dcw-account .dcw-account__nav .dcw-account__tabs {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 8px;
	/* The card is `.dcw-account__side` now; this is its lower half. */
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	scrollbar-width: none;
}

.dcw-account__tabs::-webkit-scrollbar {
	display: none;
}

.dcw-account .dcw-account__nav .dcw-account__tab-item {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

/* Leaving is not one of the places you can go, so it gets a rule above it. */
.dcw-account .dcw-account__nav .dcw-account__tab-item--logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--dcw-line-soft);
}

.dcw-account__tab {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--dcw-radius);
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.dcw-account .dcw-account__nav .dcw-account__tab,
.dcw-account .dcw-account__nav .dcw-account__tab:hover,
.dcw-account .dcw-account__nav li.is-active .dcw-account__tab {
	/* The block-theme stylesheet underlines the active link and the hovered
	   one. The pill already says which is which. */
	text-decoration: none;
}

.dcw-account__tab:hover,
.dcw-account__tab:focus-visible {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink);
}

/* The ACSS ring takes the text colour, which on the current (ink) tab is
   white: a white ring on a white page. The account's own ring instead. */
.dcw-account__tab:focus-visible {
	outline: 2px solid var(--dcw-ring);
	outline-offset: 2px;
}

.dcw-account__tab.is-current {
	background: var(--dcw-ink);
	color: var(--dcw-surface);
}

.dcw-account__tab-item--logout .dcw-account__tab {
	color: var(--dcw-muted);
}

.dcw-account__tab-icon {
	width: 17px;
	height: 17px;
	flex: none;
	opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * 5. The panel, and what it looks like while a tab is arriving
 * ------------------------------------------------------------------------ */

.dcw-account__panel {
	position: relative;
	float: none;
	width: auto;
	min-height: 220px;
	margin: 0;
	padding: 0;
	transition: opacity 0.18s ease;
}

.dcw-account__panel[aria-busy="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.dcw-account__panel[aria-busy="true"]::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--dcw-accent), transparent);
	background-size: 40% 100%;
	background-repeat: no-repeat;
	animation: dcw-sweep 1.1s linear infinite;
}

@keyframes dcw-sweep {
	from {
		background-position: -40% 0;
	}

	to {
		background-position: 140% 0;
	}
}

/* ---------------------------------------------------------------------------
 * 6. Cards, badges, buttons — the shared vocabulary
 * ------------------------------------------------------------------------ */

.dcw-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 20px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow);
}

.dcw-card--quiet {
	background: var(--dcw-surface-soft);
	border-color: transparent;
	box-shadow: none;
}

.dcw-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dcw-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dcw-card__lead {
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
}

.dcw-card__summary {
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
}

/* `--dcw-ink-soft`, not `--dcw-muted`: muted grey is for a label beside
   something, and an empty state is the only thing in its box. On the soft
   surface it was too faint to read. */
.dcw-card__empty {
	padding: 10px 0;
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
}

.dcw-card__more {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--dcw-ink-soft);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.dcw-card__more:hover {
	color: var(--dcw-accent);
	text-decoration: none;
}

.dcw-card__more-icon {
	width: 13px;
	height: 13px;
}

/* shadcn's badge: `rounded-md border px-2.5 py-0.5 text-xs font-semibold`. */
.dcw-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border: 1px solid transparent;
	border-radius: var(--dcw-radius-m);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
}

.dcw-badge--ok {
	background: var(--dcw-ok-soft);
	color: var(--dcw-ok);
}

.dcw-badge--live {
	background: var(--dcw-live-soft);
	color: var(--dcw-live);
}

.dcw-badge--wait {
	background: var(--dcw-wait-soft);
	color: var(--dcw-wait);
}

.dcw-badge--bad {
	background: var(--dcw-bad-soft);
	color: var(--dcw-bad);
}

.dcw-badge--off,
.dcw-badge--plain {
	background: var(--dcw-surface-soft);
	color: var(--dcw-muted);
}

/*
 * `dcw-button`, not `dcw-btn`, and the three characters matter.
 *
 * Automatic.css skins buttons off `[class*="btn--"]` — an attribute *substring*
 * match, so `class="dcw-btn dcw-btn--ghost"` contains `btn--` and picks up the
 * framework's whole button: `min-inline-size: 20rem`, a 2px border and ACSS's
 * own padding. The symptom was a 200px-wide "Részletek" next to an identically
 * 200px-wide "Újrarendelés" in a row that had no room for either, on an ACSS
 * site and on no other. `button--` does not contain `btn--`, so the block is
 * named in full and the collision cannot happen. Any modifier added here keeps
 * that property.
 */
/* shadcn's button: `h-9 rounded-md px-4 text-sm font-medium`, with a one-pixel
   ring on focus and no outline. The three variants below are its `default`,
   `outline` and `ghost`. */
.dcw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--dcw-radius-m);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dcw-button:hover,
.dcw-button:focus-visible {
	text-decoration: none;
}

.dcw-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--dcw-surface), 0 0 0 3px var(--dcw-ring);
}

.dcw-button[disabled] {
	opacity: 0.5;
	pointer-events: none;
}

.dcw-button--solid {
	background: var(--dcw-ink);
	color: var(--dcw-surface);
	box-shadow: var(--dcw-shadow-sm);
}

.dcw-button--solid:hover {
	background: var(--dcw-ink-soft);
	color: var(--dcw-surface);
}

.dcw-button--ghost {
	background: var(--dcw-surface);
	border-color: var(--dcw-line);
	color: var(--dcw-ink);
	box-shadow: var(--dcw-shadow-sm);
}

.dcw-button--ghost:hover {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink);
}

.dcw-button--quiet {
	padding-inline: 12px;
	background: none;
	color: var(--dcw-ink-soft);
}

.dcw-button--quiet:hover {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink);
}

.dcw-button__icon {
	width: 15px;
	height: 15px;
	flex: none;
}

.dcw-button.is-busy .dcw-button__icon {
	animation: dcw-spin 0.9s linear infinite;
}

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

.dcw-note {
	margin: 0;
	padding: 9px 12px;
	border-radius: var(--dcw-radius-s);
	font-size: 12.5px;
}

.dcw-note[hidden] {
	display: none;
}

.dcw-note--ok {
	background: var(--dcw-ok-soft);
	color: var(--dcw-ok);
}

.dcw-note--warn {
	background: var(--dcw-wait-soft);
	color: var(--dcw-wait);
}

.dcw-note--bad {
	background: var(--dcw-bad-soft);
	color: var(--dcw-bad);
}

.dcw-note__list {
	margin-top: 4px;
	display: flex;
	flex-direction: column;
	gap: 1px;
	opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * 7. The dashboard
 * ------------------------------------------------------------------------ */

.dcw-dash {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dcw-hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 22px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow);
}

/*
 * No status stripe. It was a third place saying what the badge and the timeline
 * already say, and a 3px rule in the status colour across the top of a card is
 * a lot of emphasis for a repetition.
 */

.dcw-hero__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

/* Same treatment as the club bar's, so the two cards agree. */
.dcw-hero__eyebrow {
	color: var(--dcw-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.dcw-hero__title {
	margin: 2px 0 0;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.dcw-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 5px;
	color: var(--dcw-ink-soft);
	font-size: 13px;
}

.dcw-hero__plain {
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
}

.dcw-hero__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 16px;
	border-top: 1px solid var(--dcw-line-soft);
}

.dcw-hero__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.dcw-hero--empty {
	align-items: center;
	gap: 10px;
	text-align: center;
}

.dcw-hero__art {
	width: 68px;
	height: 68px;
	color: var(--dcw-line);
	stroke-width: 2.4;
}

.dcw-hero--empty .dcw-button {
	margin-top: 6px;
}

/* The order's journey. */

.dcw-track {
	display: flex;
	gap: 6px;
}

.dcw-track__node {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.dcw-track__node::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--dcw-line);
	border-radius: 99px;
}

.dcw-track__node.is-done::before {
	background: var(--dcw-ok);
}

.dcw-track__node.is-current::before {
	background: linear-gradient(90deg, var(--dcw-accent) 50%, var(--dcw-line) 50%);
}

.dcw-track__node.is-stopped::before {
	background: var(--dcw-bad);
}

.dcw-track__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	background: var(--dcw-surface);
	border: 2px solid var(--dcw-line);
	border-radius: 50%;
	color: var(--dcw-surface);
}

.dcw-track__node.is-done .dcw-track__dot {
	background: var(--dcw-ok);
	border-color: var(--dcw-ok);
}

.dcw-track__node.is-current .dcw-track__dot {
	border-color: var(--dcw-accent);
	box-shadow: 0 0 0 3px var(--dcw-live-soft);
	animation: dcw-pulse 2s ease-in-out infinite;
}

.dcw-track__node.is-stopped .dcw-track__dot {
	background: var(--dcw-bad);
	border-color: var(--dcw-bad);
}

@keyframes dcw-pulse {
	50% {
		box-shadow: 0 0 0 6px var(--dcw-live-soft);
	}
}

.dcw-track__tick {
	width: 9px;
	height: 9px;
	stroke-width: 3.4;
}

.dcw-track__label {
	color: var(--dcw-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.dcw-track__node.is-done .dcw-track__label,
.dcw-track__node.is-current .dcw-track__label,
.dcw-track__node.is-stopped .dcw-track__label {
	color: var(--dcw-ink);
}

/* Thumbnails. */

.dcw-thumbs {
	display: flex;
	align-items: center;
	gap: 6px;
}

.dcw-thumbs__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	overflow: hidden;
	background: var(--dcw-surface-soft);
	border: 1px solid var(--dcw-line-soft);
	border-radius: var(--dcw-radius-s);
}

.dcw-thumbs__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dcw-thumbs--small .dcw-thumbs__item {
	width: 38px;
	height: 38px;
}

.dcw-thumbs__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	background: var(--dcw-surface-soft);
	border-radius: var(--dcw-radius-m);
	color: var(--dcw-muted);
	font-size: 12px;
	font-weight: 500;
}

/* The recent-orders list. */

.dcw-orders__list {
	display: flex;
	flex-direction: column;
	/* Rows are separated by their own top border, so the gap is zero — but it
	   has to say so, or it inherits `--content-gap`. */
	gap: 0;
}

.dcw-orders__row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 0;
	border-top: 1px solid var(--dcw-line-soft);
}

.dcw-orders__row:first-child {
	padding-top: 2px;
	border-top: 0;
}

.dcw-orders__meta {
	flex: 1 1 180px;
	min-width: 0;
}

.dcw-orders__num {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
}

.dcw-orders__sub {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	margin-top: 2px;
	color: var(--dcw-muted);
	font-size: 12.5px;
}

.dcw-orders__total {
	color: var(--dcw-ink-soft);
	font-weight: 600;
}

.dcw-orders__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
}

.dcw-orders__row .dcw-note {
	flex: 1 0 100%;
	margin-top: 2px;
}

/* Quick links. */

.dcw-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
}

.dcw-quick__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius);
	color: var(--dcw-ink);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dcw-quick__item:hover {
	border-color: var(--dcw-ink);
	box-shadow: var(--dcw-shadow);
	text-decoration: none;
}

.dcw-quick__icon {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--dcw-accent);
}

/* ---------------------------------------------------------------------------
 * 8. Borkóstolók
 * ------------------------------------------------------------------------ */

.dcw-tastings {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.dcw-tastings__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dcw-tastings__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dcw-tasting {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius);
}

.dcw-tasting__image {
	display: inline-flex;
	flex: none;
	width: 58px;
	height: 58px;
	overflow: hidden;
	background: var(--dcw-surface-soft);
	border-radius: var(--dcw-radius-s);
}

.dcw-tasting__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dcw-tasting__body {
	flex: 1 1 200px;
	min-width: 0;
}

.dcw-tasting__name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.dcw-tasting__name a {
	color: inherit;
	text-decoration: none;
}

.dcw-tasting__name a:hover {
	color: var(--dcw-accent);
}

.dcw-tasting__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	margin-top: 3px;
	color: var(--dcw-muted);
	font-size: 12.5px;
}

.dcw-tasting__side {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.dcw-offers {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

/*
 * One tasting, laid out like a small poster: picture on the left, everything
 * the evening is on the right. The grid collapses to one column before the
 * text column gets too narrow to be worth reading.
 */
.dcw-offer {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	gap: 18px;
	padding: 16px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-sm);
}

.dcw-offer__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--dcw-surface-soft);
	border-radius: var(--dcw-radius);
}

.dcw-offer__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dcw-offer__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.dcw-account .dcw-woo .dcw-offer__name {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.dcw-offer__name a {
	color: inherit;
	text-decoration: none;
}

.dcw-offer__name a:hover {
	color: var(--dcw-accent);
}

.dcw-offer__about {
	color: var(--dcw-ink-soft);
	font-size: 14px;
	line-height: 1.55;
}

.dcw-offer__about p {
	margin: 0 0 8px;
}

.dcw-offer__about p:last-child {
	margin-bottom: 0;
}

.dcw-offer__facts {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.dcw-offer__price {
	color: var(--dcw-ink);
	font-size: 16px;
	font-weight: 600;
}

.dcw-offer__price del {
	color: var(--dcw-muted);
	font-weight: 400;
}

.dcw-offer__seats {
	color: var(--dcw-ok);
	font-size: 13px;
	font-weight: 500;
}

.dcw-offer__seats--none {
	color: var(--dcw-bad);
}

.dcw-offer__actions {
	margin-top: 6px;
}

/*
 * The placeholder, for the weeks between two tastings. A dashed outline says
 * "nothing here yet" where a filled card would say "something is wrong", and
 * the text is `--dcw-ink-soft` rather than `--dcw-muted`: muted grey on the
 * soft surface was the contrast complaint, and it applies to every empty state
 * on this page, not only to this one.
 */
.dcw-offers__none {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 28px 20px;
	background: var(--dcw-surface-soft);
	border: 1px dashed var(--dcw-line-strong, var(--dcw-line));
	border-radius: var(--dcw-radius-l);
	text-align: center;
}

.dcw-offers__glyph {
	width: 26px;
	height: 26px;
	margin-bottom: 4px;
	color: var(--dcw-muted);
}

.dcw-offers__none-title {
	color: var(--dcw-ink);
	font-size: 14.5px;
	font-weight: 600;
}

.dcw-offers__none-text {
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
}

/* The line above the offer, when the customer has never been to a tasting. */
.dcw-tastings__none {
	padding: 2px 0 6px;
	color: var(--dcw-ink-soft);
	font-size: 14px;
}

@media (max-width: 620px) {
	.dcw-offer {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
 * 9. WooCommerce's own panels
 *
 * The orders table, the downloads table, the address cards and the two forms
 * are WooCommerce's markup and stay WooCommerce's markup — this plugin styles
 * them rather than reimplementing them, so an update to those templates is an
 * update this page inherits instead of a divergence it has to be told about.
 * ------------------------------------------------------------------------ */

/*
 * Every one of these is spelled out rather than written as a descendant, and
 * the reason is a regression this file already caused once. `.dcw-woo h2` is
 * (0,2,1) and beats `.dcw-hero__title` at (0,1,0), so widening it to reach
 * WooCommerce's order-details heading also shrank the dashboard's own titles
 * to 16px — in markup this plugin writes and had already styled.
 *
 * WooCommerce puts its account headings in exactly three places: loose in the
 * panel, inside a `<section>` it wraps the order and customer details in, and
 * inside the address form. Those three, and nothing else.
 */
.dcw-account .dcw-woo > h2,
.dcw-account .dcw-woo > h3,
.dcw-account .dcw-woo > section > h2,
.dcw-account .dcw-woo > section > h3,
.dcw-account .dcw-woo form > h2,
.dcw-account .dcw-woo form > h3,
.dcw-account .dcw-woo legend {
	margin: 0 0 12px;
	color: var(--dcw-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.dcw-woo > p,
.dcw-woo > section > p {
	margin: 0 0 12px;
	color: var(--dcw-ink-soft);
	font-size: 14px;
}

/*
 * WooCommerce marks the order number, its date and its status with `<mark>`,
 * which the browser paints highlighter-yellow. WooCommerce undoes that itself
 * — for `.woocommerce-MyAccount-content mark`, which the dialog is not.
 */
.dcw-account .dcw-woo mark {
	background: none;
	color: inherit;
	font-weight: 600;
}

/*
 * `> section`, for the same reason and with the same history: as a descendant
 * this reached `.dcw-hero` and `.dcw-orders` — both `<section>`s this plugin
 * owns, two levels down inside `.dcw-dash` — and flattened them to
 * `display: block; padding: 0; gap: 0`. The two cards on the overview ran into
 * each other, which is what a widened selector looks like from the outside.
 */
.dcw-woo > section {
	display: block;
	margin: 0 0 20px;
	padding: 0;
	gap: 0;
}

.dcw-woo > section:last-child {
	margin-bottom: 0;
}

.dcw-woo table.shop_table,
.dcw-woo table.woocommerce-table {
	width: 100%;
	margin: 0 0 16px;
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--dcw-surface);
	font-size: 13.5px;
}

/*
 * `thead th`, not `th`: WooCommerce renders the order number as a
 * `<th scope="row">` inside the body — correct markup, and the reason a bare
 * `th` rule printed "#951" in small grey uppercase on a header-coloured
 * column, as though the table had two headers.
 */
.dcw-woo table.shop_table thead th,
.dcw-woo table.woocommerce-table thead th {
	padding: 12px 14px;
	background: var(--dcw-surface-soft);
	border: 0;
	/* `--dcw-ink-soft`, not `--dcw-muted`: muted grey on the soft fill is two
	   faint greys stacked, and a column heading has to be readable. */
	color: var(--dcw-ink-soft);
	font-size: 13px;
	font-weight: 600;
	text-align: start;
}

.dcw-woo table.shop_table tbody th,
.dcw-woo table.shop_table td,
.dcw-woo table.woocommerce-table tbody th,
.dcw-woo table.woocommerce-table td {
	padding: 13px 14px;
	background: none;
	border: 0;
	border-top: 1px solid var(--dcw-line-soft);
	font-size: 13.5px;
	font-weight: 400;
	text-align: start;
	text-transform: none;
	vertical-align: middle;
}

.dcw-woo table.shop_table tbody th a {
	color: var(--dcw-ink);
	font-weight: 600;
	text-decoration: none;
}

.dcw-woo table.shop_table tbody th a:hover {
	color: var(--dcw-accent);
}

.dcw-woo table.shop_table tfoot th,
.dcw-woo table.shop_table tfoot td {
	background: var(--dcw-surface-soft);
	font-weight: 600;
}

.dcw-woo .woocommerce-orders-table__cell-order-actions {
	text-align: end;
	white-space: nowrap;
}

.dcw-woo .woocommerce-button,
.dcw-woo .button,
.dcw-woo button[type="submit"],
.dcw-woo input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	background: var(--dcw-ink);
	border: 1px solid var(--dcw-ink);
	border-radius: var(--dcw-radius-m);
	box-shadow: var(--dcw-shadow-sm);
	color: var(--dcw-surface);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dcw-woo .woocommerce-button:hover,
.dcw-woo .button:hover,
.dcw-woo button[type="submit"]:hover,
.dcw-woo input[type="submit"]:hover {
	background: var(--dcw-ink-soft);
	border-color: var(--dcw-ink-soft);
	color: var(--dcw-surface);
}

.dcw-woo .woocommerce-button:focus-visible,
.dcw-woo .button:focus-visible,
.dcw-woo button[type="submit"]:focus-visible,
.dcw-woo input[type="submit"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--dcw-surface), 0 0 0 3px var(--dcw-ring);
}

/* shadcn's `outline` variant, for the one button on a row that is not the
   thing the row is asking you to do. */
.dcw-woo .woocommerce-button.view,
.dcw-woo .woocommerce-Button--previous,
.dcw-woo .woocommerce-button.pay + .view {
	background: var(--dcw-surface);
	border-color: var(--dcw-line);
	color: var(--dcw-ink);
}

.dcw-woo .woocommerce-button.view:hover {
	background: var(--dcw-surface-soft);
	border-color: var(--dcw-line);
	color: var(--dcw-ink);
}

.dcw-woo .woocommerce-Pagination,
.dcw-woo .woocommerce-pagination {
	display: flex;
	gap: 6px;
	margin: 0 0 12px;
}

.dcw-woo .woocommerce-Pagination a,
.dcw-woo .woocommerce-pagination a {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-m);
	box-shadow: var(--dcw-shadow-sm);
	color: var(--dcw-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.dcw-woo .woocommerce-Pagination a:hover,
.dcw-woo .woocommerce-pagination a:hover {
	border-color: var(--dcw-ink);
}

/* Notices. */

.dcw-woo .woocommerce-message,
.dcw-woo .woocommerce-error,
.dcw-woo .woocommerce-info,
.dcw-woo .woocommerce-Message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 13px 16px;
	border: 0;
	border-radius: var(--dcw-radius);
	list-style: none;
	font-size: 13.5px;
}

.dcw-woo .woocommerce-message,
.dcw-woo .woocommerce-Message {
	background: var(--dcw-ok-soft);
	color: var(--dcw-ok);
}

.dcw-woo .woocommerce-info {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink-soft);
}

.dcw-woo .woocommerce-error {
	background: var(--dcw-bad-soft);
	color: var(--dcw-bad);
}

.dcw-woo .woocommerce-error li {
	list-style: none;
}

/* Forms. */

/*
 * WooCommerce lays its account forms out with `form-row-first` /
 * `form-row-last` and a `.clear` div between the pairs — floats, from before
 * grid existed. Undoing the float and leaving it at that stacks a 47%-wide
 * "First name" above a 47%-wide "Last name", which looks like a broken form
 * rather than a restyled one. So the form *is* the two-column grid the classes
 * were describing, and everything that is not half a pair spans both columns.
 */
.dcw-woo form,
.dcw-woo .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	align-items: start;
	margin: 0;
	padding: 20px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow);
}

/* The wrapper is a grid inside the form's card, not a second card. */
.dcw-woo .woocommerce-address-fields__field-wrapper {
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.dcw-woo form > *,
.dcw-woo .woocommerce-address-fields__field-wrapper > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.dcw-woo .form-row-first {
	grid-column: 1;
}

.dcw-woo .form-row-last {
	grid-column: 2;
}

/* A float clearer in a grid is an empty cell. */
.dcw-woo .clear {
	display: none;
}

.dcw-woo .woocommerce-form-row em,
.dcw-woo .form-row span.description {
	color: var(--dcw-muted);
	font-size: 12px;
	font-style: normal;
}

.dcw-woo form.woocommerce-form-login,
.dcw-woo .woocommerce-orders-table form {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.dcw-woo fieldset {
	margin: 4px 0 0;
	padding: 16px 0 0;
	border: 0;
	border-top: 1px solid var(--dcw-line-soft);
}

.dcw-woo legend {
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.dcw-woo .woocommerce-form-row,
.dcw-woo .form-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
	padding: 0;
}

.dcw-woo label {
	color: var(--dcw-ink-soft);
	font-size: 12.5px;
	font-weight: 600;
}

/*
 * shadcn's input: `h-9 w-full rounded-md border border-input bg-transparent
 * px-3 text-sm shadow-sm`, focus `outline-none ring-1 ring-ring`. The ring is
 * a box-shadow rather than an outline so it hugs the rounded corner the way
 * Tailwind's does.
 */
.dcw-woo input[type="text"],
.dcw-woo input[type="email"],
.dcw-woo input[type="tel"],
.dcw-woo input[type="password"],
.dcw-woo input[type="number"],
.dcw-woo input[type="search"],
.dcw-woo input[type="url"],
.dcw-woo select,
.dcw-woo textarea {
	width: 100%;
	min-height: 36px;
	padding: 8px 12px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-m);
	box-shadow: var(--dcw-shadow-sm);
	color: var(--dcw-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dcw-woo textarea {
	min-height: 80px;
	line-height: 1.5;
}

.dcw-woo input::placeholder,
.dcw-woo textarea::placeholder {
	color: var(--dcw-muted);
}

.dcw-woo input:focus,
.dcw-woo input:focus-visible,
.dcw-woo select:focus,
.dcw-woo textarea:focus {
	border-color: var(--dcw-ring);
	box-shadow: 0 0 0 1px var(--dcw-ring);
	outline: none;
}

.dcw-woo input[disabled],
.dcw-woo select[disabled],
.dcw-woo textarea[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* shadcn's label: `text-sm font-medium leading-none`, in the foreground colour
   rather than the muted one — the hint underneath is the muted part. */
.dcw-woo label {
	color: var(--dcw-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.dcw-woo .required {
	color: var(--dcw-bad);
	text-decoration: none;
}

/*
 * selectWoo is the enhanced country picker, and it replaces the `<select>` with
 * its own markup — which means none of the rules above reach it. WooCommerce
 * already loads it on every account page, so a swapped-in address form gets it
 * too; without this block it would be the one field on the page that still
 * looks like 2014.
 */
.dcw-woo .select2-container .select2-selection--single {
	height: 36px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-m);
	box-shadow: var(--dcw-shadow-sm);
}

.dcw-woo .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 12px;
	color: var(--dcw-ink);
	font-size: 14px;
	line-height: 34px;
}

.dcw-woo .select2-container .select2-selection--single .select2-selection__arrow {
	height: 34px;
}

.dcw-woo .select2-container--open .select2-selection--single,
.dcw-woo .select2-container--focus .select2-selection--single {
	border-color: var(--dcw-ring);
	box-shadow: 0 0 0 1px var(--dcw-ring);
}

/*
 * `.dcw-account .dcw-woo …` — four classes, because WooCommerce's
 * own `.woocommerce .col2-set .col-1 { float: left; width: 48% }` is three and
 * a tie would be decided by whichever stylesheet the shop happens to load
 * last. Left to WooCommerce, the two address cards come out 145px wide with
 * their titles wrapping one word per line.
 */
.dcw-account .dcw-woo .woocommerce-Addresses,
.dcw-account .dcw-woo .u-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	width: auto;
}

/*
 * WooCommerce clears its floats with `.col2-set::before/::after { content:" ";
 * display: table }`. Harmless while the container is a block; in a grid a
 * pseudo-element is a grid item, and `::before` quietly takes cell one — which
 * is why the two address cards began a whole column in from the left with
 * nothing in front of them. Any container this file turns into a grid kills
 * the pair.
 */
.dcw-account .dcw-woo .woocommerce-Addresses::before,
.dcw-account .dcw-woo .woocommerce-Addresses::after,
.dcw-account .dcw-woo .u-columns::before,
.dcw-account .dcw-woo .u-columns::after,
.dcw-account .dcw-woo form::before,
.dcw-account .dcw-woo form::after,
.dcw-account .dcw-woo .woocommerce-address-fields__field-wrapper::before,
.dcw-account .dcw-woo .woocommerce-address-fields__field-wrapper::after,
.dcw-account .dcw-woo .woocommerce-Address-title::before,
.dcw-account .dcw-woo .woocommerce-Address-title::after,
.dcw-account .dcw-woo .woocommerce-form-row::before,
.dcw-account .dcw-woo .woocommerce-form-row::after,
.dcw-account .dcw-woo .form-row::before,
.dcw-account .dcw-woo .form-row::after {
	display: none;
}

/*
 * Only the float, and only at this depth because that is what WooCommerce's
 * rule costs. What the card *looks* like is `.dcw-address` below, where a
 * single class is enough and the rules can be read.
 */
.dcw-account .dcw-woo .col2-set .col-1,
.dcw-account .dcw-woo .col2-set .col-2,
.dcw-account .dcw-woo .woocommerce-Address {
	width: auto;
	max-width: none;
	float: none;
}

/* The fallback shape, for a theme that overrides `my-address.php` itself and
   so renders WooCommerce's own markup instead of `account-addresses.php`. */
.dcw-account .dcw-woo .woocommerce-Address {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
}

.dcw-woo .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dcw-woo .woocommerce-Address-title h2,
.dcw-woo .woocommerce-Address-title h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.dcw-woo .woocommerce-Address address {
	color: var(--dcw-ink-soft);
	font-size: 13.5px;
	font-style: normal;
	line-height: 1.6;
}

.dcw-woo .woocommerce-order-details,
.dcw-woo .woocommerce-customer-details {
	margin-bottom: 20px;
}

/*
 * An order's customer details, as a card rather than a bare `<address>`.
 * WooCommerce prints the e-mail and the phone with a glyph from its own icon
 * font — `content: "\e02d"` and `"\e037"`, absolutely positioned into a 1.5em
 * indent — which is the one piece of this page still drawn in 2015. Four
 * classes deep, because WooCommerce's own rule is three.
 */
.dcw-account .dcw-woo .woocommerce-customer-details address {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	background: var(--dcw-surface-soft);
	border: 1px solid var(--dcw-line-soft);
	border-radius: var(--dcw-radius);
	color: var(--dcw-ink-soft);
	font-size: 14px;
	font-style: normal;
	line-height: 1.6;
}

.dcw-account .dcw-woo .woocommerce-customer-details--email,
.dcw-account .dcw-woo .woocommerce-customer-details--phone {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 0;
	color: var(--dcw-ink);
}

/*
 * A rule above the first of the two, so the address and the ways to reach the
 * customer read as two things rather than one run-on block. Both get it and
 * the second one gives it back, because WooCommerce prints the phone before
 * the e-mail and either can be missing.
 */
.dcw-account .dcw-woo .woocommerce-customer-details--email,
.dcw-account .dcw-woo .woocommerce-customer-details--phone {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--dcw-line);
}

.dcw-account .dcw-woo .woocommerce-customer-details--phone + .woocommerce-customer-details--email,
.dcw-account .dcw-woo .woocommerce-customer-details--email + .woocommerce-customer-details--phone {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.dcw-account .dcw-woo .woocommerce-customer-details--email::before,
.dcw-account .dcw-woo .woocommerce-customer-details--phone::before {
	content: "";
	position: static;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	background: currentColor;
	color: var(--dcw-muted);
	font-family: inherit;
	line-height: 1;
}

.dcw-account .dcw-woo .woocommerce-customer-details--email::before {
	-webkit-mask: var(--dcw-icon-mail) no-repeat center / contain;
	mask: var(--dcw-icon-mail) no-repeat center / contain;
}

.dcw-account .dcw-woo .woocommerce-customer-details--phone::before {
	-webkit-mask: var(--dcw-icon-phone) no-repeat center / contain;
	mask: var(--dcw-icon-phone) no-repeat center / contain;
}

.dcw-account .dcw-woo .woocommerce-customer-details--email a,
.dcw-account .dcw-woo .woocommerce-customer-details--phone a {
	color: inherit;
	text-decoration: none;
}

.dcw-account .dcw-woo .woocommerce-customer-details--email a:hover,
.dcw-account .dcw-woo .woocommerce-customer-details--phone a:hover {
	color: var(--dcw-accent);
}

/* ---------------------------------------------------------------------------
 * 8b. The two address cards
 *
 * WooCommerce's own template is a heading, a link and an `<address>`; ours is
 * a card, because what the customer is looking at is two things they own
 * rather than two rows of a list. The icon says which is which at a glance,
 * and the one button sits at the foot of both cards so they line up whether
 * an address is set or not.
 * ------------------------------------------------------------------------ */

.dcw-addresses {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dcw-addresses__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	align-items: stretch;
}

.dcw-account .dcw-woo .dcw-address {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-sm);
}

/* Beats the generic `.woocommerce-Address-title` rule, which pushes its two
   children apart — ours are an icon and a title, and they belong together. */
.dcw-account .dcw-woo .dcw-address__head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.dcw-address__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	background: var(--dcw-surface-soft);
	border-radius: var(--dcw-radius-m);
	color: var(--dcw-accent);
}

.dcw-address--empty .dcw-address__icon {
	color: var(--dcw-muted);
}

.dcw-address__glyph {
	width: 19px;
	height: 19px;
}

.dcw-account .dcw-woo .dcw-address__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.005em;
}

.dcw-account .dcw-woo .dcw-address__body {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	color: var(--dcw-ink-soft);
	font-size: 14px;
	font-style: normal;
	line-height: 1.65;
}

.dcw-address__empty {
	color: var(--dcw-muted);
}

.dcw-address__foot {
	display: flex;
	padding-top: 2px;
}

.dcw-account .dcw-woo .dcw-address__foot .dcw-button {
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * 8c. Asking before something that cannot be undone
 *
 * shadcn's AlertDialog: the same card as the dialog above, narrower, centred,
 * with the two choices side by side. Escape and the backdrop both mean "no",
 * which is what `<dialog>` does anyway — the destructive answer is the only
 * one that needs a deliberate click.
 * ------------------------------------------------------------------------ */

.dcw-confirm {
	/* See the note on `.dcw-modal`: this site's `* { margin: 0 }` takes away
	   the UA stylesheet's centring. */
	margin: auto;
	width: min(420px, calc(100vw - 32px));
	padding: 26px 24px 22px;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-lg);
	color: var(--dcw-ink);
	text-align: center;
}

.dcw-confirm[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	animation: dcw-pop 0.16s ease-out both;
}

.dcw-confirm::backdrop {
	background: rgba(17, 18, 22, 0.8);
	animation: dcw-fade 0.16s ease-out both;
}

.dcw-confirm__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--dcw-bad-soft);
	border-radius: 50%;
	color: var(--dcw-bad);
}

/* The door belongs to logging out; the script hides it for an order's cancel. */
.dcw-confirm__icon[hidden] {
	display: none;
}

.dcw-confirm__glyph {
	width: 22px;
	height: 22px;
}

.dcw-confirm__title {
	margin: 6px 0 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dcw-confirm__text {
	color: var(--dcw-ink-soft);
	font-size: 14px;
	line-height: 1.5;
}

.dcw-confirm__actions {
	display: flex;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
}

.dcw-confirm__actions .dcw-button {
	flex: 1 1 0;
}

/* ---------------------------------------------------------------------------
 * 8d. WooCommerce's block notices
 *
 * Not `.woocommerce-info`. WooCommerce has two notice systems and the newer
 * one — `.wc-block-components-notice-banner`, with its own inline `<svg>` and
 * a `__content` wrapper — is what the account page actually prints, which is
 * why the e-mail-confirmation prompt arrived unstyled while the classic
 * notices next to it did not. Both are covered now, in the same shape.
 *
 * The button inside a notice comes *first* in WooCommerce's markup and the
 * sentence follows it as a bare text node. A text node cannot be given an
 * `order`, but it does become an anonymous flex item at order 0, so giving the
 * button `order: 2` is enough to read the sentence first and press the button
 * after — which is the order the two are in.
 * ------------------------------------------------------------------------ */

.dcw-woo .wc-block-components-notice-banner {
	display: flex;
	/* The icon lines up with the first line of the sentence rather than
	   floating against the middle of a two-line block. */
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
	padding: 13px 16px;
	background: var(--dcw-surface-soft);
	border: 1px solid var(--dcw-line);
	border-left-width: 1px;
	border-radius: var(--dcw-radius);
	color: var(--dcw-ink-soft);
	font-size: 14px;
	line-height: 1.5;
}

/*
 * WooCommerce prints its own filled glyph inline. It cannot be removed from
 * the markup, so it is hidden and replaced with the outline icon the rest of
 * this page uses, drawn as a mask so it takes the notice's colour like every
 * other icon here.
 */
.dcw-woo .wc-block-components-notice-banner > svg {
	display: none;
}

.dcw-woo .wc-block-components-notice-banner::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background: currentColor;
	-webkit-mask: var(--dcw-icon-info) no-repeat center / contain;
	mask: var(--dcw-icon-info) no-repeat center / contain;
}

.dcw-woo .wc-block-components-notice-banner__content {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1 1 auto;
	/*
	 * `nowrap`, so the sentence and the button stay on one row. The sentence
	 * is an anonymous flex item and shrinks by wrapping inside its own box,
	 * which is what keeps the button beside it rather than under it.
	 */
	flex-wrap: nowrap;
	min-width: 0;
	padding: 0;
}

.dcw-woo .wc-block-components-notice-banner.is-info {
	background: var(--dcw-info-soft);
	border-color: var(--dcw-info-line);
	color: var(--dcw-info);
}

.dcw-woo .wc-block-components-notice-banner.is-success {
	background: var(--dcw-ok-soft);
	border-color: transparent;
	color: var(--dcw-ok);
}

.dcw-woo .wc-block-components-notice-banner.is-error {
	background: var(--dcw-bad-soft);
	border-color: transparent;
	color: var(--dcw-bad);
}

.dcw-woo .wc-block-components-notice-banner.is-warning {
	background: var(--dcw-wait-soft);
	border-color: transparent;
	color: var(--dcw-wait);
}

/*
 * The only `!important` here that fights another stylesheet, and it is
 * answering three of WooCommerce's own. `wc-blocks.css` renders this link as
 * underlined grey text rather than as a button:
 *
 *     .wc-block-components-notice-banner > … .wc-forward {
 *         background: transparent !important;
 *         color: #2f2f2f !important;
 *         padding: 0 !important;
 *         border: 0; float: right; opacity: .7;
 *     }
 *
 * Specificity cannot beat `!important`; only another `!important` at a higher
 * specificity can. So exactly those three properties carry one here and
 * nothing else does — `border`, `float` and `opacity` are won on the four
 * classes alone, and marking them too would be hiding how little of this is
 * actually a fight.
 */
.dcw-account .dcw-woo .wc-block-components-notice-banner .button,
.dcw-account .dcw-woo .woocommerce-info .button,
.dcw-account .dcw-woo .woocommerce-message .button {
	order: 2;
	flex: none;
	float: none;
	height: 34px;
	margin: 0 0 0 auto;
	padding: 0 14px !important;
	background: var(--dcw-info) !important;
	border: 1px solid var(--dcw-info);
	border-radius: var(--dcw-radius-m);
	box-shadow: none;
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 500;
	opacity: 1;
	text-decoration: none;
}

/* The rule above drops every box-shadow, the focus ring with it. */
.dcw-account .dcw-woo .wc-block-components-notice-banner .button:focus-visible,
.dcw-account .dcw-woo .woocommerce-info .button:focus-visible,
.dcw-account .dcw-woo .woocommerce-message .button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--dcw-surface), 0 0 0 4px var(--dcw-ring);
}

.dcw-account .dcw-woo .wc-block-components-notice-banner .button:hover,
.dcw-account .dcw-woo .woocommerce-info .button:hover,
.dcw-account .dcw-woo .woocommerce-message .button:hover {
	filter: brightness(1.1);
	opacity: 1;
	text-decoration: none;
}

/* A success or error notice keeps its own colour on its button. */
.dcw-account .dcw-woo .wc-block-components-notice-banner.is-success .button,
.dcw-account .dcw-woo .woocommerce-message .button {
	background: var(--dcw-ok) !important;
	border-color: var(--dcw-ok);
}

.dcw-account .dcw-woo .wc-block-components-notice-banner.is-error .button {
	background: var(--dcw-bad) !important;
	border-color: var(--dcw-bad);
}

/* The classic notices get the icon slot too, so the two systems look alike. */
.dcw-woo .woocommerce-info,
.dcw-woo .woocommerce-message,
.dcw-woo .woocommerce-error {
	align-items: center;
}

.dcw-woo .woocommerce-info {
	background: var(--dcw-info-soft);
	border: 1px solid var(--dcw-info-line);
	color: var(--dcw-info);
}

.dcw-woo .woocommerce-info::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--dcw-icon-info) no-repeat center / contain;
	mask: var(--dcw-icon-info) no-repeat center / contain;
}

@media (max-width: 620px) {
	.dcw-woo .wc-block-components-notice-banner__content {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.dcw-account .dcw-woo .wc-block-components-notice-banner .button,
	.dcw-account .dcw-woo .woocommerce-info .button,
	.dcw-account .dcw-woo .woocommerce-message .button {
		margin-left: 0;
	}
}

/* ---------------------------------------------------------------------------
 * 9a. One order, in a dialog
 *
 * shadcn's Dialog: `rounded-lg border bg-background p-6 shadow-lg`, over a
 * `bg-black/80` backdrop. A native `<dialog>`, so the focus trap, the inert
 * background and Escape are the browser's; `::backdrop` is the element to
 * paint, and it lives outside the dialog's own box so `--dcw-*` do not reach
 * it — hence the literal there and only there.
 * ------------------------------------------------------------------------ */

.dcw-modal {
	/*
	 * A modal `<dialog>` is centred by `margin: auto` in the UA stylesheet and
	 * by nothing else. This site ships a `* { margin: 0 }` reset, which has the
	 * specificity to take it away — so the dialog rendered hard against the top
	 * left corner, looking like a positioning bug in this file.
	 */
	margin: auto;
	width: min(680px, calc(100vw - 32px));
	max-height: min(84vh, 900px);
	padding: 0;
	overflow: hidden;
	background: var(--dcw-surface);
	border: 1px solid var(--dcw-line);
	border-radius: var(--dcw-radius-l);
	box-shadow: var(--dcw-shadow-lg);
	color: var(--dcw-ink);
	font-size: 14px;
}

.dcw-modal[open] {
	display: flex;
	flex-direction: column;
	animation: dcw-pop 0.16s ease-out both;
}

.dcw-modal::backdrop {
	background: rgba(17, 18, 22, 0.8);
	animation: dcw-fade 0.16s ease-out both;
}

@keyframes dcw-pop {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
}

.dcw-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: none;
	padding: 20px 24px;
	border-bottom: 1px solid var(--dcw-line-soft);
}

.dcw-modal__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dcw-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--dcw-radius-m);
	color: var(--dcw-muted);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dcw-modal__close:hover {
	background: var(--dcw-surface-soft);
	color: var(--dcw-ink);
}

.dcw-modal__close:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--dcw-ring);
}

.dcw-modal__close-icon {
	width: 16px;
	height: 16px;
}

.dcw-modal__body {
	flex: 1 1 auto;
	padding: 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dcw-modal__body[aria-busy="true"] {
	min-height: 160px;
	opacity: 0.5;
}

/* ---------------------------------------------------------------------------
 * 9b. Outranking `woocommerce-blocktheme.css`
 *
 * A third WooCommerce stylesheet, loaded only on block themes — which Etch is.
 * Everything in it is (0,2,1) or (0,3,1), so the single- and double-class rules
 * above lose to it. Each rule here undoes one named rule from that file and
 * says which, so a WooCommerce update that drops one can be matched by dropping
 * the answer rather than by guessing what this block was for.
 * ------------------------------------------------------------------------ */

/*
 * `.woocommerce form .form-row { margin-bottom: 1em }` — the grid already has
 * a gap, and the two together double every field's spacing.
 *
 * And `.woocommerce form .form-row-first/-last { float: left; width: 47% }`,
 * which is the half-width the grid now expresses. Left in, the *paragraph*
 * stays 47% wide inside a cell that is already half the form, so "Vezetéknév"
 * came out 156px inside a 340px column while "Utca, házszám" filled its row.
 * The grid owns the columns; the row owns none of it.
 */
.dcw-account .dcw-woo form .form-row,
.dcw-account .dcw-woo form .woocommerce-form-row {
	width: auto;
	float: none;
	margin-bottom: 0;
}

/* `.woocommerce-page form .form-row input.input-text, … { padding: .9rem 1.1rem;
   font-size: var(--wp--preset--font-size--small) }` (0,3,1). */
.dcw-account .dcw-woo form .form-row input.input-text,
.dcw-account .dcw-woo form .form-row select,
.dcw-account .dcw-woo form .form-row textarea.input-text {
	padding: 10px 13px;
	font-size: 14px;
}

/* `.woocommerce-page form .form-row label { margin-bottom: .7em }`. */
.dcw-account .dcw-woo form .form-row label {
	margin-bottom: 0;
}

/* `.woocommerce-account .woocommerce-orders-table__cell-order-actions a
   { display: block; margin-bottom: 1em; text-align: center }` — which turns
   one "Megtekintés" into a full-width stack. */
.dcw-account .dcw-woo .woocommerce-orders-table__cell-order-actions a {
	display: inline-flex;
	margin-bottom: 0;
	text-align: center;
}

/* `.woocommerce-account .addresses .title .edit { display: block;
   margin-bottom: 1em }`, which drops the edit link onto its own line inside a
   header that is already a flex row. */
.dcw-account .dcw-woo .addresses .title .edit {
	display: inline-flex;
	margin-bottom: 0;
}

/* `.woocommerce-page table.shop_table td, … th { padding: 1em }`. Ours ties on
   specificity and wins on order, but only while this file loads last; saying it
   one class deeper takes the ordering out of it. */
.dcw-account .dcw-woo table.shop_table thead th {
	padding: 12px 14px;
}

.dcw-account .dcw-woo table.shop_table tbody th,
.dcw-account .dcw-woo table.shop_table td {
	padding: 13px 14px;
}

/*
 * The select2 dropdown is appended to `<body>`, so it is outside `.dcw-account`
 * and cannot use the tokens declared there. Literal values, and only the few
 * properties that would otherwise clash with the field it drops out of.
 */
.select2-container--default .select2-dropdown {
	border: 1px solid var(--base-light, #e6e3dd);
	border-radius: 6px;
	box-shadow: 0 10px 15px -3px rgba(17, 18, 22, 0.1), 0 4px 6px -4px rgba(17, 18, 22, 0.1);
	overflow: hidden;
}

.select2-container--default .select2-results__option {
	padding: 7px 12px;
	font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--base-ultra-light, #f4f1ec);
	color: var(--primary, #17181c);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	padding: 8px 10px;
	border: 1px solid var(--base-light, #e6e3dd);
	border-radius: 6px;
	font-size: 14px;
}

/* ---------------------------------------------------------------------------
 * 9c. The page the account sits on
 *
 * Two things about the wrapper, and both are scoped to
 * `body.woocommerce-account` so they reach this page and no other.
 *
 * **It is not centred.** WooCommerce's block-theme stylesheet caps the wrapper
 * at `max-width: 1000px` and gives it no automatic margins, so inside a
 * 1293px builder container it hangs against the left edge with 290px of air on
 * the right. That reads as a page that failed to load its sidebar.
 *
 * **The section it sits in is padded for a landing page.** On this site the
 * builder's section carries `--section-space-m`, which is 123px top and bottom
 * at a desktop width. That is right above a hero image and wrong above a
 * dashboard somebody opened to check where a parcel is; the values below are
 * roughly a third of it and still leave the page breathing.
 *
 * `:has()` rather than a structural selector, so this survives the page being
 * rearranged in the builder: it is "the section that contains the account",
 * however deeply. A site that would rather set this in Etch can delete both
 * rules and nothing else changes.
 * ------------------------------------------------------------------------ */

body.woocommerce-account .woocommerce:has(.dcw-account) {
	/*
	 * `width: 100%` is not redundant next to `max-width`. The builder's
	 * container is a row flex, and `margin-inline: auto` on a flex item hands
	 * the free space to the margins and lets the item size to its *content* —
	 * which took the page from 1000px wide to 796px, centred. Asking for the
	 * full width first and capping it second gives back the 1000.
	 */
	width: 100%;
	max-width: var(--dcw-page-width, 1000px);
	margin-inline: auto;
}

body.woocommerce-account section:has(.dcw-account) {
	padding-block: var(--dcw-page-space, clamp(20px, 3.2vw, 44px));
}

/* ---------------------------------------------------------------------------
 * 10. Narrow screens
 * ------------------------------------------------------------------------ */

/*
 * Below this the sidebar is more cost than help: 232px of a 700px screen for
 * seven links. It becomes the horizontal, scrollable pill bar it was before —
 * same markup, same links, no second nav to keep in step.
 */
@media (max-width: 860px) {
	.dcw-account__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.dcw-account__side,
	.dcw-account__panel {
		grid-column: 1;
		grid-row: auto;
	}

	.dcw-account__side {
		position: static;
	}

	.dcw-account .dcw-account__nav .dcw-account__tabs {
		flex-direction: row;
		gap: 4px;
		padding: 8px;
		overflow-x: auto;
	}

	.dcw-account .dcw-account__nav .dcw-account__tab-item {
		flex: none;
	}

	.dcw-account .dcw-account__nav .dcw-account__tab-item--logout {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.dcw-account__tab {
		width: auto;
		padding: 9px 15px;
		border-radius: var(--dcw-radius-m);
	}

	.dcw-account__tab.is-current {
		box-shadow: var(--dcw-shadow);
	}
}

@media (max-width: 720px) {
	.dcw-ladder__aside {
		justify-content: flex-start;
	}

	.dcw-ladder__hint {
		max-width: none;
		text-align: start;
	}

	.dcw-ladder__steps {
		flex-direction: column;
		gap: 12px;
	}

	.dcw-ladder__step {
		flex-direction: row-reverse;
		align-items: center;
		gap: 12px;
	}

	.dcw-ladder__seg {
		flex: 1 1 auto;
	}

	.dcw-ladder__meta {
		flex: 1 1 50%;
	}

	.dcw-ladder__label {
		white-space: normal;
	}

	.dcw-track {
		flex-direction: column;
		gap: 0;
	}

	.dcw-track__node {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		padding: 7px 0;
	}

	.dcw-track__node::before {
		order: 2;
		flex: 1 1 auto;
		height: 3px;
	}

	.dcw-track__label {
		order: 1;
		flex: 0 0 auto;
	}

	.dcw-orders__row {
		align-items: flex-start;
	}

	.dcw-orders__actions {
		width: 100%;
		margin-inline-start: 0;
	}

	.dcw-woo table.shop_table thead {
		display: none;
	}

	.dcw-woo table.shop_table tr {
		display: flex;
		flex-direction: column;
		gap: 3px;
		padding: 12px 14px;
		border-top: 1px solid var(--dcw-line-soft);
	}

	.dcw-woo table.shop_table tr:first-child {
		border-top: 0;
	}

	.dcw-woo table.shop_table tbody th,
	.dcw-woo table.shop_table td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 0;
		border: 0;
	}

	.dcw-woo table.shop_table tbody th::before,
	.dcw-woo table.shop_table td::before {
		content: attr(data-title) ": ";
		color: var(--dcw-muted);
		font-size: 12px;
		font-weight: 600;
	}

	.dcw-woo .woocommerce-orders-table__cell-order-actions {
		justify-content: flex-start;
		margin-top: 7px;
	}

	.dcw-woo .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}
}

@media (max-width: 560px) {
	.dcw-woo form,
	.dcw-woo .woocommerce-address-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	.dcw-woo .form-row-first,
	.dcw-woo .form-row-last {
		grid-column: 1;
	}
}

@media (max-width: 560px) {
	.dcw-modal {
		width: 100vw;
		max-width: 100vw;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: var(--dcw-radius-l) var(--dcw-radius-l) 0 0;
		border-bottom: 0;
	}

	.dcw-modal__head {
		padding: 16px 18px;
	}

	.dcw-modal__body {
		padding: 18px;
	}
}

@media (max-width: 480px) {
	.dcw-ladder,
	.dcw-hero,
	.dcw-card {
		padding: 16px;
	}

	.dcw-woo form {
		padding: 16px;
	}
}

/* ---------------------------------------------------------------------------
 * 11. Motion, only where it is wanted
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.dcw-account *,
	.dcw-account *::before,
	.dcw-account *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* WooCommerce's eye button on the password fields is 22px square; 24px is the
   WCAG 2.2 AA minimum for a target (2.5.8). */
.dcw-woo .show-password-input {
	min-width: 24px;
	min-height: 24px;
}
