/* Theme. To restyle, set any --fx-* variable on :root (every feature on the site)
   or on .fx-cal (this feature only). The values here are the defaults. */
.fx-cal {
  --_accent: var(--fx-accent, #d4af37);
  --_accent-text: var(--fx-accent-text, #000);
  --_text: var(--fx-text, #f5f5f5);
  --_muted: var(--fx-muted, #b8b8b8);
  --_panel: var(--fx-panel, #181818);
  --_cell: var(--fx-cell, #101010);
  --_line: var(--fx-line, rgba(255,255,255,.15));
  --_closed: var(--fx-closed, #ff8a7a);
  --_demo: var(--fx-demo, #9ad1ff);
  --_font-display: var(--fx-font-display, inherit);
  --_font-body: var(--fx-font-body, inherit);
  --_space: var(--fx-space, 16px);
  --_space-sm: calc(var(--_space) * .5);
  --_space-lg: calc(var(--_space) * 1.5);
  --_radius: var(--fx-radius, 6px);
  --_radius-sm: calc(var(--_radius) * .6);
  font-family: var(--_font-body);
}
/* Hours and holiday calendar */
.fx-cal { margin-top: var(--_space-lg); color: var(--_text); }
.fx-cal-title { margin: 0 0 .3em; font-family: var(--_font-display); font-size: 1.9rem; font-weight: var(--fx-heading-weight, 800); line-height: 1; text-transform: var(--fx-heading-case, uppercase); }
.fx-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: var(--_space-sm); }
.fx-cal-month { flex: 1; margin: 0; font-family: var(--_font-display); font-size: 1.5rem; font-weight: 700; text-align: center; text-transform: var(--fx-heading-case, uppercase); }
.fx-cal-nav, .fx-cal-today {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  color: var(--_text);
  border: 1px solid var(--_line);
  border-radius: var(--_radius-sm);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fx-cal-today { order: 4; font-size: .85rem; font-weight: 600; }
.fx-cal-nav:disabled { opacity: .3; cursor: default; }
.fx-cal-grid { display: grid; gap: 3px; }
.fx-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.fx-cal-wd { padding: 2px 0; color: var(--_muted); font-size: .7rem; font-weight: 600; text-align: center; text-transform: uppercase; }
.fx-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 3px 0;
  background: var(--_cell);
  color: var(--_text);
  border: 1px solid transparent;
  border-radius: var(--_radius-sm);
  font: inherit;
  cursor: pointer;
}
.fx-cal-day:hover { border-color: var(--_line); }
.fx-cal-num { font-size: .95rem; font-weight: 700; line-height: 1.1; }
.fx-cal-short { color: var(--_muted); font-size: .62rem; line-height: 1.2; white-space: nowrap; }
.fx-cal-day.is-closed .fx-cal-short { color: var(--_closed); }
.fx-cal-day.is-special .fx-cal-short { color: var(--_accent); }
.fx-cal-dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--_accent); }
.fx-cal-day.is-past { opacity: .4; }
.fx-cal-day.is-today { border-color: var(--_accent); }
.fx-cal-day[aria-pressed="true"] { background: var(--_accent); color: var(--_accent-text); }
.fx-cal-day[aria-pressed="true"] .fx-cal-short { color: var(--_accent-text); }
.fx-cal-day[aria-pressed="true"] .fx-cal-dot { background: var(--_accent-text); }
.fx-cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: var(--_space-sm) 0 0; padding: 0; list-style: none; color: var(--_muted); font-size: .78rem; }
.fx-cal-legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--_muted); }
.fx-cal-legend .is-special::before { background: var(--_accent); }
.fx-cal-legend .is-closed::before { background: var(--_closed); }
.fx-cal-detail { margin-top: 12px; padding: 12px 14px; background: var(--_panel); border-left: 4px solid var(--_muted); border-radius: var(--_radius-sm); }
.fx-cal-detail.is-special { border-left-color: var(--_accent); }
.fx-cal-detail.is-closed { border-left-color: var(--_closed); }
.fx-cal-detail p { margin: 0; }
.fx-cal-date { color: var(--_muted); font-size: .86rem; }
.fx-cal-hours { font-family: var(--_font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.15; text-transform: var(--fx-heading-case, uppercase); }
.fx-cal-name { color: var(--_accent); font-weight: 600; }
.fx-cal-up-title { margin: var(--_space) 0 6px; color: var(--_accent); font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fx-cal-up-list { margin: 0; padding: 0; list-style: none; }
.fx-cal-up-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 0;
  background: none;
  color: var(--_text);
  border: 0;
  border-bottom: 1px solid var(--_line);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fx-cal-up-name { font-weight: 600; }
.fx-cal-up-date { grid-column: 1; color: var(--_muted); font-size: .82rem; }
.fx-cal-up-hours { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .86rem; white-space: nowrap; }
.is-closed .fx-cal-up-hours { color: var(--_closed); }
.fx-cal :focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; }

@media (min-width: 600px) {
  .fx-cal-day { min-height: 58px; }
  .fx-cal-short { font-size: .72rem; }
}
.fx-cal .fx-demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px dashed var(--_demo);
  border-radius: var(--_radius-sm);
  color: var(--_demo);
  font-family: var(--_font-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
