.mtpdb-booking {
  --mtpdb-ink: #20382f;
  --mtpdb-accent: #884830;
  --mtpdb-line: #d9d6ca;
  box-sizing: border-box;
  max-width: 830px;
  margin: 1.25rem auto 2rem;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--mtpdb-line);
  border-radius: 14px;
  background: #fffdf8;
  color: #26352e;
  font: 1rem/1.55 Arial, sans-serif;
  text-align: start;
  scroll-margin-top: 70px;
}
.mtpdb-booking *, .mtpdb-booking *::before, .mtpdb-booking *::after { box-sizing: border-box; }
.mtpdb-booking h2, .mtpdb-booking h3 {
  margin: 0 0 .65em;
  color: var(--mtpdb-ink);
  font: 400 clamp(1.75rem, 4vw, 2.6rem)/1.12 Georgia, serif;
  letter-spacing: -.025em;
}
.mtpdb-booking h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.mtpdb-booking p { margin: 0 0 1rem; color: inherit; }
.mtpdb-booking .mtpdb-itinerary { margin-bottom: 1.35rem; padding-bottom: .85rem; border-bottom: 1px solid var(--mtpdb-line); color: #4d574f; font-size: .9rem; }
.mtpdb-itinerary a { color: var(--mtpdb-ink); font-size: 1.1rem; font-weight: 600; text-underline-offset: .18em; }
.mtpdb-booking form { margin: 0; padding: 0; }
.mtpdb-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 20px; margin: 1.25rem 0; }
.mtpdb-wide { grid-column: 1/-1; }
.mtpdb-booking .mtpdb-field {
  display: grid; gap: 5px; align-content: start; min-width: 0; margin: 0;
  color: #33473d; font: 600 .9rem/1.35 Arial, sans-serif;
}
.mtpdb-booking .mtpdb-field input, .mtpdb-booking .mtpdb-field select, .mtpdb-booking .mtpdb-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 44px; height: auto; margin: 0;
  padding: 10px 12px; border: 1px solid #879487; border-radius: 6px;
  color: #1d2d25; background-color: #fff; box-shadow: none; font: 400 1rem/1.3 Arial, sans-serif;
}
.mtpdb-booking .mtpdb-field textarea { resize: vertical; min-height: 5.75rem; }
.mtpdb-booking .mtpdb-field small { font-weight: normal; }
.mtpdb-summary .mtpdb-plan-summary { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.mtpdb-plan-summary li { display: grid; margin: 0; padding: .5rem 0; gap: .15rem; border-bottom: 1px solid var(--mtpdb-line); overflow-wrap: anywhere; }
.mtpdb-plan-summary li span, .mtpdb-plan-summary li small { color: #4d574f; font-size: .9rem; }
.mtpdb-booking :focus-visible { outline: 3px solid #854c2c; outline-offset: 3px; }
.mtpdb-booking input[type="date"], .mtpdb-booking [data-mtpdb-date] { cursor: pointer; }
.mtpdb-booking .mtpdb-field input[type="hidden"] { display: none; }
#ui-datepicker-div.mtpdb-calendar {
  box-sizing: border-box; z-index: 100002 !important; width: min(20rem, calc(100vw - 12px)); max-width: 100vw;
  padding: .65rem; border: 1px solid #91a296; border-radius: .65rem; background: white; color: #20382f;
  box-shadow: 0 .5rem 1.5rem rgba(29, 49, 39, .2); font: 400 1rem/1.3 Arial, sans-serif;
}
.mtpdb-calendar .ui-datepicker-header { display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding: 0 0 .5rem; }
.mtpdb-calendar .ui-datepicker-title { display: flex; justify-content: center; gap: .25rem; }
.mtpdb-calendar .ui-datepicker-title select { width: auto; max-width: 7.25rem; min-height: 2rem; margin: 0; padding: .1rem; background: white; color: #20382f; font: inherit; border: 1px solid #c2cbc4; }
.mtpdb-calendar .ui-datepicker-next { order: 2; }
.mtpdb-calendar .ui-datepicker-prev, .mtpdb-calendar .ui-datepicker-next { display: grid; place-items: center; min-width: 2rem; min-height: 2rem; border-radius: .3rem; color: #254b3c; cursor: pointer; }
.mtpdb-calendar .ui-datepicker-prev::before { content: '‹'; }
.mtpdb-calendar .ui-datepicker-next::before { content: '›'; }
.mtpdb-calendar .ui-icon { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.mtpdb-calendar .ui-datepicker-calendar { width: 100%; margin: 0; table-layout: fixed; border-collapse: collapse; font: inherit; }
.mtpdb-calendar .ui-datepicker-calendar th, .mtpdb-calendar .ui-datepicker-calendar td { width: auto; padding: 0; border: 0; text-align: center; background: transparent; }
.mtpdb-calendar .ui-datepicker-calendar th { padding: .3rem 0; font-size: .8rem; color: #495c51; }
.mtpdb-calendar .ui-datepicker-calendar a, .mtpdb-calendar .ui-datepicker-calendar td > span { display: grid; place-items: center; min-height: 2.35rem; border: 0; border-radius: .35rem; background: transparent; text-decoration: none; color: #20382f; }
.mtpdb-calendar .ui-datepicker-calendar td.ui-state-disabled > span, .mtpdb-calendar .ui-state-disabled { opacity: .45; }
.mtpdb-calendar .ui-datepicker-calendar a:hover, .mtpdb-calendar .ui-datepicker-days-cell-over a { background: #e5ece6; }
.mtpdb-calendar .ui-datepicker-calendar a.ui-state-active { color: white; background: #254b3c; }
.mtpdb-calendar :focus-visible { outline: 2px solid #854c2c; outline-offset: -2px; }
.mtpdb-booking .mtpdb-note { color: #4d574f; font-size: .92rem; }
.mtpdb-booking .mtpdb-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0;
  padding: 10px 19px; border: 1px solid #254b3c; border-radius: 6px;
  background: #254b3c; color: white; font: 600 1rem/1.35 Arial, sans-serif;
  text-decoration: none; text-transform: none; cursor: pointer;
}
.mtpdb-booking .mtpdb-button:hover { color: white; background: #173a2c; }
.mtpdb-booking .mtpdb-link, .mtpdb-booking .mtpdb-text-button {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 7px 0;
  border: 0; background: none; box-shadow: none; color: #72442d;
  font: 600 .95rem/1.4 Arial, sans-serif; text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}
.mtpdb-booking .mtpdb-link { margin-inline-start: 1rem; }
.mtpdb-booking .mtpdb-edit { margin-top: 10px; }
.mtpdb-summary { margin: 1rem 0 1.5rem; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--mtpdb-line); border-radius: 9px; background: #f5f1e8; }
.mtpdb-summary dl { margin: .75rem 0; }
.mtpdb-summary dl > div { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--mtpdb-line); }
.mtpdb-summary dt, .mtpdb-summary dd { margin: 0; padding: 0; font: inherit; }
.mtpdb-summary dd { text-align: end; }
.mtpdb-summary .mtpdb-total { font-weight: bold; color: var(--mtpdb-ink); border-bottom: 0; }
.mtpdb-summary p:last-child { margin-bottom: 0; }
.mtpdb-booking .mtpdb-alert { padding: 12px 15px; background: #fff1ea; color: #703822; border-inline-start: 3px solid var(--mtpdb-accent); }
@media (max-width: 600px) {
  .mtpdb-grid { grid-template-columns: minmax(0, 1fr); }
  .mtpdb-booking .mtpdb-link { margin-inline: 0; width: 100%; }
  .mtpdb-summary dl > div { flex-wrap: wrap; gap: .15rem .75rem; }
  .mtpdb-summary dd { margin-inline-start: auto; max-width: 100%; overflow-wrap: anywhere; }
}
.mtpdb-summary .mtpdb-due { color: var(--mtpdb-ink); font-weight: bold; }
.mtpdb-payment { margin-block: 1rem; padding: 18px 20px; border-inline-start: 3px solid #9b753b; border-radius: 5px; background: #f4f0e7; }
.mtpdb-payment .mtpdb-bank { white-space: pre-line; overflow-wrap: anywhere; }
.mtpdb-payment p:last-child { margin-bottom: 0; }
