/*
 * Shape & Fit parity layer.
 * Loaded after custom-design.css only on the guide and cap-shape pages.
 */

body .legacy-shape-fit .legacy-shape-hero {
    position: relative;
    display: block !important;
    width: 100%;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 8 / 3;
    background: #252a2d;
}

body .legacy-shape-fit .legacy-shape-hero > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

body .legacy-shape-fit .legacy-shape-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(0 0 0 / 48%);
    pointer-events: none;
}

body .legacy-shape-fit .legacy-shape-hero > h1 {
    position: absolute !important;
    inset: 50% auto auto 50%;
    z-index: 2;
    width: max-content !important;
    max-width: calc(100% - 40px);
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    transform: translate(-50%, -50%);
    color: #fff !important;
    font-size: clamp(40px, 3.5vw, 50px) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: .015em;
    text-align: center;
    white-space: normal !important;
    border: 0 !important;
    text-shadow: 0 2px 12px rgb(0 0 0 / 24%);
}

/*
 * Overview-page sizing parity.
 * The original page uses a centred canvas, a tall photographic hero and six
 * square product tiles. Keep these rules scoped to the guide overview.
 */
body .legacy-shape-fit {
    width: min(1400px, calc(100% - 60px)) !important;
    max-width: 1400px !important;
    margin-inline: auto !important;
}

body .legacy-shape-fit > .legacy-shape-hero,
body .legacy-shape-fit > .legacy-fit-finder,
body .legacy-shape-fit > .legacy-shape-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

body .legacy-shape-fit .legacy-fit-finder {
    padding: 14px 0 70px !important;
}

