.oldp-datepicker-wrap {
  position: relative;
}

.oldp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

.oldp-modal[hidden] {
  display: none;
}

.oldp-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.oldp-modal__dialog {
  position: relative;
  height: 100vh;
  width: min(92vw, 480px);
  background: #fff;
  overflow-y: auto;
  padding: 32px 28px 28px;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.oldp-modal.is-open .oldp-modal__dialog {
  transform: translateX(0);
}

.oldp-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  line-height: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  cursor: pointer;
}

.oldp-modal__close:hover,
.oldp-modal__close:focus-visible,
.oldp-calendar-modal__close:hover,
.oldp-calendar-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.07);
}

.oldp-icon--close {
  display: block;
}

.oldp-modal__dialog h3 {
  margin: 0;
  color: #17212b;
  font-size: 2.64rem;
  font-weight: 600;
  line-height: 1.2;
}

.oldp-modal__intro {
  margin: 8px 0 28px;
  color: #66717b;
  font-size: 1.52rem;
  line-height: 1.45;
}

.oldp-booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  margin-top: 0;
}

.oldp-booking-form label {
  display: grid;
  gap: 7px;
  color: #35414b;
  font-size: 1.248rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.oldp-form-section-title {
  grid-column: 1 / -1;
  margin-bottom: -10px;
  color: #17212b;
  font-size: 1.6rem;
  font-weight: 600;
}

.oldp-booking-form > .oldp-age-groups,
.oldp-booking-form > .oldp-selectable-extras,
.oldp-booking-form > .oldp-form-message,
.oldp-booking-form > .oldp-quote,
.oldp-booking-form > [data-ol-continue],
.oldp-booking-form > label:only-child {
  grid-column: 1 / -1;
}

.oldp-total-guests {
  max-width: 220px;
}

.oldp-total-guests-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.oldp-guests-field {
  grid-column: 1 / -1;
  max-width: 220px;
}

.oldp-max-helper {
  font-size: 0.85em;
  opacity: 0.8;
  margin-bottom: 10px;
}

.oldp-max-helper.is-limit-reached {
  opacity: 1;
}

.oldp-age-groups {
  margin: 0;
  padding: 16px;
  border: 1px solid #d8dee3;
  background: #f7f9fa;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.oldp-age-groups legend {
  padding: 0 6px;
  grid-column: 1 / -1;
  color: #17212b;
  font-size: 1.6rem;
  font-weight: 600;
}

.oldp-age-group-field {
  grid-template-columns: auto 1fr;
  gap: 4px;
}

.oldp-age-group-field__name {
  color: #35414b;
}

.oldp-age-group-field__range {
  color: #7a858e;
  font-size: 0.9em;
  font-weight: 400;
}

.oldp-age-group-field input {
  grid-column: 1 / -1;
}

.oldp-selectable-extras {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 12px;
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid #d8dee3;
  background: #f7f9fa;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.oldp-selectable-extras legend {
  grid-column: 1 / -1;
  padding: 0 6px;
  color: #17212b;
  font-size: 1.6rem;
  font-weight: 600;
}

.oldp-selectable-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: baseline;
}

.oldp-selectable-extra__name {
  color: #35414b;
}

.oldp-selectable-extra__price {
  color: #64717a;
  font-size: 0.9em;
  text-align: right;
}

.oldp-selectable-extra input {
  grid-column: 1 / -1;
}

.oldp-booking-form input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #aeb8c1;
  border-radius: 3px;
  background: #fff;
  color: #17212b;
  font: inherit;
  font-size: 1.52rem;
  font-weight: 400;
  letter-spacing: 0;
}

.oldp-booking-form input:focus-visible {
  outline: 3px solid rgba(35, 92, 126, 0.25);
  outline-offset: 1px;
  border-color: #235c7e;
}

.oldp-booking-form input[readonly] {
  cursor: pointer;
}

.oldp-form-message {
  margin-top: 20px;
  color: #66717b;
  font-size: 1.376rem;
  line-height: 1.4;
}

.oldp-form-message.is-error {
  color: #b00020;
}

.oldp-quote {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #d8dee3;
}

.oldp-quote__label {
  color: #17212b;
  font-size: 1.6rem;
  font-weight: 600;
}

