:root { --tt-product-label-color: #12646c; }
/* Keep the image viewer above sticky navigation and inside the viewport. */
@layer tt-card-layout {
  html body:has(#colorbox.tt-product-lightbox) #cboxOverlay {
    z-index: 100099 !important;
  }
  html body #colorbox.tt-product-lightbox {
    position: fixed !important;
    z-index: 100100 !important;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  html body #colorbox.tt-product-lightbox .cboxPhoto {
    max-width: 100% !important;
    max-height: calc(100dvh - 160px) !important;
    object-fit: contain;
  }
  html body #colorbox.tt-product-lightbox #cboxClose {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    bottom: auto !important;
    z-index: 2 !important;
  }
}
/* Product specification headings and labels share the same brand color. */
@layer tt-card-layout {
  /* Match the header's centered container and side gutters. */
  html body #content.tt-product-detail-page .tt-product-container {
    width: calc(100% - 48px) !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  @media (max-width: 1024px) {
    html body #content.tt-product-detail-page .tt-product-container {
      width: calc(100% - 28px) !important;
    }
  }
  /* Inner sections share the outer container's edges without a second gutter. */
  html body #content.tt-product-detail-page .tt-product-container > :is(.product-info, #product-information, .tt-related-section) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    box-sizing: border-box;
  }
  html body #content.tt-product-detail-page .tt-product-breadcrumb {
    flex: 1;
    min-width: 0;
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
  .tt-category-page .tt-filter-controls select,
  .tt-category-page .results {
    margin-top: 10px !important;
  }
  /* Keep product layouts independent of legacy heading and card dimensions. */
  .tt-category-page .tt-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
  .tt-category-page .tt-product-card {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .tt-category-page .tt-product-body {
    min-width: 0;
    align-items: stretch !important;
    gap: 12px;
  }
  .tt-category-page .tt-product-name,
  .tt-category-page .tt-product-name a {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-family: 'Nuova Volte', Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    text-align: left !important;
    margin: 0 !important;
  }
  .tt-category-page .tt-product-copy {
    text-align: left !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
  }
  .tt-category-page .tt-product-card > *,
  .tt-category-page .tt-product-copy * {
    text-align: left !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
  .tt-category-page .tt-product-card .tt-product-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 12px 0 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .tt-category-page .tt-product-card .tt-product-actions > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center !important;
  }
  .tt-category-page :is(.tt-section-row, .tt-product-toolbar) h2,
  .tt-product-detail-page :is(.tt-related-section, .tt-review-form-header) h2 {
    font-family: 'Nuova Volte', Arial, sans-serif !important;
    font-size: clamp(24px, 2.5vw, 32px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #12646c !important;
    -webkit-text-fill-color: #12646c !important;
    margin: 12px 0 0 !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
  }
  .tt-category-page .tt-category-copy h1,
  .tt-product-detail-page .product-name h1 {
    font-family: 'Nuova Volte', Arial, sans-serif !important;
    font-size: clamp(30px, 3.5vw, 44px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
    margin: 12px 0 16px !important;
  }
  .tt-product-detail-page .product-name h1 {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
  }
  .tt-category-page .tt-product-toolbar {
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 24px !important;
  }
  .tt-category-page .tt-filter-controls { flex-wrap: wrap !important; max-width: 100%; }
  .tt-product-detail-page .tt-product-hero-grid > :is(.left, .right) {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }
  @media (max-width: 1024px) {
    .tt-category-page .tt-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  }
  @media (max-width: 767px) {
    .tt-category-page .tt-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
  }
  @media (max-width: 479px) {
    .tt-category-page .tt-product-grid { grid-template-columns: minmax(0, 1fr) !important; }
  }
  .pbox :is(.name, .description) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    flex-shrink: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .pbox .description:not(.hidden-phone) { display: block !important; }
  .pbox { height: auto !important; max-height: none !important; }
  .tt-product-label,
  .tt-product-detail-page .tt-meta-row > span,
  .tt-product-detail-page .tt-description-body :is(h1, h2, h3, h4, h5, h6, strong, b, th, dt),
  .tt-product-detail-page .tt-description-body :is(h1, h2, h3, h4, h5, h6, strong, b, th, dt) * {
    color: var(--tt-product-label-color) !important;
    -webkit-text-fill-color: var(--tt-product-label-color) !important;
  }
}

/* Product breadcrumb links keep the same appearance in every pointer state. */
@layer tt-breadcrumb-theme {
  html body #content.tt-product-detail-page .breadcrumb-pp a {
    padding: 0px !important;
  }
  html body #content.tt-product-detail-page .tt-product-breadcrumb a,
  html body #content.tt-product-detail-page .tt-product-breadcrumb a:is(:hover, :active, :focus-visible) {
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    filter: none !important;
    transform: none !important;
    translate: none !important;
    transition: none !important;
  }
  html body #content.tt-product-detail-page .tt-product-breadcrumb a *,
  html body #content.tt-product-detail-page .tt-product-breadcrumb a:is(:hover, :active, :focus-visible) * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  html body #content.tt-product-detail-page .tt-product-breadcrumb a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }
  @media (prefers-reduced-motion: reduce) {
    html body #content.tt-product-detail-page .tt-product-breadcrumb a { transition: none !important; }
  }
}

@layer tt-card-layout {
  html body #content.tt-product-detail-page .tt-product-hero-band {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-inline: 0 !important;
    border-bottom: 1px solid #12646c !important;
    box-sizing: border-box;
  }
}
@layer tt-teal-buttons {
  html body #content.tt-product-detail-page #prev-next a,
  html body #content.tt-product-detail-page #prev-next a:is(:hover, :active, :focus-visible) {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #12646c !important;
    -webkit-text-fill-color: #12646c !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    translate: none !important;
  }
  html body #content.tt-product-detail-page #prev-next a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }
}

@layer tt-card-layout {
  .tt-product-detail-page .product-name > span.tt-product-kicker {
    display: inline-block !important;
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 6px !important;
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #12646c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Inter', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
  }
}
/* Keep product review links black, including their text fill. */
@layer tt-storefront-typography {
  html body .tt-product-detail-page .tt-product-review-link a,
  html body .tt-product-detail-page .tt-product-review-link a * {
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}
