/* IMC RC3 compact product page V3 */
.product-hero-compact {
    padding-block: 24px 46px;
}

.product-hero-compact .product-breadcrumbs {
    margin-bottom: 24px;
}

.product-workspace-grid {
    grid-template-columns: minmax(0, .96fr) minmax(430px, 1.04fr);
    gap: clamp(34px, 4.5vw, 58px);
    align-items: start;
}

.product-gallery-compact {
    position: sticky;
    top: 112px;
}

.product-gallery-compact .gallery-stage {
    aspect-ratio: 4 / 3;
    padding: clamp(20px, 2.8vw, 32px);
    box-shadow: 0 18px 50px rgba(16, 19, 17, .09);
}

.product-gallery-compact .gallery-thumbs {
    margin-top: 10px;
}

.product-gallery-compact .gallery-thumbs button {
    flex-basis: 72px;
}

.product-summary-compact h1 {
    max-width: 17ch;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.02;
}

.product-summary-compact .product-lead {
    max-width: 62ch;
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.65;
}

.product-summary-compact .product-actions {
    margin-top: 20px;
}

.product-summary-compact .product-actions .button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
}

.product-configurator-card {
    margin-top: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #cfd6ce;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(16, 19, 17, .08);
}

.product-configurator-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.product-configurator-heading h2 {
    margin: 2px 0 0;
    font-size: clamp(24px, 2.8vw, 31px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.product-configurator-heading > p {
    max-width: 250px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

.product-option-form-compact {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.product-option-grid,
.quote-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
}

.product-option-field label,
.product-option-field legend,
.quote-detail-grid label {
    display: block;
    margin: 0 0 5px;
    color: #343d36;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.product-option-field label > span[aria-hidden="true"],
.product-option-field legend > span[aria-hidden="true"] {
    color: var(--danger);
}

.product-option-field select,
.product-option-field > input,
.quote-detail-grid input,
.quote-detail-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    background: #fbfcfa;
    color: var(--ink);
    border: 1px solid #aeb8af;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
}

.quote-detail-grid textarea {
    min-height: 70px;
    resize: vertical;
}

.product-option-field select:focus,
.product-option-field > input:focus,
.quote-detail-grid input:focus,
.quote-detail-grid textarea:focus {
    border-color: var(--lime-dark);
    box-shadow: 0 0 0 3px rgba(145, 180, 23, .15);
    outline: 0;
}

.product-option-field fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.option-choice-field {
    grid-column: 1 / -1;
}

.option-choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.option-choice-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    background: #f5f7f3;
    border: 1px solid #d2d8d1;
    border-radius: 7px;
    font-size: 11px;
    cursor: pointer;
}

.option-choice-list label:has(input:checked) {
    background: rgba(200, 243, 61, .25);
    border-color: #7f9e17;
}

.option-choice-list input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--lime-dark);
}

.option-help {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.product-option-field.has-option-error fieldset {
    padding: 8px;
    border: 2px solid var(--danger);
    border-radius: 8px;
}

.quote-extra-details {
    margin-top: 13px;
    border-top: 1px solid var(--line);
}

.quote-extra-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 5px;
    color: #405042;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.quote-extra-details > summary::-webkit-details-marker {
    display: none;
}

.quote-extra-details > summary span {
    color: var(--lime-dark);
    font-size: 19px;
    transition: transform .2s ease;
}

.quote-extra-details[open] > summary span {
    transform: rotate(45deg);
}

.quote-detail-grid {
    padding-top: 8px;
}

.quote-application {
    grid-column: 1 / -1;
}

.quote-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
}

.quote-submit-row .button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
    font-size: 12px;
}

.quote-submit-row p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.option-validation-message {
    margin: 11px 0 0;
    font-size: 12px;
}

.option-validation-message[hidden] {
    display: none;
}

.product-downloads-compact {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #c9d0c8;
}

.product-downloads-compact > summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.product-downloads-compact > summary::-webkit-details-marker {
    display: none;
}

.product-downloads-compact ul {
    margin-top: 8px;
}

.product-video-section-compact {
    padding-block: 48px 54px;
    background: #fff;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-video-shell {
    max-width: 1120px;
}

.product-video-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 19px;
}

