/* All styles are scoped to the booking widget; existing Enfold fonts are reused. */
:is(body, #top) .mtb-widget {
  /* Follow the Enfold theme's colour settings; the fallbacks are the same Maltings values. */
  --mtb-accent: var(--enfold-main-color-secondary, #3c5d6e);
  --mtb-accent-dark: var(--enfold-main-color-button-border2, #2e4958);
  --mtb-heading: var(--enfold-main-color-heading, #757575);
  --mtb-ink: #444444;
  --mtb-muted: #757575;
  --mtb-line: #d9dfe2;
  --mtb-soft: #f3f5f6;
  box-sizing: border-box;
  width: 100%; max-width: 640px;
  margin: 32px auto; padding: 0 22px 28px;
  color: var(--mtb-ink); background: #fff;
  font-family: inherit; font-size: 15px; line-height: 1.5;
  text-align: left;
}
:is(body, #top) .mtb-widget *, :is(body, #top) .mtb-widget *::before, :is(body, #top) .mtb-widget *::after { box-sizing: border-box; }
:is(body, #top) .mtb-widget [hidden] { display: none !important; }
:is(body, #top) .mtb-widget .mtb-heading { text-align: center; margin: 0 0 32px; }
:is(body, #top) .mtb-widget h2, :is(body, #top) .mtb-widget h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 56px; line-height: 1.12;
  color: var(--mtb-heading); letter-spacing: .035em; text-transform: uppercase;
  margin: 0 0 20px; padding: 0;
}
:is(body, #top) .mtb-widget .mtb-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--mtb-accent); }
:is(body, #top) .mtb-widget .mtb-divider::before, :is(body, #top) .mtb-widget .mtb-divider::after { content: ''; width: 56px; height: 1px; background: currentColor; opacity: .65; }
:is(body, #top) .mtb-widget .mtb-divider span { font: 400 25px/1 'Cormorant Garamond', Georgia, serif; }
:is(body, #top) .mtb-widget svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:is(body, #top) .mtb-widget .mtb-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin: 0 0 27px; font-size: 13px; color: var(--mtb-accent); }
:is(body, #top) .mtb-widget .mtb-summary > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
:is(body, #top) .mtb-widget form, :is(body, #top) .mtb-widget fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:is(body, #top) .mtb-widget label { display: block; margin: 0 0 20px; padding: 0; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--mtb-ink); }
:is(body, #top) .mtb-widget input:not([type=checkbox]):not([type=hidden]), :is(body, #top) .mtb-widget select, :is(body, #top) .mtb-widget textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
  margin: 7px 0 0; padding: 11px 14px; border: 1px solid var(--mtb-line); border-radius: 3px;
  box-shadow: none; background: #fff; color: var(--mtb-ink); font: inherit; font-size: 16px; line-height: 1.5;
}
:is(body, #top) .mtb-widget select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233c5d6e' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
:is(body, #top) .mtb-widget select:disabled { color: var(--mtb-muted); background-color: var(--mtb-soft); opacity: 1; }
:is(body, #top) .mtb-widget button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; margin: 0; padding: 11px 24px; border: 1px solid var(--mtb-accent); border-radius: 3px;
  background: var(--mtb-accent); color: #fff; box-shadow: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; text-transform: none; letter-spacing: .02em;
  transition: background-color .15s, border-color .15s;
}
:is(body, #top) .mtb-widget button:hover:not(:disabled) { background: var(--mtb-accent-dark); border-color: var(--mtb-accent-dark); color: #fff; }
:is(body, #top) .mtb-widget button:disabled { opacity: .45; cursor: not-allowed; }
:is(body, #top) .mtb-widget :is(button, input, select, textarea, a):focus-visible { outline: 2px solid var(--mtb-accent); outline-offset: 3px; }
:is(body, #top) .mtb-widget .mtb-calendar { margin: 24px 0; }
:is(body, #top) .mtb-widget .mtb-calendar-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 0 0 12px; }
:is(body, #top) .mtb-widget .mtb-month { text-align: center; font-weight: 500; font-size: 17px; }
:is(body, #top) .mtb-widget .mtb-calendar-nav button { padding: 0; min-height: 44px; width: 44px; border: 0; background: transparent; color: var(--mtb-accent); }
:is(body, #top) .mtb-widget .mtb-calendar-nav button:hover:not(:disabled) { background: var(--mtb-soft); color: var(--mtb-accent); }
:is(body, #top) .mtb-widget .mtb-calendar-nav button:disabled { opacity: .3; }
:is(body, #top) .mtb-widget .mtb-weekdays, :is(body, #top) .mtb-widget .mtb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
:is(body, #top) .mtb-widget .mtb-weekdays { text-align: center; margin: 0 0 8px; color: var(--mtb-muted); font-size: 12px; }
:is(body, #top) .mtb-widget .mtb-weekdays span { padding: 5px 0; }
:is(body, #top) .mtb-widget .mtb-day {
  position: relative; width: 100%; min-width: 0; min-height: 45px; padding: 7px 0;
  background: #fff; border: 1px solid var(--mtb-line); color: var(--mtb-ink); font-size: 14px; font-weight: 400;
}
:is(body, #top) .mtb-widget .mtb-day:hover:not(:disabled) { background: #eaf0f3; border-color: var(--mtb-accent); color: var(--mtb-accent); }
:is(body, #top) .mtb-widget .mtb-day:disabled { background: var(--mtb-soft); border-color: var(--mtb-soft); color: #9b9b9b; opacity: 1; text-decoration: line-through; }
:is(body, #top) .mtb-widget .mtb-day.mtb-outside { background: transparent; border-color: transparent; color: #c5c9cb; text-decoration: none; }
:is(body, #top) .mtb-widget .mtb-day.mtb-selected, :is(body, #top) .mtb-widget .mtb-day.mtb-selected:hover { background: var(--mtb-accent); border-color: var(--mtb-accent); color: #fff; font-weight: 600; }
:is(body, #top) .mtb-widget .mtb-day[aria-current=date]::after { content: ''; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
:is(body, #top) .mtb-widget .mtb-timezone { margin: -11px 0 21px; padding: 0; font-size: 11px; color: var(--mtb-muted); }
:is(body, #top) .mtb-widget .mtb-actions { display: flex; justify-content: flex-end; gap: 12px; }
:is(body, #top) .mtb-widget .mtb-actions-between { justify-content: space-between; }
:is(body, #top) .mtb-widget .mtb-next { min-width: 118px; }
:is(body, #top) .mtb-widget .mtb-back { padding-left: 0; padding-right: 12px; border-color: transparent; color: var(--mtb-accent); background: transparent; }
:is(body, #top) .mtb-widget .mtb-back:hover:not(:disabled) { background: transparent; border-color: transparent; color: var(--mtb-accent-dark); text-decoration: underline; }
:is(body, #top) .mtb-widget .mtb-details-title { font: 400 30px/1.2 'Cormorant Garamond', Georgia, serif; color: var(--mtb-accent); margin: 0 0 24px; text-transform: none; letter-spacing: 0; }
:is(body, #top) .mtb-widget .mtb-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; font-weight: 400; line-height: 1.7; margin: 24px 0; }
:is(body, #top) .mtb-widget .mtb-consent input { appearance: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mtb-accent); }
:is(body, #top) .mtb-widget a { color: var(--mtb-accent); text-decoration: underline; }
:is(body, #top) .mtb-widget .mtb-sr-only, :is(body, #top) .mtb-widget .mtb-honey { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:is(body, #top) .mtb-widget .mtb-message:empty { display: none; }
:is(body, #top) .mtb-widget .mtb-message:not(:empty) { margin: 20px 0 0; padding: 14px 16px; font-size: 13px; line-height: 1.7; background: var(--mtb-soft); border-left: 3px solid var(--mtb-accent); overflow-wrap: anywhere; }
:is(body, #top) .mtb-widget .mtb-message.mtb-error { background: #fff4f0; color: #8b3527; border-color: #8b3527; }
:is(body, #top) .mtb-widget .mtb-message.mtb-confirmed { background: #edf3ef; color: #31543e; border-color: #31543e; }
/* Progress the form already shows (placeholder calendar, time spinner) is announced, not displayed. */
:is(body, #top) .mtb-widget .mtb-message.mtb-quiet { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Loading: the form keeps its final size while the calendar and times arrive. */
:is(body, #top) .mtb-widget .mtb-day-skeleton, :is(body, #top) .mtb-widget.mtb-loading .mtb-summary > span > span {
  display: block; background: var(--mtb-soft) linear-gradient(100deg, var(--mtb-soft) 30%, #fbfcfc 50%, var(--mtb-soft) 70%) 0 0 / 300% 100%;
  animation: mtb-shimmer 1.5s linear infinite;
}
:is(body, #top) .mtb-widget .mtb-day-skeleton { min-height: 45px; }
:is(body, #top) .mtb-widget.mtb-loading .mtb-summary > span > span { width: 68px; height: 10px; border-radius: 2px; }
:is(body, #top) .mtb-widget.mtb-loading .mtb-summary svg { opacity: .45; }
:is(body, #top) .mtb-widget.mtb-ready :is(.mtb-days, .mtb-summary) { animation: mtb-fade .25s ease-out; }
:is(body, #top) .mtb-widget .mtb-time-field { position: relative; }
:is(body, #top) .mtb-widget:is(.mtb-loading, .mtb-checking) .mtb-time-field select { background-image: none; }
:is(body, #top) .mtb-widget:is(.mtb-loading, .mtb-checking) .mtb-time-field::after {
  content: ''; position: absolute; right: 14px; bottom: 15px; width: 18px; height: 18px;
  border: 2px solid var(--mtb-line); border-top-color: var(--mtb-accent); border-radius: 50%;
  animation: mtb-spin .8s linear infinite;
}
@keyframes mtb-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes mtb-spin { to { transform: rotate(360deg); } }
@keyframes mtb-fade { from { opacity: .3; } }
/* Without JavaScript the placeholder would never fill in; the noscript message is shown instead. */
@media (scripting: none) { :is(body, #top) .mtb-widget.mtb-loading :is(.mtb-form, .mtb-summary) { display: none; } }
@media (max-width: 480px) {
  :is(body, #top) .mtb-widget { margin: 20px auto; padding: 0 10px 20px; }
  :is(body, #top) .mtb-widget .mtb-heading { margin-bottom: 26px; }
  :is(body, #top) .mtb-widget h2 { font-size: 38px; letter-spacing: .015em; }
  :is(body, #top) .mtb-widget .mtb-summary { gap: 7px 13px; font-size: 11px; margin-bottom: 23px; }
  :is(body, #top) .mtb-widget .mtb-summary svg { width: 15px; height: 15px; }
  :is(body, #top) .mtb-widget .mtb-weekdays, :is(body, #top) .mtb-widget .mtb-days { gap: 3px; }
  :is(body, #top) .mtb-widget .mtb-day, :is(body, #top) .mtb-widget .mtb-day-skeleton { min-height: 44px; }
  :is(body, #top) .mtb-widget .mtb-calendar { margin: 20px 0; }
  :is(body, #top) .mtb-widget button { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(body, #top) .mtb-widget button { transition: none; }
  :is(body, #top) .mtb-widget :is(.mtb-day-skeleton, .mtb-days, .mtb-summary, .mtb-summary > span > span), :is(body, #top) .mtb-widget .mtb-time-field::after { animation: none; }
}
