/* =============================================================================
   commerce.css: basket, checkout, order received, account (sign in, register,
   lost / reset password, profile, company details, addresses, orders,
   newsletter), wishlist page and WooCommerce notices.
   Spec: docs/reference/05-cart-checkout-account.md (values at 1440 unless noted).
   Sections:
     1  Shared pieces: notices, hint, radio card, custom checkbox, chips, buttons
     2  Two-column shell (.right-view) + summary column (.basket-form)
     3  Basket
     4  Mobile bar + bottom sheet
     5  Checkout
     6  Order received / order view
     7  Account shell (.personal-container)
     8  Account forms, addresses, orders
     9  Registration
     10 Wishlist page
     11 Reduced motion
   ============================================================================= */

/* ============================================================================
   1  SHARED PIECES
   ============================================================================ */

/* --- WooCommerce notices (05 §4.12, §5.6). The original classes stay for Woo's JS. */
.ac-notice {
  margin: 0 0 var(--space-6);
  padding: var(--space-4);
  list-style: none;
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-surface-300);
}
.ac-notice--success, .woocommerce-message { background: var(--c-sage-pale); }
.ac-notice--info, .woocommerce-info { background: var(--c-surface-300); }
.ac-notice--error, .woocommerce-error, .woocommerce-NoticeGroup .woocommerce-error {
  margin: 0 0 var(--space-6); padding: var(--space-4); list-style: none; font-size: var(--fs-14); line-height: var(--lh-body);
  color: var(--c-error);
  background: #fff5f5; /* one-off from 05 §5.6 */
  border-left: 1px solid var(--c-error);
}
.woocommerce-error li + li { margin-top: var(--space-1); }
.ac-notice--error a, .woocommerce-error a { margin-left: 0; font-weight: inherit; color: inherit; border-bottom: 1px solid currentColor; }
.ac-notice a, .ac-notice .button, .ac-notice .restore-item, .woocommerce-message a {
  margin-left: var(--space-2);
  font-weight: var(--fw-medium);
  color: inherit;
  border-bottom: 1px solid currentColor;
}
/* Base.css styles :is(.button, …, button[type=submit].button) at (0,2,1): out-rank it so a
   WooCommerce notice button (e.g. "Confirm email address") reads as an ink text link. */
.woocommerce .ac-notice .button, .ac-notice .button.button { display: inline; min-height: 0; padding: 0; background: none; color: inherit; font-size: inherit; font-weight: var(--fw-medium); letter-spacing: 0; line-height: inherit; text-transform: none; border-radius: 0; overflow: visible; isolation: auto; }
.woocommerce .ac-notice .button::before, .woocommerce .ac-notice .button::after, .ac-notice .button.button::before, .ac-notice .button.button::after { display: none; }
.ac-notice .button.wc-forward:first-child { margin: 0 var(--space-2) 0 0; }
/* "… removed. Undo?" is an info message in the grey box (05 §4.12), whatever notice type Woo gives it. */
.ac-notice:has(.restore-item) { background: var(--c-surface-300); }
.woocommerce-notices-wrapper:empty { display: none; }

/* WooCommerce's password strength meter (profile, reset password). */
.woocommerce-password-strength { margin: -28px 0 12px; font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: var(--lh-body); color: var(--c-ink-60); }
.woocommerce-password-strength.short, .woocommerce-password-strength.bad { color: var(--c-error); }
.woocommerce-password-strength.good { color: var(--c-ink); }
.woocommerce-password-strength.strong { color: var(--c-success); }
.woocommerce-password-hint { display: block; margin: 0 0 24px; font-size: var(--fs-12); line-height: var(--lh-ui); color: var(--c-ink-50); }

/* WooCommerce's blockUI overlay while it refreshes the basket or checkout (05 §5.6). */
.blockUI.blockOverlay {
  background: rgba(255, 255, 255, .6) !important; /* blockUI writes inline styles */
  opacity: 1 !important;
  cursor: wait !important;
}

