/* Ordering surfaces share the same paper, rules and readable product type. */
:root {
  --slip-paper: #f8f7f3;
  --rule: rgba(20, 20, 20, 0.14);
  --rule-on-dark: rgba(205, 176, 122, 0.38);
  --order-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --order-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}
html.is-jol {
  --slip-paper: var(--jol-card);
}
.orders-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.orders-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding-inline: 3px;
  border-radius: 50%;
  background: #141414;
  color: #f4eee2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.orders-count[hidden] {
  display: none;
}
.navbar[data-nav-theme='dark'] .orders-count {
  background: #f4eee2;
  color: #141414;
}
/* Phones: the menu button, the logo on the centre axis, and the order as one icon with its count
   (Sindri 10 Nov: "make the header make sense, maybe a hamburger menu is best"; the bigger logo
   from K3 needs the room). The word and the Pantanir menu live in the hamburger menu. */
.orders-icon {
  display: none;
}
@media (max-width: 47.999rem) {
  .orders-nav > .link {
    display: none;
  }
  .orders-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    color: inherit;
  }
  .orders-icon .i {
    width: 24px;
    height: 24px;
  }
  .orders-icon .orders-count {
    position: absolute;
    top: 3px;
    right: 1px;
    margin: 0;
  }
}
.navdrop {
  display: none;
}
@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  .navdrop {
    display: block;
  }
}
.navdrop__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
}
.navdrop__toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s var(--order-ease);
}
.navdrop.is-open .navdrop__toggle svg {
  transform: rotate(180deg);
}
.navdrop__panel {
  position: fixed;
  right: max(1.5rem, calc((100vw - var(--page-width)) / 2 + 1.5rem));
  top: var(--top-chrome);
  width: 20rem;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem;
  background: var(--slip-paper);
  color: #141414;
  box-shadow: 0 18px 40px -18px rgba(20, 20, 20, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transform-origin: top right;
  transition:
    opacity 0.16s var(--order-ease),
    transform 0.16s var(--order-ease),
    visibility 0s 0.16s;
}
.navdrop__panel::before {
  content: '';
  position: absolute;
  bottom: 100%;
  inset-inline: -14px;
  height: 2rem;
}
.navdrop.is-open .navdrop__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-duration: 0.2s, 0.2s, 0s;
  transition-delay: 0s;
}
html.is-jol .navdrop__panel {
  background: var(--jol-ground);
  color: var(--jol-cream);
  --rule: var(--rule-on-dark);
}

