:root {
  --bg: #eef2ea;
  --panel: #fbf8f1;
  --line: #dde3d7;
  --text: #24312d;
  --muted: #657364;
  --accent: #95a98b;
  --accent-dark: #72846a;
  --shadow: 0 16px 32px rgba(74, 91, 68, 0.08);
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #e6ecdf 0%, #f1f4eb 24%, #f7f4ed 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
}

.container {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  background: #f8f7f4;
  border-bottom: 1px solid var(--line);
}

.header-main {
  min-height: 104px;
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 146px;
  height: auto;
  display: block;
}

.purchase-progress {
  padding: 10px 0 8px;
}

.progress-copy {
  margin: 0 0 8px;
  color: #59645b;
  font-size: 0.95rem;
}

.progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  min-height: 52px;
  padding-top: 10px;
}

.progress-track::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 20px;
  height: 4px;
  border-radius: 999px;
  background: #dfded5;
}

.progress-fill {
  position: absolute;
  left: 36px;
  top: 20px;
  width: 48%;
  max-width: calc(100% - 72px);
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.checkout-progress-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdfa;
  box-shadow: 0 12px 28px rgba(74, 91, 68, 0.07);
}

.checkout-progress-panel .progress-copy {
  margin-bottom: 14px;
  font-weight: 700;
}

.checkout-progress-panel .progress-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 58px;
}

.checkout-progress-panel .step-label {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.site-header .progress-step {
  gap: 6px;
  transform: none;
}

.site-header .step-icon {
  width: 24px;
  height: 24px;
  box-shadow: none;
  font-size: 0.72rem;
}

.site-header .progress-step.reached:hover {
  transform: none;
}

.progress-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  cursor: default;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.step-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #d6d3c9;
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(74, 91, 68, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.progress-step.reached .step-icon {
  background: #e9eee4;
  border-color: #cbd7c4;
}

.progress-step.is-active .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(114, 132, 106, 0.28);
}

.progress-step.is-active .step-label {
  color: var(--text);
  font-weight: 700;
}

.progress-step.reached {
  cursor: pointer;
}

.progress-step.reached:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.progress-step.is-completed .step-icon {
  background: #e9eee4;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.progress-step.is-locked {
  opacity: 0.62;
}

.progress-step.is-locked .step-icon {
  box-shadow: none;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 40;
  width: 430px;
  display: none;
  padding: 48px 18px 18px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 91, 68, 0.18);
}

.mini-cart-dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 46px;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.mini-cart-dropdown::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 0;
  width: 100%;
  height: 18px;
}

.header-actions.is-mini-cart-open .mini-cart-dropdown {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 84px;
  z-index: 45;
  width: 230px;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 91, 68, 0.18);
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -9px;
  right: 30px;
  width: 16px;
  height: 16px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}

.header-actions.is-account-open .account-dropdown {
  display: grid;
  gap: 6px;
}

.account-dropdown a,
.account-dropdown button {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4e5d50;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  background: #f5f3ed;
}

.account-dropdown-note {
  margin: 4px 8px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.mobile-account-section {
  display: none;
}

.mini-cart-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f5f3ed;
  color: var(--text);
  cursor: pointer;
}

.mini-cart-items {
  display: grid;
  gap: 12px;
  min-height: 0;
  max-height: min(52vh, 430px);
  margin-bottom: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.mini-cart-item.is-unavailable {
  padding: 8px;
  border: 1px solid #ead7b8;
  border-radius: 8px;
  background: #fffaf0;
}

.mini-cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-cart-title {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.25;
}

.mini-cart-item .cart-builder-snapshot {
  margin: 7px 0 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
}

.mini-cart-item .cart-builder-snapshot-group + .cart-builder-snapshot-group {
  margin-top: 6px;
}

.mini-cart-item .cart-builder-snapshot strong {
  display: block;
  margin-bottom: 3px;
}

.mini-cart-item .cart-builder-snapshot ul {
  margin: 0;
  padding-left: 16px;
}

.mini-cart-item .cart-builder-snapshot li {
  line-height: 1.35;
}

.mini-cart-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.mini-cart-controls button,
.mini-cart-controls span {
  width: 34px;
  height: 34px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
}

.mini-cart-controls button {
  cursor: pointer;
}

.mini-cart-controls button:disabled {
  color: #9aa295;
  cursor: not-allowed;
  background: #f5f3ed;
}

.mini-cart-remove {
  color: var(--danger) !important;
  border-left: 1px solid var(--line) !important;
}

.mini-cart-warning {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f7e7c5;
  color: #7a4d00;
  font-size: 0.76rem;
  font-weight: 700;
}

.mini-cart-price {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-weight: 700;
  white-space: nowrap;
}

.mini-cart-price span,
.cart-price-breakdown span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.mini-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}