.oldp-quote__total {
  margin-top: 18px;
  color: #17212b;
  font-size: 3.2rem;
  line-height: 1.1;
}

.oldp-quote__meta {
  margin-top: 6px;
  color: #66717b;
  font-size: 1.44rem;
}

.oldp-quote__breakdown-label {
  margin-top: 16px;
  color: #66717b;
  font-size: 1.248rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.oldp-quote__breakdown {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #4d5963;
  font-size: 1.44rem;
  line-height: 1.35;
}

.oldp-quote__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.oldp-quote__breakdown strong {
  color: #35414b;
  font-weight: 500;
  white-space: nowrap;
}

[data-ol-continue] {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 3px;
  background: #17212b;
  color: #fff;
  font: inherit;
  font-size: 1.472rem;
  font-weight: 600;
  line-height: 1;
  text-align: center !important;
  cursor: pointer;
}

[data-ol-continue]:hover:not(:disabled) {
  background: #235c7e;
}

[data-ol-continue]:focus-visible {
  outline: 3px solid rgba(35, 92, 126, 0.3);
  outline-offset: 2px;
}

[data-ol-continue]:disabled {
  background: #c3cbd1;
  color: #fff;
  cursor: not-allowed;
}

.oldp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.oldp-calendar-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  z-index: 10010;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 0s linear 180ms;
}

.oldp-calendar-modal[hidden] {
  display: none;
}

.oldp-calendar-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.oldp-calendar-modal__dialog {
  width: min(96vw, 1120px);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  padding: 28px 28px 24px;
  position: relative;
}

.oldp-calendar-modal__dialog h4 {
  margin: 0;
  color: #17212b;
  font-size: 1.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.oldp-calendar-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  line-height: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  cursor: pointer;
}

.oldp-calendar-modal__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 12px;
}

.oldp-calendar-modal__toolbar [data-ol-calendar-month-label] {
  display: none;
  color: #66717b;
  font-size: 1.44rem;
  font-weight: 600;
  text-align: center;
}

.oldp-calendar-modal__toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #aeb8c1;
  border-radius: 3px;
  background: #fff;
  color: #17212b;
  font: inherit;
  font-size: 1.76rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.oldp-calendar-modal__toolbar button:hover:not(:disabled) {
  border-color: #235c7e;
  background: #f2f6f8;
}

.oldp-calendar-modal__toolbar button:focus-visible {
  outline: 3px solid rgba(35, 92, 126, 0.25);
  outline-offset: 2px;
}

.oldp-calendar-modal__toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.oldp-calendar-modal__info--top {
  margin-top: 18px;
  color: #235c7e;
  font-size: 1.6rem;
  font-weight: 600;
}

.oldp-calendar-modal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid #d8dee3;
  font-size: 1.248rem;
}

.oldp-calendar-key {
  padding: 4px 8px;
  border-radius: 2px;
}

.oldp-calendar-key--available {
  background: #dff3d6;
  color: #1f5f2c;
}

.oldp-calendar-key--unavailable {
  background: #ffd9d9;
}

.oldp-calendar-key--restriction {
  background: #edf0f2;
  color: #59636c;
}

.oldp-calendar-key--blocked {
  background: #e5e5e5;
}

.oldp-calendar-weekdays,
.oldp-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 48px;
  gap: 6px;
}

.oldp-calendar-modal__months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.oldp-calendar-month {
  min-width: 0;
}

.oldp-calendar-month__title {
  margin: 0 0 10px;
  color: #17212b;
  font-size: 1.68rem;
  font-weight: 600;
  line-height: 1.25;
}

.oldp-calendar-weekdays {
  margin-bottom: 8px;
  color: #66717b;
  font-size: 1.216rem;
  font-weight: 600;
}

.oldp-calendar-modal__grid-wrap {
  position: relative;
}

.oldp-calendar-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
  text-align: center;
}

.oldp-calendar-modal__overlay[hidden] {
  display: none;
}

.oldp-calendar-modal__overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.oldp-calendar-modal__overlay button {
  padding: 8px 16px;
  border: 1px solid #aeb8c1;
  border-radius: 3px;
  background: #fff;
  color: #17212b;
  font: inherit;
  cursor: pointer;
}