/* --- Info hint (05 §2.7) */
.hint { position: relative; display: inline-flex; align-items: center; margin-left: 7px; vertical-align: middle; text-transform: none; }
.hint__btn { display: flex; width: 16px; height: 16px; padding: 0; border-radius: var(--r-round); cursor: pointer; }
.hint__icon { position: relative; display: block; width: 16px; height: 16px; border-radius: var(--r-round); background: var(--c-ink-10); }
.hint__icon::before, .hint__icon::after { content: ""; position: absolute; left: 50%; width: 1.6px; background: var(--c-ink); transform: translateX(-50%); }
.hint__icon::before { top: 3.6px; height: 1.6px; border-radius: 1px; }
.hint__icon::after { top: 6.6px; height: 4.8px; }
.hint-content {
  position: absolute; top: 25px; left: 8px; z-index: var(--z-float);
  min-width: 180px; max-width: 260px; width: max-content;
  padding: 10px 20px;
  font-size: var(--fs-14); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--c-ink);
  background: var(--c-white); box-shadow: var(--shadow-hint);
  opacity: 0; pointer-events: none;
  transform: translateX(-45%) translateY(10px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.hint:hover .hint-content, .hint:focus-within .hint-content, .hint.is-open .hint-content {
  opacity: 1; pointer-events: auto; transform: translateX(-45%) translateY(0);
}
@media (max-width: 767px) {
  /* The tooltip spans its card so it never runs off the screen. */
  .form-radio__row { position: relative; }
  .form-radio__row .hint { position: static; }
  .form-radio__row .hint-content { top: calc(100% + 8px); left: 0; right: 0; width: auto; min-width: 0; max-width: none; transform: translateY(10px); }
  .form-radio__row .hint:hover .hint-content, .form-radio__row .hint:focus-within .hint-content, .form-radio__row .hint.is-open .hint-content { transform: translateY(0); }
}

/* --- Radio card (05 §2.6) */
.form-radio-group { margin: 0; padding: 0; list-style: none; }
.form-radio {
  width: 100%;
  margin-top: var(--space-2);
  padding: 15px 23px;
  border: 1px solid var(--c-ink-10);
  background: var(--c-white);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.form-radio:first-child { margin-top: 0; }
.form-radio--olive { background: var(--c-sage-pale); border-color: var(--c-sage-pale); }
.form-radio__row { display: flex; align-items: center; min-height: 25.6px; font-size: var(--fs-16); line-height: var(--lh-body); }
.form-radio__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.form-radio__label { position: relative; display: flex; align-items: center; flex-wrap: wrap; cursor: pointer; }
.form-radio__label::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px; margin-right: 23px;
  border: 1px solid var(--c-ink-20); border-radius: var(--r-round);
  background: var(--c-white) no-repeat center / 8px 8px;
  transition: background-image var(--dur-1) var(--ease);
}
.form-radio__input:checked + .form-radio__label::before,
.form-radio.is-checked .form-radio__label::before {
  background-image: radial-gradient(circle, var(--c-ink) 0 3.6px, transparent 4px);
  background-size: 100% 100%;
}
.form-radio__input:focus-visible + .form-radio__label::before { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.form-radio__input:disabled + .form-radio__label { opacity: .4; cursor: default; }
.form-radio__title { display: inline-block; }
.form-radio__note { flex-basis: 100%; padding-left: 39px; margin-top: -2px; font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-ink-50); }
.form-radio__label .form-radio__note { order: 3; }
.form-radio__price { margin-left: auto; padding-left: var(--space-4); font-weight: var(--fw-medium); white-space: nowrap; }
.form-radio__label img { max-height: 20px; width: auto; margin-left: var(--space-2); }
.form-radio__field {
  margin-top: 10px;
  padding: 7px 25px;
  background: var(--c-white);
}
.form-radio__field--text { padding-top: 10px; padding-bottom: 12px; }
.field-label { display: block; margin-bottom: 2px; font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.form-radio__address { font-style: normal; font-size: var(--fs-14); line-height: var(--lh-body); }
.form-radio--empty { font-size: var(--fs-14); line-height: var(--lh-body); color: var(--c-ink-60); }
.form-radio--empty .ac-notice { margin: 0; padding: 0; background: none; border: 0; color: inherit; }
.payment_box p { font-size: var(--fs-14); line-height: var(--lh-body); }

/* --- Custom checkbox (05 §2.9): 27px box, tick when checked */
.custom-checkbox { position: relative; display: inline-flex; align-items: flex-start; font-size: 18px; line-height: var(--lh-body); cursor: pointer; }
.custom-checkbox__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.custom-checkbox__text { position: relative; display: inline-block; padding-left: 37px; }
.custom-checkbox__text::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 27px; height: 27px; margin-top: -13.5px;
  border: 2px solid var(--c-surface-hover); border-radius: var(--r-sm);
  background: var(--c-white);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.custom-checkbox__text::after {
  content: ""; position: absolute; left: 9px; top: 50%;
  width: 9px; height: 15px; margin-top: -10px;
  border: solid var(--c-ink); border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.custom-checkbox__input:checked + .custom-checkbox__text::before { background: var(--c-surface-150); border-color: var(--c-sage); }
.custom-checkbox__input:checked + .custom-checkbox__text::after { transform: rotate(45deg) scale(1); }
.custom-checkbox__input:focus-visible + .custom-checkbox__text::before { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.custom-checkbox a { border-bottom: 1px solid currentColor; }
.custom-checkbox .req { color: var(--c-error); }

/* --- Chip checkboxes (05 §2.9) */
.checkbox-btns { display: flex; flex-wrap: wrap; margin-top: 15px; }
.checkbox-btn { position: relative; display: inline-flex; cursor: pointer; }
.checkbox-btn__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.checkbox-btn__text {
  height: var(--chip-h); margin: 0 10px 10px 0; padding: 0 var(--chip-px);
  border-radius: var(--r-pill);
  font-size: var(--fs-14); line-height: var(--chip-h); letter-spacing: var(--ls-chip);
  background: var(--c-sage);
  transition: background-color var(--dur-1) var(--ease);
}
.checkbox-btn:hover .checkbox-btn__text, .checkbox-btn__input:checked + .checkbox-btn__text { background: var(--c-sage-dark); }
.checkbox-btn__input:focus-visible + .checkbox-btn__text { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* --- .btn whose text WooCommerce rewrites (#place_order): both wipe layers on pseudo-elements */
.btn--layers { color: var(--btn-fg); }
.btn--layers::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg); border-radius: inherit;
  transition: transform var(--dur-3) var(--ease-expo) var(--btn-wipe-delay);
}
@media (hover: hover) {
  .btn--layers:hover::after { transform: translateX(-101%); transition: transform var(--dur-3) var(--ease-expo); }
}
.woocommerce-checkout.processing .btn--layers { opacity: .5; pointer-events: none; }

/* Password show / hide (05 §8.1) */
.has-eye { position: relative; }
.input__eye {
  position: absolute; right: 0; top: -2px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 24px;
  color: var(--c-ink); opacity: .5;
  transition: opacity .5s var(--ease);
}
.input__eye:hover, .input__eye:focus-visible { opacity: 1; }
.input__eye .icon { width: 22px; height: 22px; }
.input__eye-off, .input__eye[aria-pressed="true"] .input__eye-on { display: none; }
.input__eye[aria-pressed="true"] .input__eye-off { display: inline-block; }
.has-eye .input__field { padding-right: 36px; }

/* ============================================================================
   2  TWO-COLUMN SHELL (05 §4.3) + SUMMARY ROWS (05 §4.7)
   ============================================================================ */
.right-view {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
}
.right-view__container {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: var(--unit);
  margin-right: var(--unit);
  margin-bottom: 50px;
}
.right-view__aside {
  flex: 0 0 auto;
  width: calc(var(--unit) + 3 * var(--column-and-gutter-unit) - var(--gutter-unit));
  background: var(--c-surface-50);
}
.right-view__aside-content {
  position: sticky; top: 0;
  padding: 64px var(--unit);
}
.right-view .crumbs-nav .crumbs { margin-bottom: 30px; }
@media (max-width: 1500px) {
  .right-view__aside-content { padding: 64px 40px; }
}
@media (max-width: 990px) {
  .right-view { flex-direction: column; min-height: 0; }
  .right-view__container { margin-right: 0; padding-right: var(--unit); }
  .right-view__aside { width: 100%; }
  .right-view__aside-content { position: static; padding: 65px var(--unit); }
}
@media (max-width: 767px) {
  .right-view__aside-content { padding: 40px var(--unit); }
}

/* Summary rows */
.basket-form { margin: 0; }
.basket-form__item {
  display: block;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--c-line-black-10);
}
.basket-form__label { display: flex; align-items: flex-end; margin: 0; font-size: var(--fs-16); line-height: var(--lh-body); }
.basket-form__label span { line-height: 1; }
.basket-form__field { margin: 4px 0 0; font-size: var(--fs-16); line-height: var(--lh-body); }
.basket-form__field b { font-weight: var(--fw-medium); }
.basket-form__field .woocommerce-Price-amount { white-space: nowrap; }
.basket-form__item--summ .basket-form__label { font-weight: var(--fw-medium); }
.basket-form__item--summ .basket-form__field b { font-size: var(--fs-price-lg); font-weight: var(--fw-bold); line-height: 38.4px; }
.basket-form__item--summ small, .basket-form__item--summ .includes_tax { display: block; font-size: var(--fs-14); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--c-ink-50); }
.basket-form__method { display: block; font-weight: var(--fw-regular); }
.basket-form__remove { margin-left: var(--space-2); font-size: var(--fs-14); font-weight: var(--fw-regular); border-bottom: 1px solid currentColor; }
.basket-form__footer { margin-top: 200px; }
.basket-form__footer .btn { max-width: 100%; }
.basket-form__personal { margin-top: 15px; width: calc(100% - 10px); }
.use-list {
  margin-bottom: 25px;
  padding: 16px 16px 12px;
  font-size: var(--fs-14); line-height: var(--lh-body);
  background: var(--c-surface-300);
}
.use-list strong { font-weight: var(--fw-bold); }
.cart_totals, .woocommerce-checkout-review-order-table, .js-summary-rows { transition: opacity .2s var(--ease); }
.is-updating .js-summary-rows, .js-summary-rows.is-updating { opacity: .3; }
@media (max-width: 990px) {
  .basket-form__footer { margin-top: 20px; }
}
@media (min-width: 1600px) {
  .basket-form__label, .basket-form__field { font-size: 18px; }
}

/* ============================================================================
   3  BASKET (05 §4)
   ============================================================================ */
.basket { display: flex; flex-direction: column; }
.basket-head { max-width: 260px; margin-bottom: 30px; }
.basket-head__title {
  font-size: clamp(30px, calc(1.48936vw + 22.55px), 44px);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  letter-spacing: 0;
}
.basket-content { flex-grow: 1; min-width: 0; }
@media (min-width: 1501px) {
  .basket { flex-direction: row; }
  .basket-head { flex: 0 0 auto; width: calc(2 * var(--column-and-gutter-unit) - var(--gutter-unit)); max-width: none; }
  .basket-content { flex-grow: 0; margin-left: calc(2 * var(--column-and-gutter-unit) - var(--column-unit)); width: calc(5 * var(--column-unit) + 5 * var(--gutter-unit)); }
}

.basket-list { margin: 0 0 40px; padding: 0; list-style: none; }
.basket-item {
  position: relative;
  display: flex; align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--c-line);
  transition: opacity var(--dur-1) var(--ease);
}
.basket-item.is-removing { opacity: 0; pointer-events: none; }
.basket-item__part { display: flex; align-items: center; min-width: 0; }
.basket-item__part:first-child { width: 60%; }
.basket-item__part:last-child { width: 40%; justify-content: space-between; }
@media (max-width: 1500px) {
  .basket-item__part:first-child, .basket-item__part:last-child { width: 50%; }
}
.basket-item__image { flex: 0 0 96px; width: 96px; height: 96px; overflow: hidden; background: var(--c-surface-200); }
.basket-item__image img { width: 100%; height: 100%; object-fit: cover; }
.basket-item__description {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: 176px; margin-left: var(--space-6); min-height: 96px;
}
.basket-item__title { display: inline-block; font-size: var(--fs-16); line-height: var(--lh-snug); transition: opacity var(--dur-1) var(--ease); }
a.basket-item__title:hover { opacity: .6; }
.basket-item__description .variation, .basket-item__meta { margin: 4px 0 0; font-size: var(--fs-12); line-height: var(--lh-ui); color: var(--c-ink-60); }
.basket-item__description .variation dt, .basket-item__description .variation dd { display: inline; margin: 0; }
.basket-item__description .variation p { display: inline; }
.basket-item__price { margin-top: 4px; white-space: nowrap; }
.basket-item__price b { font-size: var(--fs-price); font-weight: var(--fw-bold); line-height: var(--lh-body); }
.basket-item__price small { margin-left: 2px; font-size: var(--fs-12); font-weight: var(--fw-medium); }
.basket-item__price.is-discount b { color: var(--c-price-sale, var(--c-red)); }
.basket-item__price--old { position: relative; display: inline-block; margin-left: var(--space-2); font-size: var(--fs-14); font-weight: var(--fw-bold); line-height: .5; }
.basket-item__price--old::after { content: ""; position: absolute; left: -2.5%; top: 50%; width: 105%; height: 1px; background: var(--c-ink); transform: rotate(-8deg); }
.basket-item__delivery { display: block; margin-top: auto; padding-top: 6px; font-size: var(--fs-14); line-height: 1.1; opacity: .4; }
.basket-item__summ { display: flex; align-items: center; }
.basket-item__qty { display: flex; flex-direction: column; align-items: flex-start; margin-right: 35px; }
.basket-item__unit { margin-top: 6px; font-size: var(--fs-14); color: var(--c-ink-50); }
.basket-item__price--total { margin-top: 0; }
.basket-item__price--total b { font-size: var(--fs-price); font-weight: var(--fw-bold); }
.basket-item__count { margin-right: 35px; font-size: var(--fs-16); color: var(--c-ink-60); white-space: nowrap; }

/* Stepper + readout + unit toggle (05 §2.8) */
.basket-counter { min-width: 120px; }
.basket-counter .counter__btn { flex-shrink: 0; }
.counter__value { position: relative; display: flex; justify-content: center; min-width: 40px; }
.counter__readout { display: block; min-width: 40px; padding: 0 2px; font-size: var(--fs-16); line-height: var(--stepper-btn-h); text-align: center; white-space: nowrap; cursor: text; }
.basket-counter.is-sheet .counter__input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.basket-counter:not(.is-sheet) .counter__readout { display: none; }
.measure {
  display: flex; justify-content: space-between;
  min-width: 120px; height: 31.6px; margin-top: 10px;
  border-radius: 5px; background: var(--c-surface-300);
}
.measure__item {
  margin: 3px; padding: 0 13px;
  border-radius: 5px;
  font-size: var(--fs-16); line-height: 25.6px;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.measure__item.is-active { background: var(--c-white); }
.measure__item:not(.is-active):hover { opacity: .6; }

/* Controls: heart + remove */
.basket-item__controls { display: flex; align-items: center; padding: 0 20px; }
.basket-item__favorite.wishlist-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; margin-right: 15px; padding: 0;
  color: var(--c-ink); background: none; border: 0;
}
.basket-item__favorite svg { width: 16px; height: 16px; transition: fill var(--dur-1) var(--ease); }
.basket-item__favorite:hover svg { opacity: .6; }
.basket-item__favorite.is-active svg, .basket-item__favorite[aria-pressed="true"] svg { fill: currentColor; }
.basket-item__remove { display: flex; }
.basket-item__close { position: relative; display: block; width: 18px; height: 18px; }
.basket-item__close::before, .basket-item__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 1px; background: var(--c-ink-30);
  transition: background-color var(--dur-1) var(--ease);
}
.basket-item__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.basket-item__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.basket-item__close:hover::before, .basket-item__close:hover::after, .basket-item__close:focus-visible::before, .basket-item__close:focus-visible::after { background: var(--c-ink); }

