:root {
  --shop-emerald-900: #0f4f46;
  --shop-emerald-800: #0f6657;
  --shop-emerald-700: #0f7665;
  --shop-emerald-100: #d9eee8;
  --shop-emerald-50: #edf7f3;
  --shop-ink: #17221f;
  --shop-muted: #5f6f69;
  --shop-line: #d9e2de;
  --shop-surface: #ffffff;
  --shop-canvas: #f7f6f1;
  --shop-warning: #9f321e;
  --shop-shadow: 0 20px 55px rgba(22, 61, 52, 0.09);
}

.shop-delivery-tracking-card,
.shop-delivery-flow-card,
.shop-delivery-notifications,
.shop-tracking-grant-card {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: var(--shop-surface, #fff);
}

.shop-delivery-tracking-card > header,
.shop-delivery-flow-card > header,
.shop-delivery-quote-summary > header,
.shop-delivery-request-summary > header,
.shop-delivery-notifications li > div,
.shop-delivery-proof-list > div,
.shop-delivery-issue-list > div,
.shop-delivery-timeline li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.shop-delivery-flow-card {
  display: grid;
  gap: 14px;
}

.shop-delivery-flow-card h3,
.shop-delivery-flow-card h4,
.shop-delivery-flow-card p {
  margin-block: 0;
}

.shop-delivery-flow-summary,
.shop-delivery-quote-summary dl,
.shop-delivery-request-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shop-delivery-flow-summary > div,
.shop-delivery-quote-summary dl > div,
.shop-delivery-request-summary dl > div {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.shop-delivery-flow-summary dt,
.shop-delivery-quote-summary dt,
.shop-delivery-request-summary dt {
  color: var(--shop-muted);
  font-size: 0.78rem;
}

.shop-delivery-flow-summary dd,
.shop-delivery-quote-summary dd,
.shop-delivery-request-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: end;
}

.shop-delivery-quote-summary,
.shop-delivery-request-summary,
.shop-delivery-flow-form,
.shop-delivery-flow-state {
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: var(--shop-emerald-50);
}

.shop-delivery-quote-summary > header > div,
.shop-delivery-request-summary > header > div {
  display: grid;
  min-width: 0;
}

.shop-delivery-quote-summary small,
.shop-delivery-request-summary small {
  color: var(--shop-muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.shop-delivery-quote-summary dl,
.shop-delivery-request-summary dl {
  margin-top: 12px;
}

.shop-delivery-flow-form {
  display: grid;
  gap: 12px;
  background: var(--shop-surface);
}

.shop-delivery-condition-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-delivery-condition-checks label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.shop-delivery-condition-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--shop-emerald-700);
}

.shop-delivery-flow-state {
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.shop-delivery-location {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.shop-delivery-location > div {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--shop-soft, #f6f8fb);
}

.shop-delivery-location dt,
.shop-delivery-location dd {
  overflow-wrap: anywhere;
}

.shop-delivery-location dt,
.shop-delivery-muted {
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.shop-delivery-location dd {
  margin: 5px 0 0;
  font-weight: 750;
}

.shop-delivery-timeline,
.shop-delivery-notifications ol {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.shop-delivery-timeline li,
.shop-delivery-notifications li,
.shop-delivery-proof-list > div,
.shop-delivery-issue-list > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-delivery-timeline time,
.shop-delivery-notifications time {
  color: var(--shop-muted);
  font-size: 0.75rem;
}

.shop-delivery-proof-list h4,
.shop-delivery-issue-list h4,
.shop-delivery-notifications h3 {
  margin-bottom: 8px;
}

.shop-delivery-issue-list > div > span {
  display: grid;
  min-inline-size: 0;
  gap: 3px;
}

.shop-delivery-issue-list small,
.shop-delivery-issue-list time {
  color: var(--shop-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.shop-tracking-grant-page {
  width: min(760px, calc(100% - 28px));
  margin: clamp(28px, 8vh, 84px) auto;
}

.shop-tracking-grant-card textarea {
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  font: inherit;
  overflow-wrap: anywhere;
}

.shop-tracking-grant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .shop-delivery-location {
    grid-template-columns: 1fr;
  }

  .shop-delivery-tracking-card > header,
  .shop-delivery-flow-card > header,
  .shop-delivery-quote-summary > header,
  .shop-delivery-request-summary > header,
  .shop-delivery-notifications li > div,
  .shop-delivery-proof-list > div,
  .shop-delivery-issue-list > div,
  .shop-delivery-timeline li {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-delivery-flow-summary > div,
  .shop-delivery-quote-summary dl > div,
  .shop-delivery-request-summary dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .shop-delivery-flow-summary dd,
  .shop-delivery-quote-summary dd,
  .shop-delivery-request-summary dd {
    text-align: start;
  }

  .shop-tracking-grant-actions > * {
    width: 100%;
  }
}

.shop-appmini-page {
  background: var(--shop-canvas);
  color: var(--shop-ink);
}

.shop-appmini-page main {
  min-height: 70vh;
  background: var(--shop-canvas);
}

.shop-onboarding-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 36px 0 104px;
}

.shop-onboarding-hero {
  display: grid;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}

.shop-onboarding-eyebrow,
.shop-onboarding-review header p {
  margin: 0 0 8px;
  color: var(--shop-emerald-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.shop-onboarding-hero h1,
.shop-onboarding-success h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.shop-onboarding-hero > div > p:last-child,
.shop-onboarding-success > p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--shop-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.shop-onboarding-security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 101, 0.22);
  border-radius: 14px;
  background: rgba(237, 247, 243, 0.86);
  color: var(--shop-emerald-900);
}

.shop-onboarding-security-note > span {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--shop-emerald-700);
  box-shadow: 0 0 0 5px rgba(15, 118, 101, 0.12);
}

.shop-onboarding-security-note p,
.shop-onboarding-security-note.compact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.shop-onboarding-alert {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(159, 50, 30, 0.28);
  border-inline-start: 4px solid var(--shop-warning);
  border-radius: 12px;
  background: #fff4f1;
  color: #722617;
}

.shop-onboarding-layout {
  display: grid;
  gap: 18px;
}

.shop-onboarding-progress {
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.shop-onboarding-progress ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(136px, 1fr));
  gap: 8px;
  min-width: 470px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-onboarding-progress button {
  display: flex;
  width: 100%;
  min-height: 58px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--shop-muted);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.shop-onboarding-progress button > span:first-child {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--shop-line);
  border-radius: 50%;
  background: var(--shop-surface);
  color: var(--shop-muted);
  font-weight: 900;
}

.shop-onboarding-progress button > span:last-child {
  display: grid;
  gap: 2px;
}

.shop-onboarding-progress button strong {
  color: var(--shop-ink);
  font-size: 0.9rem;
}

.shop-onboarding-progress button small {
  font-size: 0.72rem;
  line-height: 1.25;
}

.shop-onboarding-progress button[aria-current="step"] {
  border-color: rgba(15, 118, 101, 0.24);
  background: var(--shop-emerald-50);
}

.shop-onboarding-progress button[aria-current="step"] > span:first-child,
.shop-onboarding-progress button.is-complete > span:first-child {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-700);
  color: #ffffff;
}

.shop-onboarding-progress button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shop-onboarding-form {
  min-width: 0;
}

.shop-onboarding-step {
  display: grid;
  gap: 22px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 22px 18px;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shop-shadow);
}

.shop-onboarding--enhanced .shop-onboarding-step[hidden] {
  display: none;
}

.shop-onboarding-step legend {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 4px;
  color: var(--shop-ink);
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.shop-onboarding-step legend > span {
  color: var(--shop-emerald-700);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.shop-onboarding-step-intro {
  margin: -10px 0 0;
  color: var(--shop-muted);
  line-height: 1.65;
}

.shop-onboarding-owner-grid,
.shop-onboarding-field-grid,
.shop-onboarding-module-grid {
  display: grid;
  gap: 12px;
}

.shop-onboarding-choice-card,
.shop-onboarding-module {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  min-height: 96px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: var(--shop-surface);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.shop-onboarding-choice-card:hover,
.shop-onboarding-module:hover {
  border-color: rgba(15, 118, 101, 0.58);
  box-shadow: 0 10px 26px rgba(15, 102, 87, 0.09);
  transform: translateY(-1px);
}

.shop-onboarding-choice-card:has(input:checked),
.shop-onboarding-module:has(input:checked) {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-50);
  box-shadow: inset 0 0 0 1px var(--shop-emerald-700);
}

.shop-onboarding-choice-card.is-disabled {
  background: #f3f4f2;
  cursor: not-allowed;
  opacity: 0.72;
}

.shop-onboarding-choice-card > input,
.shop-onboarding-module > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.shop-onboarding-choice-mark {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #98aaa4;
  border-radius: 50%;
  background: #ffffff;
}

.shop-onboarding-module .shop-onboarding-choice-mark {
  border-radius: 6px;
}

input:checked + .shop-onboarding-choice-mark {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-700);
  box-shadow: inset 0 0 0 5px #ffffff;
}

.shop-onboarding-module input:checked + .shop-onboarding-choice-mark {
  box-shadow: inset 0 0 0 4px #ffffff;
}

.shop-onboarding-choice-copy,
.shop-onboarding-module > span:not(.shop-onboarding-choice-mark) {
  display: grid;
  gap: 6px;
}

.shop-onboarding-choice-copy strong,
.shop-onboarding-module strong {
  font-size: 1rem;
}

.shop-onboarding-choice-copy small,
.shop-onboarding-module small {
  color: var(--shop-muted);
  line-height: 1.5;
}

.shop-onboarding-choice-copy em,
.shop-onboarding-module em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--shop-emerald-100);
  color: var(--shop-emerald-900);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.shop-onboarding-context-note,
.shop-onboarding-section-card,
.shop-onboarding-review {
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: #fbfcfa;
}

.shop-onboarding-context-note {
  padding: 16px;
}

.shop-onboarding-context-note p {
  margin: 6px 0 0;
  color: var(--shop-muted);
  line-height: 1.55;
}

.shop-onboarding-field-grid.two-columns {
  grid-template-columns: 1fr;
}

.shop-onboarding-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--shop-ink);
  font-weight: 800;
}

