@font-face {
  font-family: "Barlow Condensed";
  src: url("../common/barlow-condensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
* { box-sizing: border-box }
html { background: #eceee6; color: #122e2b; font-family: Arial, sans-serif }
.page-kiosk {
  margin: 0; min-height: 0;
  overflow: hidden; display: flex; flex-direction: column;
}
.page-kiosk > header {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  color: white; background: #073b34; padding-inline: max(12px, calc((100vw - 820px) / 2));
}
.page-kiosk header a { color: white; text-decoration: none }
.page-kiosk header b { font: 700 1.25rem "Barlow Condensed", sans-serif; letter-spacing: 1px }
.page-kiosk main {
  width: 100%; max-width: 840px; min-height: 0; flex: 1; display: flex; flex-direction: column;
  margin: 0 auto; padding: 0 10px 8px; overflow: hidden;
}
.page-kiosk main > nav { flex: none }
.page-kiosk main > nav button[aria-current=true] { color: #103e32; box-shadow: inset 0 -3px #2c694b }
.page-kiosk button, .page-kiosk input, .page-kiosk select { font: inherit }
.page-kiosk button {
  cursor: pointer; color: inherit; background: #fffdf7; border: 1px solid #a2b09c;
  border-radius: 7px; min-height: 44px; padding: 6px 12px; font-weight: 650;
}
.page-kiosk button:disabled { opacity: .45; cursor: default }
.page-kiosk :focus-visible { outline: 3px solid #b35a24; outline-offset: -3px }
.page-kiosk #app {
  min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid #b2bcae; border-radius: 12px; background: #fffdf7;
}
.page-kiosk .banner { background: #093e35; color: #fffbe9; padding: 12px 16px; flex: none }
.page-kiosk h1 { font: 700 clamp(30px,6vw,46px)/1 "Barlow Condensed", sans-serif; margin: 0 }
.page-kiosk .banner p { margin: 4px 0 0; color: #deead8 }
.page-kiosk .form {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
  padding: 12px 16px; overflow: auto; min-height: 0;
}
.page-kiosk .form p { margin: 0 }
.page-kiosk .form label { font-weight: 700 }
.page-kiosk .form input, .page-kiosk .form select {
  width: 100%; min-height: 44px; background: white; border: 1px solid #94a593;
  border-radius: 7px; color: #123a2b; padding: 6px 12px; font-size: 18px;
}
.page-kiosk #number { font: 700 1.55rem monospace; text-transform: uppercase; letter-spacing: 2px }
.page-kiosk .primary { background: #c8e68b; color: #173825; border-color: #a1b778 }
.page-kiosk .plain { background: transparent; border-color: transparent; text-decoration: underline }
.page-kiosk .checkout { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.page-kiosk .products { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px }
.page-kiosk .product {
  display: grid; grid-template-columns: minmax(0,1fr) 44px 23px 44px; align-items: center;
  gap: 4px; min-height: 56px; border-bottom: 1px solid #d7dacd;
}
.page-kiosk .product strong, .page-kiosk .product small { display: block }
.page-kiosk .product small, .page-kiosk .form small { color: #54625a; line-height: 1.35 }
.page-kiosk .product output { text-align: center; font-weight: bold; font-variant-numeric: tabular-nums }
.page-kiosk .product button { font-size: 21px; padding: 0 }
.page-kiosk .pay {
  flex: none; display: grid; grid-template-columns: auto 1fr; gap: 6px;
  padding: 5px 10px; background: #eff3e4; border-top: 1px solid #c4cdb7;
}
.page-kiosk #notice { flex: none }
.page-kiosk #notice:not(:empty) { padding: 5px 10px; background: #fff2c5; border-radius: 6px; font-size: .9rem }
@media (min-width: 590px) {
  .page-kiosk #app { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); grid-template-rows: minmax(0,1fr) }
  .page-kiosk .banner { padding: 18px 14px }
  .page-kiosk .form { align-self: start; max-height: 100% }
}
.page-kiosk .entry-banner label { display:block; font-weight:bold; margin-top:9px }
.page-kiosk .readout { display:flex; align-items:center; gap:6px; margin:3px 0 }
.page-kiosk #number { width:5ch; border:0; border-radius:5px; text-align:center; background:#fffbed; color:#143a2f }
.page-kiosk .readout button { min-width:44px; font-size:1.3rem; background:#326154; border-color:#739288; color:#fff }
.page-kiosk .lookup { color:#e9f2dc; border:0; background:none; padding:0; text-decoration:underline }
.page-kiosk .entry-controls { display:flex; flex-direction:column; min-height:0; gap:6px; padding:7px; overflow:auto }
.page-kiosk .entry-controls > button { flex:none }
.page-kiosk .keyboard { display:grid; gap:4px; grid-template-columns:repeat(7,minmax(0,1fr)) }
.page-kiosk .keyboard.digits { grid-template-columns:repeat(5,minmax(0,1fr)) }
.page-kiosk .keyboard button { padding:0; min-width:0; font-family:system-ui,sans-serif; background:#f1f4e8 }
.page-kiosk .collection small, .page-kiosk .collection strong { display:block }
.page-kiosk .collection strong { font:700 2.5rem "Barlow Condensed",sans-serif }
@media(max-width:589px) {
  .page-kiosk .entry-banner { display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 8px }
  .page-kiosk .entry-banner h1,.page-kiosk .entry-banner p { grid-column:1/-1 }
  .page-kiosk .entry-banner label { position:absolute; overflow:hidden; clip-path:inset(50%); width:1px; height:1px }
  .page-kiosk .entry-controls { flex:1 }
}
@media(min-width:590px) and (max-height:420px) {
  .page-kiosk .keyboard { gap:3px }
  .page-kiosk .keyboard button { min-height:clamp(32px,10.2dvh,42px) }
  .page-kiosk .entry-controls { padding:4px 7px; gap:4px }
}
