.tm-travel-detail {
  --tm-detail-border: hsl(207 24% 84%);
  --tm-detail-border-strong: hsl(209 24% 68%);
  --tm-detail-muted: hsl(210 14% 41%);
  --tm-detail-subtle: hsl(207 24% 97%);
  --tm-detail-saturday: hsl(210 72% 45%);
  --tm-detail-sunday: hsl(4 72% 51%);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
}

.tm-travel-detail .content-width {
  width: min(1280px, calc(100% - var(--gutter) * 2));
}

.tm-travel-detail :where(h1, h2, h3, p, dl, dd, figure, fieldset) {
  margin: 0;
}

.tm-travel-detail :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}

.tm-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0 22px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.tm-button:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.tm-button:active {
  transform: translateY(1px);
}

.tm-button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: hsl(0 0% 100%);
}

.tm-button--primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: hsl(0 0% 100%);
}

.tm-button[aria-disabled="true"] {
  border-color: hsl(207 18% 86%);
  background: hsl(207 18% 93%);
  color: hsl(210 10% 57%);
  pointer-events: none;
}

.tm-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.9fr);
  gap: 52px;
  padding-block: 40px 52px;
}

.tm-detail-gallery {
  display: grid;
  min-width: 0;
  aspect-ratio: 4 / 3;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
}

.tm-detail-gallery__main {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tm-detail-subtle);
}

.tm-detail-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-detail-gallery__thumbs {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.tm-detail-gallery__thumb {
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: var(--tm-detail-subtle);
}

.tm-detail-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms cubic-bezier(0.22, 0.8, 0.32, 1);
}

.tm-detail-gallery__thumb:hover img {
  opacity: 0.82;
}

.tm-detail-gallery__thumb[aria-pressed="true"] {
  border: 2px solid var(--accent);
}

.tm-detail-gallery.is-single-image {
  grid-template-columns: minmax(0, 1fr);
}

.tm-detail-gallery.is-single-image .tm-detail-gallery__thumbs {
  display: none;
}

.tm-detail-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  padding-top: 4px;
}

.tm-detail-heading__route {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.tm-detail-heading__route::before {
  width: 30px;
  height: 7px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at left center, var(--sky) 0 3px, transparent 3.5px),
    radial-gradient(circle at right center, var(--sky) 0 3px, transparent 3.5px),
    linear-gradient(var(--sky), var(--sky)) center / calc(100% - 8px) 1px no-repeat;
  content: "";
}

.tm-detail-heading h1 {
  max-width: 19ch;
  color: var(--ink);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
  word-break: keep-all;
}

.tm-detail-heading__summary {
  max-width: 62ch;
  padding-top: 10px;
  color: var(--tm-detail-muted);
  font-size: 14px;

  word-break: keep-all;
}

.tm-detail-facts {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--tm-detail-border-strong);
  border-bottom: 1px solid var(--tm-detail-border-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-detail-facts > div {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--tm-detail-border);
  padding: 10px 14px;
}

.tm-detail-facts > div:nth-child(odd) {
  border-right: 1px solid var(--tm-detail-border);
}