/* Trust badges (05 §4.6) */
.conveniences-list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.conveniences-list__item { display: flex; align-items: center; margin: 0 32px 24px 0; font-size: var(--fs-14); white-space: nowrap; }
.conveniences-list__icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 65px; height: 65px; margin-right: 15px;
  border-radius: var(--r-round); background: var(--c-sage-mist);
}
.conveniences-list__icon .icon { width: 34px; height: 34px; }
.conveniences-list__text b { display: block; font-weight: var(--fw-bold); line-height: var(--lh-body); }
.conveniences-list__text span { display: block; line-height: var(--lh-body); }

/* Promo code (05 §4.7 item 4) */
.basket-promo { margin-top: 4px; }
.basket-promo__toggle { padding: 0 0 20px; font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-ink); cursor: pointer; }
.basket-promo__toggle:hover { opacity: .6; }
.basket-promo__toggle[aria-expanded="true"] { padding-bottom: 0; }
.basket-promo__field { display: flex; align-items: center; gap: var(--space-4); margin-top: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-ink-10); }
.basket-promo__field[hidden] { display: none; }
.basket-promo__input {
  flex: 1; min-width: 0; padding: 0; border: 0; background: none; outline: 0;
  font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-ink); text-transform: uppercase;
}
.basket-promo__input::placeholder { color: var(--c-placeholder); text-transform: none; }
.basket-promo__apply { flex-shrink: 0; cursor: pointer; }
.basket-promo__apply.is-loading { opacity: .4; pointer-events: none; }
.basket-promo__error { margin-top: var(--space-2); font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-error); }
.basket-promo__error:empty { display: none; }
.basket-promo.is-invalid .basket-promo__field { border-bottom-color: var(--c-error); }