.shop-onboarding-field > span:first-child {
  font-size: 0.9rem;
}

.shop-onboarding-field input,
.shop-onboarding-field select,
.shop-onboarding-field textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #b8c6c1;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: var(--shop-ink);
  font: inherit;
  font-weight: 500;
}

.shop-onboarding-field textarea {
  min-height: 104px;
  resize: vertical;
}

.shop-onboarding-field input:focus,
.shop-onboarding-field select:focus,
.shop-onboarding-field textarea:focus {
  border-color: var(--shop-emerald-700);
  box-shadow: 0 0 0 3px rgba(15, 118, 101, 0.14);
}

.shop-onboarding-field input:user-invalid,
.shop-onboarding-field select:user-invalid,
.shop-onboarding-field textarea:user-invalid {
  border-color: var(--shop-warning);
}

.shop-onboarding-field small,
.shop-onboarding-tree-select > p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}

.shop-onboarding-input-prefix {
  display: flex;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid #b8c6c1;
  border-radius: 10px;
  background: #f2f5f3;
}

.shop-onboarding-input-prefix:focus-within {
  border-color: var(--shop-emerald-700);
  box-shadow: 0 0 0 3px rgba(15, 118, 101, 0.14);
}

.shop-onboarding-input-prefix > span {
  display: inline-flex;
  align-items: center;
  padding-inline-start: 12px;
  color: var(--shop-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-onboarding-input-prefix input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-onboarding-input-prefix input:focus {
  box-shadow: none;
}

.shop-onboarding-private-note {
  padding-inline-start: 18px;
  color: var(--shop-emerald-900) !important;
  position: relative;
}

.shop-onboarding-private-note::before {
  position: absolute;
  inset-inline-start: 0;
  content: "•";
  color: var(--shop-emerald-700);
  font-size: 1.2rem;
  line-height: 0.7;
}

.shop-onboarding-tree-select,
.shop-onboarding-advanced {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: #ffffff;
}

.shop-onboarding-tree-select summary,
.shop-onboarding-advanced summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  color: var(--shop-ink);
  font-weight: 900;
  cursor: pointer;
}

.shop-onboarding-tree-select > p,
.shop-onboarding-tree-select > .shop-onboarding-tree-list,
.shop-onboarding-advanced > .shop-onboarding-field-grid {
  margin: 0 14px 14px;
}

.shop-onboarding-tree-list {
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid var(--shop-line);
  padding-top: 8px;
}

.shop-onboarding-tree-option {
  display: flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  padding-inline-start: calc(var(--tree-depth) * 14px);
  color: var(--shop-ink);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-onboarding-tree-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--shop-emerald-700);
}

.shop-onboarding-tree-option.is-primary {
  color: var(--shop-muted);
  text-decoration: line-through;
}

.shop-onboarding-section-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.shop-onboarding-section-card > header h2,
.shop-onboarding-review h2 {
  margin: 0;
  font-size: 1.1rem;
}

.shop-onboarding-section-card > header p {
  margin: 6px 0 0;
  color: var(--shop-muted);
  line-height: 1.5;
}

.shop-onboarding-module-grid {
  grid-template-columns: 1fr;
}

.shop-onboarding-module {
  min-height: 86px;
  padding: 14px;
}

.shop-onboarding-module > em {
  grid-column: 2;
}

.shop-onboarding-review {
  overflow: hidden;
  background: var(--shop-emerald-900);
  color: #ffffff;
}

.shop-onboarding-review header {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.shop-onboarding-review header p {
  color: #a8ded2;
}

.shop-onboarding-review dl {
  display: grid;
  margin: 0;
}

.shop-onboarding-review dl > div {
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-onboarding-review dt {
  color: #a8c8c0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-onboarding-review dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.shop-onboarding-review-note {
  margin: 0;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.12);
  color: #cce4de;
  font-size: 0.78rem;
  line-height: 1.5;
}

.shop-onboarding-actions,
.shop-onboarding-success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shop-onboarding-actions.split {
  justify-content: space-between;
}

.shop-onboarding-button {
  display: inline-flex;
  min-height: 46px;
  min-width: 120px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.shop-onboarding-button.primary {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-700);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 101, 0.2);
}

.shop-onboarding-button.primary:hover {
  border-color: var(--shop-emerald-800);
  background: var(--shop-emerald-800);
}

.shop-onboarding-button.secondary {
  border-color: #afbeb9;
  background: #ffffff;
  color: var(--shop-emerald-900);
}

.shop-onboarding-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.shop-onboarding-progress button:focus-visible,
.shop-onboarding-button:focus-visible,
.shop-onboarding-choice-card:focus-within,
.shop-onboarding-module:focus-within,
.shop-onboarding-tree-option:focus-within,
.shop-onboarding-tree-select summary:focus-visible,
.shop-onboarding-advanced summary:focus-visible {
  outline: 3px solid rgba(15, 118, 101, 0.34);
  outline-offset: 2px;
}

.shop-onboarding-js-note {
  margin: 14px 2px 0;
  color: var(--shop-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.shop-onboarding--enhanced .shop-onboarding-js-note {
  display: none;
}

.shop-onboarding-success {
  display: grid;
  width: min(100% - 32px, 720px);
  justify-items: center;
  margin: 0 auto;
  padding: 72px 0 112px;
  text-align: center;
}

.shop-onboarding-success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--shop-emerald-100);
  color: var(--shop-emerald-700);
}

.shop-onboarding-success-mark svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.shop-onboarding-success-details {
  display: grid;
  width: 100%;
  margin: 30px 0 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: #ffffff;
  text-align: start;
}

