/* Product details pop-up: keep stock, pickers, qty, and Add visible on phones.
   The photo and description scroll above a sticky action footer. */
#hiveboxQuickView {
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
#hiveboxQuickView .hivebox-modal-product {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: calc(var(--kiosk-viewport, 100dvh) - 24px - env(safe-area-inset-bottom, 0px));
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}
#hiveboxQuickView .hivebox-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#hiveboxQuickView .hivebox-modal-body {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 18px clamp(18px, 4vw, 26px) 24px;
}
#hiveboxQuickView .hivebox-modal-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px clamp(18px, 4vw, 26px) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(171, 139, 106, 0.35);
  background: #fffaf0;
}
#hiveboxQuickView .hivebox-modal-add,
#hiveboxQuickView .hivebox-single-mini-add {
  width: 100%;
  margin-top: 0;
}
#hiveboxQuickView .hivebox-modal-add:disabled,
#hiveboxQuickView .hivebox-single-mini-add:disabled {
  opacity: 0.55;
  cursor: default;
  background: #c9a078;
  border-color: #b08a66;
}

/* Short landscape / compact desktop: photo beside copy, actions stay on the copy column. */
@media (min-width: 640px) and (max-height: 520px) {
  #hiveboxQuickView .hivebox-modal-product {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(800px, 100%);
  }
  #hiveboxQuickView .hivebox-modal-scroll {
    display: contents;
  }
  #hiveboxQuickView .hivebox-modal-art {
    grid-column: 1;
    grid-row: 1 / -1;
    height: auto;
    max-height: none;
    align-self: stretch;
  }
  #hiveboxQuickView .hivebox-modal-body {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 48px;
  }
  #hiveboxQuickView .hivebox-modal-actions {
    grid-column: 2;
    grid-row: 2;
  }
  #hiveboxQuickView .hivebox-modal-image {
    height: 100%;
    min-height: 0;
    object-position: center;
  }
}

/* In stock / Bees at Work: never show counts; color and a small icon do the work. */
.hivebox-stock-status {
  margin: 10px 0 0;
  font: 650 15px/1.3 system-ui, sans-serif;
  color: #705d4a;
}
#hiveboxQuickView .hivebox-modal-actions .hivebox-stock-status {
  margin: 0;
}
.hivebox-stock-status.is-in-stock,
.hivebox-stock-status[data-stock="in-stock"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 750;
  color: #2f6a3a;
}
.hivebox-stock-status.is-in-stock::before,
.hivebox-stock-status[data-stock="in-stock"]::before {
  content: "";
  flex: none;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1.25A6.75 6.75 0 1 0 8 14.75 6.75 6.75 0 0 0 8 1.25zm3.02 4.53L7.05 10.6a.7.7 0 0 1-1.05.02L4.62 9.18a.7.7 0 1 1 1.01-.97l.9.94 3.47-4.3a.7.7 0 0 1 1.02.93z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1.25A6.75 6.75 0 1 0 8 14.75 6.75 6.75 0 0 0 8 1.25zm3.02 4.53L7.05 10.6a.7.7 0 0 1-1.05.02L4.62 9.18a.7.7 0 1 1 1.01-.97l.9.94 3.47-4.3a.7.7 0 0 1 1.02.93z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hivebox-stock-status.is-bees-at-work,
.hivebox-stock-status[data-stock="bees-at-work"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: #8a5a22;
}
.hivebox-stock-status.is-limited,
.hivebox-stock-status[data-stock="limited"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: #8a5a22;
}