.product-video-heading h2 {
    margin: 0;
    font-size: clamp(31px, 4vw, 43px);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.product-video-heading .text-link {
    flex: 0 0 auto;
    margin-bottom: 4px;
    color: #4b6500;
}

.product-video-carousel {
    overflow: hidden;
    background: #101311;
    border: 1px solid #d2d8d2;
    border-radius: 14px;
    box-shadow: 0 18px 52px rgba(16, 19, 17, .13);
}

.product-video-stage {
    position: relative;
    background: #080a09;
}

.product-video-stage iframe,
.product-video-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.product-video-cover {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #080a09;
    cursor: pointer;
}

.product-video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-video-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .46), transparent 48%);
}

.product-video-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 68px;
    height: 48px;
    place-items: center;
    padding-left: 3px;
    color: #fff;
    background: #f00;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
}

.product-video-stage h3 {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 42px 18px 15px;
    overflow: hidden;
    color: #fff;
    font-size: clamp(15px, 2vw, 21px);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .84), transparent);
}

.product-video-stage:has(iframe) h3 {
    display: none;
}

.product-video-stage-embedded iframe {
    background: #080a09;
}

.product-video-slider-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 9px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.product-video-thumbnails {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
}

.product-video-thumbnail {
    flex: 0 0 clamp(145px, 18vw, 185px);
    padding: 5px;
    color: var(--ink);
    text-align: left;
    background: #f5f7f4;
    border: 2px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    scroll-snap-align: start;
}

.product-video-thumbnail.is-active {
    border-color: #7f9e17;
    background: #f9ffe8;
}

.product-video-thumbnail:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 2px;
}

.product-video-thumb-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #161a17;
}

.product-video-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-video-thumb-image span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 34px;
    height: 24px;
    place-items: center;
    padding-left: 2px;
    color: #fff;
    font-size: 11px;
    background: #f00;
    border-radius: 6px;
    transform: translate(-50%, -50%);
}

.product-video-thumbnail strong {
    display: -webkit-box;
    min-height: 34px;
    margin: 6px 3px 2px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-slider-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: #fff;
    font-size: 26px;
    background: #17221a;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.video-slider-arrow:hover:not(:disabled),
.video-slider-arrow:focus-visible:not(:disabled) {
    color: var(--ink);
    background: var(--lime);
}

.video-slider-arrow:disabled {
    opacity: .28;
    cursor: default;
}

.product-content-wide {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1120px;
}

.product-content-wide .product-copy {
    min-width: 0;
}

.product-content-wide .product-copy section + section {
    margin-top: 45px;
    padding-top: 40px;
}

.product-content-wide .product-copy h2,
.product-content-wide .prose h2 {
    font-size: clamp(29px, 3.6vw, 40px);
}

.product-content-wide .prose p,
.product-content-wide .prose li {
    max-width: 96ch;
}

@media (max-width: 1050px) {
    .product-workspace-grid {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
        gap: 30px;
    }

    .product-configurator-heading {
        display: block;
    }

    .product-configurator-heading > p {
        max-width: none;
        margin-top: 6px;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .product-workspace-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery-compact {
        position: static;
        width: 100%;
        max-width: 720px;
    }

    .product-summary-compact h1 {
        max-width: 22ch;
    }

    .product-video-shell,
    .product-content-wide {
        max-width: var(--shell);
    }
}

@media (max-width: 680px) {
    .product-hero-compact {
        padding-block: 16px 34px;
    }

    .product-summary-compact h1 {
        font-size: 39px;
    }

    .product-configurator-card {
        margin-top: 20px;
        padding: 16px;
    }

    .product-option-grid,
    .quote-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-choice-field,
    .quote-application {
        grid-column: auto;
    }

    .quote-submit-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .quote-submit-row .button {
        width: 100%;
    }

    .product-video-section-compact {
        padding-block: 38px 42px;
    }

    .product-video-heading {
        display: block;
    }

    .product-video-heading .text-link {
        display: inline-flex;
        margin-top: 10px;
    }

    .product-video-carousel {
        margin-inline: -4px;
        border-radius: 11px;
    }

    .product-video-slider-row {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 5px;
        padding: 8px 6px;
    }

    .video-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .product-video-thumbnail {
        flex-basis: 142px;
    }

    .product-video-thumbnail strong {
        font-size: 10px;
    }

    .product-video-stage h3 {
        padding-inline: 13px;
        font-size: 14px;
    }
}

@media (forced-colors: active) {
    .option-choice-list label:has(input:checked),
    .product-video-thumbnail.is-active {
        outline: 2px solid CanvasText;
    }
}
