/* Weekly appointment calendar, scoped to the tarot booking form. */
#view-shop .shop-reading .shop-weekday-calendar {
  min-width: 0;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid #bda984;
  border-radius: 5px;
  background: #faf3e3;
  font: 400 13px/1.45 'Work Sans', sans-serif;
  color: #403a2d;
}

#view-shop .shop-reading .shop-booking .shop-weekday-calendar > legend {
  margin: 0;
  padding: 0 5px;
  font-weight: 600;
}

#view-shop .shop-calendar-note,
#view-shop .shop-calendar-demo,
#view-shop .shop-calendar-range,
#view-shop .shop-calendar-status,
#view-shop .shop-calendar-selection { margin: 0; }

#view-shop .shop-calendar-note { color: #625642; }
#view-shop .shop-calendar-demo { margin-top: 5px; color: #753c25; font-weight: 600; }

#view-shop .shop-calendar-week {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

#view-shop .shop-calendar-range { text-align: center; font-weight: 600; }

#view-shop .shop-calendar-arrow,
#view-shop .shop-calendar-choice,
#view-shop .shop-calendar-retry {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #bda984;
  border-radius: 4px;
  background: #fffaf0;
  color: #374333;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

#view-shop .shop-calendar-arrow { font: 400 26px/1 Georgia, serif; }
#view-shop .shop-calendar-choice { padding: 4px 1px; font-weight: 600; }
#view-shop .shop-calendar-choice[aria-pressed='true'] { border-color: #354936; background: #354936; color: #fffaf0; }
#view-shop .shop-calendar-choice:disabled,
#view-shop .shop-calendar-arrow:disabled { background: #eee7d7; color: #756958; cursor: default; }
#view-shop .shop-calendar-choice[aria-pressed='true']:disabled { border-color: #536651; background: #536651; color: #fffaf0; }

#view-shop .shop-calendar-days,
#view-shop .shop-calendar-times { display: grid; gap: 4px; }
#view-shop .shop-calendar-days { grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 7px; }
#view-shop .shop-calendar-times { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 8px; }
#view-shop .shop-calendar-days .shop-calendar-choice { display: grid; place-content: center; min-height: 53px; font-size: 11px; }
#view-shop .shop-calendar-day-number { font-size: 17px; font-variant-numeric: tabular-nums; }
#view-shop .shop-calendar-times .shop-calendar-choice { font-size: 12px; white-space: nowrap; }
#view-shop .shop-calendar-status { margin-top: 8px; color: #625642; }
#view-shop .shop-calendar-status:empty { display: none; }
#view-shop .shop-calendar-retry { margin-top: 6px; padding-inline: 9px; }

#view-shop .shop-calendar-hold {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 5px;
  margin-top: 8px;
  padding: 8px;
  border-left: 2px solid #4c674a;
  background: #e4eadc;
  color: #2e4230;
}

#view-shop .shop-calendar-selection { overflow-wrap: anywhere; }
#view-shop .shop-calendar-timer { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 400px) {
  #view-shop .shop-reading .shop-weekday-calendar { padding: 8px; }
  #view-shop .shop-calendar-times .shop-calendar-choice { font-size: 11px; }
}