/* Empty basket (05 §4.8) */
.right-view--empty .basket-content { border-top: 1px solid var(--c-ink-10); padding-top: 0; }
.orders-container { max-width: 720px; margin: 0 auto; padding-bottom: 50px; }
.orders-empty {
  padding: 40px;
  font-size: var(--fs-16); line-height: 1.4; letter-spacing: -.02em;
  background: var(--c-surface-200);
}
.orders-empty p { max-width: 29.2em; }
.orders-empty a b, .orders-empty p a { font-weight: var(--fw-bold); border-bottom: 1px solid var(--c-line-black-10); transition: border-color var(--dur-1) var(--ease); }
.orders-empty a:hover b, .orders-empty p a:hover { border-bottom-color: var(--c-ink); }
.right-view--empty .orders-container { margin-top: 0; }
.right-view--empty .basket-head { margin-bottom: 30px; }
@media (min-width: 991px) and (max-width: 1170px) { .orders-container { max-width: 600px; } }
@media (max-width: 990px) {
  .right-view--empty .right-view__aside { display: none; }
}

@media (max-width: 990px) {
  .conveniences-list { display: none; }
}
@media (max-width: 767px) {
  .basket-item { flex-direction: column; align-items: stretch; padding: 0 0 8px; margin-bottom: var(--space-6); }
  .basket-item:last-child { margin-bottom: 0; }
  .basket-item__part:first-child, .basket-item__part:last-child { width: 100%; }
  .basket-item__part:first-child { align-items: flex-start; }
  .basket-item__description { max-width: 100%; padding-right: 30px; }
  .basket-item__part:last-child { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--c-ink-10); }
  .basket-item__summ { flex: 1; justify-content: space-between; }
  .basket-item__controls { padding: 0; margin-left: 15px; }
  .basket-item__favorite.wishlist-btn { margin-right: 0; }
  .basket-item__remove { position: absolute; top: 0; right: 0; }
  .basket-item__count { margin-right: 0; }
  .orders-empty { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .basket-item__title { width: 85%; }
}

/* ============================================================================
   4  MOBILE BAR + BOTTOM SHEET (05 §4.9, §4.10)
   ============================================================================ */
.basket-details {
  position: fixed; left: 0; bottom: 0; z-index: var(--z-sticky);
  display: none;
  justify-content: space-between; align-items: center;
  width: 100%;
  padding: 20px var(--unit);
  font-weight: var(--fw-medium);
  background: var(--c-sage);
  box-shadow: var(--shadow-basket);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.basket-details.is-hidden { transform: translateY(100%); box-shadow: none; }
.basket-details__label { display: block; font-size: var(--fs-14); line-height: var(--lh-body); }
.basket-details__total { display: block; font-size: var(--fs-price); font-weight: var(--fw-bold); line-height: 1; }
.basket-details__btn {
  display: inline-flex; align-items: center;
  font-size: var(--fs-12); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink);
  cursor: pointer;
}
.basket-details__btn::after {
  content: ""; width: 6px; height: 6px; margin: -3px 0 0 8px;
  border-left: 2px solid var(--c-ink-60); border-bottom: 2px solid var(--c-ink-60);
  transform: rotate(-45deg);
}
@media (max-width: 990px) {
  .basket-details { display: flex; }
  .commerce-page--cart .site-footer, .commerce-page--checkout .site-footer { padding-bottom: calc(var(--footer-pb) + 84px); }
}

