/*
 * GoGymio Shared Date Components
 *
 * Extracted directly from the current user.css.
 * IMPORTANT:
 * Existing class names are preserved exactly.
 * No selector renaming or component-class changes are made.
 *
 * Includes:
 * - .user-calendar-*
 * - .user-date-picker-*
 * - .user-dob-picker-*
 * - .user-dob-wheel-*
 */

.user-calendar-card {
  width: 100%;
}

/* ---------------------------------------------------------
   CALENDAR SURFACE
   --------------------------------------------------------- */

.user-calendar {
  width: 100%;

  padding: var(--space-4);

  box-sizing: border-box;

  border-top: 2px solid rgb(58 58 58);
  border-left: 2px solid rgb(58 58 58);

  border-right: 1px solid rgb(20 20 20);
  border-bottom: 1px solid rgb(20 20 20);

  border-radius: 1rem;

  background: rgb(24 24 24);

  box-shadow:
    7px 8px 14px rgb(0 0 0 / 78%),
    -3px -3px 8px rgb(255 255 255 / 4%);
}

/* ---------------------------------------------------------
   CALENDAR HEADER
   --------------------------------------------------------- */

.user-calendar-header {
  width: 100%;

  display: grid;

  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;

  align-items: center;

  gap: var(--space-2);

  margin-bottom: var(--space-4);
}

/* ---------------------------------------------------------
   CALENDAR BODY
   --------------------------------------------------------- */

.user-calendar-body {
  width: 100%;
  height: 22rem;

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.user-calendar-day-view,
.user-calendar-selection {
  grid-column: 1;
  grid-row: 1;

  width: 100%;
  min-width: 0;
}

/* ---------------------------------------------------------
   MONTH TITLE
   --------------------------------------------------------- */

.user-calendar-month {
  min-width: 0;

  color: rgb(235 235 235);

  font-size: 1rem;
  font-weight: 600;

  line-height: 1.2;

  text-align: center;

  white-space: nowrap;
}

/* ---------------------------------------------------------
   NAVIGATION BUTTON
   --------------------------------------------------------- */

.user-calendar-nav {
  width: 2.75rem;
  height: 2.75rem;

  padding: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 2px solid rgb(58 58 58);
  border-left: 2px solid rgb(58 58 58);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);

  color: rgb(190 190 190);

  box-shadow:
    4px 5px 9px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 4%);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.user-calendar-nav svg {
  width: 1rem;
  height: 1rem;

  stroke-width: 2.2;
}

.user-calendar-nav:active {
  transform: translateY(1px);

  box-shadow:
    inset 3px 3px 6px rgb(0 0 0 / 72%),
    inset -2px -2px 4px rgb(255 255 255 / 3%);
}

.user-calendar-nav:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   WEEKDAY HEADER
   --------------------------------------------------------- */

.user-calendar-weekdays {
  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: var(--space-1);

  margin-bottom: 0.375rem;
}

.user-calendar-weekdays span {
  min-height: 2rem;

  display: flex;

  align-items: center;
  justify-content: center;

  color: rgb(105 105 105);

  font-size: 0.6875rem;
  font-weight: 600;

  line-height: 1;

  text-transform: uppercase;
}

/* ---------------------------------------------------------
   DATE GRID
   --------------------------------------------------------- */

.user-calendar-grid {
  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: var(--space-1);
}

/* ---------------------------------------------------------
   DATE BUTTON
   --------------------------------------------------------- */

.user-calendar-day {
  width: 100%;
  min-height: 2.75rem;

  padding: 0.25rem;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 1px solid rgb(52 52 52);
  border-left: 1px solid rgb(52 52 52);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);

  color: rgb(210 210 210);

  font-family: inherit;

  font-size: 0.8125rem;
  font-weight: 500;

  line-height: 1;

  box-shadow:
    3px 4px 7px rgb(0 0 0 / 62%),
    -2px -2px 4px rgb(255 255 255 / 3%);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

/* ---------------------------------------------------------
   DATE PRESSED
   --------------------------------------------------------- */

.user-calendar-day:active {
  transform: translateY(1px);

  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 70%),
    inset -1px -1px 3px rgb(255 255 255 / 3%);
}

