.gw-date-picker {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
}
.gw-date-picker > .gw-date-input {
  height: 38px;
  padding-right: 30px;
  font-variant-numeric: tabular-nums;
}
.gw-date-input[aria-invalid="true"] { border-color: #b42318; }
.gw-date-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.gw-date-toggle:hover { color: var(--ink); background: var(--page); }
.gw-date-popup { font-size: 14px; }
.gw-date-popup .gw-selection-header,
.gw-date-popup .gw-selection-feedback { padding: 0; border: 0; }
.gw-date-header { display: flex; align-items: center; gap: 4px; padding-bottom: 6px; }
.gw-date-title { flex: 1; min-width: 0; }
.gw-date-heading,
.gw-date-nav,
.gw-date-day,
.gw-date-months > button,
.gw-date-footer > button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.gw-date-heading { display: flex; align-items: center; gap: 6px; padding: 6px; font-weight: 600; }
.gw-date-heading::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.gw-date-year { max-width: 100px; min-height: 32px; padding: 3px 6px; font: inherit; }
.gw-date-popup [hidden] { display: none; }
.gw-date-nav { display: grid; place-items: center; padding: 6px; width: 30px; height: 32px; }
.gw-date-previous .icon { transform: rotate(180deg); }
.gw-date-popup .gw-date-grid { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 2px; }
.gw-date-grid th,
.gw-date-grid td { padding: 0; border: 0; background: transparent; text-align: center; font-size: 13px; }
.gw-date-grid th { height: 26px; color: var(--muted); font-weight: 400; }
.gw-date-grid tbody tr:hover td { background: transparent; }
.gw-date-day { display: block; width: 100%; height: 30px; padding: 0; }
.gw-date-day.is-other-month { color: var(--muted); }
.gw-date-popup button:hover:not(:disabled) { background: #eef2ff; color: var(--brand); }
.gw-date-day[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--brand); }
.gw-date-popup .gw-date-day.is-selected { background: var(--brand); color: #fff; }
.gw-date-popup button:disabled { color: var(--muted); opacity: 0.4; cursor: default; }
.gw-date-popup button:focus-visible,
.gw-date-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.gw-date-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 0; }
.gw-date-months > button { min-height: 40px; padding: 6px; }
.gw-date-footer { display: flex; justify-content: space-between; padding-top: 6px; }
.gw-date-footer > button { padding: 6px; color: var(--brand); }