.modal--bottom { z-index: var(--z-modal); }
.modal--bottom .modal__container {
  position: absolute; left: 0; bottom: 0;
  width: 100%; max-height: calc(100% - var(--header-h));
  transform: translateY(100%);
  transition: transform .3s ease-in;
}
.modal--bottom.modal--active .modal__container { transform: translateY(0); }
.modal--bottom.is-swiped .modal__container { transform: translateY(100vh); transition-duration: var(--dur-2); }
.basket-sheet {
  position: relative;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--c-surface-200);
}
.basket-sheet::before {
  content: ""; position: absolute; top: 12px; left: 50%;
  width: 32px; height: 4px; margin-left: -16px;
  border-radius: var(--r-pill); background: var(--c-ink-40);
}
.basket-sheet__body { padding: 48px 40px 0; }
.basket-sheet__body .basket-form__item:first-child { border-top: 0; }
.basket-sheet__footer { padding: 0 40px 40px; }
.basket-sheet__promo { display: block; padding: 8px 0 20px; font-size: var(--fs-14); color: var(--c-ink); cursor: pointer; }
.basket-sheet__footer .btn { width: 100%; }
@media (max-width: 500px) {
  .basket-sheet__body { padding: 48px var(--unit) 0; }
  .basket-sheet__footer { padding: 0 var(--unit) 32px; }
}
@media (min-width: 768px) {
  .modal--basket-info { display: none; }
}

/* ============================================================================
   5  CHECKOUT (05 §5)
   ============================================================================ */
.woocommerce-checkout > .woocommerce-NoticeGroup { display: none; } /* moved into .js-checkout-notices by commerce.js */
.checkout-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); }
.checkout-head__title { font-size: var(--fs-h3); }
.checkout-head__login { flex-shrink: 0; margin-bottom: 4px; cursor: pointer; }
.checkout-notices { margin-top: 24px; }
.checkout-notices:empty, .checkout-notices:not(:has(.ac-notice, .woocommerce-NoticeGroup, .woocommerce-error)) { display: none; }
.checkout-notices .woocommerce-NoticeGroup { display: block; }
.checkout-switcher { margin: 40px 0; }
.checkout-switcher .switcher__item { position: relative; cursor: pointer; }
.checkout-switcher .switcher__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-switcher .switcher__item:has(.switcher__input:focus-visible) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.checkout-switcher .switcher__item.is-active { background: var(--c-sage-light); }
/* The customer-type track stays inline at every width (05 §2.5, §5.7), unlike base.css's full-width mobile switcher. */
@media (max-width: 500px) {
  .checkout-switcher.switcher { display: inline-flex; width: auto; }
  .checkout-switcher .switcher__item { flex: none; height: 24px; line-height: 24px; }
}
/* The fields wrap pulls up its last row's 32px margin so Delivery / Payment sit 75px under the last underline (05 §5.2). */
.checkout-customer { margin-bottom: -30px; }


/* Underline fields in two columns */
.form-fields__wrap { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0; padding: 0; border: 0; }
.form-fields__wrap[hidden] { display: none; }
.checkout-business { margin-top: 0; }
.ad-field.input { position: relative; margin: 0 0 32px; }
.ad-field--half { width: calc(50% - 12px); }
.ad-field--wide { width: 100%; }
.ad-field .woocommerce-input-wrapper { display: block; }
.ad-field.input .input__field { height: 38px; padding: 0 0 16px; font-size: var(--fs-input); }
.ad-field.input .input__label { color: var(--c-placeholder); }
.ad-field .input__label .required { display: none; }
.ad-field .input__label .optional, .input__optional { color: var(--c-ink-30); }
.ad-field.woocommerce-invalid .input__field, .ad-field.input--invalid .input__field { border-bottom-color: var(--c-error); }
.ad-field.woocommerce-validated .input__field:not(:placeholder-shown) { border-bottom-color: var(--c-line-input); }
.ad-field .checkout-inline-error-message, .ad-field .input__tip { display: block; margin-top: 4px; font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-error); }

.checkout-row { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 75px; }
.checkout-part { width: calc(50% - 12px); min-width: 0; }
.checkout-part__title { margin-bottom: 45px; font-size: var(--fs-h4); }

/* Delivery: the address box joins the chosen card (commerce.js sets the order). */
.checkout-delivery { display: flex; flex-direction: column; }
.checkout-delivery .ac-shipping-options { display: contents; }
.checkout-delivery .form-radio + .form-radio { margin-top: var(--space-2); }
.checkout-delivery .form-radio.is-checked[data-needs-address="1"] { padding-bottom: 5px; }
.ac-shipping-options__none { font-size: var(--fs-14); color: var(--c-ink-60); }
.checkout-address { order: 99; padding: 0 23px 15px; background: var(--c-sage-pale); }
.checkout-address.is-hidden { display: none; }
.checkout-address__box { margin-top: 0; padding: 4px 25px; }
.ad-field--card { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--c-ink-10); }
.ad-field--card:last-child, .ad-field--card.is-last { border-bottom: 0; }
.ad-field--card .ad-field__label { display: block; margin-bottom: 0; font-size: var(--fs-12); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.ad-field--card .ad-field__label .required { color: var(--c-error); text-decoration: none; border: 0; }
.ad-field--card .ad-field__label .optional { font-weight: var(--fw-regular); color: var(--c-ink-40); }
.ad-field__input {
  display: block; width: 100%; padding: 2px 0; margin: 0;
  font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-ink);
  border: 0; background: none; outline: 0; border-radius: 0; box-shadow: none;
}
.ad-field--card strong { display: block; font-size: var(--fs-16); font-weight: var(--fw-regular); line-height: var(--lh-body); }
.ad-field--card.woocommerce-invalid .ad-field__label { color: var(--c-error); }
.ad-field--card.woocommerce-invalid { border-bottom-color: var(--c-error); }
#billing_country_field { display: none; }

/* Payment */
.checkout-payment .wc_payment_methods { margin: 0; padding: 0; list-style: none; }
.checkout-payment__none { font-size: var(--fs-16); color: var(--c-ink-60); }

/* Notes */
.checkout-row--notes .checkout-part { width: calc(50% - 12px); }
.ad-field--notes { margin-bottom: 0; }
.ad-field--notes .woocommerce-input-wrapper { display: block; }
.ad-field--notes textarea.input__field { width: 100%; font-size: var(--fs-input); }
.ad-field--notes textarea.input__field::placeholder { color: var(--c-placeholder); }

/* Summary: Place order + terms */
.checkout-footer__submit { width: var(--btn-w); }
.checkout-footer__noscript { margin-bottom: var(--space-4); font-size: var(--fs-14); }
.checkout-consent { margin-top: 15px; font-size: var(--fs-14); line-height: 1; color: var(--c-ink); }
.checkout-consent a { border-bottom: 1px solid currentColor; }
.woocommerce-terms-and-conditions { display: none !important; }

