.tp-booking-consent-shell {
  width: 100%;
  margin: 18px 0 8px;
  color: var(--tp-ink);
  font-family: inherit;
}

.tp-booking-consent {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tp-booking-consent[open] {
  border-color: rgba(15, 23, 42, 0.18);
}

.tp-booking-consent.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.tp-booking-consent summary {
  list-style: none;
}

.tp-booking-consent summary::-webkit-details-marker {
  display: none;
}

.tp-booking-consent__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 10px 20px;
  cursor: pointer;
}

.tp-booking-consent__summary-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tp-booking-consent__title {
  min-width: 0;
  color: #16243f;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.tp-booking-consent__title [data-tp-consent-open] {
  display: none;
}

.tp-booking-consent[open] .tp-booking-consent__title [data-tp-consent-closed] {
  display: none;
}

.tp-booking-consent[open] .tp-booking-consent__title [data-tp-consent-open] {
  display: inline;
}

.tp-booking-consent__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--tp-primary) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tp-booking-consent__link:hover,
.tp-booking-consent__link:focus-visible {
  background: transparent !important;
  color: var(--tp-primary) !important;
  text-decoration-color: currentColor !important;
}

.tp-booking-consent__native {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.tp-booking-consent__checkbox {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #111;
  border-radius: 4px;
  background: #fff;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tp-booking-consent__native:focus-visible + .tp-booking-consent__checkbox,
.tp-booking-consent__native:focus-visible + label .tp-booking-consent__checkbox {
  box-shadow: 0 0 0 4px rgba(52, 166, 187, 0.18);
}

.tp-booking-consent__native:checked + .tp-booking-consent__checkbox,
.tp-booking-consent__native:checked + label .tp-booking-consent__checkbox {
  border-color: var(--tp-primary);
  background: var(--tp-primary);
}

.tp-booking-consent__native:checked + .tp-booking-consent__checkbox::after,
.tp-booking-consent__native:checked + label .tp-booking-consent__checkbox::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.tp-booking-consent__chevron {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-right: 3px solid var(--tp-ink);
  border-bottom: 3px solid var(--tp-ink);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.tp-booking-consent[open] .tp-booking-consent__chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.tp-booking-consent__panel {
  display: grid;
  gap: 8px;
  padding: 2px 30px 18px;
}

.tp-booking-consent__choice {
  position: relative;
  display: block;
}

.tp-booking-consent__choice-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--tp-ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.tp-booking-consent__choice-label.red,
.tp-booking-consent.is-invalid .accept-terms-container .tp-booking-consent__choice-label {
  color: #b91c1c;
}

.tp-booking-consent__notice {
  margin: 10px 0 0;
  color: rgba(39, 45, 55, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.tp-cgv-modal-open {
  overflow: hidden;
}

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

.tp-cgv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--tp-ink);
  font-family: var(--tp-body-font, "Poppins", sans-serif);
}

.tp-cgv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 35, 0.76);
  backdrop-filter: blur(4px);
}

.tp-cgv-modal__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  height: min(780px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(7, 25, 35, 0.34);
}

.tp-cgv-modal__header {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--tp-line);
  background: #fff;
}

.tp-cgv-modal__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eaf3f5;
  color: var(--tp-primary);
  font-size: 1.15rem;
}