.shop-onboarding-success-details > div {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-onboarding-success-details > div:last-child {
  border-bottom: 0;
}

.shop-onboarding-success-details dt {
  color: var(--shop-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-onboarding-success-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.shop-onboarding-success-actions {
  width: 100%;
  margin-top: 24px;
  justify-content: center;
}

.shop-onboarding-success .shop-onboarding-security-note.compact {
  margin-top: 22px;
}

@media (min-width: 680px) {
  .shop-onboarding-shell {
    width: min(100% - 48px, 1180px);
    padding-top: 54px;
  }

  .shop-onboarding-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  }

  .shop-onboarding-owner-grid,
  .shop-onboarding-field-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-onboarding-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-onboarding-review dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-onboarding-review dl > div:nth-child(odd) {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
  }

  .shop-onboarding-success-details > div {
    grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 960px) {
  .shop-onboarding-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .shop-onboarding-progress {
    position: sticky;
    top: 92px;
    overflow: visible;
    padding: 0;
  }

  .shop-onboarding-progress ol {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .shop-onboarding-progress button {
    min-height: 74px;
    padding: 10px 12px;
  }

  .shop-onboarding-step {
    padding: 30px;
  }
}

@media (max-width: 520px) {
  .shop-onboarding-actions.sticky-mobile {
    position: sticky;
    z-index: 5;
    bottom: 8px;
    margin: 0 -10px -10px;
    padding: 10px;
    border: 1px solid var(--shop-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(23, 34, 31, 0.18);
    backdrop-filter: blur(12px);
  }

  .shop-onboarding-actions.sticky-mobile .shop-onboarding-button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-onboarding-choice-card,
  .shop-onboarding-module {
    transition: none;
  }
}

/* Phase 5 commerce surfaces ------------------------------------------------ */

.shop-commerce-page {
  --shop-commerce-radius-sm: 12px;
  --shop-commerce-radius: 18px;
  --shop-commerce-radius-lg: 26px;
  --shop-commerce-danger: #a23725;
  --shop-commerce-danger-soft: #fff1ed;
  --shop-commerce-gold: #94691e;
  --shop-commerce-gold-soft: #fbf2dd;
  background: var(--shop-canvas);
}

.shop-commerce-page *,
.shop-commerce-page *::before,
.shop-commerce-page *::after {
  box-sizing: border-box;
}

.shop-commerce-page a {
  text-underline-offset: 0.18em;
}

.shop-commerce-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(15, 118, 101, 0.35);
  outline-offset: 3px;
}

.shop-commerce-shell {
  width: min(100% - 28px, 1200px);
  margin: 0 auto;
  padding: 26px 0 92px;
}

.shop-commerce-hero {
  display: grid;
  gap: 22px;
  padding: 30px 22px;
  border: 1px solid rgba(15, 79, 70, 0.2);
  border-radius: var(--shop-commerce-radius-lg);
  background: var(--shop-emerald-900);
  color: #ffffff;
  box-shadow: var(--shop-shadow);
}

.shop-commerce-hero.compact {
  background: var(--shop-surface);
  color: var(--shop-ink);
}

.shop-commerce-eyebrow {
  margin: 0 0 8px;
  color: var(--shop-emerald-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-commerce-hero:not(.compact) .shop-commerce-eyebrow {
  color: #aee0d4;
}

.shop-commerce-hero h1,
.shop-checkout-heading h1,
.shop-manage-header h1,
.shop-order-success h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.shop-commerce-hero p:last-child,
.shop-checkout-heading > p:last-child,
.shop-manage-header > div > p:last-child {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.shop-commerce-hero.compact p:last-child,
.shop-checkout-heading > p:last-child,
.shop-manage-header > div > p:last-child {
  color: var(--shop-muted);
}

.shop-commerce-hero-actions,
.shop-order-success-actions,
.shop-manage-shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-commerce-button,
.shop-commerce-icon-button,
.shop-commerce-text-button {
  appearance: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.shop-commerce-button {
  padding: 11px 18px;
}

.shop-commerce-button.primary {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-700);
  color: #ffffff;
}

.shop-commerce-hero:not(.compact) .shop-commerce-button.primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--shop-emerald-900);
}

.shop-commerce-button.secondary {
  border-color: var(--shop-line);
  background: var(--shop-surface);
  color: var(--shop-emerald-900);
}

.shop-commerce-hero:not(.compact) .shop-commerce-button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #ffffff;
}

.shop-commerce-button.danger {
  border-color: rgba(162, 55, 37, 0.32);
  background: var(--shop-commerce-danger-soft);
  color: var(--shop-commerce-danger);
}

.shop-commerce-button.compact {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

.shop-commerce-button.full {
  width: 100%;
}

.shop-commerce-button:disabled,
.shop-commerce-button[aria-disabled="true"],
.shop-commerce-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shop-commerce-switcher {
  display: flex;
  gap: 6px;
  margin: 18px 0;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.shop-commerce-switcher a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--shop-muted);
  font-weight: 900;
  text-decoration: none;
}

.shop-commerce-switcher a[aria-current="page"] {
  background: var(--shop-emerald-900);
  color: #ffffff;
}

.shop-commerce-filters {
  display: grid;
  gap: 12px;
  margin: 18px 0 38px;
  padding: 16px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
}

.shop-commerce-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.shop-commerce-field > span,
.shop-commerce-field > label,
.shop-commerce-field.compact label,
.shop-inline-create label > span,
.shop-inventory-adjust label > span,
.shop-customer-note label > span,
.shop-manage-product-actions label > span,
.shop-catalog-editor label > span,
.shop-variant-editor label > span {
  color: var(--shop-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-commerce-field :is(input, select, textarea),
.shop-commerce-field.compact select,
.shop-inline-create :is(input, select, textarea),
.shop-inventory-adjust input,
.shop-customer-note textarea,
.shop-manage-product-actions :is(input, select, textarea),
.shop-catalog-editor :is(input, select, textarea),
.shop-variant-editor :is(input, select, textarea),
.shop-manage-branch-filter select,
.shop-manage-status-filter select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd8d3;
  border-radius: 11px;
  background: #ffffff;
  color: var(--shop-ink);
  font: inherit;
}

.shop-commerce-field textarea,
.shop-customer-note textarea {
  min-height: 96px;
  resize: vertical;
}

.shop-commerce-filter-reset {
  align-self: center;
  color: var(--shop-emerald-800);
  font-size: 0.86rem;
  font-weight: 900;
}

.shop-commerce-section {
  margin-top: 38px;
}

.shop-commerce-section-heading,
.shop-manage-list-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.shop-commerce-section-heading h2,
.shop-manage-list-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  letter-spacing: -0.035em;
}

.shop-commerce-section-heading > a {
  color: var(--shop-emerald-800);
  font-weight: 900;
}

.shop-commerce-count {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--shop-line);
  border-radius: 50%;
  background: var(--shop-surface);
  color: var(--shop-emerald-800);
  font-weight: 900;
}

.shop-marketplace-grid,
.shop-affiliate-preview-grid,
.storefront-product-grid,
.shop-manage-shop-grid,
.shop-customer-grid {
  display: grid;
  gap: 16px;
}

.shop-marketplace-card,
.shop-affiliate-preview-card,
.storefront-product-card,
.shop-manage-shop-card,
.shop-customer-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
  box-shadow: 0 12px 30px rgba(22, 61, 52, 0.06);
}

.shop-marketplace-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.shop-marketplace-card-topline {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-commerce-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.shop-commerce-badge.owner,
.shop-commerce-badge.delivery {
  border-color: rgba(15, 118, 101, 0.2);
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-800);
}

.shop-commerce-badge.pickup,
.shop-commerce-badge.affiliate {
  border-color: rgba(148, 105, 30, 0.22);
  background: var(--shop-commerce-gold-soft);
  color: #76500f;
}

.shop-commerce-badge.neutral {
  border-color: var(--shop-line);
  background: #f5f7f6;
  color: #52625c;
}

.shop-marketplace-monogram,
.storefront-brandmark,
.shop-customer-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(15, 118, 101, 0.16);
  border-radius: 16px;
  background: var(--shop-emerald-100);
  color: var(--shop-emerald-900);
  font-size: 1.35rem;
  font-weight: 900;
}

.shop-marketplace-card-copy {
  min-width: 0;
}

.shop-marketplace-card-copy > p,
.storefront-product-type,
.shop-manage-product-topline small {
  margin: 0 0 4px;
  color: var(--shop-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-marketplace-card h3,
.shop-affiliate-preview-card h3,
.storefront-product-card h4,
.shop-manage-product h3,
.shop-customer-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.shop-marketplace-card h3 a,
.shop-affiliate-preview-card h3 a,
.storefront-product-card h4 a {
  color: var(--shop-ink);
  text-decoration: none;
}

.shop-marketplace-meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.shop-marketplace-meta > div {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: #f6f8f7;
}

.shop-marketplace-meta dt,
.shop-order-success-details dt,
.shop-customer-card dt,
.shop-order-detail dt {
  color: var(--shop-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-marketplace-meta dd,
.shop-order-success-details dd,
.shop-customer-card dd,
.shop-order-detail dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.shop-commerce-card-link {
  display: flex;
  grid-column: 1 / -1;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--shop-line);
  color: var(--shop-emerald-800);
  font-weight: 900;
  text-decoration: none;
}

.shop-affiliate-preview-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
}

.shop-affiliate-preview-card img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.shop-affiliate-preview-card > div {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 16px;
}

.shop-affiliate-preview-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--shop-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-commerce-empty {
  grid-column: 1 / -1;
  padding: 34px 22px;
  border: 1px dashed #b9c9c3;
  border-radius: var(--shop-commerce-radius);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.shop-commerce-empty.compact {
  padding: 18px;
}

.shop-commerce-empty h2,
.shop-commerce-empty h3,
.shop-commerce-empty p {
  margin: 0;
}

.shop-commerce-empty p {
  margin-top: 8px;
  color: var(--shop-muted);
  line-height: 1.6;
}

.shop-commerce-empty .shop-commerce-button {
  margin-top: 18px;
}

.shop-commerce-pagination {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.shop-commerce-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  overflow-x: auto;
  color: var(--shop-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.shop-commerce-breadcrumb a {
  color: var(--shop-emerald-800);
  font-weight: 800;
}

.shop-commerce-alert {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(15, 118, 101, 0.22);
  border-inline-start: 4px solid var(--shop-emerald-700);
  border-radius: var(--shop-commerce-radius-sm);
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  line-height: 1.55;
}

.shop-commerce-alert.error {
  border-color: rgba(162, 55, 37, 0.26);
  border-inline-start-color: var(--shop-commerce-danger);
  background: var(--shop-commerce-danger-soft);
  color: #762719;
}

/* Storefront */

.storefront-hero {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px 20px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius-lg);
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
}

.storefront-brandmark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 2rem;
}

.storefront-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.storefront-identity h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.storefront-identity > p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--shop-muted);
  line-height: 1.7;
}

.storefront-cart-link {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  gap: 8px;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: var(--shop-canvas);
  color: var(--shop-emerald-900);
  font-weight: 900;
  text-decoration: none;
}

.storefront-cart-link strong {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--shop-emerald-700);
  color: #ffffff;
  font-size: 0.72rem;
}

.storefront-branch-strip {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 101, 0.2);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-emerald-50);
}

.storefront-branch-strip h2 {
  margin: 0;
  font-size: 1.15rem;
}

.storefront-branches {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.storefront-branches article {
  display: grid;
  flex: 0 0 min(260px, 82vw);
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 101, 0.18);
  border-radius: 12px;
  background: #ffffff;
}

.storefront-branches span,
.storefront-branches small {
  color: var(--shop-muted);
  font-size: 0.76rem;
}

.storefront-section-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.storefront-section-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: var(--shop-surface);
  color: var(--shop-emerald-900);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.storefront-product-section {
  margin-top: 30px;
  scroll-margin-top: 90px;
}

.storefront-product-section > header {
  margin-bottom: 14px;
}

.storefront-product-section > header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.storefront-product-section > header p {
  margin: 5px 0 0;
  color: var(--shop-muted);
}

.storefront-product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 160px;
}

.storefront-product-media {
  display: grid;
  min-height: 160px;
  place-items: center;
  overflow: hidden;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
}

.storefront-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-product-body {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 16px;
}

.storefront-product-description {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--shop-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.storefront-product-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.storefront-product-footer > strong {
  color: var(--shop-emerald-900);
  font-size: 1.02rem;
}

.shop-commerce-icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--shop-emerald-700);
  color: #ffffff;
  font-size: 1.35rem;
}