@media (max-width: 767px) {
  .ad-field--half, .checkout-part, .checkout-row--notes .checkout-part { width: 100%; }
  .checkout-row { margin-top: 50px; }
  .checkout-part__title { margin-bottom: 35px; }
  .checkout-part--payment { margin-top: 50px; }
  .checkout-switcher { margin: 32px 0 40px; }
}
@media (max-width: 500px) {
  .form-radio { padding: 15px; }
  .form-radio__label::before { margin-right: 15px; }
  .form-radio__note { padding-left: 31px; }
  .form-radio__field, .checkout-address__box { padding-left: 15px; padding-right: 15px; }
  .checkout-address { padding: 0 15px 15px; }
}

/* ============================================================================
   6  ORDER RECEIVED / ORDER VIEW (05 §5.8, §7.4)
   ============================================================================ */
.order-head__title { font-size: var(--fs-h3); }
.order-head__text { max-width: 640px; margin-top: 24px; font-size: var(--fs-16); line-height: var(--lh-body); }
.order-head__text b { font-weight: var(--fw-bold); }
.order-head__date { display: block; color: var(--c-ink-50); }
.order-head__actions { display: flex; align-items: center; gap: var(--space-6); margin-top: 32px; }
.order-instructions { margin-top: 40px; max-width: 720px; }
.order-instructions p + p, .order-instructions p + section { margin-top: var(--space-4); }
.order-instructions h2, .order-instructions h3 { margin: 0 0 var(--space-3); font-size: var(--fs-16); font-weight: var(--fw-bold); letter-spacing: 0; line-height: var(--lh-body); }
.order-instructions ul { margin: 0; padding: 0; list-style: none; }
.order-instructions li { font-size: var(--fs-14); }
.order-instructions li strong { display: block; font-size: var(--fs-16); }
.order-section__title { margin: 56px 0 16px; font-size: var(--fs-h5); font-weight: var(--fw-medium); }
.basket-list--static { margin-bottom: 0; border-top: 1px solid var(--c-line); }
.basket-item--static .basket-item__description { min-height: 0; max-width: 260px; }
.basket-item--static .basket-item__part:last-child { justify-content: flex-end; }
.basket-item--static .basket-item__summ { gap: 35px; }
.order-customer { display: flex; flex-wrap: wrap; gap: 32px 24px; margin-top: 40px; }
.order-customer__col { width: calc(50% - 12px); }
.order-customer__col--wide { width: 100%; }
.order-customer__title { margin-bottom: 8px; font-size: var(--fs-12); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); line-height: var(--lh-body); text-transform: uppercase; color: var(--c-ink-50); }
.order-customer__text { font-size: var(--fs-16); font-style: normal; line-height: var(--lh-body); }
.order-customer__text--muted { margin-top: 8px; font-size: var(--fs-14); color: var(--c-ink-60); }
.right-view--order .basket-form__footer { margin-top: 64px; }
@media (max-width: 767px) {
  .order-customer__col { width: 100%; }
  .basket-item--static .basket-item__part:last-child { justify-content: space-between; }
}

/* ============================================================================
   7  ACCOUNT SHELL (05 §7.1, §7.2)
   ============================================================================ */
.personal-container { display: flex; min-height: 80vh; padding-right: var(--unit); }
.personal-aside {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0;
  min-width: 330px;
  width: 330px;
  padding: clamp(100px, calc(16.667vw - 50px), 190px) 0 70px var(--unit);
  background: var(--c-surface-100);
}
@media (min-width: 1601px) {
  .personal-aside { width: calc(var(--unit) + 3 * var(--column-unit) + 3 * var(--gutter-unit)); }
}
.personal-aside__part { position: sticky; top: 20px; width: 100%; padding-right: 20px; margin-bottom: 100px; }
.personal-aside__part.is-static { position: static; }
.personal-title { font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.personal-aside__menu { margin-top: 60px; }
.personal-aside__list { margin: 0; padding: 0; list-style: none; }
.personal-aside__menu-link { display: inline-block; font-size: 18px; line-height: 2; white-space: nowrap; transition: opacity var(--dur-1) var(--ease); }
.personal-aside__menu-link:hover { opacity: var(--hover-dim); }
.personal-aside__item.is-active .personal-aside__menu-link { font-weight: var(--fw-bold); }
.personal-aside__item.is-active .personal-aside__menu-link:hover { opacity: 1; }
.logout {
  display: flex; align-items: center; width: 100%;
  margin-bottom: 20px;
  font-size: 18px; line-height: var(--lh-body); color: var(--c-ink); text-align: left;
  cursor: pointer; transition: opacity var(--dur-1) var(--ease);
}
.logout .icon { width: 16px; height: 16px; margin-right: 15px; }
.logout:hover { opacity: var(--hover-dim); }
.logout--mobile { display: none; }
.personal-aside__back { display: none; }
.personal-content {
  position: relative; width: 100%; min-width: 0;
  padding: clamp(100px, calc(16.667vw - 50px), 190px) var(--unit) 120px calc(var(--column-unit) + var(--gutter-unit));
  border-top: 1px solid var(--c-ink-10);
}
.personal-content > .woocommerce-notices-wrapper, .personal-content .woocommerce-notices-wrapper { max-width: 720px; }

/* Signed-out message + inline sign-in */
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 70px; }
.account-tabs__link { font-size: 18px; line-height: var(--lh-body); transition: opacity var(--dur-1) var(--ease); }
.account-tabs__link:hover { opacity: var(--hover-dim); }
.account-tabs__link.is-active { font-weight: var(--fw-bold); }
.account-tabs__link.is-active:hover { opacity: 1; }
.account-signin__text { font-size: var(--fs-16); line-height: var(--lh-body); }
.account-signin__form { max-width: 336px; margin-top: 56px; }

/* Profile screens with the Personal | Company tabs sit deeper and further right,
   as the reference profile page (tabs at x 535 / y ≈ 380 @1440, 05 §7.3). */
