/* Original product overview: gallery, selection, and the four detail tabs. */
.legacy-product .breadcrumb{line-height:1.5;margin-bottom:24px}
.legacy-product .product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:36px}
.legacy-product .gallery{top:104px;padding:20px;background:#f6f9fb;border-color:#d5e2ea}
.legacy-product .image-stage{aspect-ratio:auto;height:clamp(220px,calc(100dvh - 259px),390px);padding:12px;border-radius:4px}
.legacy-product .image-stage img{min-height:0;max-height:100%;object-fit:contain}
.legacy-product .gallery-thumbs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:18px 0 0;padding:3px}
.legacy-product .gallery-thumbs button{width:100%;min-width:0;height:62px;padding:3px}
.legacy-product .product-config h1{font-size:30px;line-height:1.18;letter-spacing:-.5px;color:#07314d;margin:0 0 12px;overflow-wrap:anywhere}
.product-display-price{font-size:23px;line-height:1.35;font-weight:650;margin-bottom:12px;color:#07314d}
.legacy-product .product-intro{font-size:13px;color:#3e5666;line-height:1.55;max-height:none;overflow:auto;margin-bottom:14px}
.legacy-product .product-intro :is(p,h4){margin-block:7px;line-height:1.55}
.product-intro table{border-collapse:collapse}
.product-intro td,.product-intro th{border:1px solid #d9e2ef;padding:6px}
.product-intro img{max-width:100%;height:auto}
.legacy-product .config-card{background:#f5f8fa;border:1px solid #cfdee7;border-radius:6px;padding:18px;box-shadow:none}
.legacy-product .config-card .section-title{border:0;align-items:center;margin:0 0 12px;padding:0;gap:16px}
.legacy-product .config-card .section-title h2{font-size:18px}
#reset-product-selection{border:0;background:transparent;min-height:36px;padding:0 2px;color:#006e88;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.legacy-product .config-card .parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.legacy-product .config-field{gap:4px;line-height:1.4}
.legacy-product .config-field :is(select,input){min-height:42px;border-color:#b7cbd7;padding:8px 10px}
.legacy-product .selection-result{margin-top:14px;padding-top:10px}
.legacy-product .purchase-row{display:grid;grid-template-columns:minmax(68px,100px) minmax(0,1fr);gap:10px;align-items:end;margin:12px 0}
.legacy-product .purchase-row button{min-height:44px;font-size:14px}
.legacy-product .quantity-field{display:grid;min-width:0;font-size:12px;gap:4px;margin:0}
.legacy-product .quantity-field input{width:100%}
.legacy-product .purchase-row .primary:disabled,.legacy-product .quote-open:disabled{background:#edf2f6;color:#526c7c;border-color:#c9d7e0}
.legacy-product .quote-open{justify-content:center;gap:12px}
.legacy-product .quote-open:not(:disabled){justify-content:center;gap:12px;background:#fff;color:#07314d;border-color:#8daebf}
.legacy-product .quote-open:not(:disabled):hover{background:#e8f0f5;border-color:#07314d}
.product-reading-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:6px 0;font-size:13px;color:#096b84;font-weight:650}
.product-reading-links a{min-height:36px;display:inline-flex;align-items:center;gap:6px}
.product-reading-links a:hover{text-decoration:underline}
.product-tools{border-block:1px solid #d5e2ea}
.product-tools summary{padding:9px 0;min-height:44px;align-content:center;font-weight:600;cursor:pointer}
.product-tools .selection-tools{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 10px}
.product-tools p:empty{display:none}
.legacy-product .product-meta{padding-top:10px;display:block;color:#526c7c;font-size:12px}
.legacy-product .product-tabs{display:flex;flex-wrap:wrap;gap:0 24px;margin:26px 0 20px;padding:0;border-top:0}
.legacy-product .product-tabs a{display:inline-flex;align-items:center;gap:7px;padding:10px 2px;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px;color:#345565;font-size:15px}
.legacy-product .product-tabs a:hover{color:#00718f}
.legacy-product .product-tabs a[aria-selected=true]{border-bottom-color:#007fa3;color:#07314d}
.legacy-product .product-section{margin:24px 0;scroll-margin-top:108px}
.legacy-product .product-section>h2{margin:0 0 18px;font-size:24px;color:#07314d}
.product-tab-empty{color:#526c7c}
.cad-marker{border-radius:3px;padding:1px 5px;background:#e8f3f7;color:#10546c;font-size:10px;font-weight:700;line-height:1.5}
.product-page [hidden]{display:none!important}

/* The original CAD sidebar and tool strip. */
.qd-cad{display:grid;grid-template-columns:270px minmax(0,1fr);min-width:0;border:1px solid #cfdee7;border-radius:5px;margin:0 0 26px;background:white;scroll-margin-top:108px}
.qd-cad-sidebar{padding:24px;min-width:0;background:#f6f9fb;border-inline-end:1px solid #cfdee7;border-start-start-radius:5px;border-end-start-radius:5px}
.qd-cad-sidebar h3{color:#103b56;font-size:21px;margin:0 0 18px}
.qd-cad-model-label{display:block;margin-bottom:8px;font-size:13px;font-weight:650}
#product-model-choice{min-height:44px;padding:8px;border:1px solid #abc3d1;border-radius:3px;color:#103b56}
#product-model-choice:disabled{background:#eef2f4;color:#617885}
#product-model-search{display:flex;gap:4px;margin-top:10px}
#product-model-search input{min-width:0;padding:6px 8px;font-size:13px}
#product-model-search button{display:grid;place-items:center;min-width:38px;padding:4px}
.product-model-pages{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:6px}
.product-model-pages button{min-height:36px;font-size:18px;padding:1px 12px}
.qd-cad-list-status,.qd-cad-sync-note{color:#526c7c;font-size:12px;line-height:1.65;margin:12px 0}
.qd-cad-sync-note{margin:14px 0 18px}
.product-cad-source{display:grid;gap:4px;margin-bottom:12px}
.product-cad-source bdi{overflow-wrap:anywhere;color:#103b56;font-weight:650}
.product-cad-source small{color:#526c7c}
.qd-cad-download{display:flex;justify-content:center;align-items:center;min-height:44px;padding:8px 10px;background:#00758f;border-radius:3px;color:#fff;font-weight:650}
.qd-cad-download:hover{background:#00647b}
#product-cad-back{min-height:36px;width:100%;margin-top:8px;padding:4px 6px;font-size:12px}
.qd-cad-main{min-width:0;background:#f1f6f9;border-start-end-radius:5px;border-end-end-radius:5px}
.qd-cad-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #cfdee7;background:white}
.qd-cad-toolbar button,.qd-cad-overlay button{min-height:40px;border:1px solid #c4d6e0;border-radius:3px;padding:6px 11px;background:white;color:#103b56;font-size:12px}
.qd-cad-toolbar button:disabled{color:#617885;background:#f1f4f6}
.qd-cad-toolbar button:not(:disabled):hover,.qd-cad-toolbar button[aria-pressed=true]{background:#eaf6fa;color:#006d87;border-color:#007fa3}
.qd-cad-viewport{height:480px;position:relative}
#product-cad-stage,.qd-cad-overlay{position:absolute;inset:0}
#product-cad-stage{overflow:hidden;touch-action:none}
#product-cad-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.qd-cad-overlay{display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#f1f6f9}
.qd-cad-overlay.cad-ready{inset:0 auto auto 0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;pointer-events:none}
#product-cad-status{flex-basis:100%;margin:0;color:#486374;line-height:1.7}
.qd-cad-overlay .qd-cad-load{min-height:44px;background:#00758f;color:#fff;border:0;font-size:14px}
.qd-cad-help{margin:0;padding:10px;color:#526c7c;font-size:12px;text-align:center}
body.cad-expanded-page{overflow:hidden}
#product-cad-viewer.cad-expanded{position:fixed;inset:0;z-index:1200}
#product-cad-viewer:fullscreen,#product-cad-viewer.cad-expanded{display:flex;flex-direction:column;padding:clamp(8px,2vw,24px);background:#f1f6f9;overflow:auto}
#product-cad-viewer:is(:fullscreen,.cad-expanded) .qd-cad-viewport{height:auto;min-height:180px;flex:1}
.product-file-links{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.product-resource-link img{width:65px;height:46px;object-fit:contain;display:block;background:#f4f8fa}
.product-resource-link .download-link,.product-file-links .download-link{border:1px solid #b7c9db;border-radius:5px;padding:4px 9px;display:inline-block;margin:0}
.product-resource-link bdi{overflow-wrap:anywhere}
.product-cad-drawing .product-file-links{margin-inline-start:auto}
.all-drawings{margin-top:14px}
.product-file-group{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin:4px 0}
.product-file-group small{color:#526681}
.product-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px}
.product-videos figure{margin:0}
.product-videos video{width:100%;max-height:480px;background:#122033;border-radius:7px}
.product-videos figcaption{padding:10px 0;color:#526681}
#selection-tech{margin-top:10px}
#selection-tech summary{cursor:pointer;font-weight:650;color:#135d76}
#selection-tech dl,#catalog-reference-detail dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:3px 8px;margin:8px 0}
#selection-tech dd,#catalog-reference-detail dd{margin:0;overflow-wrap:anywhere}
#selection-tech .catalog-note{grid-column:1/-1;font-size:.83rem;color:#405b69;padding-top:.45rem}
#selection-comparison th button{display:block;margin-top:6px;min-height:34px;padding:4px 8px}
#selection-comparison .comparison-scroll{overflow:auto}
#selection-comparison .spec-table{min-width:320px}
#catalog-reference-form{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#catalog-reference-form input{flex:1 1 180px;min-width:0;border:1px solid #b9cdd5;border-radius:5px;padding:10px 12px}
#catalog-reference-models{display:flex;flex-wrap:wrap;gap:8px}
#catalog-reference-models button[aria-pressed=true]{border-color:#197599;background:#e4f2f7;color:#0e5269}
#catalog-reference-pages{display:flex;align-items:center;gap:12px;margin:10px 0}
#catalog-reference-detail:not(:empty){background:#f5f9fb;border:1px solid var(--line);border-radius:7px;margin-top:12px;padding:13px}
@media(max-width:899px){
    .legacy-product .product-layout{grid-template-columns:minmax(0,1fr);gap:20px}
    .legacy-product .gallery{position:static;margin-bottom:0}
    .legacy-product .product-config h1{font-size:27px}
    .legacy-product .image-stage{height:min(62vw,390px)}
}
@media(max-width:800px){
    .qd-cad{grid-template-columns:minmax(0,1fr)}
    .qd-cad-sidebar{padding:16px;border-inline-end:0;border-bottom:1px solid #cfdee7}
    .qd-cad-sidebar h3{margin-bottom:10px}
    .qd-cad-sync-note{margin-bottom:10px}
    .qd-cad-viewport{height:360px}
    .qd-cad-toolbar button{padding-inline:8px}
}
@media(max-width:650px){
    .product-resource-link{flex-wrap:wrap;gap:10px;padding:12px}
    .product-resource-link>span{flex:1 1 150px}
    .product-resource-link .product-file-links{flex-basis:100%}
    .legacy-product .product-section,.qd-cad{scroll-margin-top:96px}
}
@media(max-width:540px){
    .legacy-product .product-config h1{font-size:25px}
    .legacy-product .config-card,.legacy-product .gallery{padding:14px}
    .legacy-product .config-card .parameter-grid{grid-template-columns:minmax(0,1fr)}
    .legacy-product .gallery-thumbs{grid-template-columns:repeat(5,minmax(0,1fr))}
    .legacy-product .gallery-thumbs button{height:48px}
    .legacy-product .product-tabs{gap:0 14px}
    .legacy-product .product-tabs a{font-size:14px}
    .product-reading-links a{min-height:44px}
    .legacy-product .product-section>h2{font-size:21px}
}

/* Inquiry-only products keep the gallery and place their resources in reading order. */
.quote-product .product-layout{align-items:center}
.quote-product .gallery{position:static}
.quote-product .product-meta{padding:0;margin-block:0 12px}
.quote-product-badge{display:inline-block;padding:3px 10px;border-radius:4px;background:#e8f3f7;color:#10546c;font-size:13px;font-weight:650}
.quote-product-action{margin:18px 0 10px}
.quote-product-action button{min-height:44px}
.quote-product-action button[aria-busy=true]{opacity:.7;cursor:progress}
.quote-product-action button:disabled{background:#edf2f6;color:#526c7c;border-color:#c9d7e0}
.quote-product-action .local-note{font-size:13px;color:#526c7c}
#hero-quote-feedback{margin:8px 0 0}
#hero-quote-feedback:empty{display:none}
#product-image-empty{color:#526c7c;margin:0;padding:12px;text-align:center}
.quote-product>.product-section{border-block-start:1px solid var(--line);margin:28px 0 0;padding-block:22px 0}
.quote-product #overview p{max-width:80ch;margin-bottom:0;font-size:15px;line-height:1.7}
.quote-product #specifications .config-card{margin:18px 0 8px}
.quote-product #specifications .source-description,.quote-product #resources .source-description{max-width:100%}
@media(max-width:540px){
    .quote-product .quote-product-action button{width:100%}
    .quote-product>.product-section{margin-block-start:22px;padding-block-start:16px}
}
