html.ff-shop-open {
  overflow: hidden;
}

dialog.ff-shop-panel {
  --ff-shop-line: #484848;
  --ff-shop-muted: #c9c9c9;
  --ff-shop-ink: #fff;
  --ff-shop-surface: #101010;
  --ff-shop-accent: var(--accent);
  --ff-shop-body: 'Libre Baskerville', Georgia, serif;
  --ff-shop-heading: Courgette, Georgia, serif;
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(100%, 35rem);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-inline-start: 1px solid var(--ff-shop-line);
  color: var(--ff-shop-ink);
  background: var(--ff-shop-surface);
  box-shadow: -1rem 0 4rem #0006;
  text-align: left;
  font-family: var(--ff-shop-body);
  font-size: 1rem;
}

.ff-shop-panel::backdrop {
  background: rgb(0 0 0 / 64%);
}

.ff-shop-panel *,
.ff-shop-panel *::before,
.ff-shop-panel *::after {
  box-sizing: border-box;
}

.ff-shop-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ff-shop-panel .ff-shop-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1.3rem clamp(1.1rem, 5vw, 2.25rem);
  border-bottom: 1px solid var(--ff-shop-line);
  background: transparent;
}

.ff-shop-head h2 {
  margin: 0;
  color: var(--ff-shop-ink);
  font: 400 clamp(1.85rem, 5vw, 2.55rem)/1.26 var(--ff-shop-heading);
  letter-spacing: -.025em;
}

.ff-shop-head h2:focus {
  outline: 0;
}

.ff-shop-panel button {
  color: inherit;
  background: transparent;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}

.ff-shop-panel .ff-shop-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid transparent;
  color: var(--ff-shop-ink);
  font: 300 1.95rem/1 system-ui, sans-serif;
}

.ff-shop-panel .ff-shop-close:hover {
  border-color: var(--ff-shop-line);
}

.ff-shop-content {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(1.1rem, 5vw, 2.25rem) max(2rem, env(safe-area-inset-bottom));
}

.ff-shop-lines,
.ff-shop-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-shop-line {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--ff-shop-line);
}

.ff-shop-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.13;
  object-fit: cover;
  background: #f2f2f2;
}

.ff-shop-panel .ff-shop-product-title {
  display: block;
  color: var(--ff-shop-ink);
  font: 400 1.02rem/1.45 var(--ff-shop-body);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ff-shop-panel .ff-shop-product-title:hover,
.ff-shop-result:hover .ff-shop-product-title {
  color: var(--ff-shop-accent);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.ff-shop-meta {
  display: block;
  margin: .3rem 0 0;
  color: var(--ff-shop-muted);
  font-size: .875rem;
  line-height: 1.45;
}

.ff-shop-panel .ff-shop-text-button {
  min-height: 2.45rem;
  padding: 0;
  border: 0;
  color: var(--ff-shop-muted);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .17em;
}

.ff-shop-amount {
  align-self: start;
  font-size: .94rem;
  font-weight: 550;
  white-space: nowrap;
}

.ff-shop-summary {
  margin-top: 1.45rem;
}

.ff-shop-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  font-weight: 550;
}

.ff-shop-note,
.ff-shop-empty p,
.ff-shop-no-results {
  margin: .5rem 0;
  color: var(--ff-shop-muted);
  line-height: 1.5;
}

.ff-shop-note {
  font-size: .875rem;
}

.ff-shop-panel .ff-shop-primary {
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--ff-shop-ink);
  background: var(--ff-shop-ink);
  color: #111;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 550;
}

.ff-shop-panel .ff-shop-primary:hover {
  background: var(--ff-shop-accent);
  border-color: var(--ff-shop-accent);
  color: #111;
}

.ff-shop-empty,
.ff-shop-search {
  padding-top: 1.65rem;
}

.ff-shop-search label {
  display: block;
  font-size: .875rem;
  font-weight: 550;
  margin-bottom: .5rem;
}

.ff-shop-search input {
  width: 100%;
  min-height: 3.2rem;
  padding: .8rem .95rem;
  border: 1px solid #848484;
  border-radius: 0;
  background: #1b1b1b;
  color: var(--ff-shop-ink);
  font: inherit;
}

.ff-shop-result-caption {
  margin: 1.4rem 0 .35rem;
  color: var(--ff-shop-muted);
  font: 550 .875rem/1.45 var(--ff-shop-body);
}

.ff-shop-result {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--ff-shop-line);
  text-decoration: none;
}

.ff-checkout-form fieldset {
  display: grid;
  gap: .85rem;
  min-inline-size: 0;
  margin: 1.65rem 0 0;
  padding: 0;
  border: 0;
}

.ff-checkout-form legend {
  margin-bottom: .95rem;
  padding: 0;
  font: 400 1.45rem/1.3 var(--ff-shop-heading);
}

.ff-checkout-form .ff-checkout-delivery {
  margin: 0;
}

.ff-checkout-examples summary {
  color: var(--ff-shop-accent);
  cursor: pointer;
}

.ff-checkout-examples div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ff-checkout-examples button {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid var(--ff-shop-line);
}

.ff-checkout-address-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(6.75rem, 2fr);
  gap: .8rem;
}

.ff-checkout-address-row:has([data-postal-field][hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.ff-checkout-field label {
  display: block;
  margin: 0 0 .4rem;
  font-size: 1rem;
}

.ff-checkout-form :is(input, select) {
  width: 100%;
  max-width: 100%;
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid #848484;
  border-radius: 0;
  background: #191919;
  color: var(--ff-shop-ink);
  font: inherit;
  color-scheme: dark;
}

.ff-checkout-form select {
  appearance: auto;
}

.ff-shop-panel .ff-shop-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.ff-shop-panel [hidden] {
  display: none !important;
}

.ff-checkout-status:not(:empty) {
  margin-top: 1.1rem;
}

.ff-checkout-result dl {
  display: grid;
  gap: .6rem;
  margin: 1rem 0 0;
}

.ff-checkout-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ff-checkout-result dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.ff-checkout-grand-total {
  padding-top: .7rem;
  border-top: 1px solid var(--ff-shop-line);
  font-weight: 700;
}

.ff-shop-panel :where(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--ff-shop-accent);
  outline-offset: 2px;
}

.ff-shop-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 450px) {
  .ff-shop-line {
    grid-template-columns: 4.1rem minmax(0, 1fr);
    gap: .4rem .8rem;
  }

  .ff-shop-amount {
    grid-column: 2;
    padding-top: .15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ff-shop-panel[open] {
    animation: ff-panel-in .18s ease-out;
  }

  @keyframes ff-panel-in {
    from { transform: translateX(2rem); opacity: .6; }
    to { transform: translateX(0); opacity: 1; }
  }
}