.mini-cart-total {
  display: flex;
  flex: 1 1 auto;
  gap: 16px;
  font-weight: 700;
}

.mini-cart-total span {
  color: var(--muted);
}

.mini-cart-button {
  width: auto;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.mini-cart-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.action-link,
.primary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4e5d50;
  font-weight: 700;
  font-size: 0.9rem;
}

.action-button {
  cursor: pointer;
}

.icon-action,
.action-button {
  position: relative;
}

.mobile-menu-button {
  display: none;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4e5d50;
  cursor: pointer;
}

.account-state {
  display: none;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #c9ad5f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.main-nav {
  background: #ebe8df;
  border-top: 1px solid var(--line);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5e685f;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  background: #f8f7f4;
  color: var(--text);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dfe8dc;
  color: var(--accent-dark);
  font-size: 0.8rem;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
}

.cart-page {
  padding: 34px 0 64px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.back-link {
  font-weight: 700;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: start;
}

.cart-layout.is-confirmation-step {
  grid-template-columns: minmax(0, 1fr);
}

.cart-layout.is-confirmation-step .cart-summary {
  display: none;
}

.cart-layout.is-success-state {
  grid-template-columns: minmax(0, 1fr);
}

.cart-layout.is-success-state .cart-summary,
.cart-layout.is-success-state .checkout-progress-panel,
.cart-layout.is-success-state .checkout-review-grid,
.cart-layout.is-success-state .checkout-consents,
.cart-layout.is-success-state .checkout-action-row,
.cart-layout.is-success-state .submit-feedback,
.cart-layout.is-success-state [data-checkout-step="3"] > .checkout-panel > h2 {
  display: none;
}

.cart-layout.is-step-one .summary-methods-block {
  display: none;
}

.cart-main,
.cart-summary,
.checkout-panel,
.cart-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-main,
.cart-summary {
  padding: 28px;
  background: #fffdfa;
}

.cart-main,
.cart-summary {
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(74, 91, 68, 0.1);
}

.cart-summary {
  position: static;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-head h1,
.cart-summary h2,
.checkout-panel h2,
.cart-products-head h2 {
  margin: 0;
  line-height: 1.08;
}

.section-head h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.cart-summary h2,
.checkout-panel h2,
.cart-products-head h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.cart-items,
.checkout-shell,
.summary-list {
  display: grid;
  gap: 14px;
}

.cart-items {
  margin-top: 14px;
}

.cart-summary .cart-items {
  margin-bottom: 6px;
}

.checkout-shell {
  margin-top: 18px;
}

.checkout-step {
  display: none;
  gap: 14px;
}

.checkout-step.is-active {
  display: grid;
  animation: checkout-step-in 180ms ease both;
}

.checkout-panel {
  padding: 28px;
  background: #fffdfa;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(74, 91, 68, 0.07);
}

.checkout-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-panel-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-clear-button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.checkout-clear-button:hover,
.checkout-clear-button:focus-visible {
  color: var(--text);
}

.checkout-autofill-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cbd7c4;
  border-radius: 999px;
  background: #f4f8f1;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.checkout-autofill-badge[hidden] {
  display: none;
}

.address-autocomplete-root {
  position: relative;
}

.address-autocomplete-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: min(280px, 58vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid #d9dfd2;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 18px 36px rgba(74, 91, 68, 0.16);
}

.address-autocomplete-panel[hidden] {
  display: none;
}

.address-autocomplete-hint,
.address-autocomplete-state {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.address-autocomplete-option {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.address-autocomplete-option:hover,
.address-autocomplete-option.is-active {
  background: #f4f8f1;
}

.saved-address-selector {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.saved-address-selector[hidden] {
  display: none;
}

.saved-address-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.saved-address-toggle i {
  color: var(--accent-dark);
  transition: transform 160ms ease;
}

.saved-address-selector.is-open .saved-address-toggle i {
  transform: rotate(180deg);
}

.saved-address-helper {
  display: block;
  width: 100%;
  padding: 0 16px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.saved-address-helper:hover {
  color: var(--accent-dark);
}

.saved-address-panel {
  padding: 0 14px 14px;
}

.saved-address-panel[hidden] {
  display: none;
}

.saved-address-state {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  color: var(--muted);
  line-height: 1.35;
}

.saved-address-state.is-error {
  border-color: #ead0ca;
  background: #fffafa;
  color: var(--danger);
}

.saved-address-panel-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
}

.saved-address-panel-footer a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.saved-address-feedback {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd7c4;
  border-radius: 8px;
  background: #f4f8f1;
  color: #4e5d50;
  font-weight: 700;
  line-height: 1.35;
}

.saved-address-list {
  display: grid;
  gap: 10px;
}

.saved-address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.saved-address-card.is-selected {
  border-color: var(--accent);
  background: #f4f8f1;
  box-shadow: 0 0 0 3px rgba(149, 169, 139, 0.16);
}

.saved-address-card-copy {
  min-width: 0;
}

.saved-address-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.saved-address-card-head strong,
.saved-address-card p {
  overflow-wrap: anywhere;
}

.saved-address-card p {
  margin: 2px 0;
  color: var(--muted);
  line-height: 1.3;
}

.saved-address-badges {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.saved-address-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9eee4;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.saved-address-use {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.saved-address-card.is-selected .saved-address-use {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fake-field {
  min-height: 52px;
  display: grid;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #9aa39b;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fake-field input,
.fake-field textarea,
.fake-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.fake-field select {
  min-height: 34px;
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #687568 50%),
    linear-gradient(135deg, #687568 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 8px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.phone-field-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.phone-field-row select {
  border-right: 1px solid var(--line);
}

.fake-field textarea {
  min-height: 58px;
  resize: vertical;
}

.fake-field input::placeholder,
.fake-field textarea::placeholder {
  color: #9aa39b;
}

.fake-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(149, 169, 139, 0.18);
}

.fake-field.is-invalid,
.delivery-options.is-invalid .delivery-option {
  border-color: #c45a4a;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(196, 90, 74, 0.1);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.2;
}

.fake-field.is-invalid .field-error,
.field-error.is-visible {
  display: block;
}

.fake-field.wide {
  grid-column: 1 / -1;
}

.note-field {
  min-height: 86px;
  align-items: flex-start;
  padding-top: 16px;
}

.save-address-option {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf9;
}

.save-address-option[hidden] {
  display: none;
}

.save-address-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
}

.save-address-row[hidden] {
  display: none;
}

.save-address-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.save-address-row input:disabled {
  cursor: not-allowed;
}

.save-address-row:has(input:disabled) {
  color: var(--muted);
  cursor: not-allowed;
}

.save-address-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.save-address-row strong,
.save-address-row small,
.save-address-hint {
  overflow-wrap: anywhere;
}

.save-address-row small,
.save-address-hint {
  color: var(--muted);
  line-height: 1.35;
}

.save-address-hint {
  margin: 10px 0 0 28px;
  font-weight: 700;
}

.save-address-option.is-update-success .save-address-hint {
  margin-left: 0;
}

.save-address-hint.is-success {
  color: var(--accent-dark);
}

.save-address-hint.is-error {
  color: var(--danger);
}

.billing-address-option {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
}

.billing-address-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.billing-address-toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.billing-address-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.billing-address-panel[hidden] {
  display: none;
}

.billing-address-heading {
  margin-bottom: 0;
}

.billing-address-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.billing-field-grid {
  margin-top: 14px;
}

.update-address-action {
  margin-bottom: 12px;
  display: grid;
  gap: 7px;
}

.update-address-action[hidden] {
  display: none;
}

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

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 48, 39, 0.42);
}

.checkout-modal-card {
  position: relative;
  width: min(100%, 440px);
  padding: 22px;
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 24px 64px rgba(42, 48, 39, 0.2);
}

.checkout-modal-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.checkout-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.checkout-modal-actions .primary-button,
.checkout-modal-actions .secondary-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.checkout-modal-actions .secondary-button:hover {
  border-color: var(--accent-dark);
  background: #f4f8f1;
}

.checkout-modal-actions .primary-button:focus-visible,
.checkout-modal-actions .secondary-button:focus-visible {
  outline: 3px solid rgba(149, 169, 139, 0.35);
  outline-offset: 2px;
}

.ppl-widget-modal-card {
  width: min(100%, 920px);
  min-width: min(100%, 320px);
  padding: 16px;
}

.ppl-widget-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ppl-widget-modal-heading h2 {
  margin: 0;
}

.ppl-widget-state {
  margin-bottom: 10px;
  color: var(--muted);
}

.ppl-widget-state:empty {
  display: none;
}

#ppl-parcelshop-map {
  min-width: 320px;
  min-height: 550px;
}

.delivery-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option-error {
  margin-top: 0;
}

.checkout-options-state {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  color: var(--muted);
  font-weight: 700;
}

.checkout-options-state.is-error {
  border-color: rgba(181, 71, 71, 0.45);
  background: #fff7f5;
  color: #9f3f3f;
}

.checkout-options-state.is-warning {
  border-color: rgba(181, 131, 58, 0.45);
  background: #fffaf0;
  color: #8b5e18;
}

.delivery-option {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.delivery-option input {
  align-self: center;
  margin: 0;
  accent-color: var(--accent);
}

.checkout-method-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.delivery-option:hover,
.delivery-option:focus-within {
  border-color: var(--accent);
  background: #fbfdf9;
  box-shadow: 0 8px 22px rgba(74, 91, 68, 0.08);
}

.delivery-option:focus-within {
  outline: 2px solid rgba(149, 169, 139, 0.28);
  outline-offset: 2px;
}

.delivery-option:has(input:checked) {
  border-color: var(--accent);
  background: #f4f8f1;
  box-shadow: 0 10px 26px rgba(74, 91, 68, 0.1);
}

.delivery-option:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.delivery-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-method-copy {
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.checkout-method-text {
  min-width: 0;
  display: block;
}

.delivery-option small {
  display: block;
}

.delivery-option b {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  margin-left: 12px;
}

.delivery-option small {
  margin-top: 3px;
  color: var(--muted);
}

.option-badges {
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.pickup-point-selector {
  margin-top: -4px;
  padding: 0 16px 6px 42px;
}

.pickup-point-selector select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.pickup-point-selector select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(149, 169, 139, 0.28);
  outline-offset: 2px;
}

.ppl-pickup-selector {
  margin-top: -4px;
  padding: 0 16px 6px 42px;
}

.ppl-pickup-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ppl-pickup-card:hover,
.ppl-pickup-card:focus-visible {
  border-color: var(--accent);
  background: #fbfdf9;
  box-shadow: 0 8px 22px rgba(74, 91, 68, 0.08);
  outline: none;
}

.ppl-pickup-location {
  color: var(--muted);
  font-size: 0.9rem;
}

.ppl-pickup-selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ppl-pickup-summary {
  display: grid;
  gap: 3px;
  min-width: min(100%, 220px);
  flex: 1 1 220px;
}

.ppl-pickup-summary strong {
  color: var(--text);
}

.pickup-detail-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.pickup-detail-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.pickup-detail-button {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(78, 93, 80, 0.34);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.pickup-detail-button:hover,
.pickup-detail-button:focus-visible,
.pickup-detail-button[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
}

.pickup-detail-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 35;
  width: max-content;
  max-width: min(340px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(149, 169, 139, 0.54);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 14px 32px rgba(45, 56, 40, 0.14);
  cursor: default;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.pickup-detail-popover[hidden] {
  display: none;
}

.pickup-detail-section {
  display: grid;
  gap: 2px;
}

.pickup-detail-section strong {
  color: var(--text);
  font-size: 0.78rem;
}

.pickup-detail-section span,
.pickup-detail-empty {
  color: var(--muted);
}

.pickup-detail-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppl-pickup-summary small {
  color: var(--muted);
}

.ppl-pickup-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.ppl-pickup-card .secondary-button {
  flex: 0 0 auto;
}

.ppl-pickup-clear-button {
  min-height: 36px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppl-pickup-clear-button:hover,
.ppl-pickup-clear-button:focus-visible {
  color: var(--accent-dark);
}

.summary-option-extra {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

.checkout-consents {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.consent-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 0;
  align-items: start;
}

.consent-row {
  grid-column: 1 / -1;
  min-height: 30px;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
  color: #56615b;
  line-height: 1.35;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.consent-error {
  grid-column: 2;
  display: none;
  margin: -3px 0 0;
  line-height: 1.35;
}

.consent-error.is-visible {
  display: block;
}

.checkout-review-copy {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(74, 91, 68, 0.06);
}

.review-card-wide {
  grid-column: 1 / -1;
}

.review-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-card strong,
.review-card p {
  display: block;
}

.review-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.review-contact-summary {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review-contact-layout {
  display: grid;
  gap: 16px;
}

.review-summary-section {
  display: grid;
  gap: 10px;
}

.review-summary-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.review-summary-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.review-summary-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

.review-summary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.review-summary-row dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-summary-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.same-address-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: normal;
}

.same-address-marker {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(78, 93, 80, 0.34);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.same-address-marker:focus-visible {
  outline: 2px solid rgba(149, 169, 139, 0.42);
  outline-offset: 2px;
}

.same-address-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 25;
  width: max-content;
  max-width: min(320px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid #d6b75f;
  border-radius: 10px;
  background: #fff8d8;
  color: #3f3215;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 34px rgba(58, 46, 18, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.same-address-marker:hover .same-address-tooltip,
.same-address-marker:focus .same-address-tooltip,
.same-address-marker:focus-visible .same-address-tooltip,
.same-address-marker.is-open .same-address-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .same-address-tooltip {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    max-width: min(300px, calc(100vw - 40px));
  }
}

.review-summary-row.checkout-summary-name-value dd {
  font-size: 1.06rem;
  font-weight: 800;
}

.review-values {
  display: grid;
  gap: 10px;
}

.review-values-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-value {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.review-value span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-value strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.pickup-review-value {
  display: grid;
  gap: 3px;
}

.checkout-payment-instructions-panel {
  margin-top: 14px;
}

.payment-instructions-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #efd6b3;
  border-radius: 8px;
  background: #fff7ec;
}

.payment-instructions-header h3 {
  margin: 0;
  color: #7a4b18;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-instructions-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.payment-instructions-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.payment-instructions-layout.has-qr {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 188px);
  align-items: start;
}

.payment-qr-block {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid #f0dfc8;
  text-align: center;
}

.payment-qr-copy {
  min-width: 0;
  text-align: center;
}

.payment-qr-copy h4 {
  margin: 0 0 4px;
  color: #7a4b18;
  font-size: 0.95rem;
}

.payment-qr-copy p {
  margin: 0;
  color: #76532d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.payment-qr-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin-top: 10px;
}

.payment-qr-toggle label {
  min-width: 0;
}

.payment-qr-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-qr-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #e0c49b;
  border-radius: 8px;
  background: #fffdfa;
  color: #7a4b18;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.payment-qr-toggle input:checked + span {
  border-color: #7a4b18;
  background: #f7ead8;
}

.payment-qr-images {
  display: grid;
  justify-items: center;
  max-width: 100%;
}

.payment-qr-image {
  width: min(156px, 100%);
  height: auto;
  border: 8px solid #ffffff;
  border-radius: 8px;
}

.payment-qr-image[hidden] {
  display: none;
}

.payment-instruction-row {
  display: grid;
  gap: 4px;
  align-items: start;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #f0dfc8;
}

.payment-instruction-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.payment-instruction-row > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: normal;
}

.payment-instruction-row strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 42rem);
  overflow-wrap: anywhere;
  text-align: left;
}

.payment-instruction-row strong > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .payment-instructions-layout.has-qr {
    grid-template-columns: 1fr;
  }

  .payment-qr-block {
    justify-items: center;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid #f0dfc8;
    border-left: 0;
  }

  .payment-qr-toggle {
    justify-content: center;
  }
}

.payment-instructions-note {
  margin: 0;
  color: #76532d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.payment-copy-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.payment-copy-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(149, 169, 139, 0.45);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.payment-copy-button:hover,
.payment-copy-button:focus-visible {
  background: #f5faf2;
}

.payment-copy-feedback {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 7px;
  border: 1px solid #efd6b3;
  border-radius: 7px;
  background: #fffdfa;
  color: #7a4b18;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(74, 91, 68, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.payment-copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.review-products {
  display: grid;
  gap: 10px;
}

.review-product {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.review-product:last-child {
  border-bottom: 0;
}

.review-product-number,
.review-product-quantity {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.review-product-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf2e8 0%, #efe6d9 100%);
}

.review-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.review-product-copy strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.review-product-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.review-product-total {
  white-space: nowrap;
}

.review-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.review-subtotal-row strong {
  white-space: nowrap;
}

.review-total-card {
  padding: 0;
  border-color: #cbd7c4;
  background: #f4f8f1;
}

.review-free-shipping-card {
  padding: 12px;
  border-color: #e6dbc2;
  border-radius: 8px;
  background: #fbf8ef;
}

.review-free-shipping-card[hidden] {
  display: none;
}

.free-shipping-progress {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.free-shipping-progress--summary,
.free-shipping-progress--mini-cart {
  padding: 12px;
  border: 1px solid #e6dbc2;
  border-radius: 8px;
  background: #fbf8ef;
}

.free-shipping-progress--mini-cart {
  margin-bottom: 12px;
}

.free-shipping-progress__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.free-shipping-progress__copy strong,
.free-shipping-progress__copy span {
  overflow-wrap: anywhere;
}

.free-shipping-progress__copy strong {
  color: var(--text);
  line-height: 1.35;
}

.free-shipping-progress__copy span {
  color: var(--muted);
  font-weight: 700;
}

.free-shipping-progress__bar {
  position: relative;
  height: 12px;
  overflow: visible;
  border-radius: 999px;
  background: #e5dcc9;
}

.free-shipping-progress__threshold {
  justify-self: end;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: normal;
}

.free-shipping-progress__fill {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: var(--accent-dark);
}

.free-shipping-progress__truck,
.free-shipping-progress__check {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.free-shipping-progress__truck {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}

.free-shipping-progress__check {
  right: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  transform: translate(0, -50%);
}

.review-final-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.review-final-total span,
.review-final-total strong {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.review-final-total strong {
  text-align: right;
  white-space: nowrap;
}

.checkout-submit-block {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checkout-action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-action-row .summary-button {
  width: auto;
  min-width: 190px;
  margin-top: 0;
}

.checkout-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-nav-button {
  min-width: 160px;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.checkout-nav-button:hover {
  transform: translateY(-1px);
}

.checkout-nav-button:focus-visible,
.progress-step:focus-visible {
  outline: 3px solid rgba(149, 169, 139, 0.35);
  outline-offset: 3px;
}

.checkout-nav-button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-nav-button.is-disabled:hover {
  transform: none;
}

.cart-products-head {
  margin-top: 22px;
}

.cart-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  background: #ffffff;
}

.cart-item-unavailable {
  border: 1px solid #ead7b8;
  background: #fffaf0;
}

.cart-item-image {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #edf2e8 0%, #efe6d9 100%);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-image,
.cart-item-title-link {
  color: inherit;
  text-decoration: none;
}

.cart-item-image:focus-visible,
.cart-item-title-link:focus-visible {
  outline: 3px solid rgba(149, 169, 139, 0.35);
  outline-offset: 3px;
}

.cart-item-title-link:hover {
  color: var(--accent-dark);
}

.cart-item-copy h3,
.cart-item-price strong {
  margin: 0;
}

.cart-item-copy h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item-copy p,
.summary-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-item-copy p:nth-of-type(2) {
  display: none;
}

.cart-item-warning {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f7e7c5;
  color: #7a4d00 !important;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item-price {
  display: grid;
  justify-items: end;
  gap: 12px;
  text-align: right;
  font-size: 0.98rem;
  min-width: 0;
}

.cart-price-breakdown {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.cart-line-total {
  display: block;
}

.cart-quantity-block {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.cart-quantity-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.cart-item-controls button,
.cart-item-controls span {
  width: 32px;
  height: 34px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
}

.cart-item-controls button {
  cursor: pointer;
}

.cart-item-controls button:hover {
  background: #eef3ea;
}

.cart-item-controls button:disabled,
.cart-item-controls.is-disabled button:not(.remove-button) {
  color: #9aa295;
  cursor: not-allowed;
  background: #f5f3ed;
}

.cart-item-controls .remove-button {
  color: var(--danger);
  border-left: 1px solid var(--line);
}

.cart-item-controls.is-disabled .remove-button {
  cursor: pointer;
  background: #fff;
}

.cart-unavailable-warning {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #ead7b8;
  border-radius: 8px;
  background: #fffaf0;
  color: #6e4b13;
  font-weight: 700;
}

.cart-unavailable-warning a {
  width: fit-content;
  color: var(--accent-dark);
  text-decoration: underline;
  white-space: nowrap;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
}

.summary-stats-block,
.summary-methods-block {
  overflow: hidden;
  border: 1px solid #edf0e8;
  border-radius: 8px;
  background: #fff;
}

.summary-stats-block .summary-row,
.summary-methods-block .summary-row {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0e8;
}

.summary-stats-block .summary-row:last-child,
.summary-methods-block .summary-row:last-child {
  border-bottom: 0;
}

.summary-row-detail {
  align-items: flex-start;
}

.summary-row-label {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.summary-row-label small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.summary-row strong {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.summary-row-subtotal,
.summary-row.total {
  padding: 12px;
  border-color: #cbd7c4;
  background: #f4f8f1;
  font-weight: 800;
}

.summary-row.total {
  border: 1px solid #cbd7c4;
  border-radius: 8px;
  font-size: 1.08rem;
}

.summary-button {
  width: 100%;
  margin-top: 18px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

.summary-button.is-disabled {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

.submit-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.submit-feedback.is-error {
  color: var(--danger);
}

.submit-feedback.is-info {
  color: #6e4b13;
}

.submit-feedback.is-success {
  color: var(--accent-dark);
}

.checkout-success {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 24px;
  border: 1px solid #cbd7c4;
  border-radius: 10px;
  background: #f4f8f1;
}

.checkout-success h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.checkout-success[hidden] {
  display: none;
}

.checkout-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.success-actions {
  display: grid;
  gap: 8px;
}

.success-actions .primary-button,
.success-actions .secondary-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.summary-note {
  font-size: 0.92rem;
}

.empty-cart {
  color: var(--muted);
}

footer {
  margin-top: 46px;
  padding: 34px 0;
  border-top: 0;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
}

.footer-brand .brand-logo {
  width: 118px;
}

footer h4 {
  margin: 0 0 14px;
}

footer p,
footer li {
  font-size: 0.92rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

@keyframes checkout-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .cart-layout,
  .header-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    gap: 22px;
  }

  .header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1240px, calc(100% - 24px));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .site-header.is-menu-open {
    position: relative;
    top: auto;
  }

  .header-main {
    min-height: auto;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .site-header.is-cart-empty .progress-track {
    display: none;
  }

  .site-header.is-cart-empty .purchase-progress {
    display: block;
  }

  .site-header.is-cart-empty .progress-copy {
    display: block;
    margin: 0;
    font-size: 0.82rem;
  }

  .brand-logo {
    width: 76px;
  }

  .purchase-progress {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    padding: 10px 0 4px;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .action-link {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.78rem;
  }

  .action-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 999px;
  }

  .action-button span,
  .account-icon {
    display: none;
  }

  .account-trigger,
  .account-dropdown {
    display: none !important;
  }

  .mobile-menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .mini-cart-dropdown {
    display: none !important;
  }

  .main-nav {
    display: none;
    position: static;
    width: 100%;
  }

  .site-header.is-menu-open .main-nav {
    display: block;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .cart-item-image {
    width: 72px;
    height: 72px;
  }

  .cart-item-price {
    text-align: left;
    grid-column: 2;
    display: grid;
    gap: 10px;
  }

  .cart-summary .cart-item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .cart-summary .cart-item-image {
    width: 76px;
    height: 76px;
  }

  .cart-summary .cart-item-copy {
    grid-column: 2;
  }

  .cart-summary .cart-item-price {
    grid-column: 3;
    justify-items: end;
    text-align: right;
    gap: 8px;
    min-width: 138px;
  }

  .cart-summary .cart-price-breakdown,
  .cart-summary .cart-quantity-block {
    justify-items: end;
  }

  .cart-summary .cart-item-controls {
    justify-self: end;
  }

  .cart-summary .cart-line-total {
    text-align: right;
  }

  .cart-item-controls {
    margin-top: 0;
    justify-self: start;
  }

  .nav-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 4px;
    padding: 8px 0 12px;
  }

  .mobile-account-section {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .mobile-account-section a,
  .mobile-account-section button {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #4e5d50;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-account-section a:hover,
  .mobile-account-section button:hover {
    background: #f5f3ed;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .field-grid,
  .delivery-option {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .phone-field-row {
    grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
  }

  .saved-address-card,
  .saved-address-card-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .saved-address-card {
    align-items: stretch;
  }

  .saved-address-badges {
    justify-content: flex-start;
  }

  .saved-address-use {
    width: 100%;
  }

  .checkout-modal-actions .primary-button,
  .checkout-modal-actions .secondary-button {
    width: 100%;
  }

  .delivery-option b {
    grid-column: 3;
    justify-self: end;
    text-align: right;
  }

  .cart-main,
  .cart-summary,
  .checkout-panel {
    padding: 20px;
  }

  .checkout-panel-heading,
  .checkout-panel-heading-actions,
  .saved-address-helper {
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-autofill-badge {
    width: fit-content;
  }

  .progress-step {
    gap: 5px;
    font-size: 0.72rem;
  }

  .step-icon {
    width: 28px;
    height: 28px;
  }

  .checkout-review-grid {
    grid-template-columns: 1fr;
  }

  .review-card-wide {
    grid-column: auto;
  }

  .review-summary-columns,
  .review-values-two,
  .review-summary-rows,
  .review-product {
    grid-template-columns: 1fr;
  }

  .review-summary-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .review-product {
    align-items: start;
  }

  .review-product-image {
    width: 64px;
    height: 64px;
  }

  .review-product-total {
    white-space: normal;
  }

  .same-address-tooltip {
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    max-width: min(260px, calc(100vw - 40px));
  }

  .review-final-total,
  .review-subtotal-row,
  .free-shipping-progress__copy,
  .checkout-action-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-final-total strong,
  .review-subtotal-row strong {
    text-align: left;
    white-space: normal;
  }

  .free-shipping-progress__copy span {
    white-space: normal;
  }

  .checkout-action-row .summary-button {
    width: 100%;
    min-width: 0;
  }

  .checkout-step-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checkout-nav-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 190px;
  }

  body:has(.site-header.is-menu-open) {
    padding-top: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: #f8f7f4;
    box-shadow: 0 10px 24px rgba(57, 75, 54, 0.08);
  }

  .site-header.is-menu-open {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    box-shadow: none;
  }
}

/* Phase A: clearer checkout grouping without changing submit flow. */
.checkout-step.is-active {
  gap: 18px;
}

.checkout-panel-heading {
  margin-bottom: 2px;
}

.field-grid {
  gap: 14px;
}

.fake-field {
  align-content: center;
}

.fake-field.is-invalid {
  align-content: start;
}

.field-error,
.option-error,
.consent-error {
  margin-top: 6px;
}

.checkout-submit-block {
  gap: 12px;
  margin-top: 22px;
}

.checkout-action-row,
.checkout-step-actions {
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

[data-checkout-submit].summary-button {
  min-height: 54px;
  font-size: 1.04rem;
  box-shadow: 0 12px 26px rgba(36, 55, 42, 0.18);
}

.checkout-nav-button.secondary,
.secondary-button {
  box-shadow: none;
}
