.tz-picker-root {
  position: relative;
}

.tz-picker-popup {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 16rem;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tz-picker-popup[hidden] {
  display: none;
}

.tz-picker-popup [role="option"] {
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.3;
}

.tz-picker-popup [role="option"]:hover,
.tz-picker-popup [role="option"][aria-selected="true"] {
  background: var(--bg-accent);
}

.tz-picker-popup .tz-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tz-picker-popup .tz-primary {
  font-weight: 500;
}

.tz-picker-popup .tz-offset {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.tz-picker-popup .tz-secondary {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Mobile overrides (≤768px) */
@media (max-width: 768px) {
    .tz-picker-popup {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: auto;
        max-height: calc(100vh - 56px);
        z-index: 125;
    }

    input.tz-picker {
        font-size: 16px;
    }
}
