/* V38: NEXT is a forecast; only its labelled action strip spends currency. */

.customer.preview {
  cursor: default;
}

.customer.preview .speech {
  box-sizing: border-box;
  grid-template-rows: 16px 42px minmax(18px, 1fr);
  padding-bottom: 24px;
  overflow: visible;
}

.customer.preview .preview-tag {
  align-self: center;
}

.customer.preview .order-dish {
  width: 42px;
  height: 42px;
}

.customer.preview .order-line {
  align-self: start;
  line-height: 1.15;
}

.customer.preview .next-refresh-btn {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: -18px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 5px;
  color: #fff0c7;
  font: 900 8px/1 var(--ui);
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px #100914;
  background: #17404a;
  border: 1px solid #c39754;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 231 170 / 14%), 0 2px 4px rgb(15 8 16 / 34%);
}

.customer.preview .next-refresh-btn:not(:disabled):hover,
.customer.preview .next-refresh-btn:not(:disabled):focus-visible {
  color: #fff8db;
  background: #235a60;
  outline: 2px solid #ffe897;
  outline-offset: 1px;
}

.customer.preview .next-refresh-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.customer.preview .next-refresh-btn:disabled {
  color: #d7cdb6;
  background: #403944;
  border-color: #887455;
  box-shadow: none;
  opacity: .78;
}

@media (max-width: 720px), (max-height: 499px) {
  .customer.preview .speech {
    width: 96px;
    min-width: 96px;
    height: 132px;
    aspect-ratio: auto;
    padding: 8px 7px 50px;
    grid-template-rows: 14px 34px minmax(16px, 1fr);
  }

  .customer.preview .order-dish {
    width: 34px;
    height: 34px;
  }

  .customer.preview .next-refresh-btn {
    right: 7px;
    bottom: 8px;
    left: 7px;
    min-height: 44px;
    padding-inline: 3px;
    font-size: 7px;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .customer.preview .speech {
    top: 56px;
  }
}

@media (max-height: 499px) and (orientation: landscape) {
  .customer.preview .speech {
    top: 0;
    width: 96px;
    min-width: 96px;
    height: 112px;
    padding: 3px 7px 48px;
    grid-template-rows: 12px 28px minmax(14px, 1fr);
  }

  .customer.preview .order-dish {
    width: 28px;
    height: 28px;
  }

  .customer.preview .next-refresh-btn {
    bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer.preview .next-refresh-btn {
    transition: none;
  }
}
