/* ==========================================================================
   GBV România — woocommerce.css (chunk 1; PORT_MAPPING §4 "WooCommerce
   global inherit")
   §1–§7: palette, fonts, radii and spacing on notices, buttons, fields,
   the block cart and checkout, and My Account; selectors mirror
   WooCommerce's own so the rules win by source order. Since TD-007 (theme
   corrections B-5) the cart, the checkout and My Account also take their
   mockups' layout here (§8 on): CSS over WooCommerce's stock markup, never
   a template override (CLAUDE.md). Catalog, card and product-page rules
   live in their own files (chunks 4 and 5).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Classic notices (shop, My Account, order received). Not on a bare
   `.woocommerce-notice`: WooCommerce gives that class alone to the order-
   received lines („Îți mulțumim. Am primit comanda ta.”), plain paragraphs
   without padding, which drew as a 20 px pill with the text on its border
   (theme corrections B-5, F3). A notice that also carries -message / -info /
   -error keeps the look.
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 0;
  border-left: var(--space-1) solid var(--color-success);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-success) 10%, var(--surface-card));
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.woocommerce-info {
  border-left-color: var(--color-info);
  background: var(--surface-brand-soft);
}
.woocommerce-error {
  border-left-color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 8%, var(--surface-card));
}
.woocommerce-message::before { color: var(--color-success); }
.woocommerce-info::before    { color: var(--color-info); }
.woocommerce-error::before   { color: var(--color-danger); }
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--text-link);
}
.woocommerce-store-notice,
p.demo_store {
  background: var(--color-brand);
  color: var(--text-on-brand);
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   2. Block notices (cart, checkout, order received)
   -------------------------------------------------------------------------- */
.wc-block-components-notice-banner {
  border-radius: var(--radius-md);
  border-color: var(--border-strong);
  background-color: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-body);
}
.wc-block-components-notice-banner > svg { background-color: var(--color-info); }
.wc-block-components-notice-banner.is-error {
  background-color: color-mix(in srgb, var(--color-danger) 8%, var(--surface-card));
  border-color: var(--color-danger);
}
.wc-block-components-notice-banner.is-error > svg { background-color: var(--color-danger); }
.wc-block-components-notice-banner.is-warning {
  background-color: var(--surface-accent-soft);
  border-color: var(--color-warning);
}
.wc-block-components-notice-banner.is-warning > svg { background-color: var(--color-warning); }
.wc-block-components-notice-banner.is-success {
  background-color: color-mix(in srgb, var(--color-success) 10%, var(--surface-card));
  border-color: var(--color-success);
}
.wc-block-components-notice-banner.is-success > svg { background-color: var(--color-success); }
.wc-block-components-notice-banner.is-info {
  background-color: var(--surface-brand-soft);
  border-color: var(--color-info);
}
.wc-block-components-notice-banner.is-info > svg { background-color: var(--color-info); }

/* --------------------------------------------------------------------------
   3. Buttons. Colours come from the Customizer through Astra; the block
   button keeps WooCommerce's geometry and takes the radius, family, weight
   and the DS focus ring colour.
   -------------------------------------------------------------------------- */
.wc-block-components-button:not(.is-link) {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
}
.wc-block-components-button:not(.is-link):focus,
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
  box-shadow:
    inset 0 0 0 var(--stroke-hairline) var(--surface-card),
    0 0 0 var(--stroke-bold) var(--ring-color);
}
.wc-block-components-button:not(.is-link).is-style-outline:hover,
.wc-block-components-button:not(.is-link).outlined:hover {
  background-color: var(--color-brand-strong);
  color: var(--text-on-brand);
}

/* --------------------------------------------------------------------------
   4. Classic fields (My Account, login, register, order received)
   -------------------------------------------------------------------------- */
.woocommerce form .form-row label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.woocommerce form .form-row .required {
  color: var(--color-danger);
  text-decoration: none;
}
.woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--color-danger);
}
.woocommerce form .form-row.woocommerce-validated .input-text,
.woocommerce form .form-row.woocommerce-validated select {
  border-color: var(--color-success);
}
.woocommerce form .show-password-input {
  color: var(--text-muted);
}
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}

/* My Account's fields show their focus (G30, WCAG 2.4.7; theme corrections
   step B). base.css §7 draws a focused field as the accent border with
   --shadow-focus and `outline: none` (0,2,1). On My Account Astra wins:
   its WooCommerce CSS answers `.woocommerce-page input[type=…]:focus
   { box-shadow: none; border-color: var(--ast-border-color) }` (0,3,1) —
   a focused field on the login, register and lost-password forms showed
   nothing — and its accessibility focus list (Global › Accessibility, on)
   sets `border-color: inherit` on the address and account-details fields
   (0,6,0 / 0,7,0) and on selectWoo's box (`body #content … .select2-
   selection--single:focus`, 1,5,2) — only a 1 px border change. Hence the
   #content id here. The county box is selectWoo's span (no field rule
   reaches it): the field's hover and focus, and the same focus on its
   search field while the list is open (the list hangs off the body, so
   that rule has no #content). The fields' rest look stays as it is (B-5,
   TD-007). */
.woocommerce-account #content .woocommerce :is(.input-text, select, textarea):focus {
  border-style: solid;
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
}
.woocommerce-account #content .woocommerce .select2-container .select2-selection:hover:not(:focus) {
  border-color: var(--border-strong);
}
body.woocommerce-account #content .woocommerce form .form-row .select2-container .select2-selection:focus,
body.woocommerce-account #content .woocommerce form .form-row .select2-container--open .select2-selection,
body.woocommerce-account .select2-container .select2-search__field:focus {
  outline: none;
  border-style: solid;
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
}

/* --------------------------------------------------------------------------
   5. Block cart and checkout fields: WooCommerce's own controls keep their
   geometry; only border colours, radii and the focus ring change. Selectors
   copy WooCommerce's (checkout.css / packages-style.css) so they win by
   source order alone.
   -------------------------------------------------------------------------- */
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="number"],
.wc-block-components-form .wc-block-components-text-input input[type="password"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="url"],
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select {
  border-color: var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-family: var(--font-body);
}
.wc-block-components-form .wc-block-components-text-input input[type="email"]:hover:not(:focus),
.wc-block-components-form .wc-block-components-text-input input[type="number"]:hover:not(:focus),
.wc-block-components-form .wc-block-components-text-input input[type="password"]:hover:not(:focus),
.wc-block-components-form .wc-block-components-text-input input[type="tel"]:hover:not(:focus),
.wc-block-components-form .wc-block-components-text-input input[type="text"]:hover:not(:focus),
.wc-block-components-form .wc-block-components-text-input input[type="url"]:hover:not(:focus),
.wc-block-components-textarea:hover:not(:focus),
.wc-blocks-components-select .wc-blocks-components-select__select:hover:not(:focus) {
  border-color: var(--border-strong);
}
.wc-block-components-form .wc-block-components-text-input input[type="email"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="number"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="password"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="text"]:focus,
.wc-block-components-form .wc-block-components-text-input input[type="url"]:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
  color: var(--text-strong);
}
.wc-block-components-text-input label,
.wc-blocks-components-select__label {
  font-family: var(--font-body);
}
.wc-block-components-validation-error {
  color: var(--color-danger);
}
/* A field in error keeps the danger border at rest and under the pointer
   (theme corrections B-5, F1): the rules above name the input type
   (`input[type="text"]`, 0,3,1 — 0,5,1 with :hover:not(:focus)), so
   WooCommerce's own has-error selectors (0,2,1 / 0,4,1) lost and only the
   label and the message turned red. These name it too. The county select
   in error: WooCommerce reddens its container, which draws no border here
   (the select itself carries it). */
.wc-block-components-text-input.has-error input,
.wc-block-components-form .wc-block-components-text-input.has-error input[type],
.wc-block-components-form .wc-block-components-text-input.has-error input[type]:active,
.wc-block-components-form .wc-block-components-text-input.has-error input[type]:focus,
.wc-block-components-form .wc-block-components-text-input.has-error input[type]:hover,
.has-error .wc-blocks-components-select .wc-blocks-components-select__select,
.has-error .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.has-error .wc-blocks-components-select .wc-blocks-components-select__select:hover:not(:focus) {
  border-color: var(--color-danger);
}
.wc-block-components-form .wc-block-components-text-input.has-error input[type]:focus,
.has-error .wc-blocks-components-select .wc-blocks-components-select__select:focus {
  box-shadow: 0 0 0 var(--stroke-hairline) var(--color-danger);
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  border-color: var(--border-strong);
  border-radius: var(--radius-xs);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus {
  outline-color: var(--ring-color);
}
.wc-block-components-checkbox .wc-block-components-checkbox__mark {
  fill: var(--text-on-brand);
}
.wc-block-components-radio-control .wc-block-components-radio-control__input {
  border-color: var(--border-strong);
}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  border-color: var(--color-brand);
}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
  background: var(--color-brand);
}
/* Keyboard focus on the shipping and payment radios (theme corrections B-5,
   F2; WCAG 2.4.7): Astra's woocommerce-blocks.min.css answers
   `.wp-block-woocommerce-checkout .wc-block-components-radio-control__input:focus
   { outline: inherit }` (0,3,0), so the base ring (base.css §1, 0,2,0) never
   showed. The ring goes on the radio itself in every browser and, where
   :has() is supported, on its option instead — the shipping row, the whole
   payment card. */
.wc-block-components-radio-control .wc-block-components-radio-control__option .wc-block-components-radio-control__input:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);
  outline-offset: 2px;
}
@supports selector(:has(*)) {
  .wc-block-components-radio-control .wc-block-components-radio-control__option .wc-block-components-radio-control__input:focus-visible {
    outline: none;
  }
  .wc-block-components-radio-control > .wc-block-components-radio-control__option:has(> .wc-block-components-radio-control__input:focus-visible),
  .wc-block-components-radio-control .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__input:focus-visible) {
    outline: var(--stroke-bold) solid var(--ring-color);
    outline-offset: 2px;
  }
}

