/* FIKA — guests, queue, speech bubble */

.cust-svg { width: 100%; height: 100%; }
.ring-svg { width: 100%; height: 100%; }

.queue-empty {
  margin: 0 auto;
  align-self: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  background: rgba(251, 249, 244, 0.9);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow-soft);
}

.cust-slot {
  position: relative;
  border: none;
  background: none;
  font-family: var(--sans);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  padding: 0;
  touch-action: manipulation;
}
.cust-body {
  width: 100%;
  display: block;
  animation: idle-bob 2.8s ease-in-out infinite;
}
.cust-slot:nth-child(2) .cust-body { animation-delay: 0.6s; }
.cust-slot:nth-child(3) .cust-body { animation-delay: 1.1s; }
.cust-slot:nth-child(4) .cust-body { animation-delay: 1.7s; }
@keyframes idle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.cust-slot.talking .cust-body { animation: none; transform: translateY(-3px); }
.cust-slot.talking { filter: drop-shadow(0 4px 10px rgba(201, 127, 93, 0.45)); }
.cust-slot.just-arrived { animation: arrive-hop 0.5s ease-out; }
@keyframes arrive-hop {
  0% { transform: translateY(30px) scale(0.9); opacity: 0; }
  60% { transform: translateY(-5px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.cust-ring {
  position: absolute;
  top: 24px; right: -2px;
  width: 27px; height: 27px;
  z-index: 2;
  background: rgba(251, 249, 244, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.cust-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  border: 1.5px solid var(--edge);
  background: rgba(253, 248, 236, 0.94);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 3px;
  box-shadow: var(--shadow-soft);
  order: -1;
}

.waiting-row {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  flex-wrap: wrap;
  padding: 4px 14px 0;
}
.wait-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 4px;
}
.wait-chip { width: 24px; height: 28px; display: inline-block; opacity: 0.9; }

#order-bubble { min-height: 0; }
.speech-bubble {
  position: relative;
  background: rgba(253, 248, 236, 0.97);
  border: 1px solid rgba(138, 112, 90, 0.16);
  border-radius: 22px;
  padding: 16px 18px;
  text-align: center;
  animation: pop-in 0.22s;
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(5px);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px; left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: rgba(253, 248, 236, 0.97);
  border-bottom: none;
}
.sb-text { font-family: var(--sans); }
.sb-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.sb-portrait {
  width: 44px; height: 48px; flex: none;
  background: rgba(247, 232, 195, 0.7);
  border: 2px solid var(--edge); border-radius: 14px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.sb-portrait .cust-svg { width: 100%; height: 100%; }
.sb-who { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: 0.3px; }
.sb-text { font-size: 14px; line-height: 1.5; margin-bottom: 8px; color: var(--ink); }
.btn-take { width: 100%; margin-top: 8px; }
