/* Product-detail foundation loaded after theme.css. Section files own component styling. */
body.single-itineraries,
body.single-itineraries #main-content {
  margin: 0;
  padding: 0;
  background: #fff;
}

.sx-reference-product {
  --sx-product-ink: #000;
  --sx-product-text: #272727;
  --sx-product-muted: #666;
  --sx-product-faint: #919191;
  --sx-product-line: #d1d1d1;
  --sx-product-soft: #f5f4f3;
  --sx-product-blue: #2c7cc2;
  --sx-product-blue-dark: #1f557c;
  --sx-product-orange: #f37021;
  --sx-product-width: 1200px;
  --sx-product-wide-width: 1800px;
  min-width: 0;
  overflow: clip;
  background: #fff;
  color: var(--sx-product-text);
  letter-spacing: 0;
}

.sx-reference-product [hidden] {
  display: none !important;
}

.sx-reference-product *,
.sx-reference-product *::before,
.sx-reference-product *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.sx-reference-product button,
.sx-reference-product input,
.sx-reference-product select,
.sx-reference-product textarea {
  font: inherit;
}

.sx-reference-product button:focus-visible,
.sx-reference-product a:focus-visible,
.sx-reference-product input:focus-visible,
.sx-reference-product select:focus-visible,
.sx-reference-product textarea:focus-visible,
.sx-reference-product summary:focus-visible {
  outline: 2px solid var(--sx-product-blue);
  outline-offset: 3px;
}

.sx-reference-content {
  width: min(var(--sx-product-width), 80%);
  margin-inline: auto;
}

@media (max-width: 1100px) {
  .sx-reference-content {
    width: calc(100% - 48px);
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .sx-reference-content {
    width: 80%;
  }
}

.sx-reference-section,
.sx-reference-section.sx-reference-content {
  scroll-margin-top: 51px;
}

.sx-reference-anchor-nav {
  position: sticky;
  top: 0;
  z-index: 51;
  border: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 -1px var(--sx-product-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sx-reference-anchor-nav > .sx-reference-content {
  height: 51px;
  min-height: 51px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sx-reference-anchor-nav > .sx-reference-content::-webkit-scrollbar {
  display: none;
}

.sx-reference-anchor-nav button {
  min-width: 70px;
  min-height: 51px;
  position: relative;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: var(--sx-product-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sx-reference-anchor-nav button::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 17px;
  bottom: -1px;
  left: 17px;
  display: block;
  background: transparent;
}

.sx-reference-anchor-nav button.is-active {
  color: var(--sx-product-blue);
}

.sx-reference-anchor-nav button.is-active::after {
  display: block;
  background: var(--sx-product-blue);
}

@media (max-width: 700px) {
  .sx-reference-content {
    width: calc(100% - 39px);
  }

  .sx-reference-anchor-nav > .sx-reference-content {
    width: 100%;
    justify-content: space-between;
    padding-inline: 4px;
  }

  .sx-reference-anchor-nav button {
    min-width: 70px;
    padding-inline: 8px;
  }

  .sx-reference-product .sx-reference-footer {
    padding-bottom: calc(130px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-reference-product *,
  .sx-reference-product *::before,
  .sx-reference-product *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