.shop-commerce-icon-button.neutral {
  border-color: var(--shop-line);
  background: #ffffff;
  color: var(--shop-ink);
}

.shop-commerce-unavailable {
  color: var(--shop-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.storefront-product-detail {
  display: grid;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius-lg);
  background: var(--shop-surface);
  box-shadow: var(--shop-shadow);
}

.storefront-product-detail-media {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  font-size: 4rem;
  font-weight: 900;
}

.storefront-product-detail-media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
}

.storefront-product-detail-copy {
  min-width: 0;
  padding: 0 20px 24px;
}

.storefront-product-detail-copy > h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -0.04em;
}

.storefront-product-detail-description {
  color: var(--shop-muted);
  line-height: 1.7;
}

.storefront-variant-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.storefront-variant {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fbfcfb;
}

.storefront-variant.unavailable {
  opacity: 0.68;
}

.storefront-variant h2,
.storefront-variant p {
  margin: 0;
}

.storefront-variant p {
  margin: 4px 0 8px;
  color: var(--shop-muted);
  font-size: 0.78rem;
}

.storefront-variant del {
  margin-inline-start: 8px;
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.storefront-add-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.storefront-add-form label {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 900;
}

.storefront-add-form input {
  width: 70px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  font: inherit;
}

/* Cart and checkout */

.shop-checkout-heading {
  margin: 12px 0 26px;
}

.shop-cart-layout,
.shop-checkout-layout {
  display: grid;
  gap: 18px;
}

.shop-cart-items,
.shop-checkout-form-stack {
  display: grid;
  gap: 12px;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
}

.shop-cart-item-monogram {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  font-weight: 900;
}

.shop-cart-item-copy h2,
.shop-cart-item-copy p {
  margin: 0;
}

.shop-cart-item-copy h2 {
  font-size: 0.98rem;
}

.shop-cart-item-copy p,
.shop-cart-item-copy span {
  color: var(--shop-muted);
  font-size: 0.76rem;
}

.shop-cart-quantity {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.shop-cart-quantity > label {
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-quantity-control {
  display: inline-grid;
  grid-template-columns: 36px 46px 36px;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #ffffff;
}

.shop-quantity-control button,
.shop-quantity-control input {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--shop-ink);
  font: inherit;
  text-align: center;
}

.shop-quantity-control button {
  cursor: pointer;
  font-size: 1.15rem;
}

.shop-quantity-control input {
  appearance: textfield;
  padding: 0;
  font-weight: 900;
}

.shop-commerce-text-button {
  min-height: 36px;
  padding: 4px;
  background: transparent;
  color: var(--shop-emerald-800);
  font-size: 0.78rem;
  text-decoration: underline;
}

.shop-cart-line-total {
  grid-row: 1;
  grid-column: 3;
  color: var(--shop-emerald-900);
}

.shop-cart-summary,
.shop-checkout-card,
.shop-order-detail {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
  box-shadow: 0 12px 32px rgba(22, 61, 52, 0.06);
}

.shop-cart-summary > h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.shop-cart-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.shop-cart-summary dl > div,
.shop-cart-summary li {
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.shop-cart-summary dt,
.shop-cart-summary dd {
  margin: 0;
}

.shop-cart-summary dd,
.shop-cart-summary li strong {
  color: var(--shop-emerald-900);
  font-weight: 900;
}

.shop-cart-summary > p {
  margin: 14px 0;
  color: var(--shop-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.shop-cart-summary .shop-commerce-button + .shop-commerce-button {
  margin-top: 8px;
}

.shop-cart-summary ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--shop-line);
  list-style: none;
}

.shop-cart-summary li span {
  color: var(--shop-muted);
  font-size: 0.8rem;
}

.shop-cart-summary dl .total {
  font-size: 1.05rem;
  font-weight: 900;
}

.shop-cart-empty > div {
  color: var(--shop-emerald-700);
  font-size: 3.6rem;
}

.shop-checkout-card {
  margin: 0;
}

.shop-checkout-card legend {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 4px;
  color: var(--shop-ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.shop-checkout-card legend span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--shop-emerald-700);
  color: #ffffff;
  font-size: 0.82rem;
}

.shop-checkout-card > p {
  margin: 4px 0 18px;
  color: var(--shop-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.shop-fulfillment-options,
.shop-pickup-options {
  display: grid;
  gap: 9px;
}

.shop-fulfillment-options label,
.shop-pickup-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  cursor: pointer;
}

.shop-fulfillment-options label:has(input:checked),
.shop-pickup-options label:has(input:checked) {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-50);
}

.shop-fulfillment-options input,
.shop-pickup-options input {
  width: 19px;
  height: 19px;
  accent-color: var(--shop-emerald-700);
}

.shop-fulfillment-options span,
.shop-pickup-options span {
  display: grid;
}

.shop-fulfillment-options small,
.shop-pickup-options small,
.shop-pickup-options em {
  color: var(--shop-muted);
  font-size: 0.74rem;
  font-style: normal;
}

.shop-pickup-options em {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.shop-pickup-options em b {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-800);
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1.2;
}

.shop-pickup-options label.is-unavailable {
  display: none;
}

.shop-delivery-destination[hidden] {
  display: none;
}

.shop-location-button {
  margin-top: 14px;
}

.shop-location-status {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: var(--shop-muted);
  font-size: 0.76rem;
}

.shop-commerce-form-grid {
  display: grid;
  gap: 13px;
}

.shop-commerce-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 15px;
  color: var(--shop-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.shop-commerce-checkbox input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  accent-color: var(--shop-emerald-700);
}

.shop-checkout-privacy {
  display: flex;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(15, 118, 101, 0.22);
  border-radius: var(--shop-commerce-radius-sm);
  background: var(--shop-emerald-50);
}

.shop-checkout-privacy > span {
  color: var(--shop-emerald-700);
}

.shop-checkout-privacy h2,
.shop-checkout-privacy p {
  margin: 0;
}

.shop-checkout-privacy h2 {
  font-size: 0.9rem;
}

.shop-checkout-privacy p {
  margin-top: 4px;
  color: var(--shop-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.shop-order-success {
  display: grid;
  width: min(100% - 28px, 720px);
  justify-items: center;
  margin: 0 auto;
  padding: 64px 0 100px;
  text-align: center;
}

.shop-order-success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--shop-emerald-100);
  color: var(--shop-emerald-800);
  font-size: 2rem;
  font-weight: 900;
}

.shop-order-success > p:not(.shop-commerce-eyebrow, .shop-commerce-alert) {
  max-width: 560px;
  color: var(--shop-muted);
  line-height: 1.7;
}

.shop-order-success-details {
  display: grid;
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: #ffffff;
  text-align: start;
}

.shop-order-success-details > div {
  padding: 13px 16px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-order-success-details > div:last-child {
  border-bottom: 0;
}

/* Merchant shell */

.shop-manage-layout {
  width: min(100% - 20px, 1380px);
  margin: 0 auto;
  padding: 18px 0 86px;
}

.shop-manage-sidebar {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-emerald-900);
  color: #ffffff;
}

.shop-manage-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 4px;
}

.shop-manage-brand .shop-marketplace-monogram {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.shop-manage-brand > div:last-child {
  display: grid;
  min-width: 0;
}

.shop-manage-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-manage-brand span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.shop-manage-sidebar nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.shop-manage-sidebar nav a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.shop-manage-sidebar nav a[aria-current="page"] {
  background: #ffffff;
  color: var(--shop-emerald-900);
}

.shop-manage-sidebar-footer {
  display: flex;
  gap: 12px;
  padding: 4px;
}

.shop-manage-sidebar-footer a {
  color: #b8dfd6;
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-manage-content {
  min-width: 0;
}

.shop-manage-header {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
}

.shop-manage-header h1 {
  font-size: clamp(1.9rem, 7vw, 3rem);
}

.shop-manage-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.shop-manage-stats article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 13px;
  background: var(--shop-surface);
}

.shop-manage-stats span {
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.shop-manage-stats strong {
  overflow: hidden;
  color: var(--shop-emerald-900);
  font-size: 1.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-manage-create-panel,
.shop-manage-details {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 101, 0.2);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-emerald-50);
}

.shop-manage-create-panel > header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shop-manage-create-panel h2,
.shop-manage-create-panel p {
  margin: 0;
}

.shop-manage-create-panel p {
  margin-top: 5px;
  color: var(--shop-muted);
}

.shop-manage-create-panel form {
  display: grid;
  gap: 15px;
}

.shop-manage-details > summary,
.shop-inventory-adjust > summary,
.shop-customer-note > summary,
.shop-manage-product-actions summary {
  color: var(--shop-emerald-800);
  font-weight: 900;
  cursor: pointer;
}

.shop-inline-create {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.shop-inline-create label,
.shop-inventory-adjust label,
.shop-customer-note label,
.shop-manage-product-actions label,
.shop-catalog-editor label,
.shop-variant-editor label {
  display: grid;
  gap: 5px;
}

.shop-section-editors {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.shop-catalog-editor,
.shop-variant-editor {
  border: 1px solid rgba(15, 118, 101, 0.2);
  border-radius: 10px;
  background: #ffffff;
}

.shop-catalog-editor > summary,
.shop-variant-editor > summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  color: var(--shop-emerald-800);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-catalog-editor > summary small,
.shop-variant-editor > summary span {
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-catalog-editor form,
.shop-variant-editor form {
  display: grid;
  gap: 9px;
  margin: 0 10px 10px;
  padding: 11px;
  border-radius: 9px;
  background: #f6f8f7;
}

.shop-manage-list {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
}

.shop-manage-list-heading {
  align-items: start;
}

.shop-manage-list-heading p {
  margin: 5px 0 0;
  color: var(--shop-muted);
  font-size: 0.82rem;
}

.shop-manage-product-list,
.shop-order-list {
  display: grid;
  gap: 10px;
}

.shop-manage-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: 13px;
}

.shop-manage-product-media {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  font-weight: 900;
}

.shop-manage-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-manage-product-copy {
  min-width: 0;
}

.shop-manage-product-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.shop-manage-product-copy > p {
  display: -webkit-box;
  margin: 6px 0;
  overflow: hidden;
  color: var(--shop-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-manage-variant-row {
  display: grid;
  gap: 6px;
}

.shop-manage-variant-row > span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f3f6f5;
  color: var(--shop-muted);
  font-size: 0.7rem;
}

.shop-manage-product-actions {
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
  border-top: 1px solid var(--shop-line);
  padding-top: 10px;
}

.shop-manage-product-actions form,
.shop-inventory-adjust form,
.shop-customer-note form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f6f8f7;
}

.shop-manage-branch-filter,
.shop-manage-status-filter {
  display: grid;
  gap: 6px;
}

.shop-manage-branch-filter label,
.shop-manage-status-filter label {
  font-size: 0.75rem;
  font-weight: 900;
}

.shop-inventory-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.shop-inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.shop-inventory-table th,
.shop-inventory-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--shop-line);
  text-align: start;
  vertical-align: middle;
}

.shop-inventory-table thead th {
  color: var(--shop-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.shop-inventory-table tbody th {
  min-width: 190px;
}

.shop-inventory-table tbody th span {
  display: block;
  margin-top: 3px;
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.shop-stock-value {
  display: inline-grid;
  min-width: 38px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-800);
  font-weight: 900;
}

.shop-stock-value.low {
  background: var(--shop-commerce-danger-soft);
  color: var(--shop-commerce-danger);
}

.shop-order-row {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  color: var(--shop-ink);
  text-decoration: none;
}

.shop-order-row.active {
  border-color: var(--shop-emerald-700);
  background: var(--shop-emerald-50);
}

.shop-order-row > div {
  display: grid;
}

.shop-order-row > div span,
.shop-order-row time,
.shop-order-row > span:not(.shop-commerce-badge) {
  color: var(--shop-muted);
  font-size: 0.74rem;
}

.shop-order-detail {
  margin-bottom: 18px;
}

.shop-order-detail > header,
.shop-order-detail > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.shop-order-detail > header h2 {
  margin: 0;
}

.shop-order-detail-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 16px 0;
  border-block: 1px solid var(--shop-line);
}

.shop-order-detail dl,
.shop-order-detail ul,
.shop-customer-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.shop-order-detail dl > div,
.shop-customer-card dl > div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shop-order-detail ul {
  list-style: none;
}

.shop-order-detail li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
}

.shop-order-transitions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shop-order-history {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: var(--shop-surface);
}

.shop-order-history h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.shop-order-history ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-order-history li {
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--shop-emerald-100);
}

.shop-order-history li > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.shop-order-history time,
.shop-order-history p {
  color: var(--shop-muted);
  font-size: 0.74rem;
}

.shop-order-history p {
  margin: 4px 0 0;
}

.shop-customer-card {
  padding: 16px;
}

.shop-customer-card.active {
  border-color: var(--shop-emerald-700);
  box-shadow: 0 0 0 2px rgba(15, 118, 101, 0.1);
}

.shop-customer-notes {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: var(--shop-surface);
}

.shop-customer-notes > header h2,
.shop-customer-notes > header p {
  margin: 0;
}

.shop-customer-notes > header > div > p:last-child {
  margin-top: 6px;
  color: var(--shop-muted);
}

.shop-customer-notes ol {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.shop-customer-notes li {
  padding: 11px 13px;
  border-inline-start: 3px solid var(--shop-emerald-100);
  background: var(--shop-emerald-50);
}

.shop-customer-notes li p {
  margin: 0 0 5px;
  white-space: pre-wrap;
}

.shop-customer-notes li time,
.shop-customer-notes li.empty {
  color: var(--shop-muted);
  font-size: 0.75rem;
}

.shop-customer-card > header {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 15px;
}

.shop-customer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.shop-customer-card dl {
  padding-block: 13px;
  border-block: 1px solid var(--shop-line);
}

.shop-customer-note {
  margin-top: 13px;
}

.shop-manage-shop-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.shop-manage-shop-card-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shop-manage-shop-card-heading > div:last-child {
  min-width: 0;
}

.shop-manage-shop-card h2,
.shop-manage-shop-card p {
  margin: 5px 0 0;
}

.shop-manage-shop-card p {
  color: var(--shop-muted);
  font-size: 0.78rem;
}

.shop-manage-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-manage-capabilities li {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f6f4;
  color: var(--shop-emerald-800);
  font-size: 0.7rem;
  font-weight: 900;
}

@media (min-width: 620px) {
  .shop-commerce-shell {
    width: min(100% - 48px, 1200px);
    padding-top: 42px;
  }

  .shop-commerce-hero {
    padding: 42px 36px;
  }

  .shop-commerce-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .shop-marketplace-grid,
  .storefront-product-grid,
  .shop-manage-shop-grid,
  .shop-customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-affiliate-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 30px;
  }

  .storefront-branch-strip {
    grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .storefront-product-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

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

  .shop-cart-item {
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
  }

  .shop-cart-item-monogram {
    width: 58px;
    height: 58px;
  }

  .shop-cart-quantity {
    grid-column: auto;
  }

  .shop-cart-line-total {
    grid-row: auto;
    grid-column: auto;
  }

  .shop-commerce-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-order-success-details > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
  }

  .shop-manage-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 26px;
  }

  .shop-manage-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-inline-create {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .shop-manage-product {
    grid-template-columns: 68px minmax(0, 1fr) minmax(130px, 0.25fr);
    align-items: center;
  }

  .shop-manage-product-media {
    width: 68px;
    height: 68px;
  }

  .shop-manage-product-actions {
    grid-column: auto;
    padding: 0;
    border: 0;
  }

  .shop-order-row {
    grid-template-columns: minmax(150px, 1.2fr) auto auto auto auto;
    align-items: center;
  }

  .shop-order-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .shop-commerce-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .shop-commerce-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  }

  .shop-marketplace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storefront-product-detail {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .storefront-product-detail-copy {
    padding: 42px 38px 42px 16px;
  }

  .shop-cart-layout,
  .shop-checkout-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .shop-cart-summary {
    position: sticky;
    top: 92px;
  }

  .shop-manage-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    padding-top: 26px;
  }

  .shop-manage-sidebar {
    position: sticky;
    top: 86px;
    min-height: 560px;
    align-self: start;
    align-content: start;
    margin: 0;
    padding: 16px;
  }

  .shop-manage-sidebar nav {
    display: grid;
    overflow: visible;
  }

  .shop-manage-sidebar-footer {
    display: grid;
    align-self: end;
    margin-top: auto;
  }
}

@media (min-width: 1180px) {
  .shop-marketplace-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .storefront-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-manage-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 619px) {
  .shop-commerce-hero-actions .shop-commerce-button,
  .shop-order-success-actions .shop-commerce-button,
  .shop-manage-shop-card-actions .shop-commerce-button {
    flex: 1 1 100%;
  }

  .shop-inventory-table,
  .shop-inventory-table tbody,
  .shop-inventory-table tr,
  .shop-inventory-table th,
  .shop-inventory-table td {
    display: block;
    width: 100%;
  }

  .shop-inventory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .shop-inventory-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--shop-line);
    border-radius: 12px;
  }

  .shop-inventory-table th,
  .shop-inventory-table td {
    padding: 8px 0;
    border: 0;
  }

  .shop-inventory-table td:not(:last-child) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .shop-inventory-table td[data-label]::before {
    content: attr(data-label);
    color: var(--shop-muted);
    font-size: 0.7rem;
    font-weight: 800;
  }
}

