/* LineBuster Patron Mobile Ticket & Order UI */

.patron-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Home / Join Form Card */
.join-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.join-header {
  text-align: center;
}

.join-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Active Ticket Screen */
.ticket-card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .ticket-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
    text-align: left;
  }
}

.ticket-card.called-state {
  border-color: var(--primary);
  box-shadow: var(--shadow-orange);
  animation: pulse-orange 2s infinite;
}

.position-hero-badge {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--primary), #d95300);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-orange);
  margin: 8px 0;
}

.hero-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-tracker-bar {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.wait-timer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Menu Order Builder */
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  margin-top: 12px;
}

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.menu-item-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.menu-item-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
}

.options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.condiment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  cursor: pointer;
  user-select: none;
}

.condiment-chip input[type="checkbox"],
.condiment-chip input[type="radio"] {
  accent-color: var(--primary);
}

/* Fiscal Summary Card */
.order-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 4px;
}

/* AdSense Slot Unit */
.adsense-container {
  width: 100%;
  min-height: 100px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 12px 0;
}
