* {
  box-sizing: border-box;
}
:root {
  font:
    16px/1.5 system-ui,
    "Microsoft YaHei",
    sans-serif;
  color: #18322e;
  background: #f5f6f2;
  --green: #075449;
  --line: #dce3de;
  --muted: #62746e;
}
body {
  margin: 0;
}
header {
  min-height: 70px;
  padding: 12px max(4vw, 18px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand,
.row,
nav,
.qty,
.summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand small,
.brand strong {
  display: block;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: var(--green);
}
.mark {
  background: var(--green);
  color: white;
  font-size: 24px;
  padding: 2px 12px;
  border-radius: 12px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.spread,
.summary {
  justify-content: space-between;
}
h1 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 8px 0 20px;
}
h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
h3,
p {
  margin: 6px 0;
}
small,
.muted {
  color: var(--muted);
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 24px max(3vw, 16px) 100px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 42px;
  padding: 7px 13px;
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
}
.primary,
.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary {
  font-weight: 650;
}
button:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #77bfae;
  outline-offset: 1px;
}
.panel,
dialog,
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.panel {
  padding: 20px;
}
.auth {
  max-width: 580px;
  margin: 4vh auto;
}
.auth nav {
  margin-bottom: 18px;
}
.auth nav button {
  flex: 1;
}
.fields {
  display: grid;
  gap: 12px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bdcdc4;
  border-radius: 8px;
  background: white;
  color: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-weight: 450;
}
details {
  margin: 8px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
fieldset {
  border: 0;
  margin: 12px 0;
  padding: 0;
}
legend {
  font-weight: 650;
}
#status:not(:empty) {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff3d5;
  padding: 10px 4vw;
  color: #644311;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 31%);
  gap: 22px;
}
.categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 14px 0;
  padding-bottom: 5px;
}
.categories button {
  flex-shrink: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 12px;
}
.product {
  padding: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  gap: 8px;
}
.product strong {
  overflow-wrap: anywhere;
}
.product .row {
  margin-top: auto;
  width: 100%;
}
.plus {
  background: #e1f1e9;
  color: var(--green);
  font-size: 20px;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  text-align: center;
}
.pic {
  height: 90px;
  max-width: 100%;
  object-fit: contain;
  align-self: center;
}
.retail .grid {
  grid-template-columns: 1fr;
}
.retail .product {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.retail .product small {
  grid-row: 2;
}
.retail .product .row {
  grid-area: 1/2/3/3;
}
.retail .pic {
  display: none;
}
.cart {
  position: sticky;
  top: 14px;
  align-self: start;
}
.cartline,
article {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.cartline:first-of-type {
  border: 0;
}
.cartline strong {
  overflow-wrap: anywhere;
}
.qty {
  gap: 8px;
}
.qty button {
  min-width: 36px;
  min-height: 36px;
  padding: 2px 8px;
}
.summary {
  margin-top: 12px;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.order {
  margin: 12px 0;
}
.order h3 {
  font-size: 18px;
}
.status {
  color: var(--green);
  font-weight: 650;
}
.mobilebar {
  display: none;
}
.full {
  width: 100%;
  margin-top: 14px;
}
dialog {
  width: min(500px, calc(100% - 24px));
  max-height: 88dvh;
  color: inherit;
  padding: 22px;
}
dialog::backdrop {
  background: #102c2680;
}
.checkout {
  max-width: 700px;
  margin: auto;
}
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.board .panel b {
  font-size: 19px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.board ul {
  padding-left: 19px;
}
.mode {
  color: var(--green);
  font-weight: 650;
  margin-bottom: 5px;
}
.danger {
  color: #a33222;
}
@media (max-width: 760px) {
  header {
    min-height: 60px;
  }
  .layout {
    display: block;
  }
  .cart {
    display: none;
  }
  .mobilebar {
    display: flex;
    position: fixed;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth {
    margin: 0 auto;
  }
  .panel {
    padding: 15px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .categories {
    margin-left: -2px;
  }
  .checkout h1 {
    margin-top: 16px;
  }
}

/* The Turnstile widget and the line under it. */
.human-check {
  min-height: 65px;
}
.human-note {
  margin: 0;
  color: #8a2c0a;
}
.human-note:empty {
  display: none;
}
.human-note button {
  cursor: pointer;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
}
