/* Course page and booking steps, in the Serene palette. */

/* Page layout: the poster sits beside the details and the booking panel. */
.product-type-tmcb_course .cmsms_product_left_column,
.product-type-tmcb_course .cmsms_tabs,
.product-type-tmcb_course .related,
.product-type-tmcb_course .product_meta,
.product-type-tmcb_course .ppc-button-wrapper,
.product-type-tmcb_course p.price { display: none !important; }
.cmsms_single_product.product-type-tmcb_course { overflow: visible !important; display: flow-root; }
.product-type-tmcb_course .summary.entry-summary { display: block !important; float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }

html:has(.tmcb-course), body:has(.tmcb-course) { overflow-x: clip !important; overflow-y: visible !important; }
.tmcb-course { --ink: #24302a; --muted: #5d6a62; --line: #e3e7e1; --soft: #f1f4ef; --sage: #4f7a5a; --sage-dark: #3b5f45; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; font-family: Inter, system-ui, sans-serif; color: var(--ink); }
.tmcb-course.no-image { grid-template-columns: minmax(0, 720px); justify-content: center; }
.tmcb-course-media { position: sticky; top: 97px; margin: 0; }
.tmcb-course-media img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 121px); margin: 0 auto; border-radius: 20px; box-shadow: 0 18px 44px rgba(36, 48, 42, .14); }
.tmcb-course-main { min-width: 0; }
.tmcb-course .tmcb-eyebrow { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-dark); margin: 0 0 10px; }
body.single-product .tmcb-course h1.product_title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.3rem, 4vw, 3.3rem); font-weight: 500; line-height: 1.08; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 22px; }

