.postal-booking {
  margin: 0;
  color: #163554;
  background: #f5f8fa;
  font: 15px/1.6 "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
}
.postal-booking [hidden] { display: none !important; }
.booking-shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.booking-title, .booking-toolbar, .booking-form-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.booking-title { justify-content: space-between; margin: 12px 0 16px; }
.booking-title-actions { display: flex; gap: 8px; align-items: center; }
#appointment-form h2 { font-size: 25px; margin: 0; }
.booking-panel, #appointment-dialog {
  background: #fff; border: 1px solid #dce6ec; border-radius: 12px;
}
.booking-panel { padding: 18px 22px; margin-bottom: 28px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; gap: 24px; }
.booking-month-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
.booking-month-controls h2 { margin: 0; text-align: center; font-size: 22px; color: #0a205b; }
.booking-month-controls button { border-color: transparent; }
.booking-month-controls button:hover { background: #eaf7fa; }
.booking-month-controls button[aria-label] { font-size: 23px; line-height: 1; }
.booking-toolbar h2 { margin: 0; font-size: 20px; }
.booking-holiday-legend { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 2px; color: #617495; font-size: 12px; }
.booking-holiday-legend::before { content: ''; width: 11px; height: 11px; border-radius: 2px; background: #fff0f0; border: 1px solid #b96565; }
.booking-holiday-source, .booking-holiday-warning { text-align: center; margin: 0 0 10px; color: #617495; font-size: 11px; }
.booking-holiday-warning { color: #9a3e24; }
.booking-weekdays, .booking-dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.booking-weekdays { font-weight: 700; text-align: center; color: #0a205b; margin-bottom: 8px; }
.booking-weekdays span:first-child, .booking-weekdays span:last-child { color: #9d5353; }
.postal-booking .booking-dates button { display: block; overflow: hidden; text-align: left; align-content: start; padding: 8px; min-height: 108px; border: 1px solid #e7edf6; border-radius: 10px; color: #0a205b; }
.booking-dates button:hover, .booking-dates button[aria-pressed="true"] { background: #eaf7fa; }
.booking-dates button.is-rest-day { background: #fff0f0; }
.booking-dates button[aria-current="date"], .booking-dates button[aria-pressed="true"] { border-color: #008ea8; }
.booking-date-number, .booking-date-entry, .booking-holiday, .booking-date-entry-extra { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-date-number { font-weight: 650; }
.booking-dates button[aria-current="date"] .booking-date-number { font-weight: 800; }
.booking-dates button.is-outside .booking-date-number { color: #637184; }
.booking-date-entry, .booking-holiday, .booking-date-entry-extra { font-size: 11px; }
.booking-date-entry { color: #006f84; }
.booking-holiday { color: #9d5353; font-weight: 650; }
.booking-toolbar { padding-bottom: 15px; border-bottom: 1px solid #e5edf1; }
.booking-toolbar h2 { flex-basis: 100%; }
.booking-timezone { margin-inline-start: auto; color: #536a80; font-size: 13px; }
.booking-toolbar label, #appointment-form label { display: grid; gap: 4px; }
.booking-case-filter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 12px; }
.booking-case-filter span { font-weight: 700; overflow-wrap: anywhere; }
.booking-case-filter a { font-size: 13px; }
.postal-booking input, .postal-booking select, .postal-booking button {
  box-sizing: border-box; font: inherit; min-height: 40px; padding: 6px 10px;
  color: inherit; border: 1px solid #c8d8e1; background: #fff; border-radius: 7px;
}
.postal-booking button { cursor: pointer; }
.postal-booking button:disabled { opacity: .5; cursor: default; }
.postal-booking .booking-refresh { width: 40px; padding: 0; font-size: 20px; color: #007b8b; }
.postal-booking .booking-primary {
  color: #fff; background: #007b8b; border-color: #007b8b; font-weight: 700;
  padding-inline: 15px;
}
.postal-booking a { color: #006b7a; }
.booking-status { color: #536a80; }
.booking-status.is-error, #appointment-form-status { color: #9f2626; }
.booking-day h3 { font-size: 15px; padding: 8px 11px; margin: 12px 0 0; background: #edf5f7; border-radius: 6px; }
.booking-day ul { margin: 0; padding: 0; list-style: none; }
.booking-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 12px; margin-top: 8px; border-radius: 10px; background: #eaf7fa; }
.booking-entry a { font-size: 13px; width: fit-content; }
.booking-entry:last-child { border-bottom: 0; }
.booking-entry strong, .booking-entry span { display: block; overflow-wrap: anywhere; }
.booking-entry span { color: #536a80; font-size: 13px; }
.booking-entry time { white-space: nowrap; font-variant-numeric: tabular-nums; }
#appointment-dialog { width: min(440px, calc(100% - 44px)); padding: 22px; color: inherit; }
#appointment-dialog::backdrop { background: #102b46aa; }
#appointment-form { display: grid; gap: 12px; }
#appointment-form p { margin: 0; }
.booking-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form-actions { justify-content: end; }
@media (max-width: 900px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-calendar { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .booking-shell { width: calc(100% - 24px); }
  .booking-panel { padding: 12px; }
  .booking-dates, .booking-weekdays { gap: 4px; }
  .postal-booking .booking-dates button { min-height: 62px; padding: 4px; text-align: center; }
  .booking-date-entry, .booking-date-entry-extra, .booking-holiday { display: none; }
  .booking-dates button.has-booking .booking-date-number::after { content: ''; display: block; width: 5px; height: 5px; background: #008ea8; border-radius: 50%; margin: 3px auto 0; }
}