/* ---------------------------------------------------------
   MUTED DATE
   --------------------------------------------------------- */

.user-calendar-day-muted {
  color: rgb(70 70 70);

  background: rgb(21 21 21);

  border-color: rgb(30 30 30);

  box-shadow: inset 2px 2px 4px rgb(0 0 0 / 55%);
}

/* ---------------------------------------------------------
   TODAY
   --------------------------------------------------------- */

.user-calendar-day-today {
  border: 2px solid rgb(120 35 35);
  color: rgb(240 240 240);
}

/* ---------------------------------------------------------
   SELECTED DATE
   --------------------------------------------------------- */

.user-calendar-day-selected {
  background: rgb(175 36 36);

  color: rgb(255 255 255);

  border-top: 2px solid rgb(245 55 55);
  border-left: 2px solid rgb(245 55 55);

  border-right: 1px solid rgb(145 18 18);
  border-bottom: 1px solid rgb(145 18 18);

  font-weight: 600;

  box-shadow:
    4px 5px 8px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 5%);
}

/* ---------------------------------------------------------
   SELECTED + PRESSED
   --------------------------------------------------------- */

.user-calendar-day-selected:active {
  box-shadow:
    inset 3px 3px 6px rgb(120 15 15 / 65%),
    inset -2px -2px 4px rgb(255 255 255 / 5%);
}

/* =========================================================
   CALENDAR MONTH / YEAR SELECTION
   ========================================================= */

/* ---------------------------------------------------------
   MONTH + YEAR BUTTON
   --------------------------------------------------------- */

.user-calendar-month {
  width: 100%;
  height: 2.75rem;

  min-width: 0;
  padding: 0 0.75rem;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 2px solid rgb(58 58 58);
  border-left: 2px solid rgb(58 58 58);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);

  color: rgb(190 190 190);

  box-shadow:
    4px 5px 9px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 4%);

  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;

  line-height: 1.2;

  text-align: center;
  white-space: nowrap;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

/* ---------------------------------------------------------
   MONTH + YEAR BUTTON — PRESSED
   --------------------------------------------------------- */

.user-calendar-month:active {
  transform: translateY(1px);

  box-shadow:
    inset 3px 3px 6px rgb(0 0 0 / 72%),
    inset -2px -2px 4px rgb(255 255 255 / 3%);
}

/* ---------------------------------------------------------
   MONTH + YEAR BUTTON — FOCUS
   --------------------------------------------------------- */

.user-calendar-month:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   SELECTION VIEW
   --------------------------------------------------------- */

.user-calendar-selection {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);

  gap: var(--space-2);
}

.user-calendar-selection-button {
  grid-column: 1 / -1;

  width: 100%;
  height: 2.75rem;

  padding: 0 0.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 2px solid rgb(58 58 58);
  border-left: 2px solid rgb(58 58 58);
  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);
  color: rgb(190 190 190);

  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  box-shadow:
    4px 5px 9px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 4%);

  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.user-calendar-selection-button:active {
  transform: translateY(1px);

  box-shadow:
    inset 3px 3px 6px rgb(0 0 0 / 72%),
    inset -2px -2px 4px rgb(255 255 255 / 3%);
}

.user-calendar-selection-button:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   SELECTION COLUMN
   --------------------------------------------------------- */

.user-calendar-selection-column {
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border-top: 1px solid rgb(52 52 52);
  border-left: 1px solid rgb(52 52 52);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.75rem;

  background: rgb(21 21 21);

  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 58%),
    inset -1px -1px 3px rgb(255 255 255 / 2%);
}

/* ---------------------------------------------------------
   SELECTION HEADING
   --------------------------------------------------------- */

.user-calendar-selection-heading {
  min-height: 2.25rem;

  padding: 0.5rem 0.75rem;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-bottom: 1px solid rgb(42 42 42);

  color: rgb(105 105 105);

  font-size: 0.6875rem;
  font-weight: 600;

  line-height: 1;

  text-transform: uppercase;
}