.tmcb-course .tmcb-course-facts { margin: 0 0 22px; padding: 0; }
.tmcb-course .tmcb-course-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); margin: 0; }
.tmcb-course .tmcb-course-facts > div:last-child { border-bottom: 1px solid var(--line); }
.tmcb-course .tmcb-course-facts dt { float: none; width: auto; margin: 0; padding: 0; font-size: .86rem; font-weight: 400; color: var(--muted); line-height: 1.6; }
.tmcb-course .tmcb-course-facts dd { float: none; width: auto; margin: 0; padding: 0; font-size: .95rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.tmcb-course .tmcb-course-facts .amount, .tmcb-course .tmcb-course-facts bdi { color: inherit !important; font: inherit !important; }
.tmcb-course .tmcb-intro { color: var(--muted); margin: 0 0 14px; font-size: 1rem; line-height: 1.7; }
.tmcb-course .tmcb-intro p { margin: 0 0 1em; color: inherit; font-size: inherit; line-height: inherit; }
.tmcb-course .tmcb-intro p:last-child { margin-bottom: 0; }
.tmcb-course .tmcb-policy { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0 0 30px; }
.tmcb-course .tmcb-policy a, .tmcb-booking a { color: var(--sage-dark) !important; text-decoration: underline; text-underline-offset: 2px; }
.tmcb-course .tmcb-started { font-weight: 500; margin: 0 0 18px; }

/* The booking panel. */
.tmcb-booking { --ink: #24302a; --muted: #5d6a62; --line: #e3e7e1; --soft: #f1f4ef; --sage: #4f7a5a; --sage-dark: #3b5f45; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; border-radius: 22px; padding: 34px 36px 36px; box-shadow: 0 1px 2px rgba(36, 48, 42, .05), 0 16px 40px rgba(36, 48, 42, .08); }
.tmcb-booking[hidden], .tmcb-booking [hidden] { display: none !important; }
.tmcb-booking h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 2rem; line-height: 1.15; letter-spacing: 0; color: var(--ink); margin: 0 0 20px; outline: none; display: block; }
.tmcb-booking section { animation: tmcb-in .3s ease both; }
@keyframes tmcb-in { from { opacity: 0; transform: translateY(6px); } }

/* Steps: a thin bar for each, with a small label. */
.tmcb-booking .tmcb-progress { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tmcb-booking .tmcb-progress li { margin: 0; padding: 9px 0 0; background: none; border-top: 3px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.3; transition: border-color .25s; list-style: none; }
.tmcb-booking .tmcb-progress li.is-done { border-top-color: var(--sage); color: var(--muted); }
.tmcb-booking .tmcb-progress li.is-current { border-top-color: var(--sage-dark); color: var(--ink); font-weight: 600; }

/* Step 1: date. */
.tmcb-dates { display: grid; gap: 12px; }
.tmcb-booking .tmcb-date { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 22px; align-items: center; gap: 16px; margin: 0; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font-size: 1rem; font-weight: 400; line-height: 1.45; color: var(--ink); transition: border-color .2s, background .2s; }
.tmcb-booking .tmcb-date:hover { border-color: var(--sage); }
.tmcb-booking .tmcb-date:has(input:checked) { border-color: var(--sage-dark); background: var(--soft); box-shadow: inset 0 0 0 1px var(--sage-dark); }
.tmcb-booking .tmcb-date:has(input:focus-visible) { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.tmcb-booking .tmcb-date.is-full { opacity: .55; cursor: not-allowed; }
.tmcb-date input { grid-column: 4; grid-row: 1; }
.tmcb-date-tile { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: 12px; background: var(--soft); color: var(--sage-dark); }
.tmcb-date:has(input:checked) .tmcb-date-tile { background: #fff; }
.tmcb-date-month { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.tmcb-date-day { font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.tmcb-date-text { grid-column: 2; grid-row: 1; min-width: 0; }
.tmcb-date-when { display: block; font-weight: 600; }
.tmcb-date-venue { display: block; color: var(--muted); font-size: .9rem; }
.tmcb-date-meta { grid-column: 3; grid-row: 1; text-align: right; }
.tmcb-date-price { display: block; font-weight: 600; }
.tmcb-date-price .amount, .tmcb-date-price bdi { color: inherit !important; font: inherit !important; }
.tmcb-date-left { display: block; color: var(--muted); font-size: .84rem; white-space: nowrap; }

/* Step 2: places. */
.tmcb-people-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.tmcb-people-label { display: block; font-weight: 600; }
.tmcb-booking .tmcb-left-note { color: var(--muted); font-size: .88rem; margin: 2px 0 0; }
.tmcb-stepper { display: flex; align-items: center; gap: 8px; flex: none; }
.tmcb-booking .tmcb-stepper button { width: 44px; height: 44px; min-height: 0; border-radius: 50%; border: 1px solid #c9d1c8; background: #fff !important; color: var(--sage-dark) !important; font-size: 1.35rem; font-weight: 400; line-height: 1; cursor: pointer; padding: 0; box-shadow: none; transition: border-color .2s, background .2s; }
.tmcb-booking .tmcb-stepper button:hover:not(:disabled) { border-color: var(--sage-dark); background: var(--soft) !important; }
.tmcb-booking .tmcb-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.tmcb-count { font-size: 1.3rem; font-weight: 600; min-width: 40px; text-align: center; line-height: 1; }
.tmcb-booking .tmcb-total-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 16px 0 0; margin: 0; color: var(--muted); }
.tmcb-total { font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.2; }

/* Step 3: details. */
.tmcb-booking .tmcb-help { color: var(--muted); margin: -8px 0 24px; font-size: .95rem; }
.tmcb-booking .tmcb-person { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 8px; margin: 0; min-width: 0; background: none; }
.tmcb-booking .tmcb-person > legend { float: left; width: 100%; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.4rem; line-height: 1.2; color: var(--ink); padding: 0; margin: 0 0 16px; border: 0; }
.tmcb-booking .tmcb-person > legend + * { clear: both; }
.tmcb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tmcb-booking .tmcb-field { margin: 0 0 16px; min-width: 0; padding: 0; border: 0; }
.tmcb-booking .tmcb-field > label:not(.tmcb-inline), .tmcb-booking .tmcb-health-details > label, .tmcb-booking .tmcb-field > legend { display: block; float: none; width: auto; font-size: .86rem; font-weight: 500; margin: 0 0 6px; padding: 0; border: 0; color: var(--ink); line-height: 1.45; }
.tmcb-booking input:not([type=radio]):not([type=checkbox]), .tmcb-booking select, .tmcb-booking textarea { display: block; width: 100%; height: auto; min-height: 48px; box-sizing: border-box; font: inherit; color: var(--ink); background-color: #fff; border: 1px solid #c9d1c8; border-radius: 12px; padding: 11px 14px; margin: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.tmcb-booking select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235d6a62' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.tmcb-booking textarea { min-height: 88px; resize: vertical; }
.tmcb-booking input:not([type=radio]):not([type=checkbox]):focus, .tmcb-booking select:focus, .tmcb-booking textarea:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 3px rgba(59, 95, 69, .15); outline: none; }
.tmcb-booking [aria-invalid=true] { border-color: #a4262c !important; }

/* Yes / no choices look like a pair of buttons. */
.tmcb-booking .tmcb-field > .tmcb-inline { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; margin: 0 8px 0 0; padding: 0 20px; border: 1px solid #c9d1c8; border-radius: 999px; background: #fff; font-size: .95rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.tmcb-booking .tmcb-field > .tmcb-inline:hover { border-color: var(--sage-dark); }
.tmcb-booking .tmcb-field > .tmcb-inline:has(input:checked) { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.tmcb-booking .tmcb-field > .tmcb-inline:has(input:focus-visible) { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.tmcb-booking .tmcb-inline input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tmcb-health-details { margin-top: 14px; }

/* Radios and tick boxes. */
.tmcb-date input, .tmcb-check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; border: 1.5px solid #aeb8b0; background: #fff center no-repeat; box-shadow: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.tmcb-date input { border-radius: 50%; }
.tmcb-date input:checked { border-color: var(--sage-dark); background-image: radial-gradient(circle, var(--sage-dark) 0 6px, transparent 6.5px); }
.tmcb-check input { border-radius: 7px; margin-top: 1px; }
.tmcb-check input:checked { border-color: var(--sage-dark); background-color: var(--sage-dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 5 3.5 3.5L11 1.5'/%3E%3C/svg%3E"); }
.tmcb-booking .tmcb-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 9px 0; font-size: .93rem; font-weight: 400; line-height: 1.5; color: var(--ink); cursor: pointer; }
.tmcb-booking .tmcb-person .tmcb-check { margin-bottom: 8px; color: var(--muted); }
.tmcb-booking .tmcb-field-error, .tmcb-booking .tmcb-error { color: #a4262c; font-size: .86rem; margin: 6px 0 0; font-weight: 500; }

/* Step 4: confirm. */
.tmcb-booking .tmcb-summary { margin: 0 0 26px; padding: 0; background: none; }
.tmcb-booking .tmcb-summary > div { display: flex; justify-content: space-between; gap: 24px; margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.tmcb-booking .tmcb-summary dt { float: none; width: auto; flex: none; margin: 0; padding: 0; color: var(--muted); font-size: .9rem; font-weight: 400; }
.tmcb-booking .tmcb-summary dd { float: none; width: auto; margin: 0; padding: 0; text-align: right; font-size: .95rem; font-weight: 500; color: var(--ink); }
.tmcb-booking .tmcb-summary > div:last-child { align-items: baseline; border-bottom: 1px solid var(--line); }
.tmcb-booking .tmcb-summary > div:last-child dd { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.tmcb-booking .tmcb-declarations { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.tmcb-booking .tmcb-declarations legend { float: none; width: auto; font-weight: 600; font-size: 1rem; padding: 0; margin: 0 0 6px; border: 0; color: var(--ink); }
.tmcb-booking .tmcb-pay-note { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 14px 0 0; }

/* Buttons. */
.tmcb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.tmcb-nav .tmcb-next:only-child { margin-left: auto; }
.tmcb-next, .tmcb-booking .tmcb-next { display: inline-block; min-height: 50px; height: auto; padding: 12px 32px; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; text-decoration: none !important; box-shadow: none; cursor: pointer; background: #3b5f45 !important; border: 1px solid #3b5f45 !important; color: #fff !important; transition: background .2s, border-color .2s; }
.tmcb-next:hover, .tmcb-booking .tmcb-next:hover { background: #24302a !important; border-color: #24302a !important; color: #fff !important; }
.tmcb-next:disabled { opacity: .7; cursor: wait; }
.tmcb-booking .tmcb-back { min-height: 50px; height: auto; padding: 12px 8px; background: none !important; border: 0 !important; border-radius: 8px; box-shadow: none; font: inherit; font-size: .95rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted) !important; cursor: pointer; }
.tmcb-booking .tmcb-back::before { content: "\2190\00a0"; }
.tmcb-booking .tmcb-back:hover { color: var(--ink) !important; }
.tmcb-booking button:focus-visible, .tmcb-booking a:focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.tmcb-closed { font-family: Inter, system-ui, sans-serif; background: #f1f4ef; border-radius: 20px; padding: 28px; }
.tmcb-closed p { margin: 0 0 16px; }

@media (max-width: 959px) {
  .tmcb-course, .tmcb-course.no-image { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tmcb-course-media { position: static; max-width: 460px; width: 100%; margin: 0 auto; }
  .tmcb-course-media img { width: 100%; max-height: none; }
}
@media (max-width: 600px) {
  .tmcb-booking { padding: 24px 18px 26px; border-radius: 18px; }
  .tmcb-booking h2 { font-size: 1.75rem; }
  .tmcb-booking .tmcb-date { grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 4px 14px; padding: 14px; }
  .tmcb-date input { grid-column: 3; }
  .tmcb-date-tile { grid-row: 1 / span 2; }
  .tmcb-date-meta { grid-column: 2 / span 2; grid-row: 2; text-align: left; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .tmcb-date-price, .tmcb-date-left { display: inline; font-size: .86rem; }
  .tmcb-row { grid-template-columns: 1fr; }
  .tmcb-nav .tmcb-next { flex: 1; padding-left: 20px; padding-right: 20px; }
  .tmcb-booking .tmcb-summary > div:not(:last-child) { flex-direction: column; gap: 0; }
  .tmcb-booking .tmcb-summary > div:not(:last-child) dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .tmcb-booking section { animation: none; }
  .tmcb-booking *, .tmcb-next { transition: none !important; }
}
