/* V43: vendor-view customers seated inside one continuous food-stall composition. */

.shop .shop-counter-foreground {
  z-index: 6;
}

.shop .shop-counter-foreground img {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: center bottom;
}

.shop .customer:is(
  .guest-lotus,
  .guest-ink,
  .guest-jade,
  .guest-opera,
  .guest-silver,
  .guest-guardian
):not(.preview) .alien-art {
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(.94) contrast(.98) brightness(.98) drop-shadow(0 7px 6px rgb(22 13 23 / 24%));
}

.shop .customer:not(.preview) > .speech {
  visibility: hidden;
}

.shop .order-rail {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.shop .order-rail-slot {
  position: absolute;
  bottom: 4%;
  width: 168px;
  height: 54px;
  transform: translateX(-50%);
}

.shop .order-rail-slot.left { left: 40%; }
.shop .order-rail-slot.right { left: 60%; }

.shop .order-rail-ticket {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 5px;
  column-gap: 5px;
  align-items: center;
  aspect-ratio: auto;
  color: #fff0c7;
  text-shadow: 0 1px 2px #140c12;
  background: transparent url("../assets/meowa/ui/ingredient-button.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 5px 5px rgb(18 10 15 / 42%));
  z-index: 13;
}

.shop .order-rail-ticket .order-dish {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
}

.shop .order-rail-ticket .order-line {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #fff0c7;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.shop .order-rail-ticket .order-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop .order-rail-ticket .order-level {
  flex: none;
  font-size: 8px;
}

.shop .order-rail-ticket .preference,
.shop .order-rail-ticket .trait-line {
  display: none;
}

.shop .order-rail-ticket .patience {
  position: static;
  inset: auto;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  width: 100%;
  height: 5px;
}

.quick-guide {
  display: none !important;
}

@keyframes guest-v43-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(-2px); }
}

@keyframes guest-v43-reach {
  from { transform: translateY(0); }
  to { transform: translateY(1px); }
}

@keyframes guest-v43-steady {
  from { transform: translateY(0); }
  55% { transform: translateY(-1px); }
  to { transform: translateY(0); }
}

@media (min-width: 721px) and (min-height: 500px) {
  .shop .customers {
    position: absolute;
    inset: 3% 7% 0 16%;
    height: 94%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) .38fr;
    gap: 1.8%;
    align-items: end;
  }

  .shop .customer:not(.preview) {
    height: 100%;
    margin: 0;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-wrap {
    inset: 4% 0 auto;
    width: 100%;
    height: 70%;
    overflow: visible;
    align-items: flex-start;
    justify-content: center;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-figure,
  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-art {
    width: clamp(232px, 19vw, 260px);
    height: clamp(232px, 19vw, 260px);
  }

  .shop .customer[data-slot="left"]:not(.preview) .alien-figure,
  .shop .customer[data-slot="right"]:not(.preview) .alien-figure {
    transform: none !important;
  }

  .shop .customer.guest-lotus:not(.preview) .alien-figure,
  .shop .customer.guest-opera:not(.preview) .alien-figure {
    animation: guest-v43-reach 3.9s ease-in-out infinite alternate;
  }

  .shop .customer.guest-ink:not(.preview) .alien-figure,
  .shop .customer.guest-jade:not(.preview) .alien-figure {
    animation: guest-v43-breathe 4.6s ease-in-out infinite alternate;
  }

  .shop .customer.guest-silver:not(.preview) .alien-figure,
  .shop .customer.guest-guardian:not(.preview) .alien-figure {
    animation: guest-v43-steady 5.2s ease-in-out infinite;
  }

  .shop .order-rail-ticket {
    position: relative;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 168px;
    height: 54px;
    padding: 7px 12px 8px 10px;
    transform: none;
  }

  .shop .customer.preview .speech {
    top: 31%;
    right: 2% !important;
    bottom: auto;
    left: auto !important;
    width: 96px;
    height: 126px;
    transform: none !important;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .shop .customers {
    inset: 3% 4% 0 7%;
    height: 96%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) .42fr;
    gap: 1%;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-wrap {
    top: 9%;
    right: 0;
    left: 0;
    width: 100%;
    height: 60%;
    overflow: visible;
    justify-content: center;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-figure,
  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-art {
    width: 152px;
    height: 152px;
  }

  .shop .customer[data-slot="left"]:not(.preview) .alien-figure,
  .shop .customer[data-slot="right"]:not(.preview) .alien-figure {
    transform: none !important;
  }

  .shop .order-rail-slot {
    bottom: 5%;
    width: 112px;
    height: 42px;
  }

  .shop .order-rail-slot.left { left: 28%; }
  .shop .order-rail-slot.right { left: 69%; }

  .shop .order-rail-ticket {
    position: relative;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 112px;
    height: 42px;
    padding: 5px 7px 6px;
    grid-template-columns: 27px minmax(0, 1fr);
    transform: none;
  }

  .shop .order-rail-ticket .order-dish {
    width: 26px;
    height: 26px;
  }

  .shop .order-rail-ticket .order-line {
    font-size: 7px;
  }

  .shop .customer.preview .speech {
    box-sizing: border-box !important;
    top: 12px;
    right: 0 !important;
    left: auto !important;
    width: 60px !important;
    height: 88px !important;
    padding: 4px 4px 36px !important;
    transform: translateX(-24px) !important;
  }
}

@media (max-height: 430px) and (orientation: landscape) {
  .shop .shop-counter-foreground img {
    bottom: -52px;
  }

  .shop .customers {
    inset: 2% 7% 0 16%;
    height: 96%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) .38fr;
    gap: 1.5%;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-wrap {
    top: 4%;
    right: 0;
    left: 0;
    width: 100%;
    height: 65%;
    overflow: visible;
    justify-content: center;
  }

  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-figure,
  .shop .customer:is(
    .guest-lotus,
    .guest-ink,
    .guest-jade,
    .guest-opera,
    .guest-silver,
    .guest-guardian
  ):not(.preview) .alien-art {
    width: 136px;
    height: 136px;
  }

  .shop .customer[data-slot="left"]:not(.preview) .alien-figure,
  .shop .customer[data-slot="right"]:not(.preview) .alien-figure {
    transform: none !important;
  }

  .shop .order-rail-slot {
    bottom: 3%;
    width: 104px;
    height: 38px;
  }

  .shop .order-rail-slot.left { left: 37%; }
  .shop .order-rail-slot.right { left: 78%; }

  .shop .order-rail-ticket {
    position: relative;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 104px;
    height: 38px;
    padding: 4px 7px 5px;
    grid-template-columns: 25px minmax(0, 1fr);
    transform: none;
  }

  .shop .order-rail-ticket .order-dish {
    width: 24px;
    height: 24px;
  }

  .shop .order-rail-ticket .order-line,
  .shop .order-rail-ticket .order-level {
    font-size: 7px;
  }

  .shop .customer.preview .speech {
    box-sizing: border-box !important;
    top: 6px;
    right: 0 !important;
    left: auto !important;
    width: 68px !important;
    height: 96px !important;
    padding: 5px 5px 38px !important;
    transform: translateX(-146px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop .customer:not(.preview) .alien-figure {
    animation: none !important;
  }
}