.order-head {
  display: grid;
  gap: 0.5rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
.order-head .page-head__title {
  font-size: clamp(2.3rem, 4vw, 4.25rem);
  line-height: 1.05;
}
.order-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
  margin-top: 0.75rem;
}
.order-facts > .draw-rule {
  position: absolute;
  top: 0;
  inset-inline: 0;
}
.order-facts p {
  margin: 0;
}
.order-holidays {
  padding: 0.65rem 1rem;
  background: var(--jol-ground);
  color: var(--jol-cream);
  font-size: 0.875rem;
}
.order-holidays a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* iOS pass 11 Nov: on phones the two holiday links wrap and the " · " hung at the line end. */
@media (max-width: 47.99rem) {
  .order-holidays__sep { display: none; }
  .order-holidays a { display: flex; }
}
.ordering {
  padding-top: 0;
  padding-bottom: 5rem;
}
.form--order {
  position: relative;
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) 25rem;
  column-gap: 3rem;
  row-gap: 4rem;
  max-width: none;
  align-items: start;
}
.order-rail {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}
.order-rail__sticky {
  position: sticky;
  top: calc(var(--top-chrome) + var(--stepper-height) + 1.5rem);
}
.order-rail__links {
  position: relative;
  margin-top: 0.75rem;
}
.order-rail__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 0.75rem;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: #6b6b6b;
  transition: color 0.16s var(--order-ease);
}
.order-rail__links a span:last-child {
  font-variant-numeric: tabular-nums;
  color: #6b6b6b;
}
.order-rail__links a.is-active {
  color: #141414;
}
.order-rail__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 44px;
  background: #141414;
  transition:
    transform 0.28s var(--order-luxe),
    height 0.28s var(--order-luxe);
}
.order-counter {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.counter-search {
  position: sticky;
  top: calc(var(--top-chrome) + var(--stepper-height) + 1.5rem);
  z-index: 4;
  display: flex;
  height: 48px;
  background: var(--color-white);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
}
/* Paper above and a short fade below the pinned field, so rows never show through the gap
   between the header and the search. */
.counter-search::before,
.counter-search::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  pointer-events: none;
}
.counter-search::before {
  bottom: 100%;
  height: calc(1.5rem + 1px);
  background: var(--color-white);
}
.counter-search::after {
  top: 100%;
  height: 1rem;
  background: linear-gradient(var(--color-white), transparent);
}
.counter-search input {
  min-width: 0;
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
}
.counter-search button {
  flex: 0 0 44px;
  min-height: 44px;
  font-size: 1.5rem;
}
.counter-search input::-webkit-search-cancel-button {
  display: none;
}
.counter-category {
  scroll-margin-top: calc(var(--top-chrome) + var(--stepper-height) + 7rem);
  margin-bottom: 2.5rem;
}
.counter-category__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 1rem;
}
.counter-category__head h2,
.counter-category__head h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-transform: uppercase;
  line-height: 1.1;
}
.counter-category__head .draw-rule {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}
.draw-rule {
  display: block;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.counter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 56px;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
/* break-word, not anywhere: long Icelandic compounds wrap whole, never split mid-word. */
.counter-row__name,
.order-line__name,
.prices__name {
  overflow-wrap: break-word;
}
.counter-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
}
.counter-row__meta:empty {
  display: none;
}
.counter-row__price {
  font-variant-numeric: tabular-nums;
}
.counter-row > div:first-child {
  min-width: 0;
}
.counter-row .tags {
  margin-top: 0;
}
.counter-row[hidden],
.counter-category[hidden],
[data-build-item][hidden] {
  display: none;
}
.counter-empty {
  animation: empty-arrival 0.16s ease-out;
}
@keyframes empty-arrival {
  from {
    opacity: 0;
  }
}
.order-slip {
  grid-column: 3;
  grid-row: 1 / 5;
  align-self: stretch;
  min-width: 0;
}
.order-slip > .slip {
  position: sticky;
  top: calc(var(--top-chrome) + var(--stepper-height) + 1.5rem);
  max-height: calc(100svh - var(--top-chrome) - var(--stepper-height) - 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem;
  background: var(--slip-paper);
  mask: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px
    100% repeat-x;
}
.order-slip .slip__head {
  margin: 0;
  grid-template-columns: 40px 1fr;
}
.order-slip .slip__crest {
  width: 40px;
}
.slip__scroll {
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.slip__pickup a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.slip__empty-phone {
  display: none;
}
.basket-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
[data-basket-actions] {
  display: grid;
  gap: 0.5rem;
}
[data-basket-actions][hidden] {
  display: none;
}
[data-basket-total] {
  margin-bottom: 0.75rem;
}
.empty-order {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  min-height: 44px;
  font-size: 0.8125rem;
}
[data-basket-actions] .btn[hidden],
[data-basket-size][hidden],
.empty-order[hidden] {
  display: none;
}
.order-line {
  display: grid;
  grid-template-rows: 1fr;
}
.order-line__inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 0.4rem;
  padding-top: 1rem;
}
.order-line__name {
  font-size: 0.9375rem;
  line-height: 1.35;
}
.order-line__meta {
  color: #6b6b6b;
}
.order-line__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 1rem;
}
.order-line__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
}
.order-line__qty button,
.order-line__qty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition:
    background-color 0.16s var(--order-ease),
    transform 0.16s var(--order-ease);
}
.order-line__qty input {
  min-width: 0;
  width: 4rem;
  height: 44px;
  text-align: center;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.order-line__qty input::-webkit-inner-spin-button {
  appearance: none;
}
.order-line__qty button:active {
  transform: scale(0.97);
  background: rgba(20, 20, 20, 0.08);
}
.order-line__price {
  font-variant-numeric: tabular-nums;
}
.order-removed {
  padding: 1rem 0;
  animation: empty-arrival 0.2s;
}
.order-removed button,
.order-undo button {
  min-height: 44px;
  text-decoration: underline;
}
.basket-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 130;
  width: min(26rem, 100vw);
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--slip-paper);
  color: #141414;
  transform: translateX(100%);
}
.basket-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.basket-panel__head > button {
  width: 44px;
  height: 44px;
  font-size: 2rem;
}
.basket-panel__scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.basket-panel .basket-foot {
  flex-shrink: 0;
}
.basket-panel [data-basket-empty] {
  padding-block: 1.5rem;
}
.basket-panel [data-basket-empty] a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.basket {
  border-radius: 0;
  min-height: 48px;
  gap: 0.75rem;
}
.basket__n {
  border-radius: 50%;
}
.empty-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.empty-confirm p {
  flex-basis: 100%;
}
.empty-confirm__yes {
  background: #d41b19;
  color: #f4eee2;
  transition: background-color 0.16s var(--order-ease);
}
.order-undo > span {
  display: block;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  animation: undo-time 8s linear forwards;
}
@keyframes undo-time {
  to {
    transform: scaleX(0);
  }
}
.order-step {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 3rem;
  scroll-margin-top: calc(var(--top-chrome) + var(--stepper-height) + 2rem);
}
.order-step__content {
  min-width: 0;
  max-width: 46rem;
  display: grid;
  gap: 2rem;
}
.tile-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.tile-field legend {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}
.day-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.day-tile,
.time-chip {
  position: relative;
  display: block;
  cursor: pointer;
}
.day-tile input,
.time-chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.day-tile > span {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  width: 4.5rem;
  height: 5.25rem;
  border: 1px solid var(--rule);
  transition:
    color 0.16s var(--order-ease),
    background-color 0.16s var(--order-ease),
    transform 0.16s var(--order-ease);
}
.day-tile small {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.day-tile strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
}
.day-tile input:checked + span,
.time-chip input:checked + span {
  background: #141414;
  color: var(--color-white);
}
html.is-jol .day-tile input:checked + span,
html.is-jol .time-chip input:checked + span {
  background: var(--jol-ground);
  color: var(--jol-cream);
}
.day-tile input:focus-visible + span,
.time-chip input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.day-tile:active > span,
.time-chip:active > span {
  transform: scale(0.97);
}
[data-more-days] {
  min-height: 44px;
  font-size: 0.875rem;
  text-decoration: underline;
}
.time-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}
.time-chip > span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  transition:
    color 0.16s var(--order-ease),
    background-color 0.16s var(--order-ease),
    transform 0.16s var(--order-ease);
}
.form--order > .form__foot,
.form--order > .form__status {
  grid-column: 2;
}
.form--order > .form__foot {
  margin-top: -2rem;
}
@media (min-width: 64rem) {
  .form--order > .form__foot > .form__submit {
    display: none;
  }
}
.order-chips {
  display: none;
}

/* Christmas calendar and the two-column menu of courses. */
html.is-jol .jol-head {
  min-height: 82svh;
  display: grid;
  align-items: center;
}
html.is-jol .jol-head__inner {
  grid-template-columns: 7fr 5fr;
  align-content: center;
}
.jol-head__inner > :not(.jol-head__right) {
  grid-column: 1;
}
html.is-jol .jol-head__inner h1 {
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 1;
}
.jol-head__right {
  grid-column: 2;
  grid-row: 1 / 6;
  display: grid;
  gap: 0.75rem;
  padding-left: 2rem;
  /* The pickup lines sit under the numeral, on the same right edge. */
  justify-items: end;
  text-align: right;
}
html.is-jol .jol-count {
  grid-column: auto;
  grid-row: auto;
  position: static;
}
html.is-jol .jol-count__num {
  font-size: clamp(6rem, 12vw, 11rem);
}
.jol-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* On the red ground the action red would vanish (1.9:1): the first action is cream with red ink. */
html.is-jol .jol-head__actions .btn-fill {
  background: var(--jol-cream);
  color: var(--jol-ground);
  border-color: var(--jol-cream);
}
html.is-jol .jol-head__actions .btn-fill:active:not(:disabled) {
  background: var(--jol-cream);
  border-color: var(--jol-gold);
}
@media (hover: hover) and (pointer: fine) {
  html.is-jol .jol-head__actions .btn-fill:hover {
    border-color: var(--jol-gold);
  }
}
.pickup-calendar {
  margin-bottom: 3rem;
}
.pickup-calendar > p {
  margin: 1rem 0 2rem;
}
.pickup-calendar__grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1.5rem 0;
}
.calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 140px;
  color: #6b6b6b;
  padding: 1rem 0.25rem;
  transition:
    color 0.16s var(--order-ease),
    background-color 0.16s var(--order-ease),
    transform 0.16s var(--order-ease);
}
.calendar-day strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}
.calendar-day small {
  font-size: 0.75rem;
}
.calendar-day > span {
  font-size: 0.75rem;
  text-align: center;
}
.calendar-day--jol,
.calendar-day--aramot {
  color: #141414;
}
.calendar-day:focus-visible {
  background: var(--jol-red);
  color: var(--jol-cream);
}
.calendar-day--aramot:focus-visible {
  background: var(--jol-ground);
}
.calendar-day:active {
  transform: scale(0.97);
}
.calendar-frame {
  position: relative;
  pointer-events: none;
  z-index: 1;
  grid-area: 1 / 1;
  margin-bottom: 0;
}
.calendar-frame svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
}
.calendar-frame rect {
  fill: none;
  stroke: var(--jol-red);
  stroke-width: 1.5px;
}
.calendar-frame--aramot rect {
  stroke: var(--jol-gold);
}
.calendar-frame > span {
  position: absolute;
  top: -0.6rem;
  left: 0.75rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: var(--color-white);
  color: #141414;
}
.calendar-holidays {
  display: none;
}
.christmas-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}
.christmas-course {
  min-width: 0;
}
/* Each course is already one of two columns: its rows stay in one column, never four across. */
.christmas-course .prices__list {
  grid-template-columns: minmax(0, 1fr);
}
html.is-jol .jol-gifts {
  background: var(--jol-ground);
  color: var(--jol-cream);
}
.gift-boxes {
  position: relative;
  overflow: hidden;
}

