/**
 * Wine Cellar - cellar handover and zero-cellar recovery (alpha privacy plan B, sections 3.1 and 3.2).
 * Banner (a handover offered to you), the Settings > Cellars hand-over area, and the "create your first cellar"
 * prompt. Tokens only; presentation lives here, never in inline styles.
 */

.handover-banner-content {
  display: flex;
  align-items: center;
  gap: var(--space-md, 0.75rem);
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.handover-banner-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.85rem;
  color: var(--text, #eee);
}

.handover-banner-actions {
  display: flex;
  gap: var(--space-sm, 0.5rem);
  flex-shrink: 0;
}

.cellar-handover {
  flex-basis: 100%;
}

.cellar-handover-state,
.cellar-handover-chooser {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm, 0.5rem);
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text, #eee);
}

.cellar-handover-chooser select {
  min-width: 12rem;
  max-width: 100%;
}

.first-cellar-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.65);
}

.first-cellar-dialog {
  width: 100%;
  max-width: 26rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text, #eee);
}

.first-cellar-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: var(--font-h4);
}

.first-cellar-dialog input {
  width: 100%;
  margin: 0.5rem 0;
}

.first-cellar-overlay.is-busy .btn {
  opacity: 0.6;
  cursor: progress;
}

.first-cellar-error {
  margin: 0 0 0.5rem;
  color: var(--color-error-ink);
}

.first-cellar-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm, 0.5rem);
}
