/* Overrides are limited to the tour, so the site header/footer keep their styles. */
.sz-tour-page,
.sz-tour-page *,
.sz-tour-page *::before,
.sz-tour-page *::after {
  box-sizing: border-box;
}

:is(.sz-tour-page, .sz-tour-portals) h1,
:is(.sz-tour-page, .sz-tour-portals) h2,
:is(.sz-tour-page, .sz-tour-portals) h3 {
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.sz-tour-page .sz-container {
  max-width: 1160px;
  padding: 0;
}

.sz-tour-page .sz-button {
  border: 0;
  box-shadow: none;
  text-transform: none;
  cursor: pointer;
}

.sz-tour-page .sz-tour-summary__fact {
  height: auto;
  min-height: 30px;
}

.sz-tour-page .sz-tour-summary__label {
  min-width: 0;
}

.sz-tour-page .sz-tour-summary__value {
  margin: 0;
}

.sz-tour-page .sz-related-card__cover .sz-related-card__image {
  height: 100% !important;
}

.sz-tour-page .sz-included__image,
.sz-tour-page .sz-booking__image {
  height: 100% !important;
}

.sz-tour-page .sz-tour-summary__amount {
  display: inline;
  white-space: normal;
}

.sz-tour-page .sz-tour-summary__price {
  height: auto;
  min-height: 51px;
  flex-wrap: wrap;
}

.sz-tour-page .sz-tour-summary__amount ins {
  background: transparent;
  text-decoration: none;
}

.sz-tour-page .sz-tour-summary__amount del {
  font-size: 0.65em;
}

.sz-tour-page .cbrf-rate-estimate {
  display: block;
  font:
    12px/1.3 "SZ Tour Jost",
    sans-serif;
}

.sz-tour-page .sz-gallery__thumbnail {
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.sz-tour-page .sz-tour-hero__content_no-gallery {
  grid-template-columns: minmax(0, 1fr);
}

.sz-tour-page .sz-tour-hero__content_no-gallery .sz-tour-summary {
  width: 100%;
  max-width: 500px;
}

.sz-tour-page .sz-day__content_no-image {
  grid-template-columns: minmax(0, 1fr);
}

.sz-tour-page .sz-day__description p {
  margin: 0 0 15px;
}

.sz-tour-page .sz-day__description p:last-child,
.sz-tour-page .sz-payment__text p:last-child {
  margin-bottom: 0;
}

.sz-tour-page .sz-day__location {
  font-weight: 600;
}

.sz-tour-page .sz-about__description p {
  margin: 0 0 15px;
}

.sz-tour-page .sz-about__container {
  grid-template-rows: minmax(217px, auto) minmax(60px, auto);
}

.sz-tour-page .sz-about__main_full {
  grid-column: 1 / -1;
}

.sz-tour-page .sz-features__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sz-tour-page .sz-tour-migration {
  overflow-wrap: anywhere;
}

.sz-tour-page .sz-tour-migration img {
  max-width: 100%;
  height: auto;
}

.sz-tour-page .sz-tour-legacy-section {
  margin-bottom: 30px;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-review-modal__rating .sz-r-stars {
  font-size: 16px;
  color: #fe6d02;
  white-space: nowrap;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-review-modal__rating
  .sz-r-stars-empty {
  color: #d5d5d5;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-review-modal__source .sz-r-source {
  color: inherit;
  font-size: 12px;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-review-modal__video-link {
  --sz-link-color: var(--sz-color-orange);
  color: var(--sz-color-orange);
}

.sz-tour-page .sz-booking__container_no-image {
  grid-template-columns: minmax(0, 360px);
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7 {
  width: 100%;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7-form {
  margin: 25px 0 0;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7-form p {
  margin: 0;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7-form > p + p {
  margin-top: 10px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  .sz-booking-form__fields {
  margin-top: 0;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7-form label {
  display: block;
  font-weight: 400;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="text"],
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="tel"],
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="url"],
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="email"],
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="number"],
:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .wpcf7-form select,
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  textarea {
  width: 100%;
  min-height: 50px;
  height: auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  background: #f8f8f8;
  color: #333;
  font:
    400 16px/1.4 "SZ Tour Jost",
    sans-serif;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input::placeholder,
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  textarea::placeholder {
  color: #bdbdbd;
  opacity: 1;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  input[type="submit"] {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  background-color: #fe6d02;
  color: #fff;
  text-transform: none;
  box-shadow: none;
  padding: 8px 40px 8px 16px;
  cursor: pointer;
  background-image: url("../icons/form-send.svg");
  background-position: calc(50% + 76px) center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  font:
    600 16px/1.4 "SZ Tour Jost",
    sans-serif;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  .wpcf7-acceptance {
  display: block;
  color: #919191;
  font-size: 12px;
  line-height: 14px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-acceptance
  .wpcf7-list-item {
  display: block;
  margin: 0;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-acceptance
  label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 12px;
  line-height: 14px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-acceptance
  .wpcf7-list-item-label {
  font-size: 12px;
  line-height: 14px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-acceptance
  input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #b4b4b4;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-acceptance
  input[type="checkbox"]:checked {
  border-color: #fe6d02;
  background-color: #fe6d02;
  box-shadow: inset 0 0 0 4px #fff;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form
  .wpcf7-acceptance
  a {
  --sz-link-color: var(--sz-color-text);
  color: var(--sz-color-text);
}

:is(.sz-tour-page, .sz-tour-portals) .sz-messengers__link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* The form already saved in CF7 may still use the earlier class names. */
:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .booking-form__fields {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .booking-form__submit {
  position: relative;
  margin-top: 20px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .booking-form__consents {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .booking-form__submit
  .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 12px;
  margin: 0;
  visibility: hidden;
  transform: translateY(-50%);
}

:is(.sz-tour-page, .sz-tour-portals)
  .sz-booking-form__cf7
  .wpcf7-form.submitting
  .wpcf7-spinner {
  visibility: visible;
}

:is(.sz-tour-page, .sz-tour-portals) .sz-booking-form__cf7 .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .sz-tour-page .sz-about__container {
    grid-template-rows: auto auto auto;
  }
}