/* Draw gates never hide content unless the animation engine is available. */
html.motion-draw [data-draw='x']:not(.is-drawn) {
  transform: scaleX(0);
}
html.motion-draw [data-draw='y']:not(.is-drawn) {
  transform: scaleY(0);
}
[data-draw='y'] {
  transform-origin: top;
}
html.motion-draw [data-draw='stroke']:not(.is-drawn) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
html.motion-draw [data-build-item]:not(.is-drawn) {
  opacity: 0;
  transform: translateY(10px);
}

@media (hover: hover) and (pointer: fine) {
  .order-line__qty button:hover {
    background: rgba(20, 20, 20, 0.07);
  }
  .order-line__qty button,
  .order-line__qty > span,
  .order-line__qty input {
    height: 36px;
  }
  .order-line__qty button,
  .order-line__qty > span {
    width: 36px;
  }
  .empty-confirm__yes:hover {
    background: #a8141a;
  }
  .calendar-day--jol:hover {
    background: var(--jol-red);
    color: var(--jol-cream);
  }
  .calendar-day--aramot:hover {
    background: var(--jol-ground);
    color: var(--jol-cream);
  }
}
@media (max-width: 79rem) and (min-width: 64rem) {
  .form--order {
    column-gap: 1.5rem;
    grid-template-columns: 10rem minmax(0, 1fr) 23rem;
  }
  .order-step {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1.5rem;
  }
  .counter-row {
    gap: 0.75rem;
  }
}
@media (max-width: 63.999rem) {
  .order-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .form--order {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2rem;
  }
  .order-rail {
    display: none;
  }
  .order-counter {
    grid-column: 1;
    grid-row: 2;
  }
  .order-slip {
    grid-column: 2;
    grid-row: 2 / 6;
  }
  .order-step {
    grid-column: 1;
    display: block;
  }
  .form--order > .form__foot,
  .form--order > .form__status {
    grid-column: 1;
  }
  .order-chips {
    position: sticky;
    top: calc(var(--top-chrome) + var(--stepper-height));
    z-index: 8;
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    height: 52px;
    background: var(--color-white);
    border-bottom: 1px solid var(--rule);
  }
  .order-chips > button {
    flex: 0 0 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .order-chips > div {
    display: flex;
    overflow: auto;
    min-width: 0;
    scrollbar-width: none;
  }
  .order-chips a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition:
      background-color 0.16s var(--order-ease),
      color 0.16s var(--order-ease);
  }
  .order-chips a.is-active {
    color: var(--color-white);
    background: #141414;
  }
  .counter-search {
    display: none;
  }
  .search-open .counter-search {
    display: flex;
    position: sticky;
    top: calc(var(--top-chrome) + var(--stepper-height) + 52px);
    left: var(--spacing-m);
    right: var(--spacing-m);
    z-index: 9;
  }
  .counter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
  }
  .counter-row > div:first-child {
    grid-column: 1 / -1;
  }
  .counter-row .buy {
    justify-self: end;
  }
  .christmas-courses {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 47.999rem) {
  .order-head {
    padding-top: 1.5rem;
  }
  .form--order {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .order-slip {
    display: none;
  }
  .order-counter {
    grid-row: 2;
  }
  .order-step,
  .order-chips {
    grid-column: 1;
  }
    .basket-panel {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }
  .basket__estimate {
    display: none;
  }
  .basket {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1rem;
  }
  .order-end {
    padding-bottom: 2rem;
  }
  html.is-jol .jol-head {
    min-height: auto;
    padding-top: 8rem;
  }
  html.is-jol .jol-head__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .jol-head__right {
    grid-column: 1;
    grid-row: 5;
    padding-left: 0;
    margin-top: 1rem;
    justify-items: start;
    text-align: left;
  }
  html.is-jol .jol-count__num {
    font-size: 5.5rem;
  }
  .calendar-day {
    min-height: 100px;
    padding-inline: 0;
  }
  .calendar-day strong {
    font-size: 1.75rem;
  }
  .calendar-day small {
    font-size: 0.55rem;
  }
  /* Design audit 11 Nov: the hours were 8.8 px here. Phones read them under the grid. */
  .calendar-day__hours {
    display: none;
  }
  .calendar-day > span {
    display: none;
  }
  .calendar-holidays {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-draw [data-draw],
  html.motion-draw [data-build-item] {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .navdrop__panel {
    transform: none;
    transition:
      opacity 0.12s linear,
      visibility 0s 0.12s;
  }
  .navdrop__toggle svg {
    transform: none !important;
    opacity: 1;
    transition: none;
  }
  .order-rail__bar,
  .order-chips a,
  .day-tile > span,
  .time-chip > span {
    transition: none;
  }
  .day-tile:active > span,
  .time-chip:active > span,
  .calendar-day:active {
    transform: none;
  }
  .order-undo > span {
    display: none;
  }
  .order-removed,
  .counter-empty {
    animation: none;
  }
}

/* Dark Christmas bands hold their snow layer. */
html.is-jol :is(.season--jol, .jol-head, .footer) {
  position: relative;
}

.order-head,
.ordering {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}
html.is-jol .jol-gifts .gift-boxes {
  background: transparent;
  color: var(--jol-cream);
  outline: none;
  border: 0;
  padding-inline: clamp(2rem, 7vw, 7rem);
}
@media (prefers-reduced-motion: reduce) {
}
.order-slip > .slip {
  max-height: min(
    calc(100svh - var(--top-chrome) - var(--stepper-height) - 3rem),
    var(--slip-available, 100svh)
  );
}
.order-slip .slip__head,
.order-slip .basket-foot {
  flex-shrink: 0;
}
html.motion-draw .calendar-frame > span {
  opacity: 0;
  transition: opacity 0.3s var(--order-ease);
}
html.motion-draw .calendar-frame:has(rect.is-drawn) > span {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  html.motion-draw .calendar-frame > span {
    opacity: 1;
    transition: none;
  }
}
html.is-jol :is(.jol-head, .jol-gifts) .btn-outline {
  color: var(--jol-cream);
  border-color: var(--jol-cream);
  --btn-fill: var(--jol-cream);
  --btn-on-fill: var(--jol-ground);
}
.pickup-calendar,
.christmas-courses {
  scroll-margin-top: calc(var(--top-chrome) + 1rem);
}
.basket__n {
  position: relative;
  overflow: hidden;
}
.basket__old {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.order-head:has(.order-holidays:not([hidden])) {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}
@media (max-width: 63.999rem) {
}

.basket-foot [data-modal-close] {
  min-height: 44px;
}
.basket-foot .btn {
  min-height: 44px;
}
.basket-foot {
  position: relative;
}

/* Round 2: one path from the counter to pickup, contact and confirmation. */
:root {
  --stepper-height: 72px;
}
.i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.navdrop[hidden],
.navdrop__row[hidden] {
  display: none;
}
.navdrop__row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  opacity: 0;
  transition:
    background-color 0.16s var(--order-ease),
    opacity 0.2s var(--order-ease);
}
.navdrop__row small {
  display: block;
  color: #626262;
  font-size: 0.6875rem;
  margin-top: 0.2rem;
}
html.is-jol .navdrop__row small {
  color: #d0d9d2;
}
.navdrop__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
}
.navdrop.is-open .navdrop__row {
  opacity: 1;
  transition-delay: 0s, calc(var(--row, 0) * 0.03s);
}
.navdrop__row:nth-child(2) {
  --row: 1;
}
.navdrop__row:nth-child(3) {
  --row: 2;
}
.navdrop__row:nth-child(4) {
  --row: 3;
}
.navdrop__row > .i {
  transition: transform 0.16s var(--order-ease);
}
.navdrop__row:focus-visible {
  background: rgba(20, 20, 20, 0.05);
  outline: 1px solid currentColor;
}
.order-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.order-facts > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.order-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.order-details summary::before {
  content: '+';
}
.order-details[open] summary::before {
  content: '−';
}
.order-details p {
  margin-block: 0.5rem;
  max-width: 65ch;
}
.order-progress {
  position: sticky;
  top: var(--top-chrome);
  z-index: 12;
  height: var(--stepper-height);
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--color-white);
  border-bottom: 1px solid var(--rule);
}
.order-progress__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: #6b6b6b;
  transition: color 0.16s var(--order-ease);
}
.order-progress__step::before,
.order-progress__step::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.order-progress__step::after {
  background: #141414;
  transform: scaleX(0);
  transition: transform 0.48s var(--order-luxe);
}
.order-progress__step:last-child::before,
.order-progress__step:last-child::after {
  display: none;
}
.order-progress__step.is-joined::after {
  transform: scaleX(1);
}
.order-progress__circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--color-white);
  transition:
    background-color 0.2s var(--order-ease),
    border-color 0.16s var(--order-ease),
    color 0.2s var(--order-ease);
}
.order-progress__circle .i {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  transition:
    opacity 0.22s var(--order-ease),
    transform 0.22s var(--order-ease);
}
.order-progress__circle .i:last-child {
  opacity: 0;
  transform: scale(0.85);
}
.order-progress__label {
  font-size: 0.75rem;
  transition:
    color 0.16s var(--order-ease),
    opacity 0.16s var(--order-ease);
}
.order-progress__step.is-current {
  color: #141414;
}
.is-current .order-progress__circle {
  border-color: #141414;
}
.is-complete .order-progress__circle {
  background: #141414;
  color: var(--slip-paper);
  border-color: #141414;
}
.is-complete .order-progress__circle .i:first-child {
  opacity: 0;
  transform: scale(0.85);
}
.is-complete .order-progress__circle .i:last-child {
  opacity: 1;
  transform: scale(1);
}
html.motion-draw .order-progress__step::before {
  animation: progress-line 0.9s var(--order-luxe) both;
}
@keyframes progress-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.order-step__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.prices__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.7rem;
  border: 1px solid #141414;
  color: #141414;
  transition:
    color 0.16s var(--order-ease),
    background-color 0.16s var(--order-ease);
}
.prices__add .i {
  width: 20px;
  height: 20px;
  position: static;
  transform: none;
  opacity: 1;
}
.add-label {
  font-size: 0.75rem;
  white-space: nowrap;
}
.counter-row,
.prices__row {
  position: relative;
}
.counter-row::before,
.prices__row::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #141414;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.22s var(--order-ease);
}
.has-order::before {
  transform: scaleY(1);
}
.counter-row__name > .i,
.prices__label > .i {
  width: 16px;
  height: 16px;
  margin-right: 0.3rem;
  opacity: 0;
  transition: opacity 0.22s var(--order-ease);
}
.has-order :is(.counter-row__name, .prices__label) > .i {
  opacity: 1;
}
.has-order > :first-child {
  padding-left: 0.5rem;
}
.buy__ctl {
  gap: 0;
  height: 46px;
}
.buy__step,
.buy__unit,
.order-line__qty > button {
  min-width: 44px;
  min-height: 44px;
}
.order-line__inner {
  position: relative;
}
.order-line__name {
  padding-right: 44px;
}
.company-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 0.22s var(--order-ease),
    opacity 0.22s var(--order-ease),
    visibility 0.22s;
}
.company-reveal {
  transition-duration: 0.24s;
}
.company-reveal.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}
.company-reveal > div {
  min-height: 0;
  overflow: hidden;
}
.company-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-top: 1rem;
  cursor: pointer;
}
.company-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #141414;
}
.field__control {
  display: block;
  position: relative;
}
.field__control > .i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.field__control input {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}
.field__control > .i:last-child {
  left: auto;
  right: 0.85rem;
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
  transition:
    opacity 0.16s var(--order-ease),
    transform 0.16s var(--order-ease);
}
.field__control.is-valid > .i:last-child {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.slip__pickup,
.slip__pickup a,
.basket-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.slip__pickup a {
  min-height: 44px;
}
.basket-help {
  min-height: 44px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
[data-basket-empty] > .i,
.slip--sent > .i {
  display: block;
  width: 48px;
  height: 48px;
  margin-block: 1rem;
}
.slip--sent > .i {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
html.motion-draw .slip--sent > .i {
  animation: sent-check 0.6s ease-in-out both;
}
html.motion-draw .sent__title {
  animation: sent-text 0.3s 0.6s both;
}
@keyframes sent-check {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes sent-text {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.basket {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
@media (hover: hover) and (pointer: fine) {
  .navdrop__row:hover {
    background: rgba(20, 20, 20, 0.05);
  }
  html.is-jol .navdrop__row:hover,
  html.is-jol .navdrop__row:focus-visible {
    background: var(--jol-ground-2);
  }
  .navdrop__row:hover > .i {
    transform: translateX(3px);
  }
  .prices__add:hover {
    background: #141414;
    color: var(--slip-paper);
  }
}
@media (max-width: 63.999rem) {
  .order-progress {
    margin-bottom: 0;
  }
  .order-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .order-step__title {
    margin-bottom: 1rem;
  }
}
@media (max-width: 47.999rem) {
  :root {
    --stepper-height: 56px;
  }
  .order-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-progress {
    grid-template-columns: repeat(4, 44px) minmax(0, 1fr);
    gap: 6px;
    padding-block: 6px;
  }
  .order-progress__step {
    min-height: 44px;
  }
  .order-progress__step::before,
  .order-progress__step::after {
    top: 22px;
    width: 10px;
  }
  .order-progress__label {
    position: absolute;
    left: 200px;
    width: calc(100vw - 232px);
    text-align: left;
    opacity: 0;
    pointer-events: none;
  }
  .order-progress__step:nth-child(2) .order-progress__label {
    left: 150px;
  }
  .order-progress__step:nth-child(3) .order-progress__label {
    left: 100px;
  }
  .order-progress__step:nth-child(4) .order-progress__label {
    left: 50px;
  }
  .order-progress__step.is-current .order-progress__label {
    opacity: 1;
  }
  .order-progress__circle .i {
    width: 24px;
    height: 24px;
  }
  .add-label {
    display: none;
  }
  .prices__add {
    width: 44px;
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .order-progress *,
  .order-progress *::before,
  .order-progress *::after,
  .company-reveal,
  .field__control > .i,
  .counter-row::before,
  .prices__row::before,
  .counter-row__name > .i,
  .prices__label > .i {
    transition: none !important;
    animation: none !important;
  }
  html.motion-draw .slip--sent > .i,
  html.motion-draw .sent__title {
    animation: none;
  }
  .navdrop__row,
  .navdrop__row > .i {
    transition: opacity 0.12s;
    transform: none !important;
  }
}

.company-toggle input {
  appearance: auto;
}
.slip__edit {
  min-width: 44px;
  min-height: 44px;
}
html.motion-draw .slip--sent > p,
html.motion-draw .slip--sent > ul {
  animation: sent-text 0.3s 0.6s both;
}
@media (prefers-reduced-motion: reduce) {
  html.motion-draw .slip--sent > p,
  html.motion-draw .slip--sent > ul {
    animation: none;
  }
}

.icon-sprite {
  display: none;
}

@media (max-width: 47.999rem) {
  .order-facts > div {
    font-size: 0.75rem;
    gap: 0.375rem;
  }
}

.tile-field legend > .i,
.field__label > .i {
  margin-right: 0.4rem;
}

/* A selected price-list row gives its full name a line before the wider control. */
.prices__row.has-order {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
.prices__row.has-order .prices__name,
.prices__row.has-order .prices__end {
  flex-basis: 100%;
  min-width: 0;
}
.prices__row.has-order .prices__end {
  justify-content: space-between;
}

/* Round 3: compact receipt controls and a rail with its own scroll boundary. */
.order-rail__sticky {
  max-height: min(
    32rem,
    calc(100svh - var(--top-chrome) - var(--stepper-height) - 3rem)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
}
.counter-search {
  top: calc(var(--top-chrome) + var(--stepper-height));
}
.counter-category {
  scroll-margin-top: var(--category-offset);
}
.buy__ctl {
  border: 0;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.buy__amount,
.order-line__qty {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.buy__q {
  width: 3.5ch;
  min-width: 3.5ch;
  border: 0;
  padding: 0;
  text-align: center;
}
.buy__unit-word {
  font-size: 0.6875rem;
  padding-right: 4px;
}
.amount-value {
  display: flex;
  align-items: center;
  font-size: 0.6875rem;
}
.amount-value input {
  width: 3.5ch;
  min-width: 3.5ch;
  padding: 0;
  border: 0;
  text-align: center;
}
.order-line__qty .amount-value span {
  padding-right: 4px;
}
.prices__add {
  width: 44px;
  padding: 0;
  transition:
    transform 160ms var(--order-ease),
    background-color 160ms var(--order-ease),
    color 160ms var(--order-ease);
}
.prices__add:active {
  transform: scale(0.96);
}
.counter-row > :first-child,
.prices__name {
  padding-left: 0;
}
.counter-row__name,
.prices__label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}
.counter-row__name > .i,
.prices__label > .i {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.counter-row__meta,
.prices__name > .tags {
  margin-left: 20px;
}
.slip__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-slip .slip__crest {
  width: 32px;
  height: auto;
  margin: 0;
}
.slip__title {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.slip__edit {
  margin-left: auto;
}
.slip__pickup {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
[data-basket-empty] {
  text-align: center;
  padding: 24px;
}
[data-basket-empty] > .i {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}
[data-basket-empty] strong,
[data-basket-empty] > span {
  display: block;
}
[data-basket-empty] strong {
  font-weight: 400;
}
[data-basket-empty] > span {
  font-size: 0.75rem;
  color: #626262;
  margin-top: 8px;
}
.order-line__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  gap: 8px;
  align-items: center;
}
.order-line__name {
  padding: 0;
  font-weight: 500;
}
.order-line__price {
  color: #626262;
  white-space: nowrap;
}
.order-line__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}
.line-remove {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}
.order-line__qty button:disabled {
  opacity: 0.35;
}
.drawer-receipt-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.drawer-receipt-head p {
  flex: 1 0 100%;
  color: #626262;
}
@media (hover: hover) and (pointer: fine) {
  .order-rail__sticky {
    scrollbar-width: thin;
  }
  .order-rail__links a {
    min-height: 40px;
  }
  .line-remove {
    width: 36px;
    min-height: 36px;
  }
  .prices__add {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* Christmas surfaces (K1, Karen 10 Nov: the lights and baubles came out, snow carries the season). */
html.is-jol .footer {
  border-top: 0;
}
html.is-jol .order-head--occasion {
  /* holds its snow layer: without this the canvas stretches over the whole page
     and every flake draws as a tall streak (found 10 Nov, after the lights left) */
  position: relative;
  background: var(--jol-ground);
  color: var(--jol-cream);
  max-width: none;
}
html.is-jol .order-head--occasion :is(h1, a, .text-mid-gray) {
  color: var(--jol-cream);
}
html.is-jol .order-head--occasion :is(.jol-kicker, [data-order-lede]) {
  color: var(--jol-gold-text);
}
html.is-jol .order-head--occasion > :not(.hero__snow-layer) {
  position: relative;
  z-index: 22;
}
html.is-jol
  :is(
    .section-kicker,
    .eyebrow,
    .order-step__title,
    .order-head > p.uppercase
  ) {
  color: var(--jol-red);
}
html.is-jol .order-head--occasion > p.uppercase {
  color: var(--jol-gold-text);
}
html.is-jol :is(.draw-rule, .counter-row, .prices__row, .slip__pickup) {
  --rule: var(--jol-gold);
}
html.is-jol .is-complete .order-progress__circle {
  background: var(--jol-ground);
  color: var(--jol-cream);
  border-color: var(--jol-ground);
}
html.is-jol .is-current .order-progress__circle {
  border-color: var(--jol-red);
}
html.is-jol .order-progress__step::after {
  background: var(--jol-ground);
}
html.is-jol .prices__add {
  border-color: var(--jol-ground);
  color: var(--jol-ground);
}
html.is-jol .navdrop__row:has(use[href='#i-christmas-tree']) .navdrop__icon,
html.is-jol .navdrop__row:has(use[href='#i-gift']) .navdrop__icon {
  color: var(--jol-gold-text);
}
html.is-jol:has(.order-head--occasion) .day-tile span {
  border-top: 2px solid var(--jol-red);
}
html.is-jol:has(.order-head--aramot) .day-tile span {
  border-top-color: var(--jol-gold);
}
@media (hover: hover) and (pointer: fine) {
  html.is-jol .prices__add:hover {
    background: var(--jol-ground);
    color: var(--jol-cream);
  }
}

.remember-choice label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.remember-choice input {
  appearance: auto;
  width: 20px;
  height: 20px;
}
.remember-choice button,
.remember-actions > button,
.remember-history button,
.remember-toast button {
  min-height: 44px;
}
.remember-choice [data-forget] {
  text-decoration: underline;
}
.remember-card {
  position: relative;
  padding: 24px 48px 24px 24px;
  margin-bottom: 32px;
  background: var(--slip-paper);
  scroll-margin-top: var(--category-offset);
}
.remember-card p {
  margin-top: 8px;
}
.remember-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
}
.remember-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.remember-history {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--order-luxe);
}
.remember-history.is-open {
  grid-template-rows: 1fr;
}
.remember-history > ul {
  overflow: hidden;
  min-height: 0;
}
.remember-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
}
.remember-history button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.remember-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--rule);
  z-index: 1000;
  box-shadow: 0 8px 24px #14141422;
}
.remember-toast button {
  margin-left: 16px;
  text-decoration: underline;
}
.same-slot {
  margin-bottom: 16px;
}
html.motion-draw .remember-card {
  animation: remember-in 420ms var(--order-luxe) both;
}
@keyframes remember-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.motion-draw .remember-card {
    animation: none;
  }
  .remember-history {
    transition: none;
  }
}
/* Keep the desktop rail usable on the narrower review viewport too. */
@media (min-width: 900px) and (max-width: 1264px) {
  .form--order {
    grid-template-columns: 12.5rem minmax(0, 1fr) 18rem;
    column-gap: 1rem;
  }
  .order-rail {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .order-chips {
    display: none;
  }
  .order-counter {
    grid-column: 2;
    grid-row: 1;
  }
  .order-slip {
    grid-column: 3;
    grid-row: 1 / 6;
  }
  .order-step,
  .form--order > .form__foot,
  .form--order > .form__status {
    grid-column: 1 / 3;
  }
  .counter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .counter-row .buy {
    grid-column: 2;
  }
  .counter-row__price {
    grid-column: 1;
    grid-row: 2;
    padding-left: 20px;
  }
}
.order-line__qty .amount-value input {
  width: 3.5ch;
  min-width: 3.5ch;
}
@media (pointer: coarse) {
  .buy__q {
    font-size: 1rem;
  }
}
@media (hover: hover) and (pointer: fine) {
}

@media (min-width: 900px) and (max-width: 1023px) {
  .counter-search {
    display: flex;
  }
}
.prices__desc,
.prices__name > .pending {
  margin-left: 20px;
}
html.is-jol :is(.page-head__kicker, .bk-card__kicker) {
  color: var(--jol-red);
}
html.is-jol .jol-head {
  overflow: visible;
}
.basket-foot [data-basket-actions] > .btn-fill {
  width: 100%;
  justify-content: center;
}
.drawer-receipt-head {
  flex: 1;
  min-width: 0;
}
.drawer-receipt-head [data-basket-size] {
  margin-left: auto;
}
.basket-panel__head > button {
  flex: 0 0 44px;
}
[data-basket-empty] .slip__empty-phone {
  display: none;
}
@media (max-width: 767px) {
  [data-basket-empty] .slip__empty-desktop {
    display: none;
  }
  [data-basket-empty] .slip__empty-phone {
    display: block;
  }
}
.counter-row__name > .row-name-text,
.prices__label > .row-name-text {
  grid-column: 2;
}

/* ── Round 4 (Claude): the amount box ──────────────────────────────────────────
   One square box everywhere (rows, slip, drawer, sheet): [− or trash] [amount] [unit] [+].
   The unit is a small button inside the box (kg ↔ g); fixed-unit rows show "stk.".
   The number and the unit share one centred line, and the field fits grams ("12500"). */
.buy__amount,
.order-line__qty {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}
.buy__amount > *,
.order-line__qty > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.buy__q,
.order-line__qty .amount-value input {
  width: 5.5ch;
  min-width: 5.5ch;
  padding: 0 2px;
  border: 0;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: transparent;
}
.amount-value {
  display: inline-flex;
  align-items: center;
}
.unit-toggle,
.unit-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 100%;
  padding: 0 0.35rem;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-black);
}
.unit-toggle {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
  transition: background-color 160ms var(--order-ease), text-decoration-color 160ms var(--order-ease);
}
.unit-word {
  color: var(--color-dark-gray);
}
@media (hover: hover) and (pointer: fine) {
  .unit-toggle:hover {
    background: rgba(20, 20, 20, 0.06);
    text-decoration-color: currentColor;
  }
}
.unit-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -3px;
}

/* ── Round 4 (Claude): the order slip shows the products first ─────────────────
   Head and pickup are one row each, the foot is one line + one row, the help line lives at
   the end of the form. The lines get every pixel that is left (and scroll inside). */
.order-slip > .slip {
  gap: 0.75rem;
}
.order-slip .slip__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
}
.order-slip .slip__crest {
  width: 28px;
  height: auto;
}
.order-slip .slip__edit {
  margin-left: auto;
}
.order-slip .slip__pickup {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.order-slip .slip__scroll {
  flex: 1 1 auto;
  min-height: 0;
}
.order-slip .basket-foot,
.basket-panel .basket-foot {
  display: grid;
  gap: 0.6rem;
}
.total-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.total-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px 0;
  color: var(--color-dark-gray);
}
.total-note {
  display: block;
  color: var(--color-dark-gray);
}
.total-note[hidden] {
  display: none;
}
[data-basket-actions] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
}
[data-basket-actions] > .btn {
  grid-column: 1;
  justify-content: center;
}
[data-basket-actions] > .empty-order {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
}
[data-basket-actions] > .empty-order[hidden] {
  display: none;
}
/* the text button ("Halda áfram að skoða"); the primary link may also close the sheet */
[data-basket-actions] > button[data-modal-close] {
  grid-column: 1 / -1;
}
.order-end .basket-help {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

/* ── Round 4 (Claude): phones = the flow + one smart bar that grows into the order ──── */
.order-bar,
.sheet-handle {
  display: none;
}
@media (max-width: 47.999rem) {
  .basket {
    display: none !important;
  }
  body.has-order-bar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .order-bar:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
    padding: 0.7rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: #141414;
    color: #f4eee2;
    text-align: left;
    -webkit-mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
    mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) 0 0 / 14px 100% repeat-x;
  }
  html.is-jol .order-bar {
    background: var(--jol-ground);
  }
  .order-bar__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }
  .order-bar__icon .i {
    width: 24px;
    height: 24px;
  }
  .order-bar__n {
    position: absolute;
    top: -2px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #f4eee2;
    color: #141414;
    font-size: 11px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .order-bar__text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    line-height: 1.25;
  }
  .order-bar__title {
    font-size: 0.875rem;
  }
  .order-bar__line {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.78;
    overflow-wrap: break-word;
    transition: opacity 160ms var(--order-ease);
  }
  .order-bar__line.is-event {
    opacity: 1;
  }
  .order-bar__line .i {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }
  .order-bar__go {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.875rem;
    flex: 0 0 auto;
  }
  .order-bar__go .i {
    width: 18px;
    height: 18px;
  }
  /* The order sheet: grows out of the bar (clip-path, motion.js), perforated top edge.
     Three-part selector: it must beat the drawer's [data-panel][data-axis="x"] placement. */
  .basket-panel[data-panel][data-axis] {
    top: max(12svh, calc(env(safe-area-inset-top, 0px) + 56px));
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: none !important;
    clip-path: inset(100% 0 0 0);
    padding: 0.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
    -webkit-mask: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 100% repeat-x;
    mask: radial-gradient(circle at 7px 0, transparent 6px, #000 6.5px) 0 0 / 14px 100% repeat-x;
  }
  /* 4 px bar to see, a 24 × 116 px area to grab */
  .sheet-handle {
    display: block;
    flex: 0 0 auto;
    box-sizing: content-box;
    width: 36px;
    height: 4px;
    margin: 0 auto;
    padding: 10px 40px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.22) content-box;
    touch-action: none;
  }
  .basket-panel__head {
    touch-action: none;
  }
}


/* Icon + words in a button keep a constant gap (the gift icon touched "Panta fyrir áramótin"). */
.btn > .i {
  flex: 0 0 auto;
  margin-right: 0.5rem;
}

/* The order's main button holds two words and nothing else: no arrow, calmer tracking
   (Sindri 11-03: "too much inside this button"). */
[data-basket-actions] > .btn {
  padding-inline: 1rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
[data-basket-actions] > .btn::after {
  display: none;
}
.slip__pickup[hidden] {
  display: none;
}

/* Ticket lines are one compact row: name · amount chip · price · trash. The − / + box opens
   under a line from its chip (Sindri 11-03: "save space where you can"). */
.order-line__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 36px;
  align-items: center;
  column-gap: 0.5rem;
}
.order-line__name {
  padding-right: 0;
}
.line-amount {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--rule);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color 160ms var(--order-ease);
}
.line-amount .i {
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--order-ease);
}
.is-editing .line-amount {
  border-color: currentColor;
}
.is-editing .line-amount .i {
  transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .line-amount:hover {
    border-color: currentColor;
  }
}
@media (pointer: coarse) {
  .line-amount {
    min-height: 44px;
  }
}
.order-line__edit {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--order-ease);
}
.order-line__edit > .order-line__bottom {
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}
.is-editing .order-line__edit {
  grid-template-rows: 1fr;
}
.is-editing .order-line__edit > .order-line__bottom {
  padding-top: 0.6rem;
}
@media (prefers-reduced-motion: reduce) {
  .order-line__edit,
  .line-amount .i {
    transition: none;
  }
}