.user-calendar-selection[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   YEAR / MONTH SCROLL AREAS
   --------------------------------------------------------- */

.user-calendar-year-list,
.user-calendar-month-list {
  min-width: 0;

  height: 16rem;

  padding: var(--space-2);

  box-sizing: border-box;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: rgb(70 70 70) rgb(25 25 25);
}

/* ---------------------------------------------------------
   SCROLLBAR
   --------------------------------------------------------- */

.user-calendar-year-list::-webkit-scrollbar,
.user-calendar-month-list::-webkit-scrollbar {
  width: 0.35rem;
}

.user-calendar-year-list::-webkit-scrollbar-track,
.user-calendar-month-list::-webkit-scrollbar-track {
  background: rgb(25 25 25);
}

.user-calendar-year-list::-webkit-scrollbar-thumb,
.user-calendar-month-list::-webkit-scrollbar-thumb {
  background: rgb(70 70 70);

  border-radius: 999px;
}

/* ---------------------------------------------------------
   YEAR / MONTH BUTTON BASE
   --------------------------------------------------------- */

.user-calendar-year-button,
.user-calendar-month-button {
  width: 100%;
  min-height: 2.75rem;

  padding: 0.5rem 0.625rem;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 1px solid rgb(52 52 52);
  border-left: 1px solid rgb(52 52 52);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);

  color: rgb(190 190 190);

  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;

  line-height: 1.2;

  text-align: center;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.user-calendar-year-button + .user-calendar-year-button,
.user-calendar-month-button + .user-calendar-month-button {
  margin-top: var(--space-1);
}

/* ---------------------------------------------------------
   YEAR / MONTH PRESSED
   --------------------------------------------------------- */

.user-calendar-year-button:active,
.user-calendar-month-button:active {
  transform: translateY(1px);

  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 70%),
    inset -1px -1px 3px rgb(255 255 255 / 3%);
}

/* ---------------------------------------------------------
   SELECTED YEAR / MONTH
   --------------------------------------------------------- */

.user-calendar-year-button[aria-selected="true"],
.user-calendar-month-button[aria-selected="true"] {
  background: rgb(65 25 25);

  color: rgb(240 240 240);

  border-top-color: rgb(95 35 35);
  border-left-color: rgb(95 35 35);

  border-right-color: rgb(42 18 18);
  border-bottom-color: rgb(42 18 18);

  box-shadow:
    inset 2px 2px 4px rgb(0 0 0 / 35%),
    inset -1px -1px 3px rgb(255 255 255 / 2%);
}

/* ---------------------------------------------------------
   SELECTED PRESSED
   --------------------------------------------------------- */

.user-calendar-year-button[aria-selected="true"]:active,
.user-calendar-month-button[aria-selected="true"]:active {
  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 70%),
    inset -1px -1px 3px rgb(255 255 255 / 3%);
}

/* ---------------------------------------------------------
   FOCUS
   --------------------------------------------------------- */

.user-calendar-year-button:focus-visible,
.user-calendar-month-button:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

/* =========================================================
   CALENDAR MONTH / YEAR SELECTION
   ========================================================= */

/* ---------------------------------------------------------
   SELECTION VIEW
   --------------------------------------------------------- */

.user-calendar-selection {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr);

  gap: var(--space-2);
}

/* ---------------------------------------------------------
   KEYBOARD FOCUS
   --------------------------------------------------------- */

.user-calendar-day:focus-visible {
  outline: 2px solid rgb(175 36 36);

  outline-offset: 2px;
}

/* ---------------------------------------------------------
   CALENDAR TODAY BUTTON
   --------------------------------------------------------- */
.user-calendar-today-button {
  display: block;

  margin: 0.45rem auto 0;
  padding: 0.2rem 1rem;

  box-sizing: border-box;

  background: rgb(24 24 24);
  color: rgb(175 36 36);

  border-top: 2px solid rgb(239 48 48);
  border-left: 2px solid rgb(239 48 48);
  border-right: 2px solid rgb(150 20 20);
  border-bottom: 2px solid rgb(150 20 20);

  border-radius: 0.625rem;

  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;

  box-shadow:
    6px 7px 12px rgb(0 0 0 / 75%),
    -3px -3px 7px rgb(255 255 255 / 4%);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.user-calendar-today-button:active {
  transform: translateY(1px);

  background: rgb(24 10 10);

  box-shadow:
    inset 3px 3px 7px rgb(0 0 0 / 70%),
    inset -2px -2px 5px rgb(255 255 255 / 3%);
}

.user-calendar-today-button:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 3px;
}

