.boxy-calendar-control { position: relative; }
.boxy-calendar-control .boxy-calendar-input { width: 100%; padding-right: 46px !important; }
.boxy-calendar-control .boxy-calendar-toggle { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 42px; border: 0; background: transparent; color: #00649b; font-size: 26px; cursor: pointer; padding: 0; }
.boxy-calendar { box-sizing: border-box; width: 100%; max-width: 340px; margin-top: 5px; padding: 12px; border: 1px solid #b5c5cf; border-radius: 8px; background: #fff; color: #142e3e; box-shadow: 0 5px 16px #15394b12; }
.boxy-calendar[hidden] { display: none; }
.boxy-calendar-header, .boxy-calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.boxy-calendar-header strong { text-align: center; font-size: 15px; }
.boxy-calendar button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; background: #f1f6f9; color: #143b50; border-radius: 5px; font: inherit; font-size: 14px; min-height: 36px; padding: 4px; cursor: pointer; box-shadow: none; }
.boxy-calendar-header button { width: 36px; font-size: 24px; }
.boxy-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 10px 0; }
.boxy-calendar-weekday { text-align: center; font-size: 12px; padding: 4px 0; }
.boxy-calendar button:disabled { color: #77858e; background: #f7f7f7; text-decoration: line-through; cursor: not-allowed; opacity: .65; }
.boxy-calendar button:not(:disabled):hover { background: #dceefa; }
.boxy-calendar button.is-selected:not(:disabled) { background: #00669e; color: white; }
.boxy-calendar button[aria-current="date"] { border-color: #00669e; }
.boxy-calendar button:focus-visible, .boxy-calendar-toggle:focus-visible { outline: 2px solid #00669e; outline-offset: 2px; }
.boxy-calendar small { display: block; font-size: 12px; }
.boxy-calendar-footer { margin-top: 10px; }
.boxy-calendar-footer button { padding: 5px 8px; font-size: 12px; }

/* Override the theme's full-width, 48px booking-form buttons. */
.booking-form .boxy-calendar { padding: 10px; }
.booking-form .boxy-calendar-header { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 6px; }
.booking-form .boxy-calendar-header strong { white-space: nowrap; font-size: 14px; line-height: 1.3; }
.booking-form .boxy-calendar button { width: auto; min-width: 0; min-height: 0; height: 34px; padding: 2px; line-height: 1.2; }
.booking-form .boxy-calendar-header button { width: 32px; height: 32px; font-size: 22px; }
.booking-form .boxy-calendar-grid { gap: 3px; margin: 6px 0; }
.booking-form .boxy-calendar-weekday { padding: 2px 0; line-height: 1.4; }
.booking-form .boxy-calendar-footer { margin-top: 6px; }
.booking-form .boxy-calendar-footer button { height: 30px; padding: 3px 8px; }
.booking-form .boxy-calendar small { font-size: 11px; line-height: 1.4; }
@media (max-width: 480px) {
  .booking-form .boxy-calendar { padding: 8px; }
  .booking-form .boxy-calendar-grid { gap: 2px; }
  .booking-form .boxy-calendar-grid button { height: 30px; font-size: 13px; }
}
