/* Complete product views. Frames own their size; intrinsic image dimensions
   cannot expand a grid track or get clipped inside a chooser card. */
.builder-path-card{min-width:0;min-height:0;align-items:stretch}
.builder-path-card .builder-path-photo{position:relative;display:block;flex:0 0 240px;box-sizing:border-box;width:100%;height:240px;min-height:0;max-height:240px;overflow:hidden;isolation:isolate}
.builder-path-card .builder-path-photo>img{position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;padding:12px;margin:0;transform:none}
.builder-path-card[data-builder-start=guided] .builder-path-photo{background:#111a26}
.builder-path-card[data-builder-start=advanced] .builder-path-photo>img{object-fit:contain;padding:18px}
.builder-path-copy{min-width:0;overflow-wrap:anywhere}

.builder-base-media{position:relative;display:block;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden}
.builder-base-media>img{position:absolute;inset:0;box-sizing:border-box;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;margin:0}
.builder-switch-media{position:relative;display:block;min-width:0;min-height:160px;overflow:hidden}
.builder-switch-media>img{position:absolute;inset:0;box-sizing:border-box;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;padding:12px;margin:0}
.builder-keycap-media{position:relative;display:block;min-width:0;height:190px;overflow:hidden}
.builder-keycap-media>img{position:absolute;inset:0;box-sizing:border-box;display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;padding:12px;margin:0}
.guided-component-photo>button{position:relative;display:block;box-sizing:border-box;height:160px;min-height:0;overflow:hidden}
.guided-result .guided-component-photo>button>img{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;max-height:100%;min-height:0;display:block;object-fit:contain;object-position:center;padding:10px;margin:0}
.guided-component-pair .guided-component-photo>button{height:120px}
.selected-part-photos figure>button{position:relative;display:block;box-sizing:border-box;min-width:0;min-height:0;height:160px;overflow:hidden}
.selected-part-photos figure>button>img{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;max-height:100%;display:block;object-fit:contain;object-position:center;padding:10px;margin:0}

/* Keep complete products visible in existing galleries and comparison cards. */
.nebula-gallery .lunar-gallery-open img,.nebula-gallery .lunar-thumb img,
.inferno-gallery .lunar-gallery-open img,.inferno-gallery .lunar-thumb img,
.product-thumb-row img,.layout-model-image img,.sound-test-image img,
.seo-product-card>img,.nebula-seo img,.prebuilt-media img,
.conversion-products img,.conversion-products img[src*="/nebula-60/"],
.sc-shop-card>img,.sc-compare-card img,.sc-sound-choice img,
.originals-card img,.originals-extra>img,.mat-gallery-mockups img,
.sc-cap-gallery>img{object-fit:contain;object-position:center}
.sc-shop-card>img,.conversion-products img,.originals-card img,.mat-gallery-mockups img{min-width:0;max-width:100%;box-sizing:border-box}
.nebula-gallery .lunar-gallery-open:hover img,.nebula-gallery .lunar-thumb:hover img{transform:none}
.sc-showroom-photo{position:relative;min-width:0;min-height:0;overflow:hidden}
.sc-showroom-photo>img{position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;object-fit:contain;object-position:center;max-width:100%;max-height:100%}
img.product-main-image,img.nebula-product-main,img.inferno-product-main{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:auto;object-fit:contain;object-position:center}
.nebula-home-card img.hero-product-photo,.prebuilt-featured .prebuilt-media img{object-fit:contain;object-position:center}
.builder-media-dialog img,.product-detail-lightbox img,.photo-lightbox img,.mat-photo-dialog img{box-sizing:border-box;display:block;max-width:100%;object-fit:contain;object-position:center}

/* Readable pricing instead of long inline strings of layouts and fees. */
.sc-pricing-section{max-width:1200px;margin-inline:auto}
.sc-pricing-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.4fr);gap:24px;align-items:start;margin:24px 0}
.sc-price-table{width:100%;border-collapse:collapse;table-layout:fixed;border:1px solid #43536d;background:#131d2b;color:#e7eef9;font-family:'SC Barlow',Arial,sans-serif;font-size:.94rem;line-height:1.55;text-align:left}
.sc-price-table caption{caption-side:top;text-align:left;color:#f0f4fc;font-family:'SC Barlow',Arial,sans-serif;font-size:1.12rem;line-height:1.4;font-weight:700;padding:0 0 12px}
.sc-price-table th,.sc-price-table td{box-sizing:border-box;padding:12px 14px;vertical-align:top;border-bottom:1px solid #35445e;overflow-wrap:anywhere}
.sc-price-table thead th{background:#24334b;font-size:.8rem;font-weight:700;color:#c3d9fb}
.sc-price-table tbody th{font-weight:600;color:#d4e4ff;width:38%}
.sc-price-table tbody tr:nth-child(even){background:#182436}
.sc-price-table .sc-price-amount{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;color:#f4f7ff;font-weight:700}
.sc-layout-prices thead th:last-child{text-align:right}
.sc-quote-breakdown th:first-child{width:34%}
.sc-pricing-lead,.sc-pricing-note{max-width:850px;line-height:1.65;color:#bdcadc}
.sc-pricing-note{font-size:.88rem}.sc-order-cost-disclosure .sc-price-table{margin-top:18px}
.service-price-card .sc-price-table{font-size:.9rem;margin:18px 0}.service-price-card .sc-price-table th,.service-price-card .sc-price-table td{padding:10px 12px}

@media(max-width:800px){.builder-path-card .builder-path-photo{height:200px;flex-basis:200px;max-height:200px}.selected-part-photos figure>button{height:120px}}
@media(max-width:600px){
 .builder-path-grid{grid-template-columns:minmax(0,1fr)}
 .builder-path-card{display:flex;flex-direction:column}
 .builder-path-card .builder-path-photo{width:100%;height:210px;min-height:0;max-height:210px;flex:0 0 210px}
 .builder-path-card .builder-path-photo>img{object-fit:contain;padding:12px}
 .builder-path-card[data-builder-start=advanced] .builder-path-photo>img{padding:18px}
 .builder-path-copy{padding:22px;gap:14px}
 .selected-part-photos figure>button{height:110px}
 .sc-pricing-grid{grid-template-columns:minmax(0,1fr);gap:26px}
 .sc-price-table{font-size:.87rem}.sc-price-table th,.sc-price-table td{padding:11px 10px}
}
@media(min-width:601px) and (max-width:900px){.sc-pricing-grid{grid-template-columns:minmax(0,1fr)}}