/* =========================================================
   CALENDAR VIEW VISIBILITY
   ========================================================= */

.user-calendar-day-view[hidden],
.user-calendar-selection[hidden] {
  display: none !important;
}

.user-date-picker {
  position: relative;
  width: 100%;
}

.user-date-picker-input-wrapper {
  position: relative;
  width: 100%;
}

.user-date-picker-input {
  width: 100%;
  padding-right: 3.25rem;
}

.user-date-picker-button {
  position: absolute;

  top: 50%;
  right: 0.5rem;

  width: 2.25rem;
  height: 2.25rem;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  transform: translateY(-50%);

  border: 0;
  border-radius: 0.5rem;

  background: transparent;
  color: rgb(170 170 170);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    color 120ms ease,
    background 120ms ease;
}

.user-date-picker-button svg {
  width: 1.125rem;
  height: 1.125rem;

  stroke-width: 2;
}

.user-date-picker-button:active {
  color: rgb(175 36 36);
}

.user-date-picker-button:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

.user-date-picker-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-date-picker-calendar {
  width: 100%;
  margin-top: var(--space-3);
}

.user-date-picker-calendar[hidden] {
  display: none !important;
}

.user-date-picker-input-invalid {
  color: rgb(175 36 36);
}

/* =========================================================
   CALENDAR DISABLED DATE STATE
   ========================================================= */

.user-calendar-day:disabled {
  opacity: 0.28;

  color: rgb(80 80 80);

  background: rgb(20 20 20);

  border-color: rgb(32 32 32);

  box-shadow: inset 2px 2px 4px rgb(0 0 0 / 55%);

  cursor: not-allowed;

  transform: none;
}

.user-calendar-day:disabled:active {
  transform: none;

  box-shadow: inset 2px 2px 4px rgb(0 0 0 / 55%);
}

/*
 * GoGymio Shared DOB Picker
 *
 * Source of truth: current User/Registration DOB picker styling.
 * Registration-only `.register-page` scoping has been removed so the
 * existing DOB picker JS can be reused by profile/edit-personal-info.
 *
 * Existing .user-dob-picker* and .user-dob-wheel* class names and
 * visual values are preserved.
 */

/* =========================================================
   DATE OF BIRTH PICKER
   Matches the Date Picker Year / Month selection styling
   ========================================================= */

/* ---------------------------------------------------------
   PICKER ROOT
   --------------------------------------------------------- */

.user-dob-picker {
  position: relative;
  width: 100%;
}

/* ---------------------------------------------------------
   INPUT
   --------------------------------------------------------- */

.user-dob-picker-input-wrapper {
  position: relative;
  width: 100%;
}

.user-dob-picker-input {
  width: 100%;
  padding-right: 3.25rem;
  cursor: pointer;
}

/* ---------------------------------------------------------
   CALENDAR ICON BUTTON
   --------------------------------------------------------- */

.user-dob-picker-input-button {
  position: absolute;

  top: 50%;
  right: 0.5rem;

  width: 2.25rem;
  height: 2.25rem;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  transform: translateY(-50%);

  border: 0;
  border-radius: 0.5rem;

  background: transparent;
  color: rgb(170 170 170);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    color 120ms ease,
    background 120ms ease;
}

.user-dob-picker-input-button svg {
  width: 1.125rem;
  height: 1.125rem;

  stroke-width: 2;
}

.user-dob-picker-input-button:active {
  color: rgb(175 36 36);
}

.user-dob-picker-input-button:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

.user-dob-picker-input-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------
   PICKER SURFACE
   --------------------------------------------------------- */

.user-dob-picker-surface {
  position: absolute;

  z-index: 30;

  top: calc(100% + 0.75rem);
  left: 50%;

  width: 22rem;
  max-width: calc(100vw - 2rem);

  max-height: min(32rem, calc(100dvh - 2rem));

  box-sizing: border-box;

  overflow: hidden;

  transform: translateX(-50%);

  border-top: 4px solid rgb(62 62 62);
  border-left: 4px solid rgb(62 62 62);

  border-right: 4px solid rgb(62 62 62);
  border-bottom: 4px solid rgb(62 62 62);

  border-radius: 1rem;

  background: rgb(18 18 18);

  box-shadow:
    8px 10px 22px rgb(0 0 0 / 78%),
    -3px -3px 8px rgb(255 255 255 / 4%);
}