@media (min-width: 991px) {
  .personal-content:has(.account-tabs) {
    padding-top: calc(clamp(100px, calc(16.667vw - 50px), 190px) + 90px);
    padding-left: calc(2 * var(--column-unit) + var(--gutter-unit));
  }
}
@media (max-width: 990px) {
  .personal-container { flex-direction: column; padding-right: 0; }
  .personal-aside { width: 100%; min-width: 0; padding: 100px 0 0; align-items: stretch; }
  .personal-aside__part { position: static; display: flex; flex-direction: column; align-items: center; padding-right: 0; margin-bottom: 0; }
  .personal-title { font-size: var(--fs-h4); text-align: center; }
  .logout--mobile { display: block; margin-top: 6px; font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: var(--lh-body); color: var(--c-ink-50); cursor: pointer; }
  .logout { display: none; }
  .personal-aside__menu {
    width: 100%; margin-top: 40px;
    border-top: 1px solid var(--c-ink-10);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .personal-aside__menu::-webkit-scrollbar { display: none; }
  .personal-aside__list { display: flex; width: max-content; padding: 0 calc(var(--unit) - 6px); }
  .personal-aside__item { scroll-snap-align: start; }
  .personal-aside__item:last-child { margin-right: calc(2 * var(--unit)); }
  .personal-aside__menu-link { padding: 18px 6px; font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: var(--lh-body); color: var(--c-ink-50); }
  .personal-aside__item.is-active .personal-aside__menu-link { color: var(--c-ink); font-weight: var(--fw-bold); }
  .personal-content { padding: 30px var(--unit) 80px; }
  .account-tabs { margin-bottom: 32px; }
  .account-signin__form { max-width: none; margin-top: 40px; }
}

/* ============================================================================
   8  ACCOUNT FORMS, ADDRESSES, ORDERS
   ============================================================================ */
.account-title, .account-heading, .favorites-title {
  margin-bottom: 40px;
  font-size: var(--fs-h5); font-weight: var(--fw-bold); line-height: var(--lh-heading); letter-spacing: var(--ls-heading);
}
.account-form { max-width: 720px; }
.account-form__grid { display: flex; flex-wrap: wrap; justify-content: space-between; padding-top: 24px; }
.account-form__grid .ad-field.input { margin-bottom: 40px; }
.account-form__grid .input__field { height: 38px; }
.ad-field--narrow { max-width: calc(50% - 12px); margin-right: calc(50% + 12px) !important; }
.account-form .woocommerce-input-wrapper { display: block; }
.account-form .input__label .required { color: var(--c-error); border: 0; text-decoration: none; }
.account-form .input__label .optional { color: var(--c-ink-30); }
.account-form .ad-field strong { display: block; height: 38px; padding-bottom: 16px; font-size: var(--fs-input); font-weight: var(--fw-regular); border-bottom: 1px solid var(--c-line-input); }
.account-form__fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.account-form__legend { padding: 0; font-size: 18px; font-weight: var(--fw-bold); line-height: var(--lh-body); }
.account-form__note { max-width: 560px; margin-bottom: 8px; font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-ink-60); }
.account-form__tip { margin-top: -20px; margin-bottom: 40px; }
.account-form__tip .input__tip-link { margin-top: 0; font-size: 18px; }
.account-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-8); margin-top: 16px; }
.account-form .custom-checkbox { margin: 16px 0 24px; }
.account-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--c-ink-60); transition: color var(--dur-1) var(--ease); }
.account-back:hover { color: var(--c-ink); }

.account-password__text { max-width: 640px; margin-bottom: 1.6em; font-size: var(--fs-16); line-height: var(--lh-body); }
.account-password .ad-field.account-password__field { max-width: 250px; margin: 40px 0 30px; padding-bottom: 30px; }

.account-addresses { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.account-address { width: 100%; max-width: 460px; padding: 32px; background: var(--c-surface-200); }
.account-address__title { margin-bottom: 12px; font-size: var(--fs-12); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); line-height: var(--lh-body); text-transform: uppercase; color: var(--c-ink-50); }
.account-address__text { margin-bottom: 24px; font-size: var(--fs-16); font-style: normal; line-height: var(--lh-body); }

/* Orders list (05 §7.4) */
.orders-list { max-width: 720px; margin: 0; padding: 0; list-style: none; }
.order-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--c-ink-10);
}
.order-row:first-child { border-top: 1px solid var(--c-ink-10); }
.order-row__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-width: 0; }
.order-row__number { font-size: var(--fs-16); font-weight: var(--fw-medium); line-height: var(--lh-body); }
.order-row__date { font-weight: var(--fw-regular); color: var(--c-ink-60); }
.order-row__thumbs { display: flex; gap: 4px; }
.order-row__thumb { width: 40px; height: 40px; object-fit: cover; }
.order-row__count { font-size: var(--fs-14); color: var(--c-ink-60); white-space: nowrap; }
.order-row__total { font-size: var(--fs-price); font-weight: var(--fw-bold); white-space: nowrap; }
.order-row__actions { grid-column: 1 / -1; display: flex; gap: 24px; }
.order-pill {
  display: inline-block; padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: var(--fs-12); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); line-height: 1.2; text-transform: uppercase;
  background: var(--c-sage-mist);
}
.order-pill--cancelled, .order-pill--refunded { background: var(--c-surface-300); color: var(--c-ink-60); }
.order-pill--failed { background: var(--c-sale-light); }
.order-pill--completed { background: var(--c-sage-light); }
.orders-pagination { justify-content: flex-start; margin-top: 32px; }
.personal-content .orders-empty { max-width: 720px; }

/* One order */
.order-view__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.order-view__title { margin-bottom: 0; }
.order-view__meta { margin-top: 12px; font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-ink-60); }
.order-view__body { display: flex; gap: 48px; margin-top: 40px; }
.order-view__main { flex: 1; min-width: 0; }
.order-info-aside { flex: 0 0 280px; }
.order-info-box { padding: 8px 24px; background: var(--c-surface-50); border: 1px solid var(--c-ink-06); }
.order-info-box .basket-form__item:first-child { border-top: 0; }
.order-info-aside__action { display: inline-block; margin-top: 20px; margin-right: 20px; }
.order-view .order-section__title { margin-top: 48px; }
.order-view .basket-item--static .basket-item__part:first-child { width: 62%; }
.order-view .basket-item--static .basket-item__part:last-child { width: 38%; }
.order-updates { margin: 0; padding: 0; list-style: none; }
.order-updates__item { padding: 16px; margin-bottom: 8px; background: var(--c-surface-200); font-size: var(--fs-14); line-height: var(--lh-body); }
.order-updates__date { display: block; margin-bottom: 4px; color: var(--c-ink-50); }
@media (max-width: 1320px) {
  .order-view__body { flex-direction: column; }
  .order-info-aside { flex: none; width: 100%; max-width: 460px; }
}
@media (max-width: 767px) {
  .ad-field--half, .ad-field--narrow { width: 100%; max-width: none; margin-right: 0 !important; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; }
  .order-row__thumbs { display: none; }
  .order-view .basket-item--static .basket-item__part:first-child,
  .order-view .basket-item--static .basket-item__part:last-child { width: 100%; }
  .account-address { padding: 24px; }
}

