* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  color: #121212;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  background: #d62828;
  color: #fff;
  padding: 12px 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.brand .title {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
}

.brand .subtitle {
  font-size: 12px;
  opacity: .9;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.points-pill {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.fluid {
  width: 100%;
  max-width: none;
  margin: 0;
}

.layout {
  width: 100%;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.section-title {
  margin: 6px 0 12px;
  font-size: 18px;
}

.group-title {
  margin: 10px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.menu-group + .menu-group {
  margin-top: 20px;
}

.menu-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.select,
.input,
.kioskInput {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 700;
  width: 100%;
  min-width: 0;
}

.selectedDishWrap {
  padding: 12px 14px 0;
  margin: 6px 0 8px;
}

.selectedDishInner {
  width: 100%;
}

.selectedDishCard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  background: #111;
}

.selectedDishCard img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.selectedDishOverlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.76), rgba(0,0,0,.18), transparent);
}

.selectedDishTitle {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.1;
}

.selectedDishSub {
  font-size: 0.98rem;
  opacity: .95;
}

.kioskOrderWrap {
  padding: 12px 14px 0;
}

.kioskOrderInner {
  width: 100%;
}

.kioskOrderCard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 16px;
}

.kioskOrderTitle {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.kioskInput {
  width: 100%;
  margin-bottom: 14px;
  font-size: 15px;
}

.kioskSizeTitle {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.kioskSizeRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.kioskSizeRow:last-of-type {
  border-bottom: none;
}

.kioskSizeRow label {
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.kioskSizeRow select {
  width: 120px;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  background: #fff;
}

.kioskSizeInfo {
  flex: 1;
  min-width: 0;
}

.kioskSizeInfo label {
  display: block;
  width: 100%;
}

.kioskSizeActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kioskSelectBtn {
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 900;
}

.kioskQtyBtn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #fcbf49;
  color: #121212;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.kioskQtyBtn:hover {
  filter: brightness(.97);
}

.kioskQtyValue {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
}

.kioskSizeRow[data-kiosk-size].active {
  background: #fff7e8;
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
  border-bottom-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(252,191,73,.55);
}

.kioskTotalLine {
  text-align: center;
  margin: 16px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.sauceSection {
  margin-top: 12px;
}

.quickWrap {
  padding: 12px 14px 0;
}

.quickInner {
  width: 100%;
}

.quickCard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 14px;
}

.quickTitle {
  font-weight: 900;
  font-size: 18px;
}

.quickSub {
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}

.quickGrid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quickTile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fafafa;
  cursor: pointer;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.quickTile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.quickTile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%);
}

.quickTileContent {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.quickTileText {
  color: #fff;
}

.quickTileText .h {
  font-weight: 900;
  font-size: 16px;
}

.quickTileText .p {
  font-size: 12px;
  opacity: .9;
  margin-top: 3px;
}

.quickBadge {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
}

.card-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.card-price {
  font-weight: 900;
  font-size: 18px;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 12px;
}

#toggleEntreesIcon {
  font-size: 24px;
  line-height: 1;
}

.collapsed {
  display: none !important;
}

.drink-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drink-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drink-slider::-webkit-scrollbar {
  height: 8px;
}

.drink-slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 999px;
}

.drink-slider .card {
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 220px;
}

.slider-btn {
  border: none;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
}

.cart {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 14px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 92px);
  overflow: auto;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cart-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.cart-meta {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px;
}

.cart-badge {
  font-weight: 900;
  background: #f1f1f1;
  padding: 8px 10px;
  border-radius: 999px;
}

