/* Totem Panel Component - Kompakt */
totem-panel {
  display: block;
  height: 100%;
}

.totem-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xs);
}

.totem-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-bottom: 2px solid var(--sw-border);
}

.totem-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sw-border);
}

.totem-status {
  font-size: 0.6875rem;
}

/* Payment Section - Kompakt */
.payment-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, var(--sw-color) 0%, #fff 100%);
  border-radius: var(--radius-md);
  text-align: center;
}

.payment-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--spacing-xs) 0;
}

.payment-amount span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.payment-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pay-button {
  min-width: 140px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
}

/* Payment Progress - Kompakt */
.payment-progress {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.payment-progress.active {
  display: flex;
}

.payment-spinner {
  width: 35px;
  height: 35px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--sw-border);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.payment-progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Ticket Display - Kompakt */
.ticket-section {
  display: none;
  margin-top: var(--spacing-sm);
}

.ticket-section.visible {
  display: block;
}

.ticket-display {
  background: white;
  border: 2px dashed #bdbdbd;
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  text-align: center;
}

.ticket-header {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid #e0e0e0;
}

.ticket-qr {
  display: flex;
  justify-content: center;
  margin: var(--spacing-xs) 0;
}

.ticket-qr canvas,
.ticket-qr img {
  width: 80px !important;
  height: 80px !important;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ticket-info-row {
  display: flex;
  justify-content: space-between;
}

.ticket-info-label {
  font-weight: 500;
}

.ticket-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* States */
.totem-panel[data-state="idle"] .payment-progress,
.totem-panel[data-state="idle"] .ticket-section {
  display: none;
}

.totem-panel[data-state="processing"] .payment-section > *:not(.payment-progress) {
  opacity: 0.3;
  pointer-events: none;
}

.totem-panel[data-state="processing"] .payment-progress {
  display: flex;
}

.totem-panel[data-state="done"] .pay-button {
  display: none;
}

.totem-panel[data-state="done"] .ticket-section {
  display: block;
}

/* Másolás gomb - sikeres állapot */
.ticket-actions .btn.copied {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}