.tp-cgv-modal__heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tp-cgv-modal__eyebrow {
  color: var(--tp-primary);
  font-size: 0.66rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tp-cgv-modal__dialog h2 {
  margin: 0;
  color: var(--tp-ink);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  font-weight: 750;
}

.tp-cgv-modal__heading p {
  margin: 1px 0 0;
  color: var(--tp-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.tp-cgv-modal__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-content: center;
  border: 1px solid var(--tp-line) !important;
  border-radius: 11px;
  background: #fff !important;
  color: var(--tp-ink) !important;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(15, 27, 45, 0.07);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tp-cgv-modal__close:hover {
  border-color: rgba(27, 186, 202, 0.45) !important;
  background: var(--tp-surface-2) !important;
  color: var(--tp-primary-dark) !important;
}

.tp-cgv-modal__close:focus,
.tp-cgv-modal__close:focus-visible {
  border-color: var(--tp-primary) !important;
  background: #fff !important;
  color: var(--tp-ink) !important;
  outline: 3px solid rgba(27, 186, 202, 0.38) !important;
  outline-offset: 2px !important;
}

.tp-cgv-modal__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: #fff;
}

.tp-cgv-modal__toc {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 16px 24px 24px;
  border-right: 1px solid var(--tp-line);
  background: #f6f8f9;
  scrollbar-color: #c5d1d6 transparent;
  scrollbar-width: thin;
}

.tp-cgv-modal__toc > strong {
  display: block;
  margin: 0 8px 12px;
  color: var(--tp-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tp-cgv-modal__toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-cgv-modal__toc button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--tp-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 550;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.tp-cgv-modal__toc button:hover {
  background: #fff;
  color: var(--tp-ink);
}

.tp-cgv-modal__toc button.is-active {
  border-color: rgba(27, 186, 202, 0.28);
  background: #fff;
  color: var(--tp-ink);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 27, 45, 0.05);
}

.tp-cgv-modal__document {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tp-cgv-modal__section-select {
  display: none;
}

.tp-cgv-modal__content {
  min-height: 0;
  overflow-y: auto;
  padding: 28px clamp(30px, 5vw, 64px) 48px;
  color: #34435c;
  font-size: 0.91rem;
  line-height: 1.7;
  scrollbar-color: #b6c6cc transparent;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-padding-top: 14px;
}

.tp-cgv-modal__content h3 {
  max-width: 720px;
  margin: 2em auto 0.65em;
  padding-top: 2px;
  color: var(--tp-ink);
  font-size: 1.03rem;
  line-height: 1.3;
  font-weight: 750;
}

.tp-cgv-modal__content h3:first-child {
  margin-top: 0;
}

.tp-cgv-modal__content p,
.tp-cgv-modal__content ul,
.tp-cgv-modal__content ol {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.tp-cgv-modal__content p {
  margin: 0 0 0.85em;
}

.tp-cgv-modal__content ul {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 1.3em;
}

.tp-cgv-modal__content li {
  margin: 0.35em 0;
  padding-left: 0.2em;
}

.tp-cgv-modal__content li::marker {
  color: var(--tp-primary);
}

.tp-cgv-modal__content em {
  font-style: italic;
  text-decoration: none;
}

.tp-cgv-modal__content strong {
  color: var(--tp-ink);
  font-weight: 700;
}

.tp-cgv-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-top: 1px solid var(--tp-line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(15, 27, 45, 0.05);
  backdrop-filter: blur(10px);
}

.tp-cgv-modal__actions p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--tp-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.tp-cgv-modal__actions p i {
  color: var(--tp-primary);
}

.tp-cgv-modal__action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tp-cgv-modal__accept,
.tp-cgv-modal__dismiss {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.tp-cgv-modal__dismiss {
  min-width: 96px;
  border: 1px solid var(--tp-line);
  background: #fff;
  color: var(--tp-ink);
}

.tp-cgv-modal__accept {
  min-width: 206px;
  border: 1px solid var(--tp-primary);
  background: var(--tp-primary);
  color: var(--tp-midnight);
  box-shadow: 0 8px 18px rgba(27, 186, 202, 0.22);
}

.tp-cgv-modal__accept:hover {
  border-color: #358fa3;
  background: #358fa3;
}

.tp-cgv-modal button:focus-visible,
.tp-cgv-modal select:focus-visible,
.tp-cgv-modal__content:focus-visible,
.tp-cgv-modal__dialog:focus-visible {
  outline: 3px solid rgba(27, 186, 202, 0.38);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .tp-booking-consent-shell {
    margin-top: 14px;
  }

  .tp-booking-consent {
    border-radius: 16px;
  }

  .tp-booking-consent__summary {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .tp-booking-consent__title {
    font-size: 0.88rem;
  }

  .tp-booking-consent__panel {
    padding: 0 14px 14px 24px;
  }

  .tp-booking-consent__choice-label {
    font-size: 0.84rem;
  }

  .tp-booking-consent__notice {
    font-size: 11px;
  }

  .tp-cgv-modal {
    align-items: stretch;
    padding: 0;
  }

  .tp-cgv-modal__dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .tp-cgv-modal__header {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 14px;
  }

  .tp-cgv-modal__icon,
  .tp-cgv-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .tp-cgv-modal__dialog h2 {
    font-size: 1.05rem;
  }

  .tp-cgv-modal__eyebrow {
    font-size: 0.56rem;
  }

  .tp-cgv-modal__heading p {
    display: none;
  }

  .tp-cgv-modal__body {
    display: block;
    overflow: hidden;
  }

  .tp-cgv-modal__toc {
    display: none;
  }

  .tp-cgv-modal__document {
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tp-cgv-modal__section-select {
    display: grid;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--tp-line);
    background: #f6f8f9;
    color: var(--tp-ink);
    font-size: 0.66rem;
    font-weight: 650;
  }

  .tp-cgv-modal__select-shell {
    position: relative;
    display: block;
  }

  .tp-cgv-modal__select-shell select {
    width: 100%;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--tp-line);
    border-radius: 9px;
    background: #fff;
    color: var(--tp-ink);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    appearance: none;
  }

  .tp-cgv-modal__select-shell i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--tp-primary);
    font-size: 0.66rem;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .tp-cgv-modal__content {
    padding: 22px 18px 40px;
    font-size: 0.84rem;
    line-height: 1.68;
  }

  .tp-cgv-modal__content h3 {
    margin-top: 1.75em;
    font-size: 0.94rem;
  }

  .tp-cgv-modal__actions {
    display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .tp-cgv-modal__actions p,
  .tp-cgv-modal__dismiss {
    display: none;
  }

  .tp-cgv-modal__action-buttons {
    display: block;
  }

  .tp-cgv-modal__accept {
    width: 100%;
    min-height: 50px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-cgv-modal__content {
    scroll-behavior: auto;
  }
}