/* A line's extras as small dropdowns (Sindri 10 Nov, design 2 of 3, from Karen's K5 questions).
   The pills share the amount chip's build (hairline, 30px, 13px) so a line reads as one family;
   a made choice fills cream and shows its words. The list (line-options.js) floats above the
   page: outside the form (Enter cannot send the order) and outside the slip's scroll box. */
.line-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}
.line-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 6px 0 9px;
  border: 1px solid var(--rule);
  background: transparent;
  color: #4a4a4a;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 160ms var(--order-ease),
    background-color 160ms var(--order-ease),
    color 160ms var(--order-ease),
    transform 120ms var(--order-ease);
}
.line-opt .i {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 200ms var(--order-ease);
}
.line-opt[aria-expanded='true'] {
  border-color: currentColor;
  color: #141414;
}
.line-opt[aria-expanded='true'] .i {
  transform: rotate(180deg);
}
.line-opt.is-set {
  border-color: #141414;
  background: #f4eee2;
  color: #141414;
}
.line-opt--note {
  padding: 0 9px 0 7px;
  border-style: dashed;
  color: #626262;
}
.line-opt--note .i,
.line-opt--note[aria-expanded='true'] .i {
  transform: none;
}
.line-opt--note.is-set {
  border-style: solid;
}
/* the customer's note shows in full on its pill and wraps; nothing is cut off, even a long
   word or a link with no spaces */