.user-dob-picker-surface[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.user-dob-picker-header {
  position: relative;

  padding: 1rem 3.25rem 0.875rem;

  border-bottom: 1px solid rgb(45 45 45);

  text-align: center;
}

/* ---------------------------------------------------------
   HEADER DATE
   --------------------------------------------------------- */

.user-dob-picker-header-date {
  min-height: 2.75rem;

  width: calc(100% - 2.75rem);

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  margin-right: auto;

  padding: 0.5rem 1rem;

  border-top: 2px solid rgb(62 62 62);
  border-left: 2px solid rgb(62 62 62);

  border-right: 1px solid rgb(18 18 18);
  border-bottom: 1px solid rgb(18 18 18);

  border-radius: 0.75rem;

  background: rgb(24 24 24);

  color: rgb(225 225 225);

  font-size: 1rem;
  font-weight: 600;

  line-height: 1.2;

  letter-spacing: 0.02em;

  text-align: center;

  box-shadow:
    4px 5px 9px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 4%),
    inset 1px 1px 2px rgb(255 255 255 / 2%);
}

/* ---------------------------------------------------------
   HEADER HINT
   --------------------------------------------------------- */

.user-dob-picker-header-hint[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.user-dob-picker-close {
  position: absolute;

  top: 1rem;
  right: 0.75rem;

  width: 2.8rem;
  height: 2.8rem;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  box-sizing: border-box;

  border-top: 2px solid rgb(62 62 62);
  border-left: 2px solid rgb(62 62 62);

  border-right: 1px solid rgb(18 18 18);
  border-bottom: 1px solid rgb(18 18 18);

  border-radius: 0.5rem;

  background: rgb(27 27 27);

  color: rgb(190 190 190);

  box-shadow:
    4px 5px 9px rgb(0 0 0 / 72%),
    -2px -2px 5px rgb(255 255 255 / 4%);

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.user-dob-picker-close svg {
  width: 1.125rem;
  height: 1.125rem;

  stroke-width: 2.2;
}

.user-dob-picker-close:active {
  transform: translateY(1px);

  background: rgb(22 22 22);

  box-shadow:
    inset 3px 3px 6px rgb(0 0 0 / 72%),
    inset -2px -2px 4px rgb(255 255 255 / 3%);
}

.user-dob-picker-close:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   DOB WHEELS
   Same visual treatment as Date Picker selection columns
   --------------------------------------------------------- */

.user-dob-picker-wheels {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1.2fr)
    minmax(0, 1fr);

  gap: 0.5rem;

  padding: 0.75rem;

  box-sizing: border-box;
}

/* ---------------------------------------------------------
   WHEEL COLUMN
   --------------------------------------------------------- */

.user-dob-wheel-column {
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 2px solid rgb(52 52 52);

  border-radius: 0.75rem;

  background: rgb(21 21 21);

  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 58%),
    inset -1px -1px 3px rgb(255 255 255 / 2%);
}

/* ---------------------------------------------------------
   WHEEL HEADING
   --------------------------------------------------------- */

.user-dob-wheel-heading {
  min-height: 2.25rem;

  padding: 0.5rem 0.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-bottom: 1px solid rgb(42 42 42);

  color: rgb(105 105 105);

  font-size: 0.6875rem;
  font-weight: 600;

  line-height: 1;

  letter-spacing: 0.03em;

  text-transform: uppercase;
}

/* ---------------------------------------------------------
   WHEEL VIEWPORT
   --------------------------------------------------------- */

.user-dob-wheel-viewport {
  position: relative;

  min-width: 0;

  height: 16rem;

  padding: 0.5rem;

  box-sizing: border-box;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;

  scrollbar-width: thin;
  scrollbar-color: rgb(70 70 70) rgb(25 25 25);

  -webkit-overflow-scrolling: touch;

  touch-action: pan-y;
}