/* ============================================================================
   9  REGISTRATION (05 §8)
   ============================================================================ */
.personal-container--register .personal-title.auth-page__title {
  font-size: min(40px, calc(1.78vw + 14.34px));
  font-weight: var(--fw-medium); line-height: 1.2; letter-spacing: 0;
}
.personal-content--auth { padding: clamp(100px, calc(16.667vw - 50px), 190px) var(--unit) 190px calc(2 * var(--column-unit) + var(--gutter-unit)); }
@media (min-width: 1501px) {
  .personal-content--auth { padding-right: calc(2 * var(--column-unit) + 2 * var(--gutter-unit)); }
}
.auth-page__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 70px; }
.auth-page__head .auth-page__signin { margin-left: auto; cursor: pointer; }
.auth-page__mobile-title { display: none; }
.auth-page__notices .ac-notice { max-width: 785px; }
.register-form { max-width: 785px; }
.form-area { display: flex; flex-wrap: wrap; justify-content: space-between; }
.form-area[hidden] { display: none; }
.form-part { width: calc(50% - 12px); }
.reg-field { margin: 0 0 10px; }
.reg-field__label { display: block; font-size: var(--fs-14); line-height: var(--lh-body); color: var(--c-ink); }
.reg-field .req { color: var(--c-error); }
.reg-field__wrap { position: relative; display: block; }
.reg-field__input {
  display: block; width: 100%; height: 45px; padding: 11px;
  font-size: 18px; line-height: 1.2; color: var(--c-ink);
  background: var(--c-surface-150); border: 1px solid var(--c-white); border-radius: 0;
  outline: 0; box-shadow: none; appearance: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.reg-field__input:focus-visible { border-color: var(--c-ink-30); }
.reg-field.is-valid .reg-field__input { box-shadow: inset 0 -2px 0 var(--c-success); }
.reg-field.is-invalid .reg-field__input { box-shadow: inset 0 -2px 0 var(--c-error); }
.reg-field__hint { min-height: 0; font-size: 13px; }
.reg-field.has-eye .reg-field__input { padding-right: 44px; }
.reg-field .input__eye { top: 50%; right: 10px; width: 24px; height: 20px; margin-top: -10px; }
.client_type { display: flex; gap: 20px; margin: 22px 0 0; }
.form-fieldset2 { margin: 40px 0 20px; padding: 0; border: 0; min-width: 0; }
.form-area--chips { margin-top: 20px; }
.form-part--chips { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.form-part__title { padding: 0; font-size: 18px; line-height: var(--lh-body); }
.form-footer__part { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 40px 0 20px; }
.row-btn { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--btn-w); max-width: 100%; height: var(--btn-h);
  border: 1px solid var(--c-error); border-radius: 5px;
  font-size: var(--fs-btn); font-weight: var(--fw-medium); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-ink);
  cursor: pointer; transition: background-color .5s var(--ease), color .5s var(--ease);
}
.btn-clear:hover, .btn-clear:focus-visible { background: var(--c-error); color: var(--c-white); }
.js-register-submit.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: auto; }
@media (max-width: 500px) {
  /* Both buttons on one row, as the reference at 390. */
  .row-btn { flex-wrap: nowrap; }
  .row-btn .btn-clear, .row-btn .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 0 12px; }
}
.register-form__invalid { margin-top: 16px; font-size: var(--fs-16); color: var(--c-error); }
@media (max-width: 990px) {
  .personal-container--register .personal-aside { position: relative; justify-content: center; min-height: 59px; padding: 15px var(--unit); }
  .personal-container--register .personal-aside__part { flex-direction: row; justify-content: center; }
  .personal-container--register .personal-title.auth-page__title { font-size: 18px; font-weight: var(--fw-bold); }
  .personal-container--register .personal-aside__back { position: absolute; left: var(--unit); top: 50%; display: inline-flex; margin-top: -12px; }
  .personal-content--auth { padding: 30px var(--unit) 100px; }
  .auth-page__head { margin: 20px 0 70px; }
  .auth-page__mobile-title { display: block; font-size: 30px; font-weight: var(--fw-medium); line-height: 1.2; }
}
@media (max-width: 767px) {
  .form-part { width: 100%; }
}
@media (max-width: 600px) {
  .client_type { flex-direction: column; gap: 12px; }
}

/* ============================================================================
   10 WISHLIST PAGE (05 §6)
   ============================================================================ */
.favorites-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.favorites-title { margin-bottom: 0; }
.favorites-title__counter { position: relative; top: -1em; margin-left: 4px; font-size: var(--fs-14); font-weight: var(--fw-bold); vertical-align: baseline; }
.favorites-product-list { display: flex; flex-wrap: wrap; margin: 48px 0 104px -24px; padding: 0; list-style: none; }
.favorites-product-list[hidden] { display: none; }
.favorites-product-list__item { width: calc(25% - 24px); margin: 0 0 48px 24px; transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.favorites-product-list__item.is-removing { opacity: 0; transform: scale(.98); }
.favorites-empty { max-width: 720px; margin-top: 48px; }
.favorites-empty p { margin-bottom: 16px; }
.favorites-empty[hidden] { display: none; }
@media (max-width: 1200px) {
  .favorites-product-list__item { width: calc(33.333% - 24px); }
}
@media (max-width: 990px) {
  .favorites-head { margin-bottom: 0; }
  .favorites-product-list { margin: 0 0 64px -16px; }
  .favorites-product-list__item { width: calc(33.333% - 16px); margin: 40px 0 0 16px; }
}
@media (max-width: 767px) {
  .favorites-product-list { justify-content: space-between; margin-left: 0; }
  .favorites-product-list__item { width: calc(50% - 7px); margin-left: 0; }
}

/* ============================================================================
   11 REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .basket-details, .modal--bottom .modal__container, .hint-content, .favorites-product-list__item, .basket-item { transition: opacity .01s; }
  .hint-content, .hint:hover .hint-content { transform: translateX(-45%); }
  .favorites-product-list__item.is-removing { transform: none; }
}

/* Inline field errors WooCommerce adds outside the underline fields (terms, address card). */
.checkout-inline-error-message { display: block; margin-top: 6px; font-size: var(--fs-14); line-height: var(--lh-ui); color: var(--c-error); }