.line-opt--note.is-set .line-opt__text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.line-opt--note.is-set {
  white-space: normal;
  text-align: left;
  line-height: 1.3;
  padding-top: 6px;
  padding-bottom: 6px;
}
.line-opt--note.is-set .i {
  align-self: flex-start;
  margin-top: 1px;
}
.line-opt:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .line-opt:hover {
    border-color: currentColor;
    color: #141414;
  }
}
@media (pointer: coarse) {
  /* 34px pills with 10px between rows; each tap target reaches 44px without overlapping the
     next row (5px each way meets in the middle of the gap) */
  .line-opts {
    gap: 10px 6px;
  }
  .line-opt {
    min-height: 34px;
    padding: 0 8px 0 11px;
    font-size: 0.875rem;
  }
  .line-opt::after {
    content: '';
    position: absolute;
    inset: -5px -3px;
  }
}

.opt-pop {
  position: fixed;
  z-index: 1300;
  top: 0;
  left: 0;
  padding: 6px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbf8f1;
  color: #141414;
  border: 1px solid rgba(20, 20, 20, 0.14);
  box-shadow: 0 18px 44px rgba(20, 20, 20, 0.2);
  opacity: 0;
  transform: translateY(-4px);
  transform-origin: top left;
  transition:
    opacity 160ms var(--order-ease),
    transform 200ms var(--order-ease);
}
.opt-pop.is-up {
  transform: translateY(4px);
  transform-origin: bottom left;
}
.opt-pop.is-open {
  opacity: 1;
  transform: none;
}
.opt-pop:focus {
  outline: none;
}
.opt-pop__q {
  margin: 0;
  padding: 8px 14px 8px;
  color: #6b5a3c;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.opt-pop__note {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  resize: none;
}
.opt-pop__note:focus {
  outline: none;
  border-color: #141414;
}
.opt-pop__note::placeholder {
  color: #767676;
  opacity: 1;
}
.opt-pop__done {
  display: block;
  width: calc(100% - 28px);
  min-height: 40px;
  margin: 10px 14px 8px;
  border: 0;
  background: #861719;
  color: #f4eee2;
  font-family: Marcellus, Georgia, serif;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (pointer: coarse) {
  /* 16px: iOS does not zoom into the field */
  .opt-pop__note {
    font-size: 16px;
  }
  .opt-pop__done {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opt-pop,
  .opt-pop.is-up {
    transform: none;
    transition: opacity 120ms linear;
  }
  .line-opt,
  .line-opt .i {
    transition: none;
  }
}

/* Karen's photos (Round 4): each occasion card leads with its own meal; Um okkur shows the shop. */
.occasion-card__photo {
  margin: 0 0 var(--spacing-s);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.occasion-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Um okkur: the owner and the counter, one pair, same 4:5 frame */
.about__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-s);
  max-width: 36rem;
}
.about__photo {
  margin: 0;
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 48rem) and (max-width: 63.999rem) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 64rem) {
  .about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}