/* --------------------------------------------------------------------------
   6. Block cart and checkout surfaces: hairlines and radii from the tokens
   -------------------------------------------------------------------------- */
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
  border-color: var(--border-default);
  border-radius: var(--radius-md);
}
.wc-block-components-quantity-selector {
  border-color: var(--border-default);
  border-radius: var(--radius-sm);
}
/* The quantity steppers and number (theme corrections B-5, H20): Astra's
   inline `button:hover` (0,1,1) painted „+” and „−” solid blue-deep with a
   cream sign, the disabled „−” too; under the pointer they take the paper
   well with the strong sign, a disabled one stays as it is. Astra's inline
   `input[type="number"] { padding: 12px 16px }` (0,1,1) beat WooCommerce's
   :where() `.4em 0` and left the number 13–19 px between its sides (three
   digits did not fit); the sides go back to 0, the box keeps its height. */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  background-color: transparent;
  color: inherit;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background-color: var(--surface-sunken);
  color: var(--text-strong);
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  padding-left: 0;
  padding-right: 0;
}
.wc-block-components-panel__button,
.wc-block-components-totals-coupon__button {
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   7. My Account: navigation rows (44 px, B6), tables, addresses, order view
   -------------------------------------------------------------------------- */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}
.woocommerce-MyAccount-navigation ul li {
  margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  min-height: var(--hit-area);
  padding: 0 var(--space-4);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition:
    background-color var(--motion-base) ease,
    color var(--motion-base) ease;
}
.woocommerce-MyAccount-navigation ul li:last-child a {
  border-bottom: 0;
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--surface-sunken);
  color: var(--text-strong);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--surface-brand-soft);
  color: var(--text-strong);
  box-shadow: inset var(--stroke-bold) 0 0 var(--color-brand);
}
/* Keyboard focus on the rows (theme corrections B-5, H15; WCAG 2.4.7):
   Astra's accessibility list prints `.woocommerce .woocommerce-MyAccount-
   navigation ul li a:focus-visible { outline: thin dotted inherit }` (0,3,3)
   over the base ring, and the list's overflow above clipped it top and
   bottom; the base ring, drawn inside the row (the catalog / product
   precedent). */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);
  outline-offset: -3px;                                 /* the ring inside the clipped list */
}
/* The save buttons on focus (B-5, H16): Astra's accessibility list sets
   `.woocommerce .woocommerce-MyAccount-content form button:focus { border:
   thin dotted inherit }` (0,3,2) — a dotted cream rim inside „Salvează
   adresa” / „Salvează modificările” on every focus, a mouse press included.
   The rest and hover border instead; the base ring stays the keyboard's. */
.woocommerce-account .woocommerce .woocommerce-MyAccount-content form button.button:focus {
  border-style: solid;
  border-width: var(--stroke-hairline);
  border-color: var(--color-brand);
}
.woocommerce-account .woocommerce .woocommerce-MyAccount-content form button.button:focus:hover {
  border-color: var(--color-brand-strong);
}

.woocommerce table.shop_table {
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  padding: var(--space-3) var(--space-4);
}
.woocommerce table.shop_table th {
  color: var(--text-strong);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
}
.woocommerce table.shop_table thead th {
  background: var(--surface-sunken);
  border-bottom: var(--stroke-hairline) solid var(--border-default);
}
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table td {
  background: transparent;
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.woocommerce table.shop_table tbody tr:last-child td,
.woocommerce table.shop_table tfoot tr:last-child th,
.woocommerce table.shop_table tfoot tr:last-child td {
  border-bottom: 0;
}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
  background: var(--surface-sunken);
  color: var(--text-strong);
}
.woocommerce table.shop_table .button {
  min-height: var(--btn-sm);
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  font-size: var(--text-caption);
}
@media (max-width: 920.98px) {
  .woocommerce table.shop_table .button {
    min-height: var(--btn-md);
  }
}
/* The order number on phones (theme corrections B-5, H17): below 922
   Astra's woocommerce-smallscreen-grid.min.css stacks the responsive table
   and hides its row header (`.woocommerce table.shop_table_responsive tbody
   th { display: none }`, 0,2,2) — on Comenzi that is the order-number link.
   It carries data-title like the cells, so it shows as their rows do (the
   label as Astra writes the cells' labels). Astra's media query. */
@media only screen and (max-width: 921px) {
  .woocommerce-account .woocommerce table.shop_table_responsive tbody th {
    display: block;
    text-align: right;
  }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody th::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: var(--fw-bold);
  }
}

.woocommerce-customer-details address,
.woocommerce-Address address {
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-body);
  font-family: var(--font-body);
  font-style: normal;
}
.woocommerce ul.order_details {
  font-family: var(--font-body);
}
.woocommerce ul.order_details li {
  border-right-color: var(--border-default);
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.woocommerce ul.order_details li strong {
  color: var(--text-strong);
}
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2 {
  color: var(--text-strong);
}
/* The AWB line (accounts track CP4): gbv-rvx-sync prints it after the order
   table on My Account › Comenzi › a comandă and on the guest order view
   (`render_tracking_line()`, woocommerce_order_details_after_order_table
   11, under its invoice line at 10) — „Expediată prin Cargus — AWB …” with
   „Urmăriți coletul”, or „Expediată — AWB …” alone for an unknown courier.
   Body size and colour under the invoice line; the link in the site's prose
   link recipe (brand, underlined 3 px below, clay under the pointer, on
   focus and pressed — editorial.css §4's acceptance link) — Astra colours
   and underlines content links itself (`.ast-single-post .entry-content a`,
   0,2,1; restated at 0,3,2). The link stays one phrase: at 360 it moves to
   the next line whole instead of breaking after „Urmăriți”; an AWB value
   is one token of at most 64 characters, so the line may break inside it
   rather than overflow. The plugin's own markup opens the courier in the
   same tab with rel="noopener noreferrer" — nothing of the courier's loads
   here (theme TD-004). */
.woocommerce .woocommerce-order-details p.gbv-rvx-tracking {
  margin: var(--space-2) 0 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  overflow-wrap: anywhere;
}
.woocommerce .woocommerce-order-details p.gbv-rvx-tracking a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.woocommerce .woocommerce-order-details p.gbv-rvx-tracking a:is(:hover, :focus-visible, :active) {
  color: var(--color-accent-strong);
}
/* The withdrawal link (TD-009, inc/withdrawal.php): after the invoice and
   AWB lines (woocommerce_order_details_after_order_table 12) on the order
   view and order received, an eligible order only — the link alone (W3),
   in the AWB line's prose-link recipe; 16 under the table or the line
   above it */
.woocommerce .woocommerce-order-details p.gbv-withdrawal-link {
  margin: var(--space-4) 0 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
.woocommerce .woocommerce-order-details p.gbv-withdrawal-link a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.woocommerce .woocommerce-order-details p.gbv-withdrawal-link a:is(:hover, :focus-visible, :active) {
  color: var(--color-accent-strong);
}

/* --------------------------------------------------------------------------
   8. The page head on the cart, the checkout and My Account (theme
   corrections B-5, E3 (i); inc/pages.php): base.css §9's cream band with the
   breadcrumb above the h1, Astra's title off. cos.dc.html / comanda.dc.html:
   26 above, 28 below at every width, the crumb 12 above the h1, the h1
   28–38 px in its normal line box (34 / 46 px). My Account's h1 28–36 px
   (cont.dc.html; E21). Logged out, My Account's head is centred, without a
   crumb (base padding).
   -------------------------------------------------------------------------- */
.gbv-page-head--shop {
  padding-top: 26px;                                    /* cos.dc.html / comanda.dc.html head */
  padding-bottom: 28px;
}
.gbv-page-head--shop .gbv-page-head__title,
.gbv-page-head--account .gbv-page-head__title {
  line-height: normal;
}
/* The crumb in the mockups' 13 px (caption), its links in the body colour;
   Astra: `.woocommerce-js .woocommerce-breadcrumb { font-size: .92em;
   color: #777 }` (0,2,0) and `… a { color: #777 }` (0,2,1). */
.gbv-page-head--shop .gbv-crumb {
  font-family: var(--font-body);
  font-size: var(--text-caption);
}
.gbv-page-head--shop .gbv-crumb a,
.gbv-page-head--shop .gbv-crumb a:visited {
  color: var(--text-body);
  text-decoration: none;
}
.gbv-page-head--shop .gbv-crumb a:hover,
.gbv-page-head--shop .gbv-crumb a:focus-visible {
  color: var(--color-accent-strong);
}
.gbv-page-head--account .gbv-page-head__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);              /* 28–36 px, cont.dc.html */
}
/* The content under the head: Astra's plain container sets #primary 60 px
   down from 1200 and 0 below (`.ast-plain-container.ast-no-sidebar #primary`,
   inline, 1,2,0) — the mockups' 36 / 24 on the tokens; WooCommerce's
   checkout block adds its own 24 on top (checkout.css, 0,1,0). */
body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account).ast-plain-container.ast-no-sidebar #primary {
  margin-top: var(--space-8);
}
@media (max-width: 921.99px) {
  body:is(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account).ast-plain-container.ast-no-sidebar #primary {
    margin-top: var(--space-6);
  }
}
.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   9. The cart (cos.dc.html; TD-007, theme corrections B-5 — E1, E2, E11,
   E12). CSS over WooCommerce 11.2.1's block cart only (§16): every rule is
   scoped to the block's root `.wp-block-woocommerce-cart` (its inline-size
   container), so it out-ranks WooCommerce's own selector by one class
   whatever the order. In Astra's 1280 container (Audit v2 B8, E1); the
   summary card 340 wide, 48 from the lines, from 922 (E2 — WooCommerce
   itself switches at a 920 px block, a 984 px window).
   -------------------------------------------------------------------------- */

/* 9a. Token bridge on the block's root: WooCommerce sizes its small text with
   WordPress's preset (13 px here) and draws its separators with
   --wc-separator-color (20 % currentColor) */
.wp-block-woocommerce-cart {
  --wp--preset--font-size--small: var(--text-sm);
  --wc-separator-color: var(--border-subtle);
}

/* 9b. Two columns from 922: the lines, then the summary card (cos.dc.html
   `1fr 340px`, gap 48). WooCommerce: `@container (max-width: 919px)
   .wc-block-components-sidebar-layout { flex-direction: column }` (0,1,0),
   the main `flex: none; width: 100%` (0,2,0), the sidebar `flex: 0 0 360px`
   (0,1,0). The card is sticky under the header (G2). */