/* Phase 7: branch delivery policy (configuration only) */

.shop-delivery-heading {
  align-items: flex-start;
}

.shop-delivery-boundary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 110, 82, 0.22);
  border-radius: var(--shop-commerce-radius);
  background: #f1fbf7;
}

.shop-delivery-boundary > div:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--shop-emerald-900);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 950;
}

.shop-delivery-boundary h2,
.shop-delivery-boundary p {
  margin: 0;
}

.shop-delivery-boundary h2 {
  font-size: 0.92rem;
}

.shop-delivery-boundary p {
  margin-top: 4px;
  color: var(--shop-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.shop-commerce-alert.warning {
  border-color: rgba(174, 98, 16, 0.28);
  background: #fff8e9;
  color: #7b470f;
}

.shop-delivery-branch-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.shop-delivery-branch-card {
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 46, 37, 0.06);
}

.shop-delivery-branch-card > header {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-delivery-branch-titleline {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.shop-delivery-branch-titleline h2,
.shop-delivery-branch-card > header p {
  margin: 0;
}

.shop-delivery-branch-titleline h2 {
  flex: 1 1 180px;
  color: var(--shop-emerald-900);
  font-size: 1.08rem;
}

.shop-delivery-branch-card > header p {
  margin-top: 4px;
  color: var(--shop-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-delivery-effective {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-delivery-effective span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e6f7ef;
  color: #0f6f50;
  font-size: 0.68rem;
  font-weight: 900;
}

.shop-delivery-effective span.off {
  background: #f1f3f2;
  color: var(--shop-muted);
}

.shop-delivery-zone-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--shop-line);
  background: #fbfcfc;
}

.shop-delivery-zone-strip > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.shop-delivery-zone-strip > div span {
  color: var(--shop-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-delivery-zone-strip > div strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.shop-delivery-zone-strip > div small {
  color: var(--shop-muted);
  font-size: 0.72rem;
}

.shop-delivery-settings-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.shop-delivery-settings-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-delivery-settings-form fieldset > legend {
  padding: 0;
  color: var(--shop-emerald-900);
  font-size: 0.9rem;
  font-weight: 950;
}

.shop-delivery-settings-form fieldset > p,
.shop-delivery-settings-form fieldset > small {
  display: block;
  margin: 4px 0 0;
  color: var(--shop-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.shop-delivery-method-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.shop-delivery-method-option,
.shop-delivery-auto-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}

.shop-delivery-method-option:has(input:checked),
.shop-delivery-auto-option:has(input:checked) {
  border-color: rgba(21, 110, 82, 0.42);
  background: #f2fbf7;
  box-shadow: inset 3px 0 0 var(--shop-emerald-700);
}

.shop-delivery-method-option input,
.shop-delivery-auto-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--shop-emerald-700);
}

.shop-delivery-method-option > span,
.shop-delivery-auto-option > span {
  display: grid;
  gap: 3px;
}

.shop-delivery-method-option strong,
.shop-delivery-auto-option strong {
  font-size: 0.82rem;
}

.shop-delivery-method-option small,
.shop-delivery-auto-option small,
.shop-delivery-all-off-note {
  color: var(--shop-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.shop-delivery-all-off-note {
  display: block;
  margin-top: 8px;
}

.shop-delivery-policy-grid,
.shop-delivery-share-grid {
  display: grid;
  gap: 10px;
}

.shop-delivery-percent-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 9px;
  background: #ffffff;
}

.shop-commerce-field .shop-delivery-percent-input input {
  border: 0;
  border-radius: 0;
}

.shop-delivery-percent-input > span {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--shop-line);
  background: #f4f7f6;
  color: var(--shop-muted);
  font-weight: 900;
}

.shop-delivery-settings-form input:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.shop-delivery-settings-form > footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--shop-line);
}

.shop-delivery-settings-form > footer > small {
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (min-width: 680px) {
  .shop-delivery-branch-card > header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .shop-delivery-effective {
    justify-content: flex-end;
  }

  .shop-delivery-method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-delivery-policy-grid,
  .shop-delivery-share-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .shop-delivery-zone-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-delivery-settings-form > footer .shop-commerce-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-commerce-page *,
  .shop-commerce-page *::before,
  .shop-commerce-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phase 6: server-rendered Shop accounting and reconciliation. */
.shop-accounting-header {
  align-items: start;
}

.shop-accounting-as-of {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: var(--shop-surface);
  color: var(--shop-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.shop-accounting-as-of span {
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.shop-accounting-as-of time {
  color: var(--shop-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.shop-accounting-boundary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(15, 118, 101, 0.28);
  border-inline-start: 4px solid var(--shop-emerald-700);
  border-radius: 14px;
  background: var(--shop-emerald-50);
}

.shop-accounting-boundary > div:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--shop-emerald-900);
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 900;
}

.shop-accounting-boundary h2,
.shop-accounting-boundary p {
  margin: 0;
}

.shop-accounting-boundary h2 {
  color: var(--shop-emerald-900);
  font-size: 0.96rem;
}

.shop-accounting-boundary p {
  margin-top: 4px;
  color: #355a52;
  font-size: 0.84rem;
  line-height: 1.55;
}

.shop-accounting-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: var(--shop-surface);
}

.shop-accounting-filter label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--shop-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.shop-accounting-filter select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #b8c6c1;
  border-radius: 9px;
  background: #ffffff;
  color: var(--shop-ink);
  font: inherit;
  font-size: 0.88rem;
}

.shop-accounting-filter select:focus-visible,
.shop-accounting-page a:focus-visible,
.shop-accounting-page summary:focus-visible {
  outline: 3px solid rgba(15, 118, 101, 0.24);
  outline-offset: 2px;
}

.shop-accounting-summary,
.shop-accounting-actions,
.shop-accounting-detail,
.shop-accounting-ledger,
.shop-accounting-statements {
  margin-bottom: 18px;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: var(--shop-surface);
}

.shop-accounting-section-heading {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-accounting-section-heading h2,
.shop-accounting-section-heading p {
  margin: 0;
}

.shop-accounting-section-heading h2 {
  font-size: 1.15rem;
}

.shop-accounting-section-heading > p,
.shop-accounting-section-heading > div > p:not(.shop-commerce-eyebrow) {
  color: var(--shop-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.shop-accounting-currency-grid,
.shop-accounting-action-grid,
.shop-accounting-statement-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.shop-accounting-currency-card {
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fbfcfa;
}

.shop-accounting-currency-card.is-selected {
  border-color: var(--shop-emerald-700);
  box-shadow: inset 0 0 0 1px var(--shop-emerald-700);
}

.shop-accounting-currency-card > header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-accounting-currency-card > header span {
  color: var(--shop-emerald-900);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.shop-accounting-currency-card > header small {
  color: var(--shop-muted);
  font-weight: 700;
}

.shop-accounting-net {
  display: grid;
  gap: 6px;
  padding: 20px 15px;
  background: var(--shop-emerald-900);
  color: #ffffff;
}

.shop-accounting-net span,
.shop-accounting-statement-net span {
  color: #bfe2d9;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-accounting-net strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.shop-accounting-reconciliation-list,
.shop-accounting-statement-card dl {
  margin: 0;
  padding: 10px 15px 14px;
}

.shop-accounting-reconciliation-list > div,
.shop-accounting-statement-card dl > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e8eeeb;
}

.shop-accounting-reconciliation-list > div:last-child,
.shop-accounting-statement-card dl > div:last-child {
  border-bottom: 0;
}

.shop-accounting-reconciliation-list dt,
.shop-accounting-statement-card dt {
  color: var(--shop-muted);
  font-size: 0.79rem;
  line-height: 1.4;
}

.shop-accounting-reconciliation-list dd,
.shop-accounting-statement-card dd {
  margin: 0;
  color: var(--shop-ink);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: end;
}

.shop-accounting-reconciliation-list dd.positive {
  color: var(--shop-emerald-800);
}

.shop-accounting-reconciliation-list dd.negative {
  color: var(--shop-warning);
}

.shop-accounting-component-counts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0 15px 14px;
}

.shop-accounting-component-counts span {
  padding: 5px 8px;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--shop-muted);
  font-size: 0.69rem;
  font-weight: 850;
}

.shop-accounting-empty {
  margin-bottom: 18px;
}

.shop-accounting-action-card {
  min-width: 0;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: #fbfcfa;
}

.shop-accounting-action-card > summary {
  padding: 15px;
  color: var(--shop-emerald-900);
  font-weight: 900;
  cursor: pointer;
}

.shop-accounting-action-card > form {
  display: grid;
  gap: 16px;
  padding: 0 15px 15px;
  border-top: 1px solid var(--shop-line);
}

.shop-accounting-action-card > form > .shop-commerce-form-grid {
  padding-top: 15px;
}

.shop-accounting-lines {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--shop-line);
  border-radius: 11px;
}

.shop-accounting-lines legend {
  padding: 0 6px;
  color: var(--shop-ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.shop-accounting-line {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e1e8e4;
  border-radius: 10px;
  background: #ffffff;
}

.shop-accounting-line > strong {
  color: var(--shop-emerald-900);
  font-size: 0.78rem;
}

.shop-accounting-line label,
.shop-accounting-void label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.shop-accounting-line input,
.shop-accounting-line select,
.shop-accounting-void input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #b8c6c1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--shop-ink);
  font: inherit;
  font-size: 0.84rem;
}

.shop-accounting-form-note,
.shop-accounting-paid-note {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.shop-accounting-detail > header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-accounting-detail h2,
.shop-accounting-detail p {
  margin: 0;
}

.shop-accounting-detail h2 {
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.shop-accounting-detail-meta {
  display: grid;
  margin: 0;
  padding: 10px 18px 16px;
}

.shop-accounting-detail-meta > div {
  display: grid;
  gap: 3px;
  padding: 8px 0;
}

.shop-accounting-detail-meta dt {
  color: var(--shop-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.shop-accounting-detail-meta dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.shop-accounting-refund {
  margin: 0 18px 18px;
  padding: 12px;
  border: 1px solid rgba(159, 50, 30, 0.24);
  border-radius: 11px;
  background: #fff7f4;
}

.shop-accounting-refund > summary {
  color: var(--shop-warning);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-accounting-refund > form {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.shop-accounting-refund p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.shop-accounting-refund label {
  display: grid;
  gap: 6px;
  color: var(--shop-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.shop-accounting-refund input,
.shop-accounting-refund textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #b8c6c1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--shop-ink);
  font: inherit;
  resize: vertical;
}

.shop-accounting-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.shop-accounting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.shop-accounting-table th,
.shop-accounting-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--shop-line);
  text-align: start;
  vertical-align: middle;
}

.shop-accounting-table thead th {
  background: #f2f6f4;
  color: var(--shop-muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.shop-accounting-table tbody th,
.shop-accounting-table tbody td:nth-last-child(-n + 2) {
  font-variant-numeric: tabular-nums;
}

.shop-accounting-table tbody th {
  color: var(--shop-ink);
}

.shop-accounting-table tbody a {
  color: var(--shop-emerald-800);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.shop-accounting-table tr.is-selected {
  background: var(--shop-emerald-50);
}

.shop-accounting-statement-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fbfcfa;
}

.shop-accounting-statement-detail {
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--shop-emerald-700);
  border-radius: 13px;
  background: #ffffff;
}

.shop-accounting-statement-detail > header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-accounting-statement-detail h3,
.shop-accounting-statement-detail p {
  margin: 0;
}

.shop-accounting-statement-detail h3 {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.shop-accounting-statement-detail-summary {
  display: grid;
  gap: 1px;
  background: var(--shop-line);
}

.shop-accounting-statement-detail-summary p {
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  background: #fbfcfa;
}

.shop-accounting-statement-detail-summary span {
  color: var(--shop-muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.shop-accounting-statement-detail-summary strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.shop-accounting-statement-card.is-selected {
  border-color: var(--shop-emerald-700);
  box-shadow: inset 0 0 0 1px var(--shop-emerald-700);
}

.shop-accounting-statement-card > header {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
  padding: 14px;
}

.shop-accounting-statement-card > header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.shop-accounting-statement-card > header > div span {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.shop-accounting-statement-card > header > div strong {
  color: var(--shop-muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

.shop-accounting-period {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--shop-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.shop-accounting-statement-net {
  display: grid;
  gap: 5px;
  padding: 16px 14px;
  background: var(--shop-emerald-900);
  color: #ffffff;
}

.shop-accounting-statement-net strong {
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.shop-accounting-statement-card > footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: start;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--shop-line);
}

.shop-accounting-statement-card > footer form {
  margin: 0;
}

.shop-accounting-void {
  flex: 1 1 100%;
  padding: 9px 10px;
  border: 1px solid rgba(159, 50, 30, 0.24);
  border-radius: 9px;
  background: #fff7f4;
}

.shop-accounting-void summary {
  color: var(--shop-warning);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-accounting-void form {
  display: grid;
  gap: 8px;
  padding-top: 9px;
}

.shop-accounting-paid-note {
  padding: 0 14px 16px;
}

@media (min-width: 620px) {
  .shop-accounting-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .shop-accounting-currency-grid,
  .shop-accounting-action-grid,
  .shop-accounting-statement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-accounting-section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
    align-items: end;
  }

  .shop-accounting-action-card > form {
    min-height: 100%;
  }

  .shop-accounting-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-accounting-line > strong {
    grid-column: 1 / -1;
  }

  .shop-accounting-detail-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-accounting-statement-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .shop-accounting-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  }

  .shop-accounting-currency-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-accounting-statement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 619px) {
  .shop-accounting-table,
  .shop-accounting-table tbody,
  .shop-accounting-table tr,
  .shop-accounting-table th,
  .shop-accounting-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .shop-accounting-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

  .shop-accounting-table tr {
    margin: 10px;
    width: calc(100% - 20px);
    border: 1px solid var(--shop-line);
    border-radius: 10px;
  }

  .shop-accounting-table th,
  .shop-accounting-table td {
    padding: 9px 11px;
    border: 0;
  }

  .shop-accounting-table td[data-label] {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    text-align: end;
  }

  .shop-accounting-table td[data-label]::before {
    content: attr(data-label);
    color: var(--shop-muted);
    font-size: 0.69rem;
    font-weight: 850;
    text-align: start;
  }
}

/* Timeblock V2 Shop management overview (A9) */
.shop-manage-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.shop-manage-sidebar-footer .shop-manage-nav-icon {
  width: 16px;
  height: 16px;
}

.shop-manage-v2 .shop-manage-sidebar {
  box-shadow: 0 18px 45px rgba(6, 67, 56, 0.14);
}

.shop-manage-v2-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(197, 155, 61, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f4f8f4 100%);
}

.shop-manage-v2-hero h1 {
  color: var(--shop-emerald-900);
  letter-spacing: -0.035em;
}

.shop-manage-v2-stats article {
  min-height: 126px;
  align-content: start;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(6, 67, 56, 0.07);
}

.shop-manage-v2-stats small {
  color: var(--shop-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.shop-manage-v2-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.shop-manage-v2-panel {
  padding: 18px;
  box-shadow: 0 12px 32px rgba(6, 67, 56, 0.06);
}

.shop-manage-v2-panel .shop-manage-list-heading {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shop-manage-v2-panel .shop-manage-list-heading h2 {
  margin: 3px 0 0;
  color: var(--shop-emerald-900);
}

.shop-manage-v2-panel .shop-manage-list-heading > a {
  color: var(--shop-emerald-700);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.shop-manage-v2-rows {
  display: grid;
}

.shop-manage-v2-rows > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--shop-line);
  color: var(--shop-ink);
}

.shop-manage-v2-rows > a:first-child {
  border-top: 0;
}

.shop-manage-v2-rows > a:hover strong {
  color: var(--shop-emerald-700);
}

.shop-manage-v2-rows > a > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.shop-manage-v2-rows strong,
.shop-manage-v2-rows small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-manage-v2-rows small {
  color: var(--shop-muted);
  font-size: 0.73rem;
}

.shop-manage-v2-rows .shop-manage-product-media {
  width: 48px;
  height: 48px;
}

.shop-manage-v2-order-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--shop-emerald-50);
  color: var(--shop-emerald-900);
  font-weight: 900;
}

.shop-manage-v2-actions {
  padding: 20px;
  border: 1px solid var(--shop-line);
  border-radius: var(--shop-commerce-radius);
  background: #ffffff;
}

.shop-manage-v2-actions h2 {
  margin: 3px 0 16px;
  color: var(--shop-emerald-900);
}

.shop-manage-v2-actions > div {
  display: grid;
  gap: 10px;
}

.shop-manage-v2-actions a {
  display: grid;
  gap: 5px;
  min-height: 100px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #f9faf7;
  color: var(--shop-ink);
}

.shop-manage-v2-actions a:hover {
  border-color: rgba(15, 118, 101, 0.45);
  background: var(--shop-emerald-50);
}

.shop-manage-v2-actions strong {
  color: var(--shop-emerald-900);
}

.shop-manage-v2-actions span {
  color: var(--shop-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .shop-manage-v2-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-manage-v2-actions > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .shop-manage-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-manage-v2-actions > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .shop-manage-v2 {
    width: min(100% - 16px, 1380px);
    padding-top: 10px;
  }

  .shop-manage-v2 .shop-manage-sidebar {
    position: sticky;
    top: 72px;
    z-index: 15;
    margin-inline: 0;
    border-radius: 16px;
  }

  .shop-manage-v2 .shop-manage-brand,
  .shop-manage-v2 .shop-manage-sidebar-footer {
    display: none;
  }

  .shop-manage-v2 .shop-manage-sidebar nav {
    padding-bottom: 2px;
  }

  .shop-manage-v2 .shop-manage-sidebar nav a {
    min-height: 44px;
    padding-inline: 11px;
  }

  .shop-manage-v2-hero {
    padding: 20px 16px;
  }

  .shop-manage-v2-hero .shop-commerce-hero-actions {
    width: 100%;
  }

  .shop-manage-v2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-manage-v2-stats article {
    min-height: 112px;
    padding: 14px;
  }

  .shop-manage-v2-panel,
  .shop-manage-v2-actions {
    padding: 15px;
  }
}

/* Timeblock V2 / A9 locked Shop marketplace */
.shop-v2-page {
  --shop-v2-green: #0f5c4f;
  --shop-v2-green-deep: #08463d;
  --shop-v2-green-soft: #edf6f2;
  --shop-v2-gold: #c9962d;
  --shop-v2-ink: #15201d;
  --shop-v2-muted: #66726e;
  --shop-v2-line: #dce4e0;
  --shop-v2-canvas: #f7f8f5;
  background: var(--shop-v2-canvas);
}

.shop-v2-page main {
  background: var(--shop-v2-canvas);
}

.tbv2-line-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}

.shop-v2-marketplace {
  width: min(calc(100% - 32px), 1440px);
  margin: 0 auto;
  padding: 112px 0 86px;
  color: var(--shop-v2-ink);
}

.shop-v2-toolbar {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 30px;
  border: 1px solid var(--shop-v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(8, 70, 61, 0.07);
}

.shop-v2-toolbar-copy {
  min-width: 0;
}

.shop-v2-toolbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.shop-v2-toolbar-copy > p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--shop-v2-muted);
  line-height: 1.65;
}

.shop-v2-toolbar-actions,
.shop-v2-icon-action,
.shop-v2-toolbar-actions .shop-commerce-button {
  display: flex;
  gap: 9px;
  align-items: center;
}

.shop-v2-toolbar-actions {
  flex: 0 0 auto;
}

.shop-v2-icon-action {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--shop-v2-line);
  border-radius: 12px;
  background: #fff;
  color: var(--shop-v2-green-deep);
  font-weight: 850;
  text-decoration: none;
}

.shop-v2-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(760px, 100%);
  min-height: 52px;
  margin: 20px auto 14px;
  padding: 5px 5px 5px 16px;
  border: 1px solid #cdd9d4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 70, 61, 0.06);
}

.shop-v2-search label {
  display: grid;
  color: var(--shop-v2-green);
}

.shop-v2-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--shop-v2-ink);
  font: inherit;
}

.shop-v2-search button {
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--shop-v2-green-deep);
  color: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.shop-v2-owner-tabs,
.shop-v2-category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.shop-v2-owner-tabs {
  justify-content: center;
  padding: 8px 0 16px;
}

.shop-v2-owner-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 7px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--shop-v2-muted);
  font-weight: 850;
  text-decoration: none;
}

.shop-v2-owner-tabs a[aria-current="page"] {
  border-color: rgba(15, 92, 79, 0.18);
  background: var(--shop-v2-green-deep);
  color: #fff;
}

.shop-v2-category-rail {
  margin: 0 0 22px;
  padding: 12px 2px 8px;
  border-top: 1px solid var(--shop-v2-line);
  border-bottom: 1px solid var(--shop-v2-line);
}

.shop-v2-category-rail a {
  display: grid;
  flex: 0 0 96px;
  min-height: 72px;
  gap: 6px;
  place-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--shop-v2-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.shop-v2-category-rail a[aria-current="page"] {
  border-color: rgba(15, 92, 79, 0.18);
  background: var(--shop-v2-green-soft);
  color: var(--shop-v2-green-deep);
}

.shop-v2-category-rail .tbv2-line-icon,
.shop-v2-category-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--shop-v2-green);
  font-size: 1rem;
  font-weight: 900;
}

.shop-v2-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.shop-v2-filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--shop-v2-line);
  border-radius: 16px;
  background: #fff;
}

.shop-v2-filter-panel h2,
.shop-v2-results-heading h2,
.shop-v2-partner-rail h2 {
  margin: 0;
  color: var(--shop-v2-green-deep);
  letter-spacing: -0.025em;
}

.shop-v2-filter-panel form {
  display: grid;
  gap: 14px;
}

.shop-v2-results {
  min-width: 0;
}

.shop-v2-results-heading {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.shop-v2-results-heading p:last-child {
  margin: 7px 0 0;
  color: var(--shop-v2-muted);
}

.shop-v2-results-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

.shop-v2-results-tools > span,
.shop-v2-results-tools button {
  padding: 8px 11px;
  border: 1px solid var(--shop-v2-line);
  border-radius: 999px;
  background: #fff;
  color: var(--shop-v2-green-deep);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.shop-v2-results-tools button {
  display: none;
  gap: 6px;
  align-items: center;
  font: inherit;
  cursor: pointer;
}

.shop-v2-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-v2-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-v2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 70, 61, 0.055);
}

.shop-v2-product-owner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
}

.shop-v2-owner-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--shop-v2-green-deep);
  color: #fff;
  font-weight: 900;
}

.shop-v2-product-owner > div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.shop-v2-product-owner strong,
.shop-v2-product-owner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-v2-product-owner > div span {
  color: var(--shop-v2-muted);
  font-size: 0.72rem;
}

.shop-v2-product-owner .shop-commerce-badge {
  max-width: 90px;
}

.shop-v2-product-media {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: var(--shop-v2-green-soft);
  color: var(--shop-v2-green);
  text-decoration: none;
}

.shop-v2-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.shop-v2-product-media:hover img,
.shop-v2-product-media:focus-visible img {
  transform: scale(1.025);
}

.shop-v2-product-media .tbv2-line-icon {
  width: 40px;
  height: 40px;
}

.shop-v2-product-media span {
  margin-top: -28px;
  color: var(--shop-v2-muted);
  font-size: 0.72rem;
}

.shop-v2-product-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.shop-v2-product-kicker {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--shop-v2-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.shop-v2-product-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.shop-v2-product-body h3 a {
  color: var(--shop-v2-ink);
  text-decoration: none;
}

.shop-v2-product-body > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--shop-v2-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-v2-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  margin-top: auto;
}

.shop-v2-price-row strong {
  color: var(--shop-v2-green-deep);
  font-size: 1.18rem;
}

.shop-v2-price-row del {
  color: var(--shop-v2-muted);
  font-size: 0.75rem;
}

.shop-v2-price-row .is-available {
  margin-inline-start: auto;
  color: var(--shop-v2-green);
  font-size: 0.72rem;
  font-weight: 850;
}

.shop-v2-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shop-v2-product-actions form,
.shop-v2-product-actions .shop-commerce-button {
  width: 100%;
}

.shop-v2-product-actions .shop-commerce-button {
  min-height: 40px;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.shop-v2-store-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--shop-v2-line);
  color: var(--shop-v2-green-deep);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.shop-v2-state {
  display: flex;
  grid-column: 1 / -1;
  min-height: 180px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px dashed #b8c8c1;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.shop-v2-state[hidden] {
  display: none;
}

.shop-v2-state > .tbv2-line-icon {
  width: 42px;
  height: 42px;
  color: var(--shop-v2-green);
}

.shop-v2-state h3,
.shop-v2-state p {
  margin: 0;
}

.shop-v2-state p {
  margin-top: 6px;
  color: var(--shop-v2-muted);
}

.shop-v2-state .shop-commerce-button {
  margin-top: 14px;
}

.shop-v2-state.is-error {
  min-height: 120px;
  margin-bottom: 14px;
  border-style: solid;
  border-color: #e4b8ae;
  background: #fff7f5;
}

.shop-v2-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #d8e7e1;
  border-top-color: var(--shop-v2-green);
  border-radius: 50%;
  animation: shop-v2-spin 800ms linear infinite;
}

.shop-v2-partial-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e7d49f;
  border-radius: 10px;
  background: #fff9e9;
  color: #77571a;
  font-size: 0.78rem;
}

.shop-v2-partner-rail {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--shop-v2-line);
  border-radius: 18px;
  background: #fff;
}