/* Phones and tablets: the price sits under the name. It lines up with the name text (past the
   tick column) and keeps clear of the selected row's bar (Sindri 11-04: "verð í síma is too
   close to border"). */
@media (max-width: 63.999rem) {
  .counter-row__price {
    padding-left: 20px;
  }
}
.prices__row.has-order .prices__end {
  padding-left: calc(20px + 0.5rem);
}

/* Phones: while the order bar is up, the first screen ends above it, so the hero's buttons never
   sit under the bar or show through its scalloped edge (iOS pass 11-04). 72px = the bar + its edge. */
@media (max-width: 47.999rem) {
  body.has-order-bar .hero {
    --hero-height: calc(var(--svh) * 100 - 72px - env(safe-area-inset-bottom)) !important;
  }
}

/* K8: a shared disclosure at every pointer type and viewport. */
.navdrop{display:block}
@media (max-width:47.999rem){
  .navdrop__toggle{display:none}
  .navdrop__panel{position:fixed;top:var(--top-chrome);right:16px;width:20rem;max-width:calc(100vw - 32px)}
}
.opt-pop__examples{padding-inline:14px;font-size:.8125rem;line-height:1.5;overflow-wrap:anywhere;margin-bottom:.75rem}
.opt-pop__examples p + p{margin-top:.5rem}
.form--gift{max-width:48rem;margin-inline:auto;padding:2rem 1rem}
.form--gift .order-step{display:block;margin-block:2rem}
.form--gift .order-step__content{margin-top:1rem}
.giftcard-image{display:block;max-width:100%;height:auto;margin-block:2rem}