@media (min-width: 922px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    column-gap: var(--space-12);
  }
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__main {
    flex: 1 1 0%;
    width: auto;
  }
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__sidebar {
    position: sticky;
    top: calc(var(--header-stuck) + var(--space-5));
    flex: 0 0 340px;                                    /* cos.dc.html aside */
    width: 340px;
    margin-bottom: 0;
  }
}
@media (max-width: 921.99px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__sidebar {
    margin-top: var(--space-6);                         /* cos.dc.html: 24 under the last line */
  }
}

/* 9c. The summary card: cream, radius 10 with the 44 signature corner;
   „Sumar comandă” (the heading block's text, page content) as the 12 px
   tracked caption at every width (WooCommerce hides its title below a 920
   container, 0,3,0) */
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
  --wc-separator-color: var(--border-default);          /* the card's rules (cos.dc.html: before the total), visible on cream */
  box-sizing: border-box;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
  background: var(--surface-page);
}
.wp-block-woocommerce-cart .wc-block-cart .wc-block-components-sidebar .wc-block-cart__totals-title {
  display: block;
  margin: 0 0 var(--space-3);
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--text-strong);
}
.wp-block-woocommerce-cart .wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
  margin-bottom: var(--space-4);
  border-bottom: 0;
}
/* the totals: labels 14 body, values 600 strong; „Livrare standard” 12;
   the total row (under WooCommerce's own separator), the label 16 / 600,
   the value Inter 24 / 700 brand (cos.dc.html) */
.wp-block-woocommerce-cart .wc-block-components-totals-item__value {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-cart .wc-block-components-totals-shipping .wc-block-components-totals-shipping__via {
  font-size: var(--text-xs);                            /* 10 px before (B7 floor 12) */
  color: var(--text-body);                              /* muted is 3.9 : 1 on the cream card (B5) */
}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-headline);
  font-size: var(--text-subhead);
  font-weight: var(--fw-bold);
  color: var(--color-brand);
}
/* „Adaugă cupoane” (the coupon block, page content — E9): the link colour
   under the pointer; the coupon field: Astra's `.woocommerce-page
   input[type=text]` (0,2,1) paints it cream with radius 0 */
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button:active {
  color: var(--color-accent-strong);
}
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="text"] {
  border-color: var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
}
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="text"]:hover:not(:focus) {
  border-color: var(--border-strong);
}
.wp-block-woocommerce-cart .wc-block-components-text-input input[type="text"]:focus {
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
}

/* 9d. „Finalizează comanda” (the proceed block's label, page content): the
   DS accent, lg, the card's width; WooCommerce: `body:not(…) .wc-block-
   components-button:not(.is-link) { min-height: 3em }` (0,3,1). The cart's
   buttons („Aplică” too) show their ring from the keyboard only (§3 draws it
   on :focus — a mouse press too, 0,4,1). */
.wp-block-woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:not(.is-link) {
  min-height: var(--btn-lg);
  background-color: var(--color-accent);
  color: var(--text-on-accent);
  font-size: var(--text-base);
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button.wc-block-components-button:not(.is-link):active {
  background-color: var(--accent-hover-bg);             /* H1, base.css §0 */
  color: var(--text-on-brand);
}
.wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):focus:not(:focus-visible) {
  box-shadow: none;
}
/* WooCommerce's fixed bar below 783 px (`.wc-block-cart__submit-container--
   sticky`, z 9999, over the to-top button and 74 px of the page): in the
   flow, as the mockup (E12). WooCommerce: `@media (max-width: 782px)
   .wc-block-cart .wc-block-cart__submit-container--sticky` (0,2,0); its
   script sets the body's colour inline as the bar's background, so the
   container takes the button's corners (no white behind them on the card). */
.wp-block-woocommerce-cart .wc-block-cart__submit-container--sticky {
  position: static;
  padding: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-container--sticky::before {
  display: none;
}

/* 9e. The lines: one grid per row (cos.dc.html) — below a 960 px block
   (a 1024 px window with the card): cover · title and price · total over the
   quantity; from 960: cover · title and price · quantity · total. The
   table's head is not drawn; WooCommerce's product cell and its wrap give
   their children to the row's grid (`display: contents`). WooCommerce:
   `.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row`
   (0,3,1 in its container queries) — these win by order. */
.wp-block-woocommerce-cart table.wc-block-cart-items {
  border-bottom: 0;                                     /* WooCommerce's table rule doubled the last line's */
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header {
  display: none;
}
.wp-block-woocommerce-cart table.wc-block-cart-items tbody {
  display: block;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;      /* cos.dc.html below 1024 */
  grid-auto-rows: auto;
  column-gap: var(--space-5);
  row-gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 0;
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row > td {
  padding: 0;
  border: 0;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
  grid-column: 1;
  grid-row: 1 / span 3;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap {
  display: contents;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap > * {
  grid-column: 2;
  margin: 0;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-cart-item__quantity {
  grid-column: 3;
  grid-row: 2 / span 2;
  justify-self: end;
  flex-direction: row-reverse;                          /* the remove control left of the box (cos.dc.html) */
  gap: var(--space-2);
  padding: 0;                                           /* WooCommerce: 16 right under a 920 container */
}
@container (min-width: 960px) {
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) auto auto; /* cos.dc.html from 1024 */
    align-items: center;
    padding: var(--space-5) 0;
  }
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-cart-item__quantity {
    grid-row: 1 / span 3;
    align-self: center;
  }
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 4;
    grid-row: 1 / span 3;
    align-self: center;
    min-width: 84px;                                    /* cos.dc.html total column */
  }
}
/* below 480 the quantity goes on its own line under the title and price, so
   the title keeps the width the total leaves (E11 — a deviation, §17) */
@media (max-width: 479.98px) {
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-row: 1 / span 4;
  }
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap > .wc-block-cart-item__quantity {
    grid-column: 2 / span 2;
    grid-row: auto;
    justify-self: start;
    flex-direction: row;
  }
}

/* 9f. The cover in a 64 / 72 paper well (cos.dc.html: padding 3, radius 3) */
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  padding: 3px;                                         /* cos.dc.html well */
  border-radius: var(--radius-xs);
  background: var(--surface-sunken);
}
@container (min-width: 960px) {
  .wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image a {
    width: 72px;
    height: 72px;
  }
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 9g. The row's text: the title 15 / 600 strong, the unit price 14 body (the
   bridge), no short description (the mockup prints none), the line total
   16 / 700 brand on one line */
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-body);
  color: var(--text-strong);
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name:hover,
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name:active {
  color: var(--color-accent-strong);
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata__description {
  display: none;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--color-brand);
  white-space: nowrap;
}
/* 9g'. The author line (B-5b, R3; inc/cart.php's item data „Autor”, the
   names unbroken): WooCommerce prints it in the product details after the
   price — its key goes (here, in the checkout's summary, anywhere the
   details print), the names 14 px muted (cos.dc.html: 13.5) under the
   title: the details take the title's next grid row, 3 px under it
   (cos.dc.html's gap; the row gap is 12), and the price the row after.
   Lines without an author keep B-5's rows; without :has() the names stay
   under the price. */
