.sw-shop-locked { overflow: hidden; }
.sw-shop-dialog, .sw-shop-toast {
  --sw-paper: #f7f4ec;
  --sw-ink: #22241e;
  --sw-yellow: #ffc936;
  --sw-muted: #5f6156;
  --sw-line: #d7d5c7;
  color: var(--sw-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.sw-shop-dialog, .sw-shop-dialog *, .sw-shop-toast, .sw-shop-toast * { box-sizing: border-box; }
.sw-shop-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 490px);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--sw-ink);
  background: var(--sw-paper);
  overscroll-behavior: contain;
  overflow: auto;
  color-scheme: light;
}
.sw-shop-dialog[open] { display: flex; flex-direction: column; }
.sw-shop-dialog::backdrop { background: rgb(21 22 18 / 56%); }
.sw-shop-dialog :where(h2, h3, p, dl, dd, ul) { margin: 0; }
.sw-shop-dialog button, .sw-shop-toast button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
}
.sw-shop-dialog button:focus-visible, .sw-shop-toast button:focus-visible {
  outline: 3px solid #936300;
  outline-offset: 3px;
}
.sw-shop-dialog h2:focus { outline: 0; }
.sw-shop-icon { width: 21px; height: 21px; flex: none; }
.sw-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--sw-ink);
}
.sw-shop-dialog h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.16;
}
.sw-shop-dialog .sw-shop-kicker {
  margin: 0 0 9px;
  color: var(--sw-muted);
  font: 700 11px/1.3 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.sw-shop-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--sw-ink);
  border-radius: 50%;
  background: var(--sw-paper);
  flex: none;
}
.sw-shop-body {
  flex: 1 1 auto;
  min-height: 50px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px;
}
.sw-shop-dialog .sw-shop-count-line { margin: 0 0 4px; color: var(--sw-muted); font-size: 13px; font-weight: 650; }
.sw-shop-list, .sw-shop-review-list { list-style: none; padding: 0; }
.sw-shop-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sw-line);
}
.sw-shop-thumb, .sw-shop-review-list img {
  display: block;
  object-fit: cover;
  background: #e4dfd3;
  border-radius: 3px;
}
.sw-shop-thumb { width: 100%; height: auto; aspect-ratio: 1; }
.sw-shop-remove, .sw-shop-back {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
}
.sw-shop-item-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.sw-shop-item-info strong { font-weight: 750; line-height: 1.4; }
.sw-shop-item-info p, .sw-shop-review-list small { color: var(--sw-muted); font-size: 12px; overflow-wrap: anywhere; }
.sw-shop-item-info p { margin: 3px 0 9px; }
.sw-shop-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.sw-shop-dialog .sw-shop-edit-notice { padding: 8px 12px; margin: 0 0 12px; background: #fff2c7; color: var(--sw-ink); font-size: 14px; }
.sw-shop-stepper { display: inline-flex; align-items: center; border: 1px solid #b7b7a7; border-radius: 3px; }
.sw-shop-stepper button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  width: 34px;
  height: 32px;
  padding: 0;
}
.sw-shop-stepper button:disabled { opacity: .28; cursor: default; }
.sw-shop-stepper .sw-shop-icon { width: 14px; height: 14px; }
.sw-shop-stepper span { min-width: 20px; text-align: center; font: 700 13px/1.2 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.sw-shop-item-end { display: flex; align-self: stretch; align-items: flex-end; flex-direction: column; justify-content: space-between; gap: 9px; }
.sw-shop-item-end span { font-size: 14px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sw-shop-dialog .sw-shop-remove { padding: 4px 0; color: var(--sw-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.sw-shop-foot {
  flex: none;
  padding: 18px 28px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--sw-ink);
}
.sw-shop-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sw-shop-total strong { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sw-shop-dialog .sw-shop-note { margin: 7px 0 0; color: var(--sw-muted); font-size: 13px; line-height: 1.55; }
.sw-shop-primary {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--sw-ink);
  border-radius: 4px;
  background: var(--sw-yellow);
  font-weight: 750 !important;
}
.sw-shop-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 28px 80px;
  text-align: center;
}
.sw-shop-empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 24px; border: 1px solid var(--sw-ink); border-radius: 50%; background: var(--sw-yellow); }
.sw-shop-empty-icon .sw-shop-icon { width: 33px; height: 33px; }
.sw-shop-empty h3 { font-size: 25px; letter-spacing: -.04em; }
.sw-shop-empty p { margin: 8px 0 12px; color: var(--sw-muted); font-size: 14px; line-height: 1.8; }
.sw-shop-empty .sw-shop-primary { width: auto; min-width: 170px; }
.sw-shop-primary:disabled { opacity: .55; cursor: default; }
.sw-shop-foot > .sw-shop-text-btn { margin-top: 12px; }
.sw-shop-dialog .sw-shop-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 3px 0;
  font-size: 13px;
  font-weight: 600;
}
.sw-shop-back .sw-shop-icon { width: 15px; height: 15px; }
.sw-shop-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sw-shop-form .sw-shop-primary { margin-top: 0; }
.sw-shop-body h3 { font-size: 18px; font-weight: 750; line-height: 1.4; letter-spacing: -.025em; }
.sw-shop-steps {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 15px 28px;
  list-style: none;
  background: #edeadd;
}
.sw-shop-steps li { display: flex; align-items: center; gap: 5px; color: var(--sw-muted); font-size: 12px; }
.sw-shop-steps li span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #a6a799; border-radius: 50%; font: 600 11px Arial, sans-serif; }
.sw-shop-steps [aria-current] { color: var(--sw-ink); font-weight: 750; }
.sw-shop-steps [aria-current] span { background: var(--sw-ink); border-color: var(--sw-ink); color: white; }
.sw-shop-section-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sw-shop-dialog .sw-shop-text-btn { padding: 5px 0; background: none; border: 0; color: var(--sw-ink); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.sw-shop-empty .sw-shop-text-btn { margin-top: 14px; }
.sw-shop-field { display: block; margin: 16px 0; font-size: 14px; font-weight: 700; }
.sw-shop-required { color: #95251e; }
.sw-shop-field input {
  width: 100%;
  display: block;
  margin-top: 5px;
  border: 1px solid #a3a697;
  border-radius: 3px;
  padding: 11px 12px;
  background: #fffefa;
  color: var(--sw-ink);
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.4;
}
.sw-shop-field input:focus-visible { outline: 2px solid #936300; outline-offset: 2px; }
.sw-shop-field input[aria-invalid="true"] { border-color: #a42e27; }
.sw-shop-error { display: block; color: #95251e; font-size: 12px; font-weight: 500; }
.sw-shop-error:not(:empty) { margin-top: 4px; }
.sw-shop-delivery-choice { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 20px 0 3px; border-block: 1px solid var(--sw-line); padding: 12px 0; font-size: 14px; }
.sw-shop-delivery-choice span { color: var(--sw-muted); font-size: 13px; }
.sw-shop-address { margin: 7px 0 18px !important; font-size: 14px; color: var(--sw-muted); line-height: 1.7; overflow-wrap: anywhere; }
.sw-shop-stage-card { margin-bottom: 22px; padding: 14px 16px; border: 1px solid #b7c4af; border-radius: 4px; background: #eef2e8; }
.sw-shop-stage-card p { margin-top: 5px; color: #415343; font-size: 13px; line-height: 1.6; }
.sw-shop-test-number { display: block; margin-top: 9px; color: #243e30; font: 700 clamp(15px, 4.5vw, 19px)/1.5 ui-monospace, monospace; user-select: all; }
.sw-shop-costs { font-size: 13px; padding-bottom: 9px; margin-bottom: 8px; border-bottom: 1px solid var(--sw-line); }
.sw-shop-costs div, .sw-shop-receipt div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0; }
.sw-shop-costs span, .sw-shop-receipt dt { color: var(--sw-muted); }
.sw-shop-costs strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.sw-shop-dialog .sw-shop-coupon {
  display: grid; gap: 2px; margin: 8px 0; padding: 8px 12px;
  border-left: 3px solid #387258; background: #e8efe2; color: #294f3a;
  font-size: 13px; line-height: 1.55; text-align: start;
}
.sw-shop-dialog .sw-shop-coupon span, .sw-shop-dialog .sw-shop-discount > * { color: #295939; }
.sw-shop-receipt { width: min(100%, 310px); padding: 10px 0; border-block: 1px dashed #aaa99a; font-size: 14px; }
.sw-shop-receipt dt { flex-shrink: 0; }
.sw-shop-receipt dd { margin: 0; overflow-wrap: anywhere; text-align: end; font-weight: 650; font-variant-numeric: tabular-nums; }
.sw-shop-review-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--sw-line); padding: 13px 0; }
.sw-shop-review-list img { width: 58px; height: 58px; }
.sw-shop-review-list strong, .sw-shop-review-list small { display: block; }
.sw-shop-review-list li > span { font-size: 14px; font-weight: 700; }
.sw-shop-toast:not([hidden]) {
  position: fixed;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 16px;
  inset: auto 24px max(24px, env(safe-area-inset-bottom)) auto;
  max-width: calc(100% - 48px);
  padding: 13px 17px;
  border: 1px solid var(--sw-ink);
  border-radius: 5px;
  background: var(--sw-ink);
  color: #fff;
  box-shadow: 0 4px 18px #18191629;
  font-size: 14px;
}
.sw-shop-toast button { flex: none; border: 0; background: transparent; color: var(--sw-yellow); font-weight: 700; padding: 6px 0; }
@media (hover: hover) {
  .sw-shop-close:hover, .sw-shop-stepper button:not(:disabled):hover { background: #ebe7d8; }
  .sw-shop-primary:hover { background: #ffda60; }
  .sw-shop-back:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sw-shop-dialog[open] { animation: sw-shop-enter .2s ease-out; }
  @keyframes sw-shop-enter { from { transform: translateX(32px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
}
@media (max-width: 630px) {
  .sw-shop-head { padding: 21px 20px 18px; }
  .sw-shop-body { padding: 16px 20px; }
  .sw-shop-foot { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
  .sw-shop-item { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 10px; }
  .sw-shop-item-end span { font-size: 13px; }
  .sw-shop-steps { padding-inline: 20px; }
  .sw-shop-toast:not([hidden]) { inset-inline: 12px; bottom: max(14px, env(safe-area-inset-bottom)); max-width: none; justify-content: space-between; }
}
@media (max-width: 340px) {
  .sw-shop-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 7px; }
}
@media (max-height: 470px) {
  .sw-shop-dialog[open] { display: block; }
  .sw-shop-body { overflow-y: visible; }
  .sw-shop-empty { padding-block: 32px; }
}