.shop-v2-partner-rail > header {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shop-v2-partner-rail > header > a {
  color: var(--shop-v2-green-deep);
  font-weight: 850;
}

.shop-v2-partner-rail > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.shop-v2-partner-rail article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-v2-line);
  border-radius: 12px;
}

.shop-v2-partner-rail article img,
.shop-v2-partner-placeholder {
  width: 76px;
  height: 82px;
  object-fit: cover;
}

.shop-v2-partner-placeholder {
  display: grid;
  place-items: center;
  background: var(--shop-v2-green-soft);
  color: var(--shop-v2-green);
}

.shop-v2-partner-rail article > div {
  min-width: 0;
  padding: 10px;
}

.shop-v2-partner-rail article span {
  color: var(--shop-v2-gold);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-v2-partner-rail h3 {
  margin: 5px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.shop-v2-partner-rail h3 a {
  color: var(--shop-v2-ink);
  text-decoration: none;
}

.shop-v2-assurance {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 16px;
  border-top: 1px solid var(--shop-v2-line);
  color: var(--shop-v2-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.shop-v2-assurance span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

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

@media (max-width: 1180px) {
  .shop-v2-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-v2-partner-rail > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .shop-v2-marketplace {
    width: min(calc(100% - 24px), 720px);
    padding-top: 112px;
  }

  .shop-v2-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .shop-v2-toolbar-actions > * {
    flex: 1 1 0;
    justify-content: center;
  }

  .shop-v2-layout {
    grid-template-columns: 1fr;
  }

  .shop-v2-filter-panel {
    position: static;
    display: none;
    order: 2;
  }

  .shop-v2-filter-panel.is-open {
    display: grid;
  }

  .shop-v2-results {
    order: 1;
  }

  .shop-v2-results-tools button {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .shop-v2-marketplace {
    width: 100%;
    padding: 112px 14px 74px;
  }

  .shop-v2-toolbar {
    padding: 18px;
    border-radius: 16px;
  }

  .shop-v2-toolbar h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .shop-v2-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-v2-toolbar-actions > * {
    min-width: 0;
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .shop-v2-search {
    margin-top: 14px;
  }

  .shop-v2-search button {
    padding-inline: 12px;
    font-size: 0.75rem;
  }

  .shop-v2-owner-tabs {
    justify-content: flex-start;
  }

  .shop-v2-category-rail {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .shop-v2-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-v2-results-tools {
    width: 100%;
    justify-content: space-between;
  }

  .shop-v2-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-v2-product-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .shop-v2-product-owner {
    grid-column: 1 / -1;
    padding: 11px 12px;
  }

  .shop-v2-product-owner .shop-commerce-badge {
    display: none;
  }

  .shop-v2-product-media {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .shop-v2-product-body {
    gap: 8px;
    padding: 12px;
  }

  .shop-v2-product-kicker > span:last-child,
  .shop-v2-product-body > p,
  .shop-v2-store-link {
    display: none;
  }

  .shop-v2-price-row .is-available {
    width: 100%;
    margin: 0;
  }

  .shop-v2-product-actions {
    grid-template-columns: 1fr;
  }

  .shop-v2-product-actions > a {
    display: none;
  }

  .shop-v2-partner-rail {
    padding: 16px;
  }

  .shop-v2-partner-rail > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-v2-partner-rail > div {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .shop-v2-partner-rail article {
    flex: 0 0 245px;
    scroll-snap-align: start;
  }

  .shop-v2-assurance {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-v2-product-media img {
    transition: none;
  }

  .shop-v2-spinner {
    animation: none;
  }
}