.oldp-calendar-modal__overlay button:focus-visible {
  outline: 3px solid rgba(35, 92, 126, 0.25);
  outline-offset: 2px;
}

.oldp-calendar-weekdays span {
  text-align: center;
}

.oldp-calendar-day {
  position: relative;
  min-height: 0;
  border: 1px solid #d6d6d6;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  font: inherit;
  cursor: pointer;
}

.oldp-calendar-day:focus-visible {
  outline: 3px solid rgba(35, 92, 126, 0.3);
  outline-offset: -2px;
}

.oldp-calendar-day:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.oldp-calendar-day--blank {
  border: 0;
}

.oldp-calendar-day--unavailable {
  background: #ffd9d9;
}

.oldp-calendar-key--checkout-only,
.oldp-calendar-day--checkout-only {
  background: linear-gradient(to bottom right, #eef9e9 50%, #ffd9d9 50%);
  color: #263744;
}

.oldp-calendar-day--checkout-only {
  border-color: #77b255;
}

.oldp-calendar-day--checkout-only:disabled {
  opacity: 1;
}

.oldp-calendar-day--restriction {
  border-color: #aeb7bf;
  background: #edf0f2;
  color: #59636c;
  cursor: not-allowed;
}

.oldp-calendar-day--restriction:focus-visible {
  outline: 2px solid #59636c;
  outline-offset: -2px;
}

.oldp-calendar-day--blocked {
  background: #e5e5e5;
}

.oldp-calendar-day--selectable {
  border-color: #77b255;
  background: #eef9e9;
  color: #1f5f2c;
}

.oldp-calendar-day--selected-start,
.oldp-calendar-day--selected-end {
  outline: 2px solid #333;
  outline-offset: -2px;
}

.oldp-calendar-day--selected-end.oldp-calendar-day--unavailable {
  opacity: 1;
}

.oldp-calendar-day--selected-start::after,
.oldp-calendar-day--selected-end::after {
  display: none;
}

.oldp-calendar-day--cancel-start {
  cursor: pointer;
}

.oldp-calendar-day--checkout-open {
  border-style: dashed;
}

.oldp-calendar-day--preview {
  box-shadow: inset 0 0 0 2px #9aa7b3;
}

.oldp-calendar-day--in-range {
  background: #f4f7fa;
}

.oldp-calendar-day__num {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.oldp-calendar-day__price {
  color: #40515c;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1;
}

.oldp-calendar-modal__info {
  margin-top: 18px;
  color: #66717b;
  font-size: 1.376rem;
  line-height: 1.4;
}

.oldp-calendar-modal__info.is-error {
  opacity: 1;
}

.oldp-calendar-modal__empty {
  padding: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .oldp-modal,
  .oldp-modal__dialog,
  .oldp-calendar-modal {
    transition: none;
  }
}

@media (forced-colors: active) {
  .oldp-modal__dialog,
  .oldp-calendar-modal__dialog,
  .oldp-calendar-day,
  .oldp-calendar-modal__toolbar button,
  .oldp-booking-form input {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .oldp-calendar-day--unavailable,
  .oldp-calendar-key--checkout-only,
  .oldp-calendar-day--checkout-only,
  .oldp-calendar-day--restriction,
  .oldp-calendar-day--blocked,
  .oldp-calendar-day--selectable {
    background: Canvas;
    color: CanvasText;
  }
}

@media (max-width: 700px) {
  .oldp-modal__dialog {
    width: 100vw;
    max-width: 100vw;
    padding: 28px 20px 24px;
  }

  .oldp-booking-form {
    grid-template-columns: 1fr;
  }

  .oldp-age-groups {
    grid-template-columns: 1fr;
  }

  .oldp-total-guests-row {
    gap: 12px;
  }

  .oldp-calendar-modal__dialog {
    width: 96vw;
    max-height: 95vh;
    padding: 12px;
  }

  .oldp-calendar-modal__months {
    grid-template-columns: 1fr;
  }

  .oldp-calendar-modal__toolbar [data-ol-calendar-month-label] {
    display: block;
  }

  .oldp-calendar-month:nth-child(n + 2) {
    display: none;
  }
}
