:root {
  color-scheme: light;
  font-family: 'Instrument Sans', sans-serif;
  color: #28332d;
  background: #eeefeb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html {
  scrollbar-gutter: stable;
}
html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}
dialog {
  overscroll-behavior: contain;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #86a751;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: white;
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
.cabinet-shell {
  max-width: 1060px;
  padding: 0 40px 48px;
  margin: 0 auto;
  transition: opacity 0.25s;
}
.cabinet-shell[inert] {
  opacity: 0.35;
}
.cabinet-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
  text-decoration: none;
}
.wordmark span {
  color: #8b9f70;
}
.cabinet-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
}
.cabinet-header nav a {
  text-decoration: none;
}
.plain-button,
.icon-button {
  border: 0;
  color: inherit;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 12px;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  font-size: 26px;
}
.icon-button:hover {
  background: #dce1d7;
}
.machine {
  position: relative;
  margin: 26px auto 0;
  max-width: 940px;
  padding: 0 28px 30px;
  background: linear-gradient(110deg, #e0e3da, #d4d9cd);
  border: 1px solid #b9c1b2;
  border-radius: 24px 24px 18px 18px;
  box-shadow:
    inset 0 2px 0 #fff9,
    inset -4px 0 0 #b7c0ad66,
    0 25px 45px -28px #25371d55,
    0 2px 0 #bac2b1;
}
.machine-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}
.machine-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: #68745f;
}
.machine-status {
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.machine-status i {
  width: 5px;
  height: 5px;
  background: #638646;
  border-radius: 50%;
  box-shadow: 0 0 7px #6a8d4866;
}
.machine-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
}
.machine-left {
  min-width: 0;
}
.glass-display {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 7px solid #3c443a;
  background: linear-gradient(120deg, #e6eae3, #cdd6c7);
  box-shadow:
    inset 0 0 28px #28332325,
    0 1px 0 #fff9;
}
.machine-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 14px 0;
  gap: 8px;
  z-index: 1;
}
.search-control {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #65735c;
  max-width: 65%;
}
.search-control svg {
  width: 14px;
  height: 14px;
}
.search-control input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-size: 12px;
  color: #39462f;
  outline-offset: 1px;
}
.search-control input::placeholder {
  color: #69745f;
}
.machine-filter select {
  max-width: 95px;
  background: transparent;
  color: #5e6a55;
  border: 0;
  font-size: 12px;
  padding: 7px 0;
}
.drink-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 12px 14px 0;
  flex: 1;
  align-content: center;
}
.drink-slot {
  min-width: 0;
  text-align: center;
  position: relative;
  padding: 16px 4px 20px;
  border-bottom: 5px solid #9aa58f;
  box-shadow: 0 4px 0 #f8fff26b;
}
.drink-slot::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 91px;
  height: 12px;
  border-radius: 50%;
  background: #687a5355;
  filter: blur(8px);
}
.drink-art {
  position: relative;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: end;
  margin-bottom: 18px;
}
.v-can {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  width: 75px;
  border-radius: 11px 11px 15px 15px;
  background: linear-gradient(90deg, #557052, #789274 40%, #3b573b);
  color: white;
  box-shadow:
    inset 2px 0 2px #fff6,
    inset -5px 0 7px #0002,
    5px 9px 10px #35452e28;
  transition: transform 0.18s;
}
.v-can::before,
.v-can::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, #929b99, #f8faf4 40%, #9aa49e);
}
.v-can::before {
  top: 0;
  border: 1px solid #bec5bd;
}
.v-can::after {
  bottom: 2px;
}
.v-label {
  font:
    bold italic 26px Georgia,
    serif;
  transform: rotate(-12deg);
  text-shadow: 0 1px 1px #0002;
  max-width: 95%;
  overflow-wrap: anywhere;
  line-height: 1;
}
.v-original .v-label {
  font:
    600 17px 'Instrument Sans',
    sans-serif;
  transform: none;
  text-shadow: none;
  max-width: 90%;
  line-height: 1.05;
}
.v-cola {
  background: linear-gradient(90deg, #a12422, #df3f35 45%, #a92b23);
}
.v-pepsi {
  background: linear-gradient(90deg, #163f87, #2b64bb 45%, #173b7c);
}
.v-pepsi .v-label {
  font:
    600 15px Arial,
    sans-serif;
  transform: none;
  letter-spacing: -0.5px;
}
.v-pepsi .v-label::before {
  content: '';
  display: block;
  margin: 0 auto 10px;
  width: 31px;
  height: 31px;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(170deg, #d64639 43%, #fff 44% 57%, #225aaa 58%);
}
.v-water {
  height: 155px;
  width: 63px;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(90deg, #b3d7cbb3, #e6f0e1, #95baacaa);
  border: 1px solid #9db6a5;
  color: #2c5743;
}
.v-water::before {
  width: 30px;
  height: 10px;
  left: 15px;
  top: -5px;
  border-radius: 3px;
  background: #476b54;
  border: 0;
}
.v-water .v-label {
  width: 100%;
  max-width: 100%;
  background: #ecf1d8;
  padding: 15px 2px;
  font:
    15px Arial,
    sans-serif;
  transform: none;
  text-shadow: none;
}
.drink-slot.selected .v-can {
  transform: translateY(-5px);
}
.drink-slot.sold-out .drink-art {
  opacity: 0.35;
}
.slot-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 130px;
  margin: 0 auto;
  border: 1px solid #abb5a1;
  background: #f1f3ec;
  color: #3a4932;
  box-shadow: 0 3px 0 #9ca891;
  border-radius: 5px;
  padding: 10px 4px;
  font-size: 12px;
  min-height: 42px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.slot-button b {
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  color: #8a927f;
}
.slot-button:hover:not(:disabled) {
  background: #fff;
}
.slot-button[aria-pressed='true'] {
  background: #d9eba9;
  border-color: #7b8e59;
  box-shadow: 0 1px 0 #7b8e59;
  transform: translateY(2px);
}
.slot-price {
  display: block;
  margin-top: 11px;
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  color: #58654d;
}
.machine-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 48px;
  margin-top: 12px;
}
.machine-pagination button {
  border: 0;
  background: transparent;
  color: #536149;
  padding: 8px 12px;
}
.machine-pagination span {
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  letter-spacing: 0.2px;
  color: #717e64;
}
.catalog-message {
  text-align: center;
  font-size: 12px;
  margin: 12px;
  color: #68735d;
}
.catalog-message:empty {
  display: none;
}
.pickup {
  margin-top: 22px;
  height: 82px;
  padding: 8px;
  background: #9ba68f;
  border: 1px solid #a1ac95;
  border-radius: 10px;
  box-shadow:
    inset 0 4px 6px #0002,
    0 1px 0 #fff8;
}
.pickup-door {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(#414a3b, #56614d);
  box-shadow: 0 3px 0 #7e8c72;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #b8c2aa;
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  letter-spacing: 0;
  transition: background 0.3s;
}
.pickup-door svg {
  width: 16px;
  height: 16px;
}
.pickup.dispensed .pickup-door {
  background: #809653;
  color: #fff;
}
.machine-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.selection-screen {
  background: #25362d;
  color: #e3edca;
  border: 5px solid #3d483a;
  border-radius: 11px;
  padding: 22px 18px 19px;
  min-height: 222px;
  box-shadow:
    inset 0 2px 8px #0003,
    0 1px 0 #fff8;
  overflow-wrap: anywhere;
}
.screen-code {
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  color: #a9bf8d;
}
.selection-screen h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 15px 0 8px;
}
.screen-stock {
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  color: #a3b69c;
  min-height: 12px;
  display: block;
}
.screen-price {
  margin-top: 29px;
  border-top: 1px solid #506348;
  padding-top: 13px;
}
.screen-price span {
  display: block;
  font:
    500 12px 'Instrument Sans',
    sans-serif;
  letter-spacing: 0.2px;
  color: #a4b293;
}
.screen-price strong {
  display: block;
  margin-top: 8px;
  font:
    500 42px 'Barlow Condensed',
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.control-label {
  display: block;
  font-size: 12px;
  color: #69765e;
  margin: 23px 0 11px;
}
.quantity-controls {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  height: 43px;
  gap: 7px;
}
.quantity-controls button {
  border: 1px solid #b3bda7;
  background: linear-gradient(#f1f3eb, #e0e5d8);
  color: #455337;
  border-radius: 5px;
  box-shadow: 0 2px 0 #abb79d;
  font-size: 22px;
}
.quantity-controls input {
  min-width: 0;
  width: 100%;
  text-align: center;
  font:
    500 16px 'Instrument Sans',
    sans-serif;
  border: 1px solid #b7c1ad;
  background: #e6ebdd;
  border-radius: 4px;
  color: #3d4e31;
  appearance: textfield;
}
.quantity-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.dispense-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #98a873;
  border-radius: 6px;
  color: #324622;
  background: #cde39a;
  box-shadow:
    0 4px 0 #93a56e,
    inset 0 1px 0 #f4ffdc;
  font-size: 14px;
  font-weight: 600;
}
.dispense-button:hover:not(:disabled) {
  background: #d9efaa;
}
.dispense-button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #93a56e;
}
.machine-vent {
  margin: auto 3px 5px;
  height: 34px;
  background: repeating-linear-gradient(to bottom, #b1bba5 0 2px, transparent 2px 7px);
  width: 70%;
  opacity: 0.7;
}
.machine-feet {
  position: absolute;
  bottom: -11px;
  left: 38px;
  right: 38px;
  display: flex;
  justify-content: space-between;
}
.machine-feet i {
  width: 52px;
  height: 11px;
  border-radius: 0 0 4px 4px;
  background: #737e67;
}
.inline-error {
  font-size: 12px;
  color: #9d372d;
  line-height: 1.5;
  margin: 16px 0 0;
}
.inline-error:empty {
  display: none;
}
.app-message {
  text-align: center;
  font-size: 12px;
  margin: 26px 0 0;
  color: #8f3f33;
}
.modal {
  width: min(420px, calc(100% - 32px));
  border: 1px solid #e1e5db;
  background: #fafbf6;
  color: #28332d;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 25px 90px #17221833;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
.modal::backdrop {
  background: #2730273d;
  backdrop-filter: blur(9px);
}
.modal h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 0;
}
.login-modal .wordmark {
  display: inline-block;
  font-size: 21px;
  margin-bottom: 36px;
}
.login-modal h2 {
  margin-bottom: 28px;
}
.modal label {
  display: block;
  font-size: 12px;
  margin: 20px 0 9px;
  color: #5e695b;
}
.modal input {
  width: 100%;
  background: white;
  border: 1px solid #d7ddd1;
  border-radius: 6px;
  padding: 13px 12px;
  font-size: 14px;
  color: #2d3828;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #2f4434;
  color: #f4f8ef;
  font-size: 13px;
  padding: 15px 17px;
  margin-top: 25px;
  min-height: 46px;
}
.primary-button:hover {
  background: #3c5540;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-heading .icon-button {
  margin-right: -10px;
}
.receipt-product {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid #dce2d6;
  border-bottom: 1px solid #dce2d6;
}
.receipt-product h3 {
  margin: 0 0 9px;
  font-size: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.receipt-product p {
  margin: 0;
  color: #7a8572;
  font-size: 12px;
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 23px 0;
}
.receipt-total span {
  color: #6d7b62;
  font-size: 12px;
}
.receipt-total strong {
  font:
    500 36px 'Barlow Condensed',
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.receipt-reference {
  display: block;
  overflow-wrap: anywhere;
  font:
    500 10px/1.6 'Instrument Sans',
    sans-serif;
  color: #86907e;
  margin-top: 18px;
}
.receipt-date {
  font-size: 12px;
  color: #7c8871;
  margin: 0 0 20px;
}
.receipt-note {
  font-size: 11px;
  color: #8b937e;
}
.history-modal {
  width: min(500px, calc(100% - 32px));
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e2e7dc;
  background: transparent;
  text-align: left;
  padding: 18px 0;
  color: #34422d;
  gap: 12px;
}
.history-row:hover {
  color: #6a873f;
}
.history-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.history-row small {
  display: block;
  color: #909884;
  font-size: 11px;
  margin-top: 7px;
}
.history-row > span:last-child {
  white-space: nowrap;
  font:
    500 13px 'Instrument Sans',
    sans-serif;
}
.history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 20px;
}
.empty-history {
  color: #7a8571;
  font-size: 13px;
  padding: 24px 0;
}
.noscript {
  position: fixed;
  bottom: 20px;
  background: white;
  padding: 20px;
  width: 100%;
  text-align: center;
}
@media (min-width: 1200px) and (min-height: 850px) {
  .machine {
    margin-top: 40px;
  }
}
@media (max-width: 760px) {
  .cabinet-shell {
    padding: 0 20px 35px;
  }
  .cabinet-header {
    height: 78px;
  }
  .machine {
    margin-top: 18px;
    padding: 0 18px 22px;
    border-radius: 20px;
  }
  .machine-body {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px;
  }
  .machine-top {
    height: 52px;
  }
  .glass-display {
    border-width: 5px;
  }
  .drink-grid {
    margin: 12px 6px 0;
  }
  .v-can {
    width: 57px;
    height: 125px;
  }
  .v-label {
    font-size: 21px;
  }
  .v-water {
    width: 48px;
    height: 132px;
  }
  .v-water::before {
    left: 10px;
    width: 25px;
  }
  .v-water .v-label {
    font-size: 12px;
  }
  .selection-screen {
    padding: 18px 13px;
  }
  .selection-screen h1 {
    font-size: 22px;
  }
  .screen-price strong {
    font-size: 38px;
  }
  .slot-button {
    font-size: 11px;
    gap: 4px;
  }
  .slot-button b {
    display: none;
  }
  .machine-filter {
    margin: 10px;
  }
  .drink-art {
    height: 155px;
  }
}
@media (max-width: 580px) {
  .cabinet-shell {
    padding: 0 12px 28px;
  }
  .cabinet-header {
    padding: 0 8px;
    height: 72px;
  }
  .wordmark {
    font-size: 23px;
  }
  .cabinet-header nav {
    gap: 14px;
  }
  .cabinet-header nav a {
    font-size: 11px;
  }
  .machine {
    margin-top: 10px;
    padding: 0 14px 20px;
  }
  .machine-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .machine-top {
    height: 44px;
  }
  .glass-display {
    min-height: 282px;
  }
  .drink-grid {
    margin-top: 0;
  }
  .drink-art {
    height: 133px;
    margin-bottom: 12px;
  }
  .v-can {
    height: 118px;
    width: 60px;
  }
  .v-water {
    height: 126px;
    width: 50px;
  }
  .v-water::before {
    left: 12px;
  }
  .drink-slot {
    padding: 12px 6px 12px;
  }
  .slot-price {
    margin-top: 9px;
  }
  .slot-button b {
    display: inline;
  }
  .machine-pagination {
    margin-top: 5px;
    height: 33px;
  }
  .machine-filter {
    margin-top: 5px;
  }
  .pickup {
    margin-top: 14px;
    height: 49px;
  }
  .machine-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
  }
  .selection-screen {
    min-height: 187px;
    padding: 16px 11px;
    border-width: 4px;
  }
  .selection-screen h1 {
    font-size: 20px;
    margin: 10px 0 7px;
  }
  .screen-price {
    margin-top: 17px;
    padding-top: 11px;
  }
  .screen-price strong {
    font-size: 34px;
  }
  .screen-stock {
    font-size: 11px;
  }
  .control-label {
    margin: 4px 0 10px;
    font-size: 11px;
  }
  .quantity-controls {
    grid-template-columns: 34px 1fr 34px;
    height: 39px;
    gap: 4px;
  }
  .dispense-button {
    margin-top: 16px;
    padding: 15px 11px;
    font-size: 12px;
  }
  .dispense-button svg {
    width: 16px;
    height: 16px;
  }
  .machine-vent {
    display: none;
  }
  .inline-error {
    font-size: 12px;
    margin-top: 12px;
  }
  .machine-feet {
    left: 24px;
    right: 24px;
  }
  .modal {
    padding: 26px;
  }
  .login-modal .wordmark {
    margin-bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