/* ---------------------------------------------------------
   SCROLLBAR
   --------------------------------------------------------- */

.user-dob-wheel-viewport::-webkit-scrollbar {
  width: 0.35rem;
}

.user-dob-wheel-viewport::-webkit-scrollbar-track {
  background: rgb(25 25 25);
}

.user-dob-wheel-viewport::-webkit-scrollbar-thumb {
  background: rgb(70 70 70);

  border-radius: 999px;
}

/* ---------------------------------------------------------
   WHEEL LIST
   --------------------------------------------------------- */

.user-dob-wheel-list {
  width: 100%;
}

/* ---------------------------------------------------------
   WHEEL SPACER
   --------------------------------------------------------- */

.user-dob-wheel-spacer {
  width: 100%;
  height: 0.5rem;

  box-sizing: border-box;

  pointer-events: none;
}

/* ---------------------------------------------------------
   WHEEL ITEM
   Same raised card style as Date Picker options
   --------------------------------------------------------- */

.user-dob-wheel-item {
  width: 100%;
  min-height: 2.75rem;

  padding: 0.5rem 0.625rem;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-top: 1px solid rgb(52 52 52);
  border-left: 1px solid rgb(52 52 52);

  border-right: 1px solid rgb(22 22 22);
  border-bottom: 1px solid rgb(22 22 22);

  border-radius: 0.625rem;

  background: rgb(27 27 27);

  color: rgb(190 190 190);

  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;

  line-height: 1.2;

  text-align: center;

  scroll-snap-align: center;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;

  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

/* ---------------------------------------------------------
   WHEEL ITEM SPACING
   --------------------------------------------------------- */

.user-dob-wheel-item + .user-dob-wheel-item {
  margin-top: 0.25rem;
}

/* ---------------------------------------------------------
   PRESSED
   --------------------------------------------------------- */

.user-dob-wheel-item:active {
  transform: translateY(1px);

  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 70%),
    inset -1px -1px 3px rgb(255 255 255 / 3%);
}

/* ---------------------------------------------------------
   SELECTED
   Same dark-red selection as Date Picker
   --------------------------------------------------------- */

.user-dob-wheel-item.is-selected {
  background: rgb(65 25 25);

  color: rgb(240 240 240);

  border-top-color: rgb(95 35 35);
  border-left-color: rgb(95 35 35);

  border-right-color: rgb(42 18 18);
  border-bottom-color: rgb(42 18 18);

  box-shadow:
    inset 2px 2px 4px rgb(0 0 0 / 35%),
    inset -1px -1px 3px rgb(255 255 255 / 2%);
}

.user-dob-wheel-item.is-selected:active {
  box-shadow:
    inset 2px 2px 5px rgb(0 0 0 / 70%),
    inset -1px -1px 3px rgb(255 255 255 / 3%);
}

.user-dob-wheel-item:focus-visible {
  outline: 2px solid rgb(175 36 36);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.user-dob-picker-footer {
  padding: 0.75rem;

  border-top: 1px solid rgb(45 45 45);
}

/* ---------------------------------------------------------
   SELECT BUTTON
   --------------------------------------------------------- */

.user-dob-picker-select-mount {
  width: 100%;
}

.user-dob-picker-select-button,
.user-dob-picker-select-button.button {
  width: 100%;

  min-height: 2.75rem;

  margin: 0;
}

/* ---------------------------------------------------------
   INVALID INPUT
   --------------------------------------------------------- */

.user-dob-picker-input.user-dob-picker-input-invalid {
  border-color: rgb(175 36 36);

  box-shadow:
    inset 3px 3px 7px rgb(0 0 0 / 70%),
    inset -2px -2px 5px rgb(255 255 255 / 3%),
    0 0 0 2px rgb(175 36 36 / 12%);
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 30rem) {
  .user-dob-picker-surface {
    width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
  }

  .user-dob-picker-wheels {
    gap: 0.375rem;
    padding: 0.625rem;
  }

  .user-dob-wheel-item {
    min-height: 2.75rem;
    font-size: 0.8125rem;
  }
}

/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .user-dob-picker-close,
  .user-dob-wheel-item {
    transition: none;
  }
}