.wc-block-components-product-details__autor .wc-block-components-product-details__name {
  display: none;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-details {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-muted);
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row:has(.wc-block-components-product-details__autor) .wc-block-cart-item__wrap > .wc-block-components-product-metadata {
  grid-row: 2;
  margin-top: calc(3px - var(--space-3));               /* 3 under the title, cos.dc.html */
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row:has(.wc-block-components-product-details__autor) .wc-block-cart-item__wrap > .wc-block-cart-item__prices {
  grid-row: 3;
}

/* 9h. The quantity box 36 tall (steppers 34, the number 36 wide, 15 / 600
   strong), its border steel under the pointer and clay while a control in
   it has the focus; the remove control a 36 px pill left of it */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: var(--btn-sm);
  margin: 0;
  border-width: var(--stroke-default);
  transition: border-color var(--motion-base) ease;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector:hover {
  border-color: var(--border-strong);
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector:focus-within {
  border-color: var(--color-accent-strong);
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  width: 34px;                                          /* cos.dc.html stepper */
  min-width: 34px;
  color: var(--text-strong);
}
/* the steppers' focus: WooCommerce draws a 1 px inset ring on every focus
   (`… __button:focus`, 0,3,0), a mouse press too; the base ring from the
   keyboard instead, inside the button so it stays clear of the box's own
   clay border */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus {
  box-shadow: none;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);
  outline-offset: -2px;
}
.wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  width: 36px;                                          /* cos.dc.html number */
  min-width: 36px;
  padding: 0;
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
  display: inline-flex;                                 /* WooCommerce hides it under a 920 container */
  align-items: center;
  justify-content: center;
  width: var(--btn-sm);
  height: var(--btn-sm);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color var(--motion-base) ease, color var(--motion-base) ease;
}
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover,
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:active {
  background: var(--surface-sunken);
  color: var(--color-accent-strong);
}

/* --------------------------------------------------------------------------
   10. Around the cart block (theme corrections B-5, E4–E10; inc/cart.php,
   the pattern „Coș”): „Continuă cumpărăturile” above the lines, the
   recommendation grid of shop cards (card.css loads on the cart for it) —
   „V-ar mai putea interesa” after the block, „Recomandate” in the empty
   cart — and the empty cart as cos.dc.html draws it.
   -------------------------------------------------------------------------- */

/* „Continuă cumpărăturile” (a paragraph in the cart's items block, page
   content): cos.dc.html's bar over the lines — the link on the left at
   every width (B-5b, R4: the mockup's count left of it is not printed),
   600 brand, its arrow before the text pointing back (Lucide's arrow,
   mirrored), 44 px tall, a hairline under the bar */
.wp-block-woocommerce-cart .gbv-cart-continue {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0 0 var(--space-3);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.wp-block-woocommerce-cart .gbv-cart-continue a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--hit-area);
  margin: calc(-1 * var(--space-3)) 0;                  /* the 44 px target, the bar's own height */
  color: var(--color-brand);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.wp-block-woocommerce-cart .gbv-cart-continue a::before {
  content: "";
  width: var(--icon-xs);
  height: var(--icon-xs);
  background-color: currentColor;
  -webkit-mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow-right.svg") center / contain no-repeat;
  transform: scaleX(-1);
}
.wp-block-woocommerce-cart .gbv-cart-continue a:hover,
.wp-block-woocommerce-cart .gbv-cart-continue a:active {
  color: var(--color-accent-strong);
}

/* The grid: the home „Noutăți” recipe (home.css §3) — 4 columns from 768,
   2 below. Astra's inline tablet grid `.ast-container .woocommerce
   ul.products:not(.elementor-grid)` (0,4,1, 3 columns up to 921) loses to
   one class more. */
.gbv-cart-recs {
  margin: var(--space-12) 0 var(--space-4);
}
.gbv-cart-recs__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);            /* 24–30 px, home.css „Noutăți” */
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.ast-container .gbv-cart-recs .woocommerce ul.products:not(.elementor-grid) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}
.gbv-cart-recs ul.products::before,
.gbv-cart-recs ul.products::after {
  content: none;
}
.gbv-cart-recs ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}
@media (max-width: 921.99px) {
  .ast-container .gbv-cart-recs .woocommerce ul.products:not(.elementor-grid) {
    gap: var(--space-4);
  }
}
@media (max-width: 767.98px) {
  .ast-container .gbv-cart-recs .woocommerce ul.products:not(.elementor-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}
/* The section after the cart block was rendered for the cart as it was at
   load: once the visitor empties the cart in place, the empty-cart block
   shows its own grid, so the stale one goes. `:not(.is-loading)`: until
   WooCommerce's script hydrates the block, the server markup holds the
   empty-cart block in every cart. */
.wp-block-woocommerce-cart:not(.is-loading):has(.wp-block-woocommerce-empty-cart-block) ~ .gbv-cart-recs {
  display: none;
}

/* The empty cart (cos.dc.html; E7): 72 under the head, the 72 px paper disc with the
   site's bag (the header's cart glyph) in blue-deep, 24, the heading Inter
   700 26 px, 12, the lede 15.5 / 1.55 in the body colour (40 ch), 28, the
   lg primary button, then „Recomandate”; 96 below. WooCommerce's sad face
   (`.with-empty-cart-icon::before`, a mask) never shows: the same pseudo-
   element is the disc, its mask cleared. */
.wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  padding: var(--space-10) 0 var(--space-24);           /* 72 under the head, less #primary's 32 (§8) */
}
@media (max-width: 921.99px) {
  .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    padding-top: var(--space-12);                       /* 72, less #primary's 24 */
  }
}
.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title {
  position: relative;
  margin: 0;
  padding-top: calc(72px + var(--space-6));             /* the disc + 24 */
  font-family: var(--font-headline);
  font-size: 1.625rem;                                  /* 26 px, cos.dc.html */
  font-weight: var(--fw-bold);
  line-height: normal;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 72px;                                          /* cos.dc.html disc */
  height: 72px;
  margin: 0 0 0 -36px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  -webkit-mask: none;
  mask: none;
}
.wp-block-woocommerce-cart .wc-block-cart__empty-cart__title::after {
  content: "";
  position: absolute;
  top: 21px;                                            /* (72 − 30) / 2 */
  left: 50%;
  width: 30px;                                          /* cos.dc.html bag */
  height: 30px;
  margin-left: -15px;
  background-color: var(--gbv-blue-deep);
  -webkit-mask: url("../img/icons/cart.svg") center / contain no-repeat;
  mask: url("../img/icons/cart.svg") center / contain no-repeat;
}
.wp-block-woocommerce-cart .gbv-cart-empty__lede {
  max-width: 40ch;
  margin: var(--space-3) auto 0;
  font-size: 0.96875rem;                                /* 15.5 px, cos.dc.html */
  line-height: 1.55;                                    /* cos.dc.html */
  color: var(--text-body);
}
.wp-block-woocommerce-cart .gbv-cart-empty__action {
  margin: calc(var(--space-6) + var(--space-1)) 0 0;    /* 28 */
  text-align: center;
}
.wp-block-woocommerce-cart .gbv-cart-empty__action .gbv-btn,
.wp-block-woocommerce-cart .gbv-cart-empty__action .gbv-btn:hover {
  text-decoration: none;                                /* Astra underlines .entry-content links */
}
.wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .gbv-cart-recs {
  margin: var(--space-16) 0 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   11. The checkout (comanda.dc.html; TD-007, theme corrections B-5 — E1,
   E2, E14, E17). CSS over WooCommerce 11.2.1's block checkout only: the
   fields, their order and their validation are WooCommerce's and the
   plugin's (the CUI field) — nothing about them changes. Astra's 1280
   container (E1). WooCommerce's own switch stays (E2): two columns from a
   920 px block (a 984 px window), where its script also stops making the
   summary a toggle; below it, the summary is the G4 bar under the header.
   -------------------------------------------------------------------------- */

/* 11a. Token bridge on the block's root (as the cart's, §9a) */
.wp-block-woocommerce-checkout {
  --wp--preset--font-size--small: var(--text-sm);
  --wc-separator-color: var(--border-subtle);
}

/* 11b. Two columns: the summary card 340 wide (the mockup's aside; 48 from
   the form, WooCommerce's gap), sticky 20 under the header (T19, D22 —
   WooCommerce: `top: 24px` in the same container query, 0,1,0); the error
   banner over the form column only (it sits above both in the markup). */
@container (min-width: 920px) {
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar.wc-block-components-sidebar {
    flex-basis: 340px;                                  /* comanda.dc.html aside */
    width: 340px;
    top: calc(var(--header-stuck) + var(--space-5));
  }
  .wp-block-woocommerce-checkout > .wc-block-components-notices {
    max-width: calc(100% - 340px - var(--space-12));
  }
}

/* 11c. The steps: 32 apart, titles Inter 700 24 (the mockup's 22 has no
   token), the login prompt and the guest line small */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-form .wc-block-components-checkout-step {
  margin-bottom: var(--space-8);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title.wc-block-components-title {
  font-family: var(--font-headline);
  font-size: var(--text-subhead);
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__login-prompt {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-link);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__login-prompt:hover,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__login-prompt:active {
  color: var(--color-accent-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__guest-checkout-notice {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* 11d. Text fields: the label above the field (the DS Input) instead of
   WooCommerce's floating label — the label is moved by `order` inside its
   wrapper, for / id untouched; 48 px fields with 16 px text (under 16 px
   iOS zooms the page on focus; the mockup draws 42 / 15). A required
   field's label ends in „ *” — a symbol, kept out of the accessible name by
   the empty alternative text (E14); browsers without CSS alternative text
   keep the first declaration. WooCommerce: the label absolute at 0,2,1 /
   0,3,1 (.is-active), the wrapper `line-height: 0`; Astra's blocks CSS
   `.wp-block-woocommerce-checkout input { height: auto }` (0,1,1). */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-4);
  line-height: var(--leading-body);
  white-space: normal;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input:first-child,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form__email {
  margin-top: 0;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.is-active label,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input:-webkit-autofill + label {
  order: -1;
  position: static;
  max-width: 100%;
  margin: 0 0 var(--space-2);
  transform: none;
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
  white-space: normal;
  cursor: default;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input:required + label::after,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form__state .wc-blocks-components-select__label::after,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form__country .wc-blocks-components-select__label::after {
  content: " *";
  content: " *" / "";
  color: var(--color-accent-strong);
  font-weight: var(--fw-bold);
}
.wp-block-woocommerce-checkout .wc-block-components-form.wc-block-checkout__form .wc-block-components-text-input input[type="email"],
.wp-block-woocommerce-checkout .wc-block-components-form.wc-block-checkout__form .wc-block-components-text-input input[type="tel"],
.wp-block-woocommerce-checkout .wc-block-components-form.wc-block-checkout__form .wc-block-components-text-input input[type="text"] {
  height: var(--space-12);
  min-height: var(--space-12);
  padding: 0 var(--pad-control);
  border-width: var(--stroke-default);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
/* two fields in a row: 16 apart (WooCommerce 12) */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form {
  column-gap: var(--space-4);
}
/* „+ adaugă …” (address 2): Astra's blocks CSS sets `font: inherit` (0,3,0) */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-link);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle:hover,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-address-form .wc-block-components-address-form__address_2-toggle:active {
  color: var(--color-accent-strong);
}
/* in error: the label stays strong (the mockup), the message 12 danger
   (the border: §5, F1) */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.has-error label,
.wp-block-woocommerce-checkout .wc-block-checkout .has-error .wc-blocks-components-select .wc-blocks-components-select__label {
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .has-error .wc-blocks-components-select .wc-blocks-components-select__select {
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .has-error .wc-blocks-components-select .wc-blocks-components-select__expand {
  fill: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-validation-error {
  padding-top: var(--space-2);
  font-size: var(--text-xs);
  line-height: var(--leading-body);
  color: var(--color-danger);
}

/* 11e. Selects (country, county): the label above, the box 48, the chevron
   centred on the box; the open list is the system's */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__container {
  display: flex;
  flex-direction: column;
  background: none;
  line-height: var(--leading-body);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__form .wc-blocks-components-select {
  margin-top: var(--space-4);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__form .wc-block-components-address-form__country .wc-blocks-components-select {
  margin-top: 0;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
  order: -1;
  position: static;
  max-width: 100%;
  margin: 0 0 var(--space-2);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
  height: var(--space-12);
  padding: 0 var(--space-10) 0 var(--pad-control);
  border-width: var(--stroke-default);
  background: var(--surface-card);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-blocks-components-select .wc-blocks-components-select__expand {
  top: auto;
  bottom: var(--space-3);
  transform: none;
  fill: var(--text-strong);
}

/* 11f. Shipping and payment as the mockup's cards, 12 apart: hairline
   border, radius 10; chosen brand on the brand tint; the border steel under
   the pointer, clay pressed; the keyboard ring on the card (§5, F2).
   WooCommerce frames the group and separates the options (`::after`),
   Astra's blocks CSS sets the radios' background `inherit` (0,3,0). */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked::after,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option::after,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::after {
  display: none;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: none;
  transition:
    border-color var(--motion-base) ease,
    background-color var(--motion-base) ease;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
  padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-12) + var(--space-2));
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input {
  left: var(--space-5);
  border-width: var(--stroke-default);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  background-color: var(--surface-card);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option:hover,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:hover {
  border-color: var(--border-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__shipping-option .wc-block-components-radio-control__option:active,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:active {
  border-color: var(--color-accent-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
  border-color: var(--color-brand);
  background: var(--surface-brand-soft);
  box-shadow: none;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__secondary-label {
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__description,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control-accordion-content {
  font-size: var(--text-sm);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control-accordion-content {
  padding: 0 var(--space-5) var(--space-4) calc(var(--space-12) + var(--space-2));
}

/* 11g. Checkboxes (the DS Checkbox: the label 14 body, the keyboard ring 2
   / 2) and the terms sentence (14 body, no separator) */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  border-width: var(--stroke-default);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:hover {
  border-color: var(--gbv-blue-steel);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:active {
  border-color: var(--color-accent-strong);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus:not(:focus-visible) {
  outline: none;                                        /* WooCommerce's 1 px ring on every focus, a click too */
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
  outline: var(--stroke-bold) solid var(--ring-color);
  outline-offset: 2px;
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__terms,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__terms .wc-block-components-checkbox__label {
  font-size: var(--text-sm);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
  padding-top: 0;
  border-top: 0;
}

/* 11h. „Plasează comanda”: the DS accent, lg, the form column's width
   (WooCommerce: `body:not(…) .wc-block-components-button:not(.is-link)`,
   0,3,1); the checkout's buttons ring from the keyboard only (§3) */
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link) {
  min-height: var(--btn-lg);
  background-color: var(--color-accent);
  color: var(--text-on-accent);
  font-size: var(--text-base);
}
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link):active {
  background-color: var(--accent-hover-bg);             /* H1, base.css §0 */
  color: var(--text-on-brand);
}
.wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):focus:not(:focus-visible) {
  box-shadow: none;
}

/* 11i. The summary from 984 (the mockup's aside): cream, radius 10 with the
   44 corner, no border; its title as the 12 px tracked caption; the lines
   14 body, the unit price 12, the line total 14 / 600; no product
   descriptions; the quantity badge brand; totals as the cart's. Secondary
   text on cream in the body colour (muted is 3.9 : 1 there, B5). */
@container (min-width: 920px) {
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
    padding: var(--space-3) var(--space-2) var(--space-5);
    border: 0;
    border-radius: var(--radius-md);
    border-top-left-radius: var(--corner-md);
    background: var(--surface-page);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-regular);
    letter-spacing: var(--tracking-caption);
    text-transform: uppercase;
    color: var(--text-strong);
  }
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata {
  display: none;
}
/* the author line (B-5b, R3 — the cart's, §9g'): the details shown without
   the description, between the title and the unit price, 12 px in the body
   colour like the unit price (muted is 3.9 : 1 on the cream card) */
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata:has(.wc-block-components-product-details__autor) {
  display: block;
  order: 1;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-metadata:has(.wc-block-components-product-details__autor) .wc-block-components-product-metadata__description {
  display: none;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description:has(.wc-block-components-product-details__autor) > .wc-block-cart-item__prices {
  order: 2;
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-details {
  margin: 0;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices {
  font-size: var(--text-xs);
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  border-color: var(--surface-page);
  background-color: var(--color-brand);
  color: var(--text-on-brand);
}
.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity span {
  color: var(--text-on-brand);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-shipping .wc-block-components-totals-shipping__via {
  font-size: var(--text-xs);                            /* 10 px before (B7 floor 12) */
  color: var(--text-body);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-headline);
  font-size: var(--text-subhead);
  font-weight: var(--fw-bold);
  color: var(--color-brand);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button:active {
  color: var(--color-accent-strong);
}
.wp-block-woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-text-input input[type="text"] {
  border-color: var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
}

/* 11j. Below 984 (one column): WooCommerce's collapsed summary as the G4
   bar — paper, full bleed, sticky right under the header, 56 tall, its own
   scroll when opened; the copy of the summary WooCommerce prints before the
   button is not shown (the mockup has the bar only) */
@container (max-width: 919px) {
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar.wc-block-components-sidebar {
    position: sticky;
    top: var(--header-stuck);
    z-index: var(--z-sticky-bar);
    max-height: calc(100dvh - var(--header-stuck));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface-sunken);
    box-shadow: 0 0 0 100vmax var(--surface-sunken);   /* full bleed without page overflow */
    clip-path: inset(0 -100vmax);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
    min-height: calc(var(--space-12) + var(--space-2)); /* 56, the G4 bar */
    margin-top: 0;
    padding: 0;
    border-top: 0;
    border-bottom: var(--stroke-hairline) solid var(--border-subtle);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
    font-size: var(--text-sm);
    font-weight: var(--fw-regular);
    color: var(--text-body);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-price {
    font-weight: var(--fw-bold);
    color: var(--color-brand);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title-icon {
    fill: var(--color-brand);
  }
  /* the bar is the summary's toggle: the text strong and the chevron clay
     under the pointer and pressed; the keyboard ring inside the bar (its
     own scroll box clips anything outside) */
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title:is(:hover, :active) .wc-block-components-checkout-order-summary__title-text {
    color: var(--text-strong);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title:is(:hover, :active) .wc-block-components-checkout-order-summary__title-icon {
    fill: var(--color-accent-strong);
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title:focus-visible {
    outline-offset: -3px;                               /* the ring inside the clipped bar */
  }
  .wp-block-woocommerce-checkout .wc-block-checkout__main .checkout-order-summary-block-fill-wrapper {
    display: none;
  }
}

/* 11k. The error banner (comanda.dc.html): blush, the danger border with
   its 4 px left edge, radius 10, the text strong 14, WooCommerce's bold
   lead kept */
.wp-block-woocommerce-checkout .wc-block-components-notice-banner.is-error {
  border-left-width: var(--space-1);
  background-color: var(--surface-accent-soft);
  color: var(--text-strong);
  font-size: var(--text-sm);
}
.wp-block-woocommerce-checkout .wc-block-components-notice-banner .wc-block-components-notice-banner__summary {
  font-weight: var(--fw-semibold);
}

/* 11l. The banner in view (§11 item 56, theme corrections B-6): when a
   notice arrives and no field has the focus, WooCommerce 11.2.1 scrolls
   its notices container into view (`scrollIntoView({ behavior: 'smooth' })`,
   the block's start on the window's top edge) — and its checkout scroll
   point with `scrollIntoView()` — under the stuck header and, below 984,
   the G4 bar (11j). scrollIntoView honours scroll-margin-top: the banner
   lands 20 under the header, below 984 20 under the bar. */
.wp-block-woocommerce-checkout :is(.wc-block-components-notices, .with-scroll-to-top__scroll-point) {
  scroll-margin-top: calc(var(--header-stuck) + var(--space-5));
}
@container (max-width: 919px) {
  .wp-block-woocommerce-checkout :is(.wc-block-components-notices, .with-scroll-to-top__scroll-point) {
    scroll-margin-top: calc(var(--header-stuck) + var(--space-12) + var(--space-2) + var(--space-5)); /* + the 56 px G4 bar */
  }
}
/* 11l'. An invalid field in view (§11 item 58, B-6; WCAG 2.4.11): when
   „Plasează comanda” finds invalid fields, WooCommerce scrolls the first
   one (`input:invalid, .has-error input, .has-error select`) into view
   with `scrollIntoView()` — its top on the window's edge — and focuses it.
   The banner's margin plus the room of the label above the field (13 px /
   600 and its 6 px, 11c): the label 20 under the bars, the field and its
   message under it. */
.wp-block-woocommerce-checkout :is(input, select, textarea) {
  scroll-margin-top: calc(var(--header-stuck) + var(--space-5) + var(--space-6));
}
@container (max-width: 919px) {
  .wp-block-woocommerce-checkout :is(input, select, textarea) {
    scroll-margin-top: calc(var(--header-stuck) + var(--space-12) + var(--space-2) + var(--space-5) + var(--space-6));
  }
}

/* --------------------------------------------------------------------------
   12. Order received (comanda.dc.html's confirmation; theme corrections B-5,
   E15). WooCommerce's classic thank-you template inside the checkout page
   (`.woocommerce-checkout.woocommerce-order-received`; the head band and
   „Finalizare comandă” are §8's): a centred prose column, the 72 px orange
   disc with Lucide's check, WooCommerce's thank-you line as the heading,
   the order facts in a centred row, the details and the addresses as
   hairline cards. WooCommerce's copy stays; the mockup's sentence and its
   two buttons are not introduced.
   -------------------------------------------------------------------------- */
.woocommerce-order-received .entry-content .woocommerce {
  --ast-border-color: var(--border-subtle);             /* Astra's cream frames → the DS hairline */
}
.woocommerce-order-received .entry-content > .woocommerce {
  max-width: var(--container-prose);                    /* the mockup's 620 column, the nearest token */
  margin: 0 auto;
  padding-top: var(--space-10);                         /* the disc 72 under the head, less #primary's 32 (§8); */
}                                                       /* padding: a margin would collapse into #primary's below 922 */
@media (max-width: 921.99px) {
  .woocommerce-order-received .entry-content > .woocommerce {
    padding-top: var(--space-12);                       /* 72, less #primary's 24 */
  }
}
/* „Îți mulțumim. Am primit comanda ta.”: the disc (::before), the check
   (::after), the line itself Inter 700 26–34 px, centred */
.woocommerce-order-received .woocommerce-order .woocommerce-notice.woocommerce-thankyou-order-received {
  position: relative;
  margin: 0 0 var(--space-6);
  padding: calc(72px + var(--space-6)) 0 0;             /* the disc + 24 */
  text-align: center;
  font-family: var(--font-headline);
  font-size: clamp(1.625rem, 3vw, 2.125rem);            /* 26–34 px, comanda.dc.html */
  font-weight: var(--fw-bold);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;                                          /* comanda.dc.html disc */
  height: 72px;
  margin-left: -36px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}
.woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-received::after {
  content: "";
  position: absolute;
  top: 20px;                                            /* (72 − 32) / 2 */
  left: 50%;
  width: 32px;                                          /* comanda.dc.html check */
  height: 32px;
  margin-left: -16px;
  background-color: var(--text-on-accent);
  -webkit-mask: url("../img/icons/check.svg") center / contain no-repeat;
  mask: url("../img/icons/check.svg") center / contain no-repeat;
}
/* the facts (number, date, e-mail, total, payment): one centred row with
   hairline separators; Astra floats them (`.woocommerce-js ul.order_details
   li { float: left }`, 0,2,1) */
.woocommerce-order-received .woocommerce ul.order_details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) 0;
  margin: 0 0 var(--space-6);
  padding: 0;
}
.woocommerce-order-received .woocommerce ul.order_details::before,
.woocommerce-order-received .woocommerce ul.order_details::after {
  content: none;
}
.woocommerce-order-received .woocommerce ul.order_details li {
  float: none;
  margin: 0;
  padding: 0 var(--space-4);
  border-right: var(--stroke-hairline) solid var(--border-subtle);
  text-align: center;
  letter-spacing: normal;
}
.woocommerce-order-received .woocommerce ul.order_details li:last-child {
  border-right: 0;
}
.woocommerce-order-received .woocommerce ul.order_details li strong {
  margin-top: var(--space-1);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}
/* the payment method's own line („Plătește la livrare.”) under the facts */
.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-notice) {
  text-align: center;
  color: var(--text-body);
}
/* the details and the addresses: titles Gantari 18 / 600 without Astra's
   #fbfbfb box (`.woocommerce-page.woocommerce-checkout .woocommerce-order
   h2.…`, 0,4,1), tables and addresses radius 10 */
.woocommerce-order-received.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title,
.woocommerce-order-received.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title {
  margin: var(--space-8) 0 var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.woocommerce-order-received.woocommerce-js .woocommerce table.shop_table {
  border-radius: var(--radius-md);
}
.woocommerce-order-received .woocommerce .woocommerce-customer-details address {
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   13. My Account (cont.dc.html; TD-007, theme corrections B-5 — E1, E18–E21;
   TD-008, accounts track CP4). Logged out, the page is cont.dc.html with
   one card — gbv-login's (TD-008: the plugin replaces WooCommerce's login
   and registration forms through pre_do_shortcode_tag; the same card on
   order received and order pay, R18): cream from the header to the footer,
   the centred h1 (§8), one 480 column, the card in B-5b's recipe (13a'),
   the note under it (page content, E19). Without gbv-login WooCommerce's
   stock forms show in B-5's stacked look (13a; R15). Logged in (no mockup;
   E20): the 1080 column, the nav as the catalog aside beside the content;
   Account details' address and help lines (13f). Astra's cream frames
   re-pointed to the DS hairline on these pages.
   -------------------------------------------------------------------------- */
.woocommerce-account .entry-content .woocommerce {
  --ast-border-color: var(--border-subtle);
}

/* 13a. Logged out: the band, the column; WooCommerce's stock forms as the
   cards — the fallback without gbv-login (R15, B-5's stacked look) */
.woocommerce-account:not(.logged-in) #content {
  background: var(--surface-page);
}
.gbv-page-head--account.gbv-page-head--centered {
  padding-top: var(--space-12);                         /* cont.dc.html: 48 above the h1, */
  padding-bottom: 0;                                    /* 24 below it (#primary) */
}
@media (max-width: 921.99px) {
  .gbv-page-head--account.gbv-page-head--centered {
    padding-top: var(--space-8);                        /* 32 below the tablet switch */
  }
}
body.woocommerce-account:not(.logged-in).ast-plain-container.ast-no-sidebar #primary {
  margin-top: var(--space-6);
  margin-bottom: calc(var(--space-16) + var(--space-2)); /* 72 */
}
@media (max-width: 921.99px) {
  body.woocommerce-account:not(.logged-in).ast-plain-container.ast-no-sidebar #primary {
    margin-bottom: calc(var(--space-12) + var(--space-2)); /* 56 */
  }
}
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
  max-width: 30rem;                                     /* 480, cont.dc.html */
  margin-left: auto;
  margin-right: auto;
}
/* login and register: one stack (Astra floats the two columns at 48 %) */
.woocommerce-account:not(.logged-in) .woocommerce #customer_login {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.woocommerce-account:not(.logged-in) .woocommerce #customer_login::before,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login::after {
  content: none;                                        /* Astra's clearfix would be two empty flex items */
}
/* the card: each column when registration is on, the form's wrapper when it
   is off, the lost-password form (Astra's own card is on the forms:
   `body .woocommerce form.login, … .register`, inline, 0,2,2) */
.woocommerce-account:not(.logged-in) .woocommerce #customer_login > :is(.u-column1, .u-column2),
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce:has(> form.login),
body.woocommerce-account:not(.logged-in) .woocommerce > form.lost_reset_password {
  float: none;
  width: auto;
  margin-top: 0;
  margin-bottom: 0;                                     /* the sides: the column's auto (registration off) */
  padding: var(--space-8) calc(var(--space-6) + var(--space-1)); /* 32 / 28, cont.dc.html */
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
body.woocommerce-account .woocommerce #customer_login form:is(.login, .register),
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce > form.login {
  margin: 0;
  padding: var(--space-6) 0 0;
  border: 0;
  border-top: var(--stroke-hairline) solid var(--border-subtle); /* the rule under the heading (cont.dc.html's tab row) */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* the card's heading: the mockup's tab type, plain (E18) */
.woocommerce-account:not(.logged-in) :is(#customer_login > div, .entry-content > .woocommerce) > h2 {
  margin: 0;
  padding: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: normal;
  letter-spacing: normal;
  color: var(--text-strong);
}

/* 13a'. gbv-login's card (TD-008; GBV_Login_View — .gbv-login--form / --sent /
   --confirm / --register, WooCommerce's notices wrapper inside it, its
   form-row, input-text, button and checkbox-label classes kept where
   WooCommerce has them): cont.dc.html's card without the tab row —
   hairline, radius 10 with the 44 corner, --shadow-sm, padding 32 / 28 (the
   B-5 stacked card; the mockup's 30 / 28 / 32 belong to its tab row) — in
   13a's 480 column on My Account; on order received and order pay (R18, the
   checkout shortcode's wrapper, no second div.woocommerce) the same card,
   480 wide and centred under WooCommerce's notice. The card's heading
   (sent, confirm, register; the form state's is for screen readers) in the
   mockup's tab type — Gantari 16 / 600 strong over a hairline, 24 above the
   body (E18's plain heading). Every rule is keyed on .gbv-login, never on
   the body class: base.css §7 and 13b scope the field recipe out of the
   checkout body, so the field, the button and the lines are restated here
   and the card reads the same on all three pages (the focus rule carries
   #content: Astra's `.woocommerce-page input[type=…]:focus { box-shadow:
   none; border-color: var(--ast-border-color) }` is 0,3,1 — §4). Replaces
   B-5b's tabs (inc/account.php, deleted at CP4): one e-mail form, nothing
   to switch. */
.woocommerce .gbv-login {
  padding: var(--space-8) calc(var(--space-6) + var(--space-1)); /* 32 / 28 */
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  color: var(--text-body);
}
.woocommerce-checkout .woocommerce .gbv-login {
  max-width: 30rem;                                     /* 480: the card under the order page's notice */
  margin: 0 auto;
}
.woocommerce-checkout .entry-content > .woocommerce:has(> .gbv-login) {
  max-width: 30rem;                                     /* the notice (and order received's thank-you line) in the card's column; */
  margin-left: auto;                                    /* order received's 40 of top padding (§12, for the disc) off — #primary's 32 / 24 (§8) */
  margin-right: auto;
  padding-top: 0;
}
body.woocommerce-checkout.ast-plain-container.ast-no-sidebar #primary:has(.gbv-login) {
  margin-bottom: calc(var(--space-16) + var(--space-2)); /* 72 under the card, as under My Account's (13a); Astra: 60 from 1200, 0 below */
}
@media (max-width: 921.99px) {
  body.woocommerce-checkout.ast-plain-container.ast-no-sidebar #primary:has(.gbv-login) {
    margin-bottom: calc(var(--space-12) + var(--space-2)); /* 56 */
  }
}
.woocommerce .gbv-login .gbv-login__title:not(.screen-reader-text) {
  margin: 0 0 var(--space-6);
  padding: 0 0 var(--space-3);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: normal;
  letter-spacing: normal;
  color: var(--text-strong);
}
/* the notices inside the card (an expired or used link, a limit — §1's
   look): 24 above the form; an empty wrapper takes no room */
.woocommerce .gbv-login .woocommerce-notices-wrapper > * {
  margin: 0 0 var(--space-6);
}
/* the form: rows and text lines 16 apart, nothing under the last */
.woocommerce .gbv-login .gbv-login__form {
  margin: 0;
}
.woocommerce .gbv-login .gbv-login__form .form-row,
.woocommerce .gbv-login .gbv-login__text {
  margin: 0 0 var(--space-4);
  padding: 0;
}
.woocommerce .gbv-login .gbv-login__form > :last-child {
  margin-bottom: 0;
}
/* the label above the field: 14 / 600 strong, 6 below (the site's one form
   recipe — the mockup's 13 / 15 / 42 are not taken, E14) */
.woocommerce .gbv-login .form-row label {
  display: block;
  margin: 0 0 calc(var(--space-1) + 2px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
/* the field: the DS Input — 48 tall, gray-200 radius 6 at rest, steel under
   the pointer, the accent border with --shadow-focus on focus (base.css §7,
   restated for the checkout body; Astra's `.woocommerce-page input[type=…]`
   cream, radius 0, `:focus { box-shadow: none }` — §4, hence #content) */
.woocommerce .gbv-login .input-text {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--space-12);
  margin: 0;
  padding: 0 var(--pad-control);
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-strong);
  box-shadow: none;
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}
.woocommerce .gbv-login .input-text:hover:not(:focus) {
  border-color: var(--border-strong);
}
#content .woocommerce .gbv-login .input-text:focus {
  outline: none;
  border-style: solid;
  border-color: var(--color-accent-strong);
  box-shadow: var(--shadow-focus);
}
/* an address that is not one (the POST comes back to My Account with the
   field's error): the danger border; the 12 px line 6 under the field (the
   contact form's error, A4) takes the row's 16 */
.woocommerce .gbv-login .input-text[aria-invalid="true"] {
  border-color: var(--color-danger);
}
.woocommerce .gbv-login .gbv-login__form .form-row:has(+ .gbv-login__error) {
  margin-bottom: calc(var(--space-1) + 2px);
}
.woocommerce .gbv-login .gbv-login__error {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-danger);
}
/* the text lines („Vă autentificați în contul …”, the sent text): body 16;
   the address strong and breakable, so a long one never widens the card */
.woocommerce .gbv-login .gbv-login__text {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  overflow-wrap: anywhere;
}
.woocommerce .gbv-login .gbv-login__text strong {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
/* „Rămâneți conectat pe acest dispozitiv”: WooCommerce's checkbox label as
   the DS Checkbox — base.css §7's 20 px box (steel border, blue checked),
   the label 14 body; the box blue under the pointer, clay pressed (13b),
   the base ring from the keyboard */
.woocommerce .gbv-login .form-row label.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-inline);
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  color: var(--text-body);
  cursor: pointer;
}
.woocommerce .gbv-login input[type="checkbox"]:hover:not(:checked, :active) {
  border-color: var(--color-brand);
}
/* the button: full width, lg, 16 (cont.dc.html) — primary; the register
   card's in the accent (the mockup's „Creează contul”); Astra's Customizer
   hover for the primary (blue-deep), H1's darker clay for the accent;
   pressed scale(.98) and the base ring from base.css §6a / §1 */
.woocommerce .gbv-login .gbv-login__submit {
  display: flex;
  width: 100%;
  min-height: var(--btn-lg);
  margin: 0;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  float: none;
  font-size: var(--text-base);
  line-height: 1;
}
.woocommerce .gbv-login--register .gbv-login__submit {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--text-on-accent);
}
.woocommerce .gbv-login--register .gbv-login__submit:is(:hover, :active, :focus) {
  border-color: var(--accent-hover-bg);                 /* H1, base.css §0 */
  background-color: var(--accent-hover-bg);
  color: var(--text-on-brand);
}
/* the help lines — „Vă trimitem prin e-mail un link …” under the button,
   „Trimiteți din nou” on the sent card: 14 in the body colour (the mockup's
   muted is 3.9 : 1 — 13c), 16 above; the link as cont.dc.html's „Ați uitat
   parola?” — brand, underlined 3 px below under the pointer, clay */
.woocommerce .gbv-login .gbv-login__help {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.woocommerce .gbv-login .gbv-login__help a {
  color: var(--text-link);
  text-decoration: none;
}
.woocommerce .gbv-login .gbv-login__help a:is(:hover, :active, :focus-visible) {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;                           /* cont.dc.html */
}
/* WooCommerce's registration privacy text on the register card (the
   setting's own sentence): 14 in the body colour, its link a prose link */
.woocommerce .gbv-login .woocommerce-privacy-policy-text p {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.woocommerce .gbv-login .woocommerce-privacy-policy-text a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.woocommerce .gbv-login .woocommerce-privacy-policy-text a:is(:hover, :active, :focus-visible) {
  color: var(--color-accent-strong);
}

/* 13b. The forms (logged out and in): fields gray-200 radius 6 at rest
   (Astra: `.woocommerce-page input[type=…]` cream, radius 0, 0,2,1), steel
   under the pointer (the focus: §4); rows 16 apart, labels 14 / 600 with 6
   under them (the site's one form recipe — the mockup's 13 / 15 / 42 are
   not taken) */
.woocommerce-account .woocommerce :is(.input-text, textarea) {
  border-color: var(--border-default);
  border-radius: var(--radius-sm);
}
.woocommerce-account .woocommerce :is(.input-text, textarea):hover:not(:focus) {
  border-color: var(--border-strong);
}
.woocommerce-account .woocommerce form .form-row {
  margin: 0 0 var(--space-4);
  padding: 0;
}
.woocommerce-account .woocommerce form .form-row label {
  margin-bottom: calc(var(--space-1) + 2px);            /* 6, base.css .gbv-field */
  line-height: var(--leading-snug);
}
.woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
  font-weight: var(--fw-regular);
  color: var(--text-body);
}
.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
  margin-bottom: 0;
}
/* the DS Checkbox pressed (clay, cont.dc.html) and the password eye under
   the pointer (WooCommerce's muted icon button) */
.woocommerce-account .woocommerce form input[type="checkbox"]:active {
  border-color: var(--color-accent-strong);
}
.woocommerce-account .woocommerce form .show-password-input:is(:hover, :active) {
  color: var(--text-strong);
}
.woocommerce form .form-row label .optional {
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}
/* „Ține-mă minte”, then the full-width button under it */
.woocommerce-account .woocommerce form.login p.form-row:has(> .woocommerce-form-login__submit) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.woocommerce-account .woocommerce form.login p.form-row:has(> .woocommerce-form-login__submit)::before,
.woocommerce-account .woocommerce form.login p.form-row:has(> .woocommerce-form-login__submit)::after {
  content: none;
}
.woocommerce-account .woocommerce form :is(.woocommerce-form-login__submit, .woocommerce-form-register__submit),
.woocommerce-account .woocommerce form.lost_reset_password button[type="submit"] {
  align-self: stretch;
  width: 100%;
  min-height: var(--btn-lg);
  margin: 0;
  float: none;
  font-size: var(--text-base);
}
.woocommerce-account .woocommerce form .woocommerce-form-register__submit {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--text-on-accent);
}
.woocommerce-account .woocommerce form .woocommerce-form-register__submit:is(:hover, :active, :focus) {
  border-color: var(--accent-hover-bg);                 /* H1, base.css §0 */
  background-color: var(--accent-hover-bg);
  color: var(--text-on-brand);
}
.woocommerce-account .woocommerce .woocommerce-LostPassword {
  margin: 0;
  font-size: var(--text-sm);
}
.woocommerce-account .woocommerce .woocommerce-LostPassword a:is(:hover, :active) {
  text-decoration: underline;
  text-underline-offset: 3px;                           /* cont.dc.html */
}
.woocommerce-account:not(.logged-in) .woocommerce form > p:last-child {
  margin-bottom: 0;
}
.woocommerce-account .woocommerce-form-register .woocommerce-privacy-policy-text p {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.woocommerce-account .woocommerce form.lost_reset_password .form-row-first {
  float: none;
  width: 100%;
}
.woocommerce-account .woocommerce form.lost_reset_password > p:first-child {
  font-size: var(--text-sm);
}

/* 13c. The note under the cards (page content: a paragraph after the
   shortcode, class gbv-account-note, typed per environment — E19): centred,
   40 ch, 14 px in the body colour (the mockup's muted is 3.9 : 1 on cream);
   never shown logged in */
.woocommerce-account .entry-content > p.gbv-account-note {
  max-width: 40ch;                                      /* cont.dc.html */
  margin: var(--space-5) auto 0;
  text-align: center;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.woocommerce-account.logged-in .entry-content > p.gbv-account-note {
  display: none;
}

/* 13d. Logged in: the 1080 column (the head's inner box too), the nav as
   the catalog aside — 256 px from 1280, 216 below, one column ≤ 921 */
.gbv-page-head--account:not(.gbv-page-head--centered) .gbv-page-head__inner {
  max-width: var(--container-narrow);
}
body.woocommerce-account.logged-in.ast-plain-container.ast-no-sidebar #primary {
  max-width: var(--container-narrow);
  margin: var(--space-8) auto var(--space-16);
}
@media (max-width: 921.99px) {
  body.woocommerce-account.logged-in.ast-plain-container.ast-no-sidebar #primary {
    margin-top: var(--space-6);
    margin-bottom: var(--space-12);
  }
}
.woocommerce-account.logged-in .entry-content > .woocommerce {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);          /* 256, catalog.css's aside */
  gap: var(--space-10);
  align-items: start;
}
.woocommerce-account.logged-in .entry-content > .woocommerce::before,
.woocommerce-account.logged-in .entry-content > .woocommerce::after {
  content: none;
}
.woocommerce-account.logged-in .entry-content > .woocommerce > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
  grid-column: 1 / -1;
}
.woocommerce-account.logged-in .woocommerce :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
  float: none;
  width: auto;
  min-width: 0;
}
@media (max-width: 1279.98px) {
  .woocommerce-account.logged-in .entry-content > .woocommerce {
    grid-template-columns: 13.5rem minmax(0, 1fr);      /* 216, catalog.css's aside below 1280 */
    gap: var(--space-8);
  }
}
@media (max-width: 921.99px) {
  .woocommerce-account.logged-in .entry-content > .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}
/* the nav: Astra frames each row inside the theme's framed list (inline
   `body .woocommerce-MyAccount-navigation-link`, 0,1,1); the current row
   semibold (the catalog aside) */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link {
  border: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  font-weight: var(--fw-semibold);
}

/* 13e. Tables, addresses, titles, the order line, the hints */
body.woocommerce-account .woocommerce table.shop_table {
  border-radius: var(--radius-md);                      /* Astra: radius 0 (0,3,1) */
}
.woocommerce-account .woocommerce :is(.woocommerce-Address address, .woocommerce-customer-details address) {
  border-width: var(--stroke-hairline);
  border-color: var(--border-subtle);
  border-radius: var(--radius-md);
}
body.woocommerce-account .woocommerce :is(.woocommerce-Address-title, .woocommerce-column__title) {
  margin: 0 0 var(--space-3);
  padding: 0;
  border: 0;
  background: transparent;                              /* Astra's #fbfbfb box (0,3,0) */
}
.woocommerce-account .woocommerce .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-4);
}
.woocommerce-account .woocommerce .woocommerce-Address-title::before,
.woocommerce-account .woocommerce .woocommerce-Address-title::after {
  content: none;
}
.woocommerce-account .woocommerce .woocommerce-Address-title h2 {
  margin: 0;
}
.woocommerce-account .woocommerce .woocommerce-Address-title a.edit {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit-area);
  padding: 0;
  float: none;
  font-size: var(--text-sm);
}
.woocommerce-account .woocommerce :is(.woocommerce-Address-title h2, .woocommerce-column__title, .woocommerce-customer-details h2, .woocommerce-order-details__title, .woocommerce-MyAccount-content form > h2) {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: normal;
  color: var(--text-strong);
}
.woocommerce-MyAccount-content mark {
  background: transparent;                              /* Astra: #000 */
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
}
.woocommerce-EditAccountForm .form-row span em {
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--text-muted);
}
.woocommerce-EditAccountForm fieldset legend {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
/* the county (selectWoo): the 48 px field */
.woocommerce-account .woocommerce .select2-container .select2-selection--single {
  height: var(--space-12);
  border: var(--stroke-default) solid var(--border-default);
  border-radius: var(--radius-sm);
}
.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: calc(var(--space-12) - 2 * var(--stroke-default) - 2 * var(--space-2));
  color: var(--text-strong);
}
.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(var(--space-12) - 2 * var(--stroke-default));
}
/* first / last name side by side from 922 only (comanda.dc.html's .cm-two;
   WooCommerce / Astra keep 47 % pairs even at 360) */
@media (max-width: 921.99px) {
  .woocommerce-account .woocommerce form :is(.form-row-first, .form-row-last) {
    float: none;
    width: 100%;
  }
}

/* 13f. Account details (gbv-login, TD-008; L-001 R5): the address as text
   where WooCommerce had a field — its label like the fields' (14 / 600
   strong, 6 below), the address 16 / 600 strong, breaking before it widens
   the column at 360; the help line 14 in the body colour, 12 under it plus
   the button's own 14 (Astra, as on every My Account form) above „Salvează
   modificările”; „scrieți-ne” a prose link (brand, underlined
   3 px below; clay under the pointer, pressed and on focus) to the contact
   page — the permalink from the theme's gbv_login_contact_url filter
   (inc/links.php, by slug at render time, TD-005) */
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__email {
  margin-bottom: var(--space-2);
}
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__email-label {
  display: block;
  margin: 0 0 calc(var(--space-1) + 2px);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__email-address {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-body);
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__help {
  margin: 0 0 var(--space-3);                           /* + the button's own 14 above (Astra) = 26 */
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__help a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.woocommerce-account .woocommerce-EditAccountForm .gbv-login__help a:is(:hover, :focus-visible, :active) {
  color: var(--color-accent-strong);
}

/* 13g. The withdrawal page (TD-009; W5 / D7 a): WooCommerce's
   myaccount/form-order-withdrawal.php on its endpoint, the body class
   `woocommerce-order-withdrawal` (WooCommerce's — never a template
   override). No mockup draws it: the sign-in card (13a') holds every
   state — form, errors, review, confirmation — in 13a's 480 column on
   cream, the same for signed-in and signed-out visitors (the page is the
   same for both; the head centred without a crumb, inc/pages.php), the
   note under My Account's card hidden. Astra replaces WooCommerce's
   general stylesheet, so none of WooCommerce's own rules for this page
   load; every rule here starts from Astra's and 13b's.
   Inside the card: the steps as its heading row (13a' title: 16 / 600
   over a hairline, 24 below; the current step strong, the other muted —
   4.6 : 1 on the card), the notices under it (§1's look), the intro 16,
   the notes 14 in the body colour, the fields as 13b, the radio group
   unframed (the legend as a field label, the options body text 16 / 400
   on 44 px rows — B6), the field errors 12 danger 6 under the field
   (13a'), the hint 8 under the details field and 24 above the button,
   the primary full width --btn-lg, „Editează detaliile” the outlined
   secondary under it (base.css §6b's look), the review rows on
   hairlines, the confirmation's first line as the heading row. */
body.woocommerce-order-withdrawal #content {
  background: var(--surface-page);
}
body.woocommerce-account.woocommerce-order-withdrawal.ast-plain-container.ast-no-sidebar #primary {
  margin-top: var(--space-6);                           /* 13a's, signed in too (13d: 32 / 64) */
  margin-bottom: calc(var(--space-16) + var(--space-2)); /* 72 */
}
@media (max-width: 921.99px) {
  body.woocommerce-account.woocommerce-order-withdrawal.ast-plain-container.ast-no-sidebar #primary {
    margin-bottom: calc(var(--space-12) + var(--space-2)); /* 56 */
  }
}
.woocommerce-account.woocommerce-order-withdrawal .entry-content > .woocommerce {
  display: block;                                       /* 13d's grid off when signed in */
  max-width: 30rem;                                     /* 480, 13a */
  margin-left: auto;
  margin-right: auto;
}
.woocommerce-account.woocommerce-order-withdrawal .entry-content > p.gbv-account-note {
  display: none;                                        /* the sign-in note is not this page's */
}

/* the card */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) calc(var(--space-6) + var(--space-1)); /* 32 / 28, 13a' */
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-top-left-radius: var(--corner-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  color: var(--text-body);
}

/* the steps: the heading row, first whatever WooCommerce prints before them */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__steps {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-6);
  margin: 0 0 var(--space-6);
  padding: 0 0 var(--space-3);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
  list-style: none;
  counter-reset: gbv-step;
  font-size: var(--text-base);
  line-height: normal;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__step {
  margin: 0;
  counter-increment: gbv-step;
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__step::before {
  content: counter(gbv-step) ". ";
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__step--current {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

/* the notices in the card (the error list WooCommerce focuses, a bad
   nonce, „already submitted”, the rate limit): §1's look, 24 above the
   text */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > :is(.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-notices-wrapper) {
  margin: 0 0 var(--space-6);
}
/* WooCommerce 11.3.0 prints its notices wrapper on every screen
   (`woocommerce_output_all_notices()` in place of `wc_print_notices()`),
   with nothing in it when there is no notice: hidden then, so the steps
   keep their 24 above the text. The test ignores whitespace
   (`:not(:has(*))`, never `:empty`); a browser without `:has()` keeps the
   empty wrapper's 24 (harmless). Holding notices, the wrapper carries the
   24 above the text (the rule above) and its notices 24 between them, the
   last 0 — 11.2.1's spacing, when they sat straight in the card. */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > .woocommerce-notices-wrapper:not(:has(*)) {
  display: none;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > .woocommerce-notices-wrapper > :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  margin: 0 0 var(--space-6);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > .woocommerce-notices-wrapper > :last-child {
  margin-bottom: 0;
}

/* the text lines */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__intro {
  margin: 0 0 var(--space-2);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__note {
  display: block;
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
  overflow-wrap: anywhere;                              /* a long typed address never widens the card */
}
.woocommerce-account .woocommerce .woocommerce-OrderWithdrawalForm {
  margin: 0;
}

/* the radio group: unframed (Astra frames every fieldset), the legend as
   a field label (13b), the options as the DS Radio's body-text label on
   44 px rows */
.woocommerce-account .woocommerce form fieldset.woocommerce-order-withdrawal-content__radio-field {
  min-width: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
  border: 0;
}
.woocommerce-account .woocommerce form .woocommerce-order-withdrawal-content__radio-field legend {
  display: block;
  margin: 0 0 calc(var(--space-1) + 2px);              /* 6, as a label */
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.woocommerce-account .woocommerce form .form-row label.woocommerce-order-withdrawal-content__radio-label {
  display: flex;
  align-items: center;
  gap: var(--gap-inline);
  min-height: var(--hit-area);                          /* 44, B6 */
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-snug);
  color: var(--text-body);
  cursor: pointer;
}
.woocommerce-account .woocommerce form .woocommerce-order-withdrawal-content__radio-field input[type="radio"]:hover:not(:checked, :active) {
  border-color: var(--color-brand);                     /* as 13a' / 13b's checkbox */
}
.woocommerce-account .woocommerce form .woocommerce-order-withdrawal-content__radio-field input[type="radio"]:active {
  border-color: var(--color-accent-strong);
}

/* the field errors: WooCommerce's span under each field (the list at the
   top says the same), 12 danger 6 under the field (13a'); the radio
   group's span follows the fieldset */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__field-error {
  display: block;
  margin: calc(var(--space-1) + 2px) 0 0;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-danger);
}
.woocommerce-account .woocommerce form fieldset.woocommerce-order-withdrawal-content__radio-field:has(+ .woocommerce-order-withdrawal-content__field-error) {
  margin-bottom: 0;
}
.woocommerce-account .woocommerce form fieldset + .woocommerce-order-withdrawal-content__field-error {
  margin-bottom: var(--space-4);
}

/* the details field: the site's 160 px textarea (base.css, the contact
   form), resizable — Astra's `.woocommerce form .form-row textarea
   { height: 4em }` left it 64 */
.woocommerce-account .woocommerce .woocommerce-OrderWithdrawalForm textarea {
  display: block;
  height: 10rem;
  min-height: 10rem;
  padding: var(--pad-control);
  line-height: 1.5;
  resize: vertical;
}

/* the hint under the details field: 8 under it, 24 above the button */
.woocommerce-account .woocommerce .woocommerce-OrderWithdrawalForm > .woocommerce-order-withdrawal-content__note {
  margin-top: calc(var(--space-2) - var(--space-4));
}

/* the buttons: full width, lg, 16 (13a'); the secondary outlined under
   the primary */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__actions .button {
  width: 100%;
  min-height: var(--btn-lg);
  margin: 0;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  float: none;
  font-size: var(--text-base);
  line-height: 1;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__actions .button.woocommerce-order-withdrawal-content__button--secondary {
  border-color: var(--color-brand);
  background-color: transparent;
  color: var(--color-brand);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__actions .button.woocommerce-order-withdrawal-content__button--secondary:is(:hover, :focus, :active) {
  border-color: var(--color-brand);
  background-color: color-mix(in srgb, var(--color-brand) 8%, transparent);
  color: var(--color-brand);
}

/* the review: rows on hairlines, the label over its value, flush */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__review {
  margin: 0 0 var(--space-6);
  padding: 0;
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__review-row {
  padding: var(--space-3) 0;
  border-top: var(--stroke-hairline) solid var(--border-subtle);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__review dt {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content__review dd {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
  overflow-wrap: anywhere;
}

/* the confirmation: its first line the heading row, the notes 16 (the
   page's message now), „Înapoi la magazin” a prose link */
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > p:has(> strong:only-child) {
  margin: 0 0 var(--space-6);
  padding: 0 0 var(--space-3);
  border-bottom: var(--stroke-hairline) solid var(--border-subtle);
  font-size: var(--text-base);
  line-height: normal;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > p > strong:only-child {
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content:not(:has(form)) > .woocommerce-order-withdrawal-content__note {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content:not(:has(form)) > p:last-child {
  margin: var(--space-2) 0 0;
  font-size: var(--text-base);
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > p:last-child > a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.woocommerce-account .woocommerce .woocommerce-order-withdrawal-content > p:last-child > a:is(:hover, :focus-visible, :active) {
  color: var(--color-accent-strong);
}