.cart-items {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty {
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
  text-align: center;
  opacity: .85;
}

.cart-row {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.name {
  font-weight: 900;
}

.small {
  font-size: 12px;
  opacity: .7;
}

.right {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 999px;
  overflow: hidden;
}

.qtybtn {
  width: 36px;
  height: 34px;
  border: none;
  background: #f2f2f2;
  cursor: pointer;
  font-weight: 900;
}

.qtynum {
  min-width: 34px;
  text-align: center;
  font-weight: 900;
  padding: 0 10px;
}

.line {
  font-weight: 900;
}

.remove {
  border: none;
  background: #ffe0e0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
  width: auto;
}

.cart-summary {
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.row.total {
  font-size: 18px;
}

.pay {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.hint {
  font-size: 12px;
  opacity: .8;
  text-align: center;
  min-height: 16px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 12px;
  cursor: pointer;
  font-weight: 900;
  width: 100%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background: #fcbf49;
  color: #121212;
}

.btn.success {
  background: #2a9d8f;
  color: #fff;
}

.btn.warning {
  background: #457b9d;
  color: #fff;
}

.btn.ghost {
  background: rgba(255,255,255,.18);
  color: #fff;
  width: auto;
}

.btn.ghost.danger {
  background: rgba(0,0,0,.18);
}

.points-modal,
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.points-modal.show,
.checkout-modal.show {
  display: flex;
}

.points-modal-card,
.checkout-modal-card {
  background: #fff;
  width: min(92vw, 460px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,.18);
}

.points-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

.points-actions {
  display: grid;
  gap: 10px;
}

.points-note {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.checkout-summary-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 14px;
}

/* iPad landscape / smaller laptops */
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr 320px;
  }

  .selectedDishCard img {
    height: 260px;
  }
}

/* iPad portrait */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .cart {
    position: relative;
    top: auto;
    height: auto;
  }

  .selectedDishCard img {
    height: 240px;
  }

  .top-actions {
    width: 100%;
  }
}

/* iPhone / mobile */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .brand .title {
    font-size: 18px;
  }

  .brand .subtitle {
    font-size: 11px;
  }

  .top-actions {
    gap: 6px;
  }

  .points-pill {
    font-size: 12px;
    padding: 8px 10px;
  }

  .layout {
    padding: 10px;
    gap: 10px;
  }

  .selectedDishWrap,
  .kioskOrderWrap,
  .quickWrap {
    padding: 10px 10px 0;
  }

  .selectedDishCard {
    min-height: 160px;
    border-radius: 14px;
  }

  .selectedDishCard img {
    height: 180px;
  }

  .selectedDishOverlay {
    padding: 14px 12px;
  }

  .selectedDishTitle {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .selectedDishSub {
    font-size: .85rem;
  }

  .kioskOrderCard,
  .quickCard,
  .card,
  .cart {
    border-radius: 12px;
  }

  .kioskOrderCard {
    padding: 12px;
  }

  .kioskOrderTitle {
    font-size: 17px;
  }

  .kioskSizeTitle {
    font-size: 15px;
  }

  .kioskSizeRow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .kioskSizeRow label {
    width: 100%;
  }

  .kioskSizeRow select {
    width: 100%;
    text-align: left;
  }

  .kioskSizeActions {
    justify-content: space-between;
    width: 100%;
  }

  .kioskSelectBtn {
    flex: 1;
    min-width: 0;
  }

  .kioskQtyValue {
    min-width: 24px;
  }

  .kioskTotalLine {
    font-size: 18px;
  }

  .quickGrid {
    grid-template-columns: 1fr;
  }

  .quickTile {
    min-height: 120px;
  }

  .quickTileContent {
    padding: 10px;
  }

  .quickTileText .h {
    font-size: 15px;
  }

  .quickTileText .p {
    font-size: 11px;
  }

  .quickBadge {
    font-size: 11px;
    padding: 8px 10px;
  }

  .accordion-toggle {
    font-size: 18px;
    padding: 12px 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-img {
    height: 170px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-price {
    font-size: 16px;
  }

  .drink-slider-wrap {
    gap: 6px;
  }

  .drink-slider {
    gap: 10px;
    padding-bottom: 8px;
  }

  .drink-slider .card {
    min-width: 180px;
    max-width: 180px;
    flex: 0 0 180px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .cart {
    padding: 12px;
  }

  .cart-head {
    align-items: flex-start;
  }

  .cart-title {
    font-size: 17px;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }

  .right {
    justify-items: stretch;
  }

  .qty {
    justify-content: center;
  }

  .remove {
    width: 100%;
  }

  .btn {
    padding: 11px 12px;
    font-size: 14px;
  }

  .btn.ghost {
    width: auto;
  }

  .points-modal-card,
  .checkout-modal-card {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
  }
}

/* very small iPhones */
@media (max-width: 430px) {
  .selectedDishCard img {
    height: 150px;
  }

  .selectedDishTitle {
    font-size: 1rem;
  }

  .selectedDishSub {
    font-size: .8rem;
  }

  .drink-slider .card {
    min-width: 165px;
    max-width: 165px;
    flex: 0 0 165px;
  }

  .brand .title {
    font-size: 16px;
  }

  .accordion-toggle {
    font-size: 16px;
  }

  .kioskQtyBtn {
    width: 38px;
    height: 38px;
  }
}