body .legacy-shape-fit .legacy-fit-finder > h2 {
    margin: 0 0 18px !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

body .legacy-shape-fit .legacy-fit-grid:not(.legacy-fit-grid--static) {
    column-gap: 24px !important;
    row-gap: 60px !important;
}

body .legacy-shape-fit .legacy-fit-media {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
}

body .legacy-shape-fit .legacy-fit-card__title {
    min-height: 32px !important;
    margin: 5px 0 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

body .legacy-shape-fit .legacy-fit-card__link:focus-visible {
    outline: 3px solid #4683d8;
    outline-offset: 5px;
}

@media (min-width: 1200px) {
    body .legacy-shape-fit .legacy-shape-hero {
        aspect-ratio: 16 / 5;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body .legacy-shape-fit {
        width: calc(100% - 48px) !important;
    }

    body .legacy-shape-fit .legacy-fit-finder {
        padding: 14px 0 58px !important;
    }

    body .legacy-shape-fit .legacy-fit-finder > h2 {
        margin-bottom: 18px !important;
        font-size: 36px !important;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    body .legacy-shape-fit .legacy-fit-grid:not(.legacy-fit-grid--static) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body .legacy-shape-fit {
        width: calc(100% - 24px) !important;
    }

    body .legacy-shape-fit .legacy-shape-hero {
        aspect-ratio: 2.2 / 1;
    }

    body .legacy-shape-fit .legacy-shape-hero > h1 {
        max-width: calc(100% - 24px);
        font-size: clamp(25px, 7vw, 31px) !important;
    }

    body .legacy-shape-fit .legacy-fit-finder {
        padding: 14px 0 44px !important;
    }

    body .legacy-shape-fit .legacy-fit-finder > h2 {
        margin-bottom: 16px !important;
        font-size: clamp(23px, 6.5vw, 27px) !important;
    }

    body .legacy-shape-fit .legacy-fit-grid:not(.legacy-fit-grid--static) {
        column-gap: 12px !important;
        row-gap: 34px !important;
    }

    body .legacy-shape-fit .legacy-fit-card__title {
        min-height: 30px !important;
        margin-top: 5px !important;
        font-size: 15px !important;
    }
}

@media (min-width: 600px) and (max-width: 1199.98px) {
    body .cap-shape-detail {
        width: calc(100% - 60px) !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector {
        grid-template-columns: 34px minmax(0, 1fr) 34px !important;
        padding: 8px 0 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
        padding: 0 5px 8px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-media {
        aspect-ratio: 1.62 / 1 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-label {
        min-height: 32px !important;
        margin-top: 5px !important;
        font-size: 14px !important;
        line-height: 1.08 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-button {
        width: 28px !important;
        height: 40px !important;
        font-size: 24px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 !important;
        padding: 8px 0 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__gallery {
        min-width: 0;
        padding-top: 80px;
    }

    body .cap-shape-detail .cap-shape-detail__summary {
        min-width: 0;
    }

    body .cap-shape-detail .cap-shape-detail__hero-media {
        aspect-ratio: 16 / 9 !important;
        border: 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__summary h1 {
        margin: 0 0 14px !important;
        color: var(--cap-shape-title-color, #8da2b2) !important;
        font-size: 50px !important;
        line-height: 1.02 !important;
    }

    body .cap-shape-detail .cap-shape-detail__title-fit {
        font-size: 34px !important;
    }

    body .cap-shape-detail .cap-shape-detail__features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        margin: 8px 0 10px;
        padding: 8px 0;
    }

    body .cap-shape-detail .cap-shape-detail__features img {
        height: 48px;
    }

    body .cap-shape-detail .cap-shape-detail__features b {
        font-size: 11px;
    }
}

@media (max-width: 599px) {
    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        flex: 0 0 33.3333% !important;
        width: 33.3333% !important;
        max-width: 33.3333% !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-media {
        aspect-ratio: 1.5 / 1 !important;
    }

    body .cap-shape-detail .cap-shape-detail__hero-media {
        aspect-ratio: 16 / 9 !important;
    }
}

/*
 * Legacy detail-page parity.
 * Keep the original visual hierarchy while retaining semantic headings,
 * accessible media labels and the WordPress-managed data model.
 */
body .cap-shape-detail .cap-shape-detail__selector-track a[aria-current="page"],
body .cap-shape-detail .cap-shape-detail__selector-track a.is-current-clone {
    color: #427ed1 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track a[aria-current="page"] .cap-shape-detail__selector-label,
body .cap-shape-detail .cap-shape-detail__selector-track a[aria-current="page"] .cap-shape-detail__selector-label strong,
body .cap-shape-detail .cap-shape-detail__selector-track a.is-current-clone .cap-shape-detail__selector-label,
body .cap-shape-detail .cap-shape-detail__selector-track a.is-current-clone .cap-shape-detail__selector-label strong {
    color: #427ed1 !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track > a:hover .cap-shape-detail__selector-label,
body .cap-shape-detail .cap-shape-detail__selector-track > a:hover .cap-shape-detail__selector-label strong,
body .cap-shape-detail .cap-shape-detail__selector-track > a:focus-visible .cap-shape-detail__selector-label,
body .cap-shape-detail .cap-shape-detail__selector-track > a:focus-visible .cap-shape-detail__selector-label strong {
    color: #427ed1 !important;
}

/* Keep image and label hover zones independent, matching the legacy selector. */
body .cap-shape-detail .cap-shape-detail__selector-track > a:hover .cap-shape-detail__selector-alt {
    opacity: 0 !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track > a:hover .cap-shape-detail__selector-media img:not(.cap-shape-detail__selector-alt) {
    opacity: 1 !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track > a .cap-shape-detail__selector-media:hover .cap-shape-detail__selector-alt,
body .cap-shape-detail .cap-shape-detail__selector-track > a .cap-shape-detail__selector-media.is-angle-swapped .cap-shape-detail__selector-alt,
body .cap-shape-detail .cap-shape-detail__selector-track > a:focus-visible .cap-shape-detail__selector-alt {
    opacity: 1 !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track > a .cap-shape-detail__selector-media:hover img:not(.cap-shape-detail__selector-alt),
body .cap-shape-detail .cap-shape-detail__selector-track > a .cap-shape-detail__selector-media.is-angle-swapped img:not(.cap-shape-detail__selector-alt),
body .cap-shape-detail .cap-shape-detail__selector-track > a:focus-visible .cap-shape-detail__selector-media img:not(.cap-shape-detail__selector-alt) {
    opacity: 0 !important;
}

body .cap-shape-detail .cap-shape-detail__selector--positioning {
    visibility: hidden !important;
}

body .cap-shape-detail .cap-shape-detail__selector:not(.cap-shape-detail__selector--interactive) .cap-shape-detail__selector-media img {
    transition: none !important;
}

body .cap-shape-detail .cap-shape-detail__selector-track {
    will-change: transform;
    backface-visibility: hidden;
}

body .cap-shape-detail .cap-shape-detail__selector-viewport {
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
}

body .cap-shape-detail .cap-shape-detail__selector-media {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

body .cap-shape-detail .cap-shape-detail__selector-media img {
    -webkit-user-drag: none;
    user-select: none;
}

body .cap-shape-detail .cap-shape-detail__selector.is-dragging,
body .cap-shape-detail .cap-shape-detail__selector.is-dragging .cap-shape-detail__selector-media {
    cursor: grabbing;
}

body .cap-shape-detail .cap-shape-detail__selector.is-dragging .cap-shape-detail__selector-track > a {
    pointer-events: none;
}

body .cap-shape-detail .cap-shape-detail__selector.is-dragging .cap-shape-detail__selector-media img {
    transition: none !important;
}

body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
}

body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-viewport::-webkit-scrollbar {
    display: none;
}

body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track {
    transform: none !important;
    transition: none !important;
    will-change: auto;
    backface-visibility: visible;
}

body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track > a {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-media {
    cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-viewport {
        scroll-behavior: auto;
    }
}

@media (scripting: none) {
    body .cap-shape-detail .cap-shape-detail__selector--positioning {
        visibility: visible !important;
    }
}

body .cap-shape-detail .cap-shape-detail__selector-label,
body .cap-shape-detail .cap-shape-detail__selector-label strong {
    font-family: Inter, Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body .cap-shape-detail .cap-shape-detail__selector-label > strong,
body .cap-shape-detail .cap-shape-detail__selector-label > span {
    display: block;
    white-space: nowrap;
}

body .cap-shape-detail .cap-shape-detail__main--legacy {
    gap: 0 !important;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
    padding-top: 42px;
}

body .cap-shape-detail .cap-shape-detail__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

body .cap-shape-detail .cap-shape-detail__video::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    content: "";
    pointer-events: none;
    box-shadow: inset 0 0 0 2px #fff;
}

body .cap-shape-detail .cap-shape-detail__video iframe,
body .cap-shape-detail .cap-shape-detail__video video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body .cap-shape-detail .cap-shape-detail__video video {
    z-index: 1;
    object-fit: contain;
    cursor: pointer;
    background: #fff;
    clip-path: inset(1px);
    transform: scale(1.01) translateZ(0);
    transform-origin: center;
    backface-visibility: hidden;
}

body .cap-shape-detail .cap-shape-detail__video video::-webkit-media-controls {
    display: none !important;
}

body .cap-shape-detail .cap-shape-detail__video video:focus-visible {
    outline: 3px solid #3f7fd5;
    outline-offset: -3px;
}

body .cap-shape-detail .cap-shape-detail__video-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 0;
    z-index: 2;
}

body .cap-shape-detail .cap-shape-detail__video-poster.is-loading {
    cursor: progress;
}

body .cap-shape-detail .cap-shape-detail__video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body .cap-shape-detail .cap-shape-detail__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: #f03;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .2);
    transition: transform 160ms ease, background-color 160ms ease;
}

body .cap-shape-detail .cap-shape-detail__video-play::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    transform: translate(-42%, -50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #fff;
}

/* Local spin videos use a neutral 360-degree affordance, not YouTube chrome. */
body .cap-shape-detail .cap-shape-detail__video-poster[data-cap-shape-video-src] .cap-shape-detail__video-play {
    width: 112px;
    height: 50px;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 88%);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 14%);
}

body .cap-shape-detail .cap-shape-detail__video-poster[data-cap-shape-video-src] .cap-shape-detail__video-play::after {
    width: auto;
    height: auto;
    content: "360° VIEW";
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .06em;
    white-space: nowrap;
    border: 0;
    text-shadow: 0 1px 4px rgb(0 0 0 / 28%);
}

body .cap-shape-detail .cap-shape-detail__video-poster[data-cap-shape-video-src]:hover .cap-shape-detail__video-play,
body .cap-shape-detail .cap-shape-detail__video-poster[data-cap-shape-video-src]:focus-visible .cap-shape-detail__video-play {
    background: rgb(255 255 255 / 16%);
    border-color: #fff;
}

body .cap-shape-detail .cap-shape-detail__video-poster:hover .cap-shape-detail__video-play,
body .cap-shape-detail .cap-shape-detail__video-poster:focus-visible .cap-shape-detail__video-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #d9002b;
}

body .cap-shape-detail .cap-shape-detail__video-poster:focus-visible {
    outline: 3px solid #3f7fd5;
    outline-offset: -3px;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary h1 {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    column-gap: 22px !important;
    margin: 0 !important;
    padding: 0 0 10px;
    color: var(--cap-shape-title-color, #8da2b2) !important;
    border-bottom: 1px solid #ddd;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-model {
    color: var(--cap-shape-title-color, #8da2b2) !important;
    font-size: 54px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-fit {
    color: var(--cap-shape-title-color, #8da2b2) !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip {
    display: block;
    margin: 6px 0 0;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip img {
    display: block;
    width: 100%;
    height: auto;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs th,
body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs td {
    padding: 5px !important;
    color: #747474 !important;
    font-size: 15px !important;
    line-height: 1.87 !important;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs th {
    font-weight: 400 !important;
}

body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs tr:nth-child(odd) {
    background: #f5f5f5 !important;
}

body .cap-shape-detail .cap-shape-detail__views {
    position: relative;
    margin-top: 8px;
}

body .cap-shape-detail .cap-shape-detail__views::before {
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 8px;
    box-sizing: border-box;
    content: "";
    border-top: 1px solid #e0dede;
    border-bottom: 1px solid #e0dede;
}

body .cap-shape-detail .cap-shape-detail__views-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

body .cap-shape-detail .cap-shape-detail__views-grid figure {
    min-width: 0;
    margin: 0;
}

body .cap-shape-detail .cap-shape-detail__views-grid img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
}

@media (min-width: 1200px) {
    body .cap-shape-detail {
        width: calc(100% - 60px) !important;
        max-width: 1456px !important;
        margin-top: -39px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector {
        width: 100% !important;
        max-width: 1400px !important;
        margin-inline: auto !important;
        grid-template-columns: 34px minmax(0, 1fr) 34px !important;
        column-gap: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e0dede !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-viewport {
        box-sizing: border-box !important;
        padding-inline: 4px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track {
        gap: 20px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        flex: 0 0 calc((100% - 100px) / 6) !important;
        width: calc((100% - 100px) / 6) !important;
        max-width: calc((100% - 100px) / 6) !important;
        padding: 0 0 10px !important;
        border-bottom: 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-media {
        aspect-ratio: 1 / 1 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-label {
        height: 48px !important;
        min-height: 48px !important;
        margin-top: 0 !important;
        font-size: 15px !important;
        line-height: 16px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-button {
        width: 26px !important;
        height: 40px !important;
        font-size: 24px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-button--prev {
        justify-self: start;
    }

    body .cap-shape-detail .cap-shape-detail__selector-button--next {
        justify-self: end;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy {
        width: 100% !important;
        max-width: 1400px !important;
        margin-inline: auto !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        padding-top: 16px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary {
        position: relative;
        top: -6px;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        padding-top: 41px;
    }

    body .cap-shape-detail .cap-shape-detail__video {
        width: calc(100% - 10px);
        margin-left: 1px;
    }

    body .cap-shape-detail .cap-shape-detail__views {
        width: 100% !important;
        max-width: 1400px !important;
        margin: 2px auto 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__views-grid {
        gap: 56px !important;
    }
}

@media (max-width: 1199.98px) {
    body .cap-shape-detail .cap-shape-detail__selector {
        border-bottom: 1px solid #d8d8d8 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a[aria-current="page"],
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-current-clone {
        color: #333 !important;
        background-image: none !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a[aria-current="page"] .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a[aria-current="page"] .cap-shape-detail__selector-label strong,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-current-clone .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-current-clone .cap-shape-detail__selector-label strong {
        color: #333 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-active {
        color: #427ed1 !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll::after {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 2;
        width: 0;
        height: 2px;
        content: "";
        pointer-events: none;
        background: #427ed1;
        opacity: 0;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll.is-native-indicator-visible::after {
        left: var(--cap-shape-native-leading-left, 0);
        width: var(--cap-shape-native-leading-width, 0);
        opacity: 1;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-active .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-active .cap-shape-detail__selector-label strong {
        color: #427ed1 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track > a:not(.is-native-active) .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track > a:not(.is-native-active) .cap-shape-detail__selector-label strong {
        color: #333 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll.is-native-previewing .cap-shape-detail__selector-track a.is-native-active,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll.is-native-previewing .cap-shape-detail__selector-track a.is-native-active .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll.is-native-previewing .cap-shape-detail__selector-track a.is-native-active .cap-shape-detail__selector-label strong {
        color: #333 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-interaction,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-interaction .cap-shape-detail__selector-label,
    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track a.is-native-interaction .cap-shape-detail__selector-label strong {
        color: #427ed1 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        padding-bottom: 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector--native-scroll .cap-shape-detail__selector-track > a {
        border-bottom-color: transparent !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-label {
        height: 45px !important;
        min-height: 45px !important;
        line-height: 15px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        padding-top: 36px;
    }

    body .cap-shape-detail .cap-shape-detail__views-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

/* On stacked layouts, place the spin video between the title and details. */
@media (max-width: 767.98px) {
    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary {
        display: contents !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary > h1 {
        order: 1;
        width: 100%;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        order: 2;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip {
        order: 3;
        width: 100%;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs {
        order: 4;
        width: 100%;
    }
}

@media (max-width: 599px) {
    body .cap-shape-detail .cap-shape-detail__main--legacy {
        display: flex !important;
        flex-direction: column;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        order: 2;
        width: 100%;
        padding-top: 20px;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary {
        order: 1;
    }

    body .cap-shape-detail .cap-shape-detail__views { margin-top: 8px; }
}

/*
 * Responsive title and content calibration. Each model inherits the exact
 * legacy colour supplied by --cap-shape-title-color; breakpoints only adjust
 * scale and layout.
 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    body .cap-shape-detail {
        width: calc(100% - 48px) !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary h1 {
        column-gap: 14px !important;
        padding-bottom: 9px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-model {
        font-size: 48px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-fit {
        font-size: 28px !important;
    }
}

@media (min-width: 600px) and (max-width: 767.98px) {
    body .cap-shape-detail {
        width: calc(100% - 40px) !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        flex-basis: 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy {
        display: flex !important;
        flex-direction: column;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary {
        order: 1;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        order: 2;
        width: 100%;
        padding-top: 24px;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary h1 {
        column-gap: 12px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-model {
        font-size: 44px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-fit {
        font-size: 26px !important;
    }
}

@media (max-width: 599px) {
    body .cap-shape-detail {
        width: calc(100% - 24px) !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector {
        grid-template-columns: 28px minmax(0, 1fr) 28px !important;
        padding: 6px 0 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-track > a {
        flex-basis: 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        padding-inline: 4px !important;
        padding-bottom: 0 !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-label {
        height: 42px !important;
        min-height: 42px !important;
        font-size: 13px !important;
        line-height: 14px !important;
    }

    body .cap-shape-detail .cap-shape-detail__selector-button {
        width: 26px !important;
        height: 38px !important;
        font-size: 21px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy {
        padding-top: 12px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary h1 {
        column-gap: 10px !important;
        row-gap: 2px !important;
        padding-bottom: 8px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-model {
        font-size: 40px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__title-fit {
        font-size: 24px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip {
        margin-top: 8px;
        overflow: hidden;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip img {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs th,
    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs td {
        padding: 7px 6px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    body .cap-shape-detail .cap-shape-detail__views-grid {
        gap: 10px !important;
    }

    /*
     * Mobile legacy sequence:
     * model name -> product video -> construction artwork -> specifications.
     * display: contents keeps the existing semantic markup intact while the
     * flex order matches the original site's reading flow on narrow screens.
     */
    body .cap-shape-detail .cap-shape-detail__main--legacy {
        display: flex !important;
        flex-direction: column !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary {
        display: contents !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__summary h1 {
        order: 1 !important;
        width: 100% !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__gallery {
        order: 2 !important;
        width: 100% !important;
        padding-top: 12px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__feature-strip {
        order: 3 !important;
        width: 100% !important;
        margin-top: 12px !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__specs {
        order: 4 !important;
        width: 100% !important;
    }

    body .cap-shape-detail .cap-shape-detail__main--legacy .cap-shape-detail__eyebrow {
        display: none !important;
    }
}