.giftcard-copy{display:grid;gap:var(--spacing-m);max-width:40rem}

/* Pickup hours under the December calendar, phones only (design audit 11 Nov). */
.calendar-hours { display: none; }
@media (max-width: 47.99rem) {
  .calendar-hours { display: grid; gap: 0.25rem; margin-top: var(--spacing-s, 1rem); }
  .calendar-hours p { margin: 0; }
}

/* The sent view replaces the three-column order form: one centred column of reading width (13 Nov scenario run:
   the receipt sat in the narrow left column with the rest of the screen empty). */
.form--order.is-sent { display: block; max-width: 40rem; margin-inline: auto; }
.form--order.is-sent .sent { width: 100%; }
/* Gift card page on a wide screen: words and form on the left, the envelope beside them (design pass 15 Nov: it filled the width and the form sat indented under it). */
@media (min-width:64rem){
  .giftcard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,30rem);column-gap:var(--spacing-xxl);align-items:start}
  .giftcard>.giftcard-copy{grid-column:1;grid-row:1}
  .giftcard>.giftcard-image{grid-column:2;grid-row:1/span 2;position:sticky;top:9rem;margin:0}
  .giftcard>.form--gift{grid-column:1;grid-row:2;margin:var(--spacing-l) 0 0;padding-inline:0;max-width:48rem}
}