.tm-detail-facts > div:nth-last-child(1):nth-child(odd) {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.tm-detail-facts > div:nth-last-child(2):nth-child(odd),
.tm-detail-facts > div:nth-last-child(1):nth-child(even) {
  border-bottom: 0;
}

.tm-detail-facts dt {
  color: var(--tm-detail-muted);
  font-size: 11px;
}

.tm-detail-facts dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.tm-sale-unit-picker {
  margin-top: 22px;
  padding-top: 18px;
}

.tm-sale-unit-picker__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tm-sale-unit-picker__heading h2 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.tm-sale-unit-picker__heading p,
.tm-sale-unit-picker > p {
  margin: 0;
  color: var(--tm-detail-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tm-sale-unit-picker > p {
  min-height: 19px;
  margin-top: 8px;
}

.tm-sale-unit-picker select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 0 48px 0 15px;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.tm-sale-unit-picker select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.tm-sale-unit-picker select:disabled {
  background: var(--tm-detail-subtle);
  color: var(--tm-detail-muted);
  cursor: not-allowed;
}

.tm-detail-heading .tm-sale-unit {
  margin-top: 24px;
  scroll-margin-top: 78px;
}

.tm-detail-heading .tm-sale-unit__panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.tm-detail-heading .tm-sale-unit__field {
  padding-block: 20px;
}

.tm-detail-heading .tm-sale-unit__quote {
  position: static;
}

.tm-detail-heading__action {
  min-width: 168px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tm-detail-anchor {
  position: sticky;
  z-index: 18;
  top: 0;
  border-top: 1px solid var(--tm-detail-border);
  border-bottom: 1px solid var(--tm-detail-border-strong);
  background: hsl(0 0% 100% / 0.98);
}

.tm-detail-anchor .content-width {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tm-detail-anchor a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--tm-detail-border);
  color: var(--tm-detail-muted);
  font-size: 14px;
  font-weight: 650;
}

.tm-detail-anchor a:last-child {
  border-right: 1px solid var(--tm-detail-border);
}

.tm-detail-anchor a:hover,
.tm-detail-anchor a:focus-visible {
  background: var(--tm-detail-subtle);
  color: var(--ink);
}

.tm-detail-anchor a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
  color: var(--ink);
  font-weight: 800;
}

.tm-product-description {
  padding-bottom: 52px;
}

.tm-detail-body .tm-product-description {
  padding-block: 48px 64px;
  border-bottom: 1px solid var(--tm-detail-border-strong);
}

.travel-product-detail-v1-travelmaker-description {
  display: block;
  margin-block: 80px;
}

.tm-detail-body__content > .tm-product-description {
  margin-block: 80px;
}

.tm-product-description .tm-section-heading,
.tm-itinerary .tm-section-heading {
  margin-bottom: 30px;
}

.tm-product-description__content {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tm-product-description__content :where(img, video, iframe, table) {
  max-width: 100%;
}

.tm-product-description__content img {
  height: auto;
}

.tm-product-description__content > :first-child {
  margin-top: 0;
}

.tm-product-description__content > :last-child {
  margin-bottom: 0;
}

.tm-detail-body {
  display: grid;
  min-width: 0;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 44px;
  padding-block: 48px 112px;
}

.tm-detail-body__content {
  min-width: 0;
}

.tm-detail-section {
  scroll-margin-top: 78px;
}

.tm-detail-section + .tm-detail-section {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--tm-detail-border-strong);
}

.tm-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.tm-section-heading h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.tm-section-heading p {
  max-width: 460px;
  color: var(--tm-detail-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.tm-departure-calendar {
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--surface);
}

.tm-departure-calendar-panel {
  margin: 0 auto 56px;
  padding-top: 4px;
}

.tm-departure-calendar-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tm-departure-calendar-panel__heading h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.tm-departure-calendar-panel__heading p {
  color: var(--tm-detail-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.tm-sale-unit-picker.is-calendar-mode > .tm-sale-unit-custom-select {
  display: none;
}

.tm-departure-calendar__head {
  display: grid;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid var(--tm-detail-border-strong);
  grid-template-columns: 58px 1fr 58px;
}

.tm-departure-calendar__head strong {
  justify-self: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.tm-departure-calendar__head button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.tm-departure-calendar__head button:hover:not(:disabled) {
  background: var(--tm-detail-subtle);
}

.tm-departure-calendar__head button:disabled {
  color: hsl(207 12% 72%);
  cursor: not-allowed;
}

.tm-departure-calendar__head svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tm-departure-calendar__weekdays,
.tm-departure-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tm-departure-calendar__weekdays {
  min-height: 38px;
  align-items: center;
  border-right: 1px solid var(--tm-detail-border-strong);
  border-bottom: 1px solid var(--tm-detail-border);
  border-left: 1px solid var(--tm-detail-border-strong);
  background: hsl(207 24% 98%);
}

.tm-departure-calendar__weekdays span {
  border-right: 1px solid var(--tm-detail-border);
  color: var(--tm-detail-muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.tm-departure-calendar__weekdays span:last-child {
  border-right: 0;
  color: var(--tm-detail-saturday);
}

.tm-departure-calendar__weekdays span:first-child {
  color: var(--tm-detail-sunday);
}

.tm-departure-calendar__grid {
  border-right: 1px solid var(--tm-detail-border-strong);
  border-left: 1px solid var(--tm-detail-border-strong);
  background: linear-gradient(
      to right,
      transparent calc(100% - 1px),
      var(--tm-detail-border) calc(100% - 1px)
    )
    0 0 / calc(100% / 7) 100%;
}

.tm-calendar-day {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  border-right: 1px solid var(--tm-detail-border);
  border-bottom: 1px solid var(--tm-detail-border);
  padding: 11px 10px 9px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.tm-calendar-day:nth-child(7n) {
  border-right: 0;
}

.tm-calendar-day b {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.tm-calendar-day strong {
  margin-top: auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.tm-calendar-day small {
  margin-top: 5px;
  color: var(--tm-detail-muted);
  font-size: 11px;
  line-height: 1.2;
}

.tm-calendar-day:hover:not(.is-unavailable):not(.is-empty):not(.is-sold-out) {
  background: var(--accent-tint);
}

.tm-calendar-day.is-selected {
  z-index: 2;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-tint);
}

.tm-calendar-day.is-selected::after {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.tm-calendar-day.is-low small {
  color: var(--accent-hover);
  font-weight: 700;
}

.tm-calendar-day.is-available small {
  color: var(--success);
  font-weight: 650;
}

.tm-calendar-day.is-sold-out {
  background: hsl(207 18% 98%);
  color: hsl(209 10% 55%);
  cursor: not-allowed;
}

.tm-calendar-day.is-sold-out strong {
  color: hsl(209 10% 55%);
  text-decoration: line-through;
}

.tm-calendar-day.is-unavailable,
.tm-calendar-day.is-empty {
  background: hsl(207 18% 98%);
  color: hsl(209 10% 70%);
}

.tm-calendar-day.is-unavailable {
  font-size: 13px;
}

.tm-departure-calendar__empty {
  padding: 30px;
  color: var(--tm-detail-muted);
  font-size: 13px;
  text-align: center;
}

.tm-departure-calendar__legend {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 22px;
  border-right: 1px solid var(--tm-detail-border-strong);
  border-bottom: 1px solid var(--tm-detail-border-strong);
  border-left: 1px solid var(--tm-detail-border-strong);
  border-top: 1px solid var(--tm-detail-border);
  padding: 0 16px;
  color: var(--tm-detail-muted);
  font-size: 11px;
}

.tm-departure-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tm-departure-calendar__legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tm-detail-border-strong);
}

.tm-departure-calendar__legend .is-available {
  background: var(--success);
}

.tm-departure-calendar__legend .is-low {
  background: var(--accent);
}

.tm-module-empty {
  border-block: 1px solid var(--tm-detail-border);
  padding: 28px 16px;
  color: var(--tm-detail-muted);
  font-size: 13px;
  text-align: center;
}

.tm-itinerary [class*="travel-product-itinerary"] {
  border-top: 1px solid var(--tm-detail-border-strong);
}

.tm-itinerary-day {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  border-bottom: 1px solid var(--tm-detail-border);
}

.tm-itinerary-day__number {
  display: flex;
  min-height: 100%;
  align-items: baseline;
  gap: 3px;
  border-right: 1px solid var(--tm-detail-border);
  padding: 23px 18px;
  background: hsl(207 24% 98%);
}

.tm-itinerary-day__number span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
}

.tm-itinerary-day__number small {
  color: var(--tm-detail-muted);
  font-size: 12px;
  font-weight: 650;
}

.tm-itinerary-day__content {
  min-width: 0;
  padding: 22px 24px 24px;
}

.tm-itinerary-day__content h3 {
  font-size: 17px;
  font-weight: 720;
  line-height: 1.45;
}

.tm-itinerary-day__description {
  max-width: 70ch;
  margin-top: 7px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tm-itinerary-day__description :where(p, ul, ol) {
  margin: 0 0 8px;
}

.tm-itinerary-day__description :where(img, table) {
  max-width: 100%;
}

.tm-itinerary-day__description img {
  height: auto;
}

.tm-policy-tabs {
  margin-top: 32px;
}

.tm-policy-tabs.tm-policy-tabs--only-optionals {
  margin-top: 0;
}

.tm-policy-optionals {
  border-top: 1px solid var(--tm-detail-border-strong);
  border-bottom: 1px solid var(--tm-detail-border-strong);
}

.tm-policy-optionals[hidden] {
  display: none;
}

.tm-policy-optionals .tm-policy-section {
  padding: 26px 0;
}

.tm-policy-optionals .tm-policy-section:first-child {
  padding-top: 28px;
}

.tm-policy-optionals .tm-policy-section:last-child {
  padding-bottom: 28px;
}

.tm-policy-tabs__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--tm-detail-border-strong);
}

.tm-policy-tabs__list button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--tm-detail-border);
  background: hsl(207 24% 98%);
  color: var(--tm-detail-muted);
  font-size: 12px;
  font-weight: 650;
}

.tm-policy-tabs__list button:last-child {
  border-right: 0;
}

.tm-policy-tabs__list button:hover {
  background: hsl(207 20% 95%);
  color: var(--ink);
}

.tm-policy-tabs__list button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.tm-policy-tabs__panel {
  padding: 0;
}

.tm-policy-tabs__panel[hidden] {
  display: none;
}

.tm-policy-tabs__panel {
  border-bottom: 1px solid var(--tm-detail-border-strong);
  padding: 28px 24px;
}

.tm-policy-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--tm-detail-border);
}

.tm-policy-section:first-child {
  padding-top: 0;
}

.tm-policy-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tm-policy-section h3 {
  margin: 0 0 12px;
  line-height: 1.4;
}

.tm-policy-section__content {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tm-policy-section__content :where(p, ul, ol) {
  margin: 0 0 10px;
}

.tm-policy-section__content :where(img, table) {
  max-width: 100%;
}

.tm-policy-section__content img {
  height: auto;
}

.tm-booking-rail {
  position: sticky;
  top: 78px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 22px 20px 20px;
  background: var(--surface);
}

.tm-booking-rail__head {
  position: relative;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.tm-booking-rail__head p {
  display: none;
}

.tm-booking-rail__head h2 {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
}

.tm-booking-rail__close {
  display: none;
  position: absolute;
  top: -10px;
  right: -8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}

.tm-booking-date {
  display: flex;
  min-height: 67px;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--tm-detail-border);
}

.tm-booking-date span {
  font-size: 14px;
  font-weight: 700;
}

.tm-booking-date small {
  margin-top: 5px;
  color: var(--tm-detail-muted);
  font-size: 11px;
}

.tm-passengers {
  border: 0;
  margin-top: 26px;
  padding: 0;
}

.tm-passengers legend {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.tm-passenger-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--tm-detail-border);
}

.tm-passenger-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tm-passenger-row strong {
  font-size: 13px;
  font-weight: 700;
}

.tm-passenger-row small {
  margin-top: 3px;
  color: var(--tm-detail-muted);
  font-size: 10px;
}

.tm-passenger-row__price {
  margin-top: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.tm-stepper {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 36px 38px 36px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
}

.tm-stepper button,
.tm-stepper output {
  display: grid;
  width: 100%;
  height: 36px;
  place-items: center;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.tm-stepper button:first-child {
  border-right: 1px solid var(--tm-detail-border);
}

.tm-stepper button:last-child {
  border-left: 1px solid var(--tm-detail-border);
}

.tm-stepper button:hover:not(:disabled) {
  background: var(--tm-detail-subtle);
}

.tm-stepper button:disabled {
  color: hsl(209 10% 70%);
  cursor: not-allowed;
}

.tm-quote {
  margin-top: 16px;
}

.tm-quote__item {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tm-detail-muted);
  font-size: 12px;
}

.tm-quote__item strong {
  color: var(--ink);
  font-size: 12px;
}

.tm-quote__total {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  border-block: 1px solid var(--ink);
}

.tm-quote__total span {
  font-size: 13px;
  font-weight: 700;
}

.tm-quote__total strong {
  color: var(--accent-hover);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.tm-quote__total strong.is-loading,
.tm-mobile-booking strong.is-loading {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--tm-detail-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tm-quote-spinner 700ms linear infinite;
}

@keyframes tm-quote-spinner {
  to {
    transform: rotate(360deg);
  }
}

.tm-inline-message {
  min-height: 36px;
  padding-top: 10px;
  color: var(--tm-detail-muted);
  font-size: 10px;
  line-height: 1.5;
}

.tm-inline-message.is-success {
  color: var(--success);
}

/* The matching message element is announced through role="status" and aria-live="polite". */
.tm-inline-message.is-error {
  color: var(--danger);
}

.tm-booking-rail__submit {
  width: 100%;
  margin-top: 8px;
}

.tm-booking-rail__note {
  margin-top: 10px;
  color: var(--tm-detail-muted);
  font-size: 10px;
  line-height: 1.5;
}

.tm-booking-overlay {
  display: none;
}

.tm-mobile-booking {
  display: none;
}

@media (max-width: 1100px) {
  .tm-detail-intro {
    gap: 34px;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.9fr);
  }

  .tm-detail-heading h1 {
    font-size: 28px;
  }

  .tm-detail-body {
    grid-template-columns: minmax(0, 1fr) 294px;
    gap: 28px;
  }
}

@media (max-width: 1023px) {
  .tm-detail-intro {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.9fr);
  }

  .tm-detail-heading__action {
    display: none;
  }

  .tm-detail-body {
    display: block;
  }

  .tm-booking-rail {
    position: fixed;
    z-index: 61;
    top: auto;
    right: 0;
    bottom: 0;
    width: min(390px, 100%);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border: 1px solid var(--tm-detail-border-strong);
    border-bottom: 0;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform 220ms cubic-bezier(0.22, 0.8, 0.32, 1);
  }

  .tm-travel-detail.is-booking-open .tm-booking-rail {
    transform: translateY(0);
  }

  .tm-booking-rail__close {
    display: block;
  }

  .tm-booking-overlay {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    width: 100%;
    border: 0;
    background: hsl(209 45% 10% / 0.38);
  }

  .tm-booking-overlay[hidden] {
    display: none;
  }

  .tm-mobile-booking {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--tm-detail-border-strong);
    padding: 10px max(24px, calc((100% - var(--content)) / 2 + var(--gutter)))
      calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
  }

  .tm-mobile-booking > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .tm-mobile-booking span {
    color: var(--tm-detail-muted);
    font-size: 10px;
  }

  .tm-mobile-booking strong {
    margin-top: 2px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tm-mobile-booking .tm-button {
    flex: 0 0 auto;
    min-width: 142px;
  }

  .tm-detail-body {
    padding-bottom: 142px;
  }
}

@media (max-width: 767px) {
  .tm-travel-detail {
    font-size: 14px;
  }

  .tm-detail-intro {
    display: block;
    padding-block: 20px 30px;
  }

  .tm-detail-gallery {
    display: block;
    aspect-ratio: auto;
  }

  .tm-detail-gallery__main {
    aspect-ratio: 4 / 3;
    border-radius: 3px;
  }

  .tm-detail-gallery__thumbs {
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
  }

  .tm-detail-gallery__thumb {
    width: 76px;
    flex-basis: 76px;
    border-radius: 3px;
  }

  .tm-detail-heading {
    padding-top: 26px;
  }

  .tm-detail-heading__route {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .tm-detail-heading__route::before {
    width: 22px;
  }

  .tm-detail-heading h1 {
    max-width: none;
    font-size: 24px;
    line-height: 1.38;
  }

  .tm-detail-heading__summary {
    margin-top: 14px;
    padding-top: 13px;
    font-size: 13px;
    line-height: 1.7;
  }

  .tm-detail-facts {
    margin-top: 22px;
  }

  .tm-detail-facts > div {
    min-height: 62px;
    padding: 9px 11px;
  }

  .tm-detail-facts dt {
    font-size: 10px;
  }

  .tm-detail-facts dd {
    font-size: 13px;
  }

  .tm-detail-anchor {
    overflow-x: auto;
  }

  .tm-detail-anchor .content-width {
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    margin: 0;
  }

  .tm-detail-anchor a {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .tm-detail-body {
    padding-block: 32px 130px;
  }

  .tm-detail-section {
    scroll-margin-top: 64px;
  }

  .tm-detail-section + .tm-detail-section {
    margin-top: 56px;
    padding-top: 34px;
  }

  .travel-product-detail-v1-travelmaker-description,
  .tm-detail-body__content > .tm-product-description {
    margin-block: 56px;
  }

  .tm-detail-body .tm-product-description {
    padding-block: 34px 44px;
  }

  .tm-product-description .tm-section-heading,
  .tm-itinerary .tm-section-heading {
    margin-bottom: 24px;
  }

  .tm-section-heading {
    display: block;
    margin-bottom: 16px;
  }

  .tm-section-heading h2 {
    font-size: 21px;
  }

  .tm-section-heading p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
  }

  .tm-departure-calendar__head {
    min-height: 52px;
    grid-template-columns: 52px 1fr 52px;
  }

  .tm-departure-calendar-panel__heading {
    display: block;
    margin-bottom: 8px;
  }

  .tm-departure-calendar-panel__heading p {
    margin-top: 4px;
    font-size: 11px;
    text-align: left;
  }

  .tm-departure-calendar-panel {
    margin-bottom: 38px;
  }

  .tm-departure-calendar-panel__heading h2 {
    font-size: 21px;
  }

  .tm-departure-calendar__head strong {
    font-size: 16px;
  }

  .tm-departure-calendar__head button {
    width: 52px;
    height: 52px;
  }

  .tm-departure-calendar__weekdays {
    min-height: 32px;
  }

  .tm-departure-calendar__weekdays span {
    font-size: 11px;
  }

  .tm-calendar-day {
    min-height: 72px;
    padding: 7px 5px 6px;
  }

  .tm-calendar-day b {
    font-size: 11px;
  }

  .tm-calendar-day strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .tm-calendar-day small {
    margin-top: 3px;
    font-size: 9px;
  }

  .tm-calendar-day.is-selected::after {
    top: 7px;
    right: 6px;
    width: 5px;
    height: 5px;
  }

  .tm-departure-calendar__legend {
    min-height: 38px;
    gap: 14px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .tm-itinerary-day {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .tm-itinerary-day__number {
    padding: 18px 10px;
  }

  .tm-itinerary-day__number span {
    font-size: 17px;
  }

  .tm-itinerary-day__number small {
    font-size: 10px;
  }

  .tm-itinerary-day__content {
    padding: 17px 15px 19px;
  }

  .tm-itinerary-day__content h3 {
    font-size: 15px;
  }

  .tm-policy-tabs__list {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tm-policy-tabs__list::-webkit-scrollbar {
    display: none;
  }

  .tm-policy-tabs__list button {
    flex: 0 0 96px;
  }

  .tm-policy-optionals .tm-policy-section {
    padding: 22px 0;
  }

  .tm-policy-optionals .tm-policy-section:first-child {
    padding-top: 24px;
  }

  .tm-policy-optionals .tm-policy-section:last-child {
    padding-bottom: 24px;
  }

  .tm-policy-tabs__panel {
    padding: 20px 16px;
  }

  .tm-mobile-booking {
    min-height: 68px;
    padding: 9px 20px calc(9px + env(safe-area-inset-bottom));
  }

  .tm-mobile-booking strong {
    max-width: 42vw;
    font-size: 15px;
  }

  .tm-mobile-booking .tm-button {
    min-width: 128px;
    padding-inline: 16px;
    font-size: 13px;
  }

  .tm-booking-rail {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding-inline: 20px;
  }
}

/* 기본 select는 운영체제 판단에 따라 위로 열리므로, 목록 방향을 제어하는 커스텀 셀렉트를 사용한다. */
.tm-sale-unit-custom-select {
  position: relative;
}

.tm-sale-unit-custom-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tm-sale-unit-custom-select__trigger {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 0 17px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
}

.tm-sale-unit-custom-select__trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-sale-unit-custom-select__trigger i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 160ms ease;
}

.tm-sale-unit-custom-select__trigger[aria-expanded="true"] i {
  transform: translateY(3px) rotate(225deg);
}

.tm-sale-unit-custom-select__trigger:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.tm-sale-unit-custom-select__menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 264px;
  overflow-y: auto;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 5px;
  background: var(--surface);
  box-shadow: 0 14px 28px hsl(209 40% 15% / 0.16);
}

.tm-sale-unit-custom-select__option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 1px;
  padding: 12px 13px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.tm-sale-unit-custom-select__option:hover,
.tm-sale-unit-custom-select__option:focus-visible,
.tm-sale-unit-custom-select__option[aria-selected="true"] {
  background: var(--sky-soft);
  color: var(--ink);
}

@media (min-width: 1025px) {
  .tm-bottom-booking {
    right: 28px;
    bottom: 28px;
    left: auto;
    width: min(420px, calc(100vw - 56px));
    overflow: hidden;
    border: 1px solid var(--tm-detail-border-strong);
    border-radius: 4px;
  }

  .tm-bottom-booking__summary > div {
    width: auto;
    min-height: 68px;
    padding-inline: 20px;
  }

  .tm-bottom-booking__sheet {
    border-top-color: var(--tm-detail-border-strong);
  }

  .tm-bottom-booking__inner {
    width: auto;
    min-height: 0;
    gap: 0;
    padding: 0 20px 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    min-height: 74px;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 14px 0 12px;
  }

  .tm-bottom-booking__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-left: 18px;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    border-left: 0;
    padding: 12px 0 0;
    text-align: left;
  }

  .tm-bottom-booking .tm-button {
    min-width: 0;
    min-height: 48px;
    margin: 12px 0 0 18px;
  }
}

@media (max-width: 767px) {
  .tm-sale-unit-custom-select__trigger {
    min-height: 54px;
    font-size: 14px;
  }

  .tm-sale-unit-custom-select__menu {
    max-height: 230px;
  }

  .tm-sale-unit-custom-select__option {
    padding: 11px 12px;
    font-size: 13px;
  }
}

/* 넓은 화면에서는 오른쪽에 붙는 세로형 예약 시트로 사용한다. */
@media (min-width: 1025px) {
  .tm-bottom-booking {
    right: 0;
    bottom: 0;
    width: min(396px, calc(100vw - 48px));
    border-radius: 0;
    box-shadow: -14px -8px 32px hsl(209 61% 16% / 0.12);
  }

  .tm-bottom-booking__summary > div {
    min-height: 76px;
    padding-inline: 26px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .tm-bottom-booking__summary span {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .tm-bottom-booking__summary strong {
    grid-column: 1 / 2;
    grid-row: 2;
    font-size: 16px;
  }

  .tm-bottom-booking__summary em {
    grid-column: 2 / 3;
    grid-row: 2;
    min-width: 0;
    margin-left: 12px;
    padding-right: 0;
    font-size: 17px;
  }

  .tm-bottom-booking__summary b {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
  }

  .tm-bottom-booking__inner {
    display: grid;
    width: auto;
    min-height: 0;
    gap: 0;
    padding: 0 26px 28px;
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 0;
  }

  .tm-bottom-booking__price strong {
    margin: 0;
    font-size: 18px;
  }

  .tm-bottom-booking__quantity {
    padding-left: 0;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-height: 92px;
    align-items: end;
    justify-content: space-between;
    border-left: 0;
    padding: 20px 0 14px;
    text-align: left;
  }

  .tm-bottom-booking__total strong {
    margin: 0;
    font-size: 28px;
  }

  .tm-bottom-booking .tm-button {
    width: 100%;
    min-height: 54px;
    margin: 0;
    font-size: 16px;
  }
}

/* 데스크톱 예약 시트: 1280px 콘텐츠의 오른쪽 경계에 맞춘 세로 패널. */
@media (min-width: 1025px) {
  .tm-bottom-booking {
    position: fixed;
    right: max(0px, calc((100vw - 1280px) / 2));
    bottom: 24px;
    left: unset;
    width: 368px;
    overflow: hidden;
    border: 1px solid var(--tm-detail-border-strong);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 12px 34px hsl(209 50% 16% / 0.14);
  }

  .tm-bottom-booking__summary > div {
    display: grid;
    min-height: 86px;
    gap: 5px 14px;
    padding: 16px 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .tm-bottom-booking__summary span {
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 12px;
  }

  .tm-bottom-booking__summary strong {
    grid-column: 1 / 2;
    grid-row: 2;
    font-size: 16px;
    line-height: 1.35;
  }

  .tm-bottom-booking__summary em {
    grid-column: 2 / 3;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 17px;
  }

  .tm-bottom-booking__summary b {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .tm-bottom-booking__inner {
    display: block;
    width: auto;
    padding: 0 20px 20px;
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 0;
  }

  .tm-bottom-booking__price span,
  .tm-bottom-booking__quantity > span,
  .tm-bottom-booking__total span {
    color: var(--tm-detail-muted);
    font-size: 13px;
  }

  .tm-bottom-booking__price strong {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
  }

  .tm-bottom-booking__quantity {
    padding-left: 0;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-height: 92px;
    align-items: end;
    justify-content: space-between;
    border-left: 0;
    padding: 20px 0 14px;
    text-align: left;
  }

  .tm-bottom-booking__total strong {
    margin: 0;
    color: var(--accent);
    font-size: 27px;
    line-height: 1;
  }

  .tm-bottom-booking .tm-button {
    width: 100%;
    min-height: 52px;
    margin: 0;
    font-size: 15px;
  }
}

/* 하단 예약 바 / 바텀시트 */
.tm-detail-anchor .content-width {
  grid-template-columns: repeat(3, 1fr);
}

.tm-bottom-booking {
  position: fixed;
  z-index: 52;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--tm-detail-border-strong);
  background: hsl(0 0% 100% / 0.98);
  box-shadow: 0 -10px 28px hsl(209 61% 16% / 0.08);
}

.tm-bottom-booking__summary {
  list-style: none;
  cursor: pointer;
}

.tm-bottom-booking__summary::-webkit-details-marker {
  display: none;
}

.tm-bottom-booking__summary > div {
  display: grid;
  min-height: 74px;
  align-items: center;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.tm-bottom-booking__summary span {
  color: var(--tm-detail-muted);
  font-size: 12px;
  font-weight: 700;
}

.tm-bottom-booking__summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-bottom-booking__summary em {
  min-width: 128px;
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.tm-bottom-booking__summary b {
  color: var(--ink);
  font-size: 18px;
  transition: transform 180ms ease;
}

.tm-bottom-booking[open] .tm-bottom-booking__summary b {
  transform: rotate(180deg);
}

.tm-bottom-booking__sheet {
  border-top: 1px solid var(--tm-detail-border);
  background: var(--surface);
}

.tm-bottom-booking__inner {
  display: grid;
  min-height: 108px;
  align-items: end;
  gap: 18px;
  padding-block: 18px 22px;
  grid-template-columns:
    minmax(260px, 1.5fr) minmax(130px, 0.7fr) auto minmax(170px, 0.85fr)
    minmax(168px, auto);
}

.tm-bottom-booking__field label,
.tm-bottom-booking__field > p,
.tm-bottom-booking__price span,
.tm-bottom-booking__quantity > span,
.tm-bottom-booking__total span {
  display: block;
  color: var(--tm-detail-muted);
  font-size: 11px;
}

.tm-bottom-booking__field label {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.tm-bottom-booking__field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--tm-detail-border-strong);
  padding: 0 44px 0 14px;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
}

.tm-bottom-booking__field > p {
  min-height: 18px;
  margin: 7px 0 0;
}

.tm-bottom-booking__price strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
}

.tm-bottom-booking__quantity {
  display: grid;
  gap: 10px;
}

.tm-bottom-booking__total {
  border-left: 1px solid var(--tm-detail-border);
  padding-left: 18px;
  text-align: right;
}

.tm-bottom-booking__total strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.tm-bottom-booking .tm-button {
  width: 100%;
  min-width: 168px;
}

.tm-detail-body {
  padding-bottom: 184px;
}

@media (max-width: 767px) {
  .tm-detail-anchor .content-width {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .tm-bottom-booking__summary > div {
    min-height: 64px;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .tm-bottom-booking__summary span {
    display: none;
  }

  .tm-bottom-booking__summary strong {
    font-size: 13px;
  }

  .tm-bottom-booking__summary em {
    min-width: 0;
    font-size: 17px;
  }

  .tm-bottom-booking__summary b {
    display: none;
  }

  .tm-bottom-booking__inner {
    min-height: 0;
    gap: 15px;
    padding-block: 16px calc(16px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tm-bottom-booking__field {
    grid-column: 1 / -1;
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    align-self: start;
  }

  .tm-bottom-booking__total {
    grid-column: 1 / 2;
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .tm-bottom-booking .tm-button {
    grid-column: 2 / 3;
    align-self: end;
    min-width: 142px;
  }

  .tm-detail-body {
    padding-bottom: 136px;
  }
}

@media (max-width: 420px) {
  .tm-calendar-day {
    min-height: 68px;
    padding-inline: 4px;
  }

  .tm-calendar-day strong {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-detail-gallery__thumb img,
  .tm-booking-rail {
    transition: none;
  }

  .tm-quote__total strong.is-loading,
  .tm-mobile-booking strong.is-loading {
    animation: none;
  }
}

/* 일반상품형 판매 구성 */
.tm-detail-body {
  display: block;
  max-width: 1280px;
}

.tm-sale-unit__panel {
  display: grid;
  align-items: start;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.tm-sale-unit__field {
  min-width: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--tm-detail-border-strong);
  padding: 30px 0 28px;
}

.tm-sale-unit__field > label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.tm-sale-unit__select-wrap {
  position: relative;
}

.tm-sale-unit__select-wrap::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.tm-sale-unit__field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 0 48px 0 15px;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.tm-sale-unit__field select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.tm-sale-unit__field select:disabled {
  background: var(--tm-detail-subtle);
  color: var(--tm-detail-muted);
  cursor: not-allowed;
}

.tm-sale-unit__field > p {
  margin: 10px 0 0;
  color: var(--tm-detail-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tm-sale-unit__quote {
  position: sticky;
  top: 104px;
  border: 1px solid var(--tm-detail-border-strong);
  padding: 24px;
  background: var(--surface);
}

.tm-sale-unit__quote h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
}

.tm-sale-unit__summary {
  display: grid;
  margin: 0;
}

.tm-sale-unit__summary > div {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--tm-detail-border);
  padding: 10px 0;
}

.tm-sale-unit__summary > div:last-child {
  border-bottom: 0;
}

.tm-sale-unit__summary dt {
  color: var(--tm-detail-muted);
  font-size: 12px;
}

.tm-sale-unit__summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.tm-stepper--single {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  border: 1px solid var(--tm-detail-border-strong);
}

.tm-stepper--single button,
.tm-stepper--single output {
  display: grid;
  min-width: 0;
  height: 44px;
  place-items: center;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.tm-stepper--single button {
  font-size: 18px;
}

.tm-stepper--single button:first-child {
  border-right: 1px solid var(--tm-detail-border);
}

.tm-stepper--single button:last-child {
  border-left: 1px solid var(--tm-detail-border);
}

.tm-stepper--single button:hover:not(:disabled) {
  background: var(--tm-detail-subtle);
}

.tm-stepper--single button:disabled {
  color: hsl(207 12% 72%);
  cursor: not-allowed;
}

.tm-sale-unit__total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--tm-detail-border-strong);
  margin-top: 14px;
  padding: 22px 0;
}

.tm-sale-unit__total span {
  font-size: 14px;
  font-weight: 750;
}

.tm-sale-unit__total strong {
  color: var(--accent);
  font-size: 27px;
  font-weight: 800;
  white-space: nowrap;
}

.tm-sale-unit__total strong.is-loading {
  width: 22px;
  height: 22px;
  border: 2px solid #a7e8ed;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tm-quote-spinner 700ms linear infinite;
}

.tm-sale-unit__action {
  margin-top: 2px;
}

.tm-sale-unit__action .tm-button {
  width: 100%;
}

.tm-bottom-booking {
  position: fixed;
  z-index: 52;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--tm-detail-border-strong);
  background: hsl(0 0% 100% / 0.98);
  box-shadow: 0 -10px 28px hsl(209 61% 16% / 0.08);
}

.tm-bottom-booking__inner {
  display: grid;
  min-height: 88px;
  align-items: center;
  gap: 20px;
  grid-template-columns:
    minmax(180px, 1.3fr) minmax(120px, 0.75fr) auto minmax(160px, 0.9fr)
    minmax(168px, auto);
}

.tm-bottom-booking :where(span, strong) {
  display: block;
}

.tm-bottom-booking span {
  color: var(--tm-detail-muted);
  font-size: 11px;
}

.tm-bottom-booking__offer strong,
.tm-bottom-booking__price strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-bottom-booking__quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-bottom-booking__total {
  min-width: 0;
  border-left: 1px solid var(--tm-detail-border);
  padding-left: 20px;
  text-align: right;
}

.tm-bottom-booking__total strong {
  margin-top: 3px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.tm-bottom-booking .tm-button {
  width: 100%;
  min-width: 168px;
}

.tm-detail-body {
  padding-bottom: 214px;
}

@media (max-width: 767px) {
  .tm-bottom-booking__inner {
    min-height: 0;
    gap: 10px 16px;
    padding-block: 12px calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tm-bottom-booking__offer,
  .tm-bottom-booking__price {
    grid-column: 1 / -1;
  }

  .tm-bottom-booking__quantity {
    min-width: 0;
  }

  .tm-bottom-booking__total {
    border-left: 0;
    padding-left: 0;
  }

  .tm-bottom-booking__total strong {
    font-size: 20px;
  }

  .tm-bottom-booking .tm-button {
    min-width: 142px;
  }

  .tm-detail-body {
    padding-bottom: 250px;
  }
}

@media (max-width: 767px) {
  .tm-detail-body {
    max-width: none;
  }

  .tm-sale-unit__panel {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .tm-sale-unit__field {
    padding: 22px 0;
  }

  .tm-sale-unit__summary {
    border-top: 0;
  }

  .tm-sale-unit__summary > div {
    min-height: 58px;
  }

  .tm-sale-unit__quote {
    position: static;
    padding: 20px;
  }

  .tm-stepper--single {
    grid-template-columns: repeat(3, 42px);
  }

  .tm-sale-unit__total {
    padding-block: 20px;
  }

  .tm-sale-unit__total strong {
    font-size: 23px;
  }

  .tm-sale-unit__action {
    margin-top: 0;
    padding-bottom: 0;
  }

  .tm-sale-unit__action .tm-button {
    width: 100%;
  }
}

/* 판매 구성은 상단에서 고르고, 예약 금액과 인원은 하단 시트에서 확인한다. */
.tm-bottom-booking__inner {
  grid-template-columns: minmax(130px, 0.8fr) auto minmax(160px, 0.9fr) minmax(168px, auto);
}

.tm-travel-detail:not(.is-sale-unit-selected) .tm-bottom-booking__summary {
  cursor: default;
}

.tm-travel-detail:not(.is-sale-unit-selected) .tm-bottom-booking__summary em {
  display: none;
}

.tm-travel-detail:not(.is-sale-unit-selected) .tm-bottom-booking__summary b {
  visibility: hidden;
}

.tm-bottom-booking__sheet {
  overflow: hidden;
}

.tm-detail-body {
  padding-bottom: 214px;
}

@media (max-width: 767px) {
  .tm-sale-unit-picker {
    margin-top: 20px;
  }

  .tm-sale-unit-picker__heading {
    display: block;
  }

  .tm-sale-unit-picker__heading p {
    margin-top: 5px;
  }

  .tm-bottom-booking__inner {
    gap: 14px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    align-self: start;
  }

  .tm-bottom-booking__total {
    grid-column: 1 / 2;
  }

  .tm-detail-body {
    padding-bottom: 146px;
  }
}

@media (max-width: 767px) {
  .tm-bottom-booking__sheet {
    background: hsl(0 0% 100% / 0.99);
  }

  .tm-bottom-booking__inner {
    display: grid;
    align-items: stretch;
    gap: 0;
    padding: 0 24px calc(14px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    min-width: 0;
    min-height: 78px;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 14px 0 12px;
  }

  .tm-bottom-booking__price strong {
    margin-top: 6px;
    font-size: 17px;
  }

  .tm-bottom-booking__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 16px;
  }

  .tm-bottom-booking__quantity > span {
    flex: 0 0 auto;
  }

  .tm-bottom-booking__quantity .tm-stepper {
    flex: 0 0 auto;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0 0;
    text-align: left;
  }

  .tm-bottom-booking__total strong {
    margin-top: 4px;
    font-size: 21px;
  }

  .tm-bottom-booking .tm-button {
    min-width: 0;
    min-height: 48px;
    margin: 12px 0 0 14px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

/* 접힌 바에서는 총액을 요약하고, 펼친 시트에서는 아래 총액만 보여 준다. */
.tm-bottom-booking[open] .tm-bottom-booking__summary em {
  display: none;
}

/* 태블릿부터는 예약 정보를 읽기 쉬운 2 × 2 구조로 정렬한다. */
@media (max-width: 1024px) {
  .tm-bottom-booking__inner {
    display: grid;
    align-items: stretch;
    gap: 0;
    padding: 0 28px 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    min-width: 0;
    min-height: 78px;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 14px 0 12px;
  }

  .tm-bottom-booking__price strong {
    margin-top: 6px;
    font-size: 17px;
  }

  .tm-bottom-booking__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 22px;
  }

  .tm-bottom-booking__quantity > span,
  .tm-bottom-booking__quantity .tm-stepper {
    flex: 0 0 auto;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-width: 0;
    min-height: 68px;
    flex-direction: column;
    justify-content: center;
    border-left: 0;
    padding: 12px 0 0;
    text-align: left;
  }

  .tm-bottom-booking__total strong {
    margin-top: 4px;
    font-size: 22px;
  }

  .tm-bottom-booking .tm-button {
    min-width: 0;
    min-height: 48px;
    margin: 12px 0 0 20px;
    padding-inline: 14px;
  }
}

@media (max-width: 767px) {
  .tm-travel-detail.is-sale-unit-selected .tm-bottom-booking__summary b {
    display: block;
    justify-self: end;
    font-size: 18px;
  }
}

/* PMS 전역 스타일과 무관하게 여행상품 상세의 정보 밀도를 명시한다. */
.tm-travel-detail {
  font-size: 16px;
}

.tm-detail-intro {
  gap: 56px;
  padding-block: 48px 60px;
}

.tm-detail-heading__route {
  margin-bottom: 18px;
  font-size: 14px;
}

.tm-detail-heading h1 {
  font-size: 36px;
  line-height: 1.24;
}

.tm-detail-facts > div {
  min-height: 72px;
  gap: 6px;
  padding: 12px 16px;
}

.tm-detail-facts dt {
  font-size: 12px;
}

.tm-detail-facts dd {
  font-size: 16px;
}

.tm-sale-unit-picker {
  margin-top: 26px;
  padding-top: 20px;
}

.tm-sale-unit-picker__heading h2 {
  font-size: 17px;
}

.tm-sale-unit-picker__heading p,
.tm-sale-unit-picker > p {
  font-size: 13px;
}

.tm-sale-unit-picker select {
  min-height: 56px;
  font-size: 15px;
}

.tm-detail-anchor a {
  min-height: 68px;
  font-size: 15px;
}

.tm-detail-body {
  padding-top: 54px;
}

.tm-section-heading h2 {
  font-size: 30px;
}

.tm-section-heading p {
  font-size: 14px;
}

@media (max-width: 767px) {
  .tm-travel-detail {
    font-size: 15px;
  }

  .tm-detail-intro {
    padding-block: 26px 38px;
  }

  .tm-detail-heading h1 {
    font-size: 28px;
    line-height: 1.32;
  }

  .tm-detail-heading__summary {
    font-size: 14px;
  }

  .tm-detail-facts > div {
    min-height: 66px;
    padding: 10px 12px;
  }

  .tm-detail-facts dt {
    font-size: 11px;
  }

  .tm-detail-facts dd {
    font-size: 14px;
  }

  .tm-sale-unit-picker__heading h2 {
    font-size: 16px;
  }

  .tm-sale-unit-picker select {
    min-height: 54px;
    font-size: 14px;
  }

  .tm-detail-anchor a {
    min-height: 54px;
    font-size: 13px;
  }

  .tm-detail-body {
    padding-top: 38px;
  }

  .tm-section-heading h2 {
    font-size: 24px;
  }

  .tm-section-heading p {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .tm-bottom-booking__inner {
    padding: 0 24px calc(14px + env(safe-area-inset-bottom));
  }

  .tm-bottom-booking__quantity {
    gap: 8px;
    padding-left: 16px;
  }

  .tm-bottom-booking .tm-button {
    margin-left: 14px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .tm-bottom-booking__price {
    grid-column: 1;
    grid-row: 1;
  }

  .tm-bottom-booking__quantity {
    grid-column: 2;
    grid-row: 1;
  }

  .tm-bottom-booking__total {
    grid-column: 1;
    grid-row: 2;
  }

  .tm-bottom-booking .tm-button {
    grid-column: 2;
    grid-row: 2;
  }
}

/* 데스크톱: 화면 왼쪽이 아니라 1280px 콘텐츠의 오른쪽 끝에 고정한다.
   기존 전체 폭 하단 바 규칙보다 뒤에 두어 left: 0을 확실히 해제한다. */
@media (min-width: 1025px) {
  .tm-bottom-booking {
    right: max(0px, calc((100vw - 1280px) / 2)) !important;
    bottom: 24px;
    left: auto !important;
    width: 376px;
    overflow: hidden;
    border: 1px solid var(--tm-detail-border-strong);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 14px 36px hsl(209 50% 16% / 0.16);
  }

  .tm-bottom-booking__summary > div {
    display: grid;
    min-height: 78px;
    gap: 4px 12px;
    padding: 15px 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .tm-bottom-booking__summary span {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
  }

  .tm-bottom-booking__summary strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
  }

  .tm-bottom-booking__summary em {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    color: var(--accent);
    font-size: 16px;
  }

  .tm-bottom-booking__summary b {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .tm-bottom-booking__inner {
    display: block;
    min-height: 0;
    width: auto;
    padding: 0 20px 20px;
  }

  .tm-bottom-booking__price,
  .tm-bottom-booking__quantity {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tm-detail-border);
    padding: 0;
  }

  .tm-bottom-booking__price span,
  .tm-bottom-booking__quantity > span,
  .tm-bottom-booking__total span {
    color: var(--tm-detail-muted);
    font-size: 13px;
  }

  .tm-bottom-booking__price strong {
    margin: 0;
    font-size: 18px;
  }

  .tm-bottom-booking__quantity {
    gap: 10px;
  }

  .tm-bottom-booking__total {
    display: flex;
    min-height: 88px;
    align-items: end;
    justify-content: space-between;
    border-left: 0;
    padding: 18px 0 14px;
    text-align: left;
  }

  .tm-bottom-booking__total strong {
    margin: 0;
    font-size: 27px;
    line-height: 1;
  }

  .tm-bottom-booking .tm-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    font-size: 15px;
  }
}

/* 예약 정보는 접힌 상태에서 여유 있게 드러나고, 열릴 때만 내용이 부드럽게 이어진다. */
.tm-bottom-booking {
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.tm-bottom-booking__summary b {
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tm-bottom-booking__sheet {
  display: grid;
  overflow: hidden;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 180ms ease;
}

.tm-bottom-booking__sheet > .tm-bottom-booking__inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 170ms ease,
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tm-bottom-booking[open] {
  box-shadow: 0 16px 42px hsl(209 50% 16% / 0.18);
}

.tm-bottom-booking[open] .tm-bottom-booking__sheet {
  grid-template-rows: 1fr;
}

.tm-bottom-booking[open] .tm-bottom-booking__sheet > .tm-bottom-booking__inner {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tm-bottom-booking,
  .tm-bottom-booking__summary b,
  .tm-bottom-booking__sheet,
  .tm-bottom-booking__sheet > .tm-bottom-booking__inner {
    transition-duration: 1ms;
  }
}

/* 판매 구성에 종속된 예약 옵션: 선택 가능한 구성에서만 스크립트가 노출한다. */
.tm-booking-options {
  margin-top: 18px;
  border-top: 1px solid var(--tm-detail-border);
  padding-top: 18px;
}

.tm-booking-options__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tm-booking-options__heading h3,
.tm-booking-option__copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.tm-booking-options__heading p,
.tm-booking-option__copy :is(span, small) {
  margin: 0;
  color: var(--tm-detail-muted);
  font-size: 12px;
  line-height: 1.45;
}

.tm-booking-options__list {
  border-top: 1px solid var(--tm-detail-border);
}

.tm-booking-option {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--tm-detail-border);
  padding: 14px 0;
}

.tm-booking-option__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tm-booking-option__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-booking-option__copy span { color: var(--accent); }
.tm-booking-option__copy small { color: var(--tm-detail-muted); }

.tm-stepper--booking-option {
  grid-template-columns: repeat(3, 40px);
  border: 1px solid var(--tm-detail-border-strong);
}

.tm-stepper--booking-option :is(button, output) {
  min-height: 38px;
}

@media (max-width: 767px) {
  .tm-booking-options { margin-top: 16px; padding-top: 16px; }
  .tm-booking-options__heading { display: block; }
  .tm-booking-options__heading p { margin-top: 4px; }
  .tm-booking-option { gap: 12px; }
}

/* 판매 구성과 추가 옵션을 하나의 예약 구성으로 묶는다. */
.tm-sale-unit-package {
  margin-top: 12px;
  border: 1px solid var(--tm-detail-border-strong);
  background: var(--surface);
}

.tm-sale-unit-selection {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  background: var(--sky-soft);
}

.tm-sale-unit-selection > span,
.tm-booking-options__total > span {
  color: var(--tm-detail-muted);
  font-size: 12px;
}

.tm-sale-unit-selection > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}

.tm-sale-unit-selection strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-sale-unit-selection em {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.tm-sale-unit-package .tm-booking-options {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--tm-detail-border);
  padding: 0;
}

.tm-sale-unit-package .tm-booking-options__heading {
  margin: 0;
  padding: 14px 16px 10px;
}

.tm-sale-unit-package .tm-booking-options__list { border-top: 0; }

.tm-sale-unit-package .tm-booking-option {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 14px 16px;
}

.tm-sale-unit-package .tm-booking-option.is-selected { background: hsl(190 68% 96%); }

.tm-booking-option__amount {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.tm-sale-unit-package .tm-booking-option__copy { grid-row: 1 / span 2; }
.tm-sale-unit-package .tm-stepper--booking-option { grid-column: 2; grid-row: 1; }

.tm-booking-options__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--tm-detail-border);
  padding: 13px 16px;
}

.tm-booking-options__total b { color: var(--accent); }
.tm-booking-options__total strong { color: var(--ink); font-size: 13px; }
.tm-booking-options__total output { color: var(--accent); font: inherit; font-weight: 800; }

@media (max-width: 767px) {
  .tm-sale-unit-selection { align-items: flex-start; padding: 13px 14px; }
  .tm-sale-unit-selection > div { display: grid; justify-items: end; gap: 3px; }
  .tm-sale-unit-package .tm-booking-options__heading { padding: 13px 14px 8px; }
  .tm-sale-unit-package .tm-booking-option { padding: 13px 14px; }
  .tm-booking-options__total { padding: 12px 14px; }
}

/* 판매 구성 → 추가 옵션 → 수량/금액 순서로만 남기는 간결한 선택 흐름. */
.tm-sale-unit-package {
  margin-top: 16px;
  border: 0;
  background: transparent;
}

.tm-sale-unit-package .tm-booking-options {
  border-top: 1px solid var(--tm-detail-border-strong);
}

.tm-sale-unit-package .tm-booking-options__heading {
  padding: 14px 0 9px;
}

.tm-booking-option-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 0 38px 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.tm-sale-unit-package .tm-booking-options__list {
  margin-top: 10px;
  border-top: 1px solid var(--tm-detail-border);
}

.tm-sale-unit-package .tm-booking-options__list:empty { display: none; }

.tm-sale-unit-package .tm-booking-option {
  gap: 4px 14px;
  padding: 14px 0;
  background: transparent;
}

.tm-sale-unit-package .tm-booking-option.is-selected { background: transparent; }
.tm-sale-unit-package .tm-booking-options__total { padding: 13px 0 0; }

@media (max-width: 767px) {
  .tm-sale-unit-package .tm-booking-options__heading { padding: 13px 0 8px; }
  .tm-sale-unit-package .tm-booking-option { padding: 13px 0; }
  .tm-booking-option-select { min-height: 48px; }
}

/* 상세에서도 선택한 구성의 가격과 여행 인원을 한 번에 조절한다. */
.tm-sale-unit-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
}

.tm-sale-unit-purchase :is(.tm-sale-unit-purchase__price, .tm-sale-unit-purchase__quantity) {
  min-width: 0;
}

.tm-sale-unit-purchase__price {
  display: grid;
  gap: 4px;
}

.tm-sale-unit-purchase__price > span,
.tm-sale-unit-purchase__quantity > span {
  color: var(--tm-detail-muted);
  font-size: 13px;
}

.tm-sale-unit-purchase__price strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.tm-sale-unit-purchase__quantity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 420px) {
  .tm-sale-unit-purchase { gap: 10px; }
  .tm-sale-unit-purchase__quantity { gap: 8px; }
  .tm-sale-unit-purchase__price strong { font-size: 16px; }
}

/* 판매 구성과 같은 방식으로 추가 옵션도 아래 방향의 커스텀 목록을 사용한다. */
.tm-booking-option-custom-select { position: relative; }

.tm-booking-option-custom-select > select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tm-booking-option-custom-select__trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.tm-booking-option-custom-select__trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-booking-option-custom-select__trigger i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 160ms ease;
}

.tm-booking-option-custom-select__trigger[aria-expanded="true"] i { transform: translateY(2px) rotate(225deg); }
.tm-booking-option-custom-select__trigger:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.tm-booking-option-custom-select__menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--tm-detail-border-strong);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 10px 24px hsl(209 50% 16% / .14);
}

.tm-booking-option-custom-select__option {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--tm-detail-border);
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.tm-booking-option-custom-select__option:last-child { border-bottom: 0; }
.tm-booking-option-custom-select__option:hover,
.tm-booking-option-custom-select__option:focus-visible { background: var(--sky-soft); }
.tm-booking-option-custom-select__option:disabled { color: var(--tm-detail-muted); cursor: not-allowed; }

.tm-sale-unit-package .tm-booking-option {
  align-items: center;
  gap: 14px;
}

.tm-sale-unit-package .tm-booking-option__copy { grid-row: auto; }
.tm-sale-unit-package .tm-stepper--booking-option { grid-column: 2; grid-row: auto; }

@media (max-width: 767px) {
  .tm-booking-option-custom-select__trigger { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-booking-option-custom-select__trigger i { transition-duration: 1ms; }
}
.tm-departure-calendar-panel .tm-calendar-day strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:600px){.tm-departure-calendar-panel .tm-calendar-day{padding:8px 2px;min-width:0}.tm-departure-calendar-panel .tm-calendar-day strong{font-size:10px}}
.tm-calendar-price-compact{display:none}
@media(max-width:600px){.tm-calendar-price-full{display:none}.tm-calendar-price-compact{display:block;white-space:nowrap}.tm-departure-calendar-panel .tm-calendar-day strong{letter-spacing:0;font-size:10px}}
