// The shell owns the header and floating cart bar; fill the space between them.
.pisell-hdl-kiosk .hdl-primary-selection {
  container-type: inline-size;
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding-bottom: var(--hdl-bottom-bar-clearance);
  overflow: hidden;
  background: #eee8dc url('./assets/order-background.svg') center top /
    max(100%, 1080px) auto;
}

.hdl-ps-dialog {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  color: #252323;
  text-align: left;
}
.hdl-ps-dialog button {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hdl-ps-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(12px, 1.85cqw, 20px);
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 1.67cqw, 18px) clamp(24px, 4.9cqw, 53px);
}
.hdl-ps-choices {
  --hdl-ps-gap: clamp(24px, 3.7cqw, 40px);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--hdl-ps-gap);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  // Leave room for keyboard focus inside the scroll region.
  padding: 4px;
  margin: -4px;
}
.hdl-ps-group {
  --hdl-ps-zone-ink: #963047;
  --hdl-ps-zone-line: #d5bfa5;
  position: relative;
  display: flex;
  // Every product keeps its own height; additional products scroll instead of shrinking.
  flex: none;
  flex-direction: column;
  gap: clamp(4px, 0.74cqw, 8px);
  min-width: 0;
  padding: clamp(8px, 1.4cqw, 15px);
  border: 1px solid #cfbda5;
  border-radius: clamp(18px, 2.8cqw, 30px);
  background: #faf4e8;
}
.hdl-ps-group[data-zone='standard'] {
  --hdl-ps-zone-ink: #3f4b45;
  --hdl-ps-zone-line: #c1c7bd;
  border-color: #bfc6bc;
  background: #f2f4ee;
}
.hdl-ps-group + .hdl-ps-group::before {
  position: absolute;
  inset: calc(var(--hdl-ps-gap) / -2) 0 auto;
  height: 1px;
  background: #cbbba6;
  content: '';
  pointer-events: none;
}
.hdl-ps-marker {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(12px, 1.8cqw, 20px);
  min-height: clamp(26px, 3.9cqw, 42px);
  padding-inline: clamp(4px, 0.74cqw, 8px);
}
.hdl-ps-marker h3 {
  flex: none;
  margin: 0;
  color: var(--hdl-ps-zone-ink);
  font-size: clamp(18px, 3.15cqw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.hdl-ps-marker-line {
  flex: 1;
  height: 1px;
  background: var(--hdl-ps-zone-line);
}
.hdl-ps-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.85cqw, 20px);
  min-width: 0;
}
.hdl-ps-image-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 4px;
}
.hdl-ps-poster-area {
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.hdl-ps-dialog .hdl-ps-product {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: clamp(10px, 1.6cqw, 18px);
  background: transparent;
  overflow: hidden;
  transition: transform 160ms ease, filter 160ms ease;
}
.hdl-ps-product-image {
  position: relative;
  display: block;
  width: 100%;
  // Keep every poster at the same display ratio, including square source images.
  aspect-ratio: 16 / 10;
}
.hdl-ps-product-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
.hdl-ps-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: #ebe5da;
  color: #645b52;
  font-size: clamp(16px, 2.2cqw, 24px);
  text-align: center;
}
.hdl-ps-image-fallback strong {
  color: #252323;
  font-size: clamp(20px, 3cqw, 32px);
}
.hdl-ps-unavailable {
  flex: none;
  margin-top: 8px;
  color: #645b52;
  font-size: clamp(14px, 1.85cqw, 20px);
  line-height: 1.4;
  text-align: center;
}
.hdl-ps-dialog .hdl-ps-skip {
  display: block;
  flex: none;
  width: 100%;
  min-height: clamp(64px, 10cqw, 108px);
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #cdbbb1;
  border-radius: clamp(8px, 1.6cqw, 18px);
  background: #faf7ef;
  color: #b80020;
  font-size: clamp(16px, 2.65cqw, 29px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 160ms ease;
}
.hdl-ps-dialog .hdl-ps-product:not(:disabled):active {
  transform: scale(0.975);
  filter: brightness(0.92);
}
@media (hover: hover) {
  .hdl-ps-product:not(:disabled):hover {
    filter: brightness(0.97);
  }
  .hdl-ps-skip:not(:disabled):hover {
    background: #f8eeee;
  }
}
.hdl-ps-dialog .hdl-ps-skip:not(:disabled):active {
  filter: brightness(0.96);
}
.hdl-ps-dialog button:focus-visible {
  outline: 3px solid #b80020;
  outline-offset: 4px;
}
.hdl-ps-dialog button:disabled {
  cursor: not-allowed;
}
.hdl-ps-dialog .hdl-ps-product:disabled {
  filter: grayscale(0.65);
}
.hdl-ps-dialog .hdl-ps-skip:disabled {
  color: #645b52;
}
.hdl-ps-empty {
  margin: auto;
  color: #645b52;
  font-size: clamp(18px, 2.2cqw, 24px);
  text-align: center;
}
.hdl-ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .hdl-ps-dialog button {
    transition: none;
  }
  .hdl-ps-dialog .hdl-ps-product:not(:disabled):active {
    transform: none;
  }
}
