/* Keep the price summary at the same bottom edge for every product. */
.configurator>.panel{overflow:hidden;padding-bottom:24px}
#configContent,#configContent.mac-layout{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:0}
#configContent[hidden]{display:none}
.config-settings{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d2d2d7 transparent;padding:0 2px 10px 0}
.config-settings>.section:last-of-type{margin-bottom:0}
#priceBlock{flex:0 0 auto;margin-top:auto;padding-top:12px}
#availability{flex:0 0 auto;margin:auto 0 0}
.config-settings .recommendation{margin:10px 0 0}
.meta-row{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;min-width:0;margin:8px 4px 0}
.meta-row .footer-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:5px;min-height:36px;margin:0;padding:5px 7px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;line-height:1.2;text-decoration:none;white-space:nowrap}
.meta-row .footer-button[hidden]{display:none}
.meta-row .footer-button svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.meta-row .footer-button:hover{color:var(--blue);background:#edf5fd}
.meta-row .footer-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* Show full product silhouettes without clipping or a gallery frame. */
.visual img.tablet-shot,.visual.loading img.tablet-shot{object-fit:contain!important;transform:scale(2.2);padding:24px 10px 112px}
.visual img.iphone-full-shot,.visual.loading img.iphone-full-shot{object-fit:contain;transform:scale(1.04);padding:24px 8px}
.visual img.desktop-mac-shot,.visual.loading img.desktop-mac-shot{object-fit:contain;transform:none;padding:24px 8px 110px}
#storageOptions.capacity-options{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}
#storageOptions.capacity-options .choice{min-width:0;width:100%;padding:0 4px;white-space:nowrap;font-size:13px}
#storageOptions[hidden],.mac-storage-options[hidden]{display:none!important}
#configContent.mac-layout #storageSection>.label-row{display:none}
.mac-storage-options{display:block}
.mac-storage-field{min-width:0;display:grid;gap:7px}
.mac-storage-field .model-select{padding-left:11px;padding-right:30px}
/* Mac options share a compact grid; year headings stay inside the version menu. */
#configContent.mac-layout .config-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px 10px}
#configContent.mac-layout .config-settings>.section{min-width:0;margin:0}
#configContent.mac-layout #macFamilySection,#configContent.mac-layout #macVersionSection{grid-column:auto}
#configContent.mac-layout #macCoreSection,#configContent.mac-layout #storageSection{grid-column:auto}
#configContent.mac-layout #colorSection{grid-column:1/-1}
#configContent.mac-layout .model-select{padding-left:10px;padding-right:25px}
#macCoreSection{display:block}
#macCoreSection[hidden],#macVersionSection[hidden]{display:none!important}
.mac-field-label{display:flex;align-items:center;gap:4px;min-height:28px}
.mac-field-label .label{font-size:14px;white-space:nowrap}
.mac-storage-field{gap:4px}
.mac-help-button{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:5px;border:0;border-radius:50%;background:transparent;color:var(--blue);cursor:pointer;flex:0 0 28px}
.mac-help-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.mac-help-button:hover{background:#edf5fd}
.mac-help-button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.mac-help-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:0;border-radius:22px;box-shadow:0 24px 80px #0003;color:var(--ink);background:#fff;overflow-y:auto;overscroll-behavior:contain}
.mac-help-dialog::backdrop{background:#0005;backdrop-filter:blur(4px)}
.mac-help-dialog .history-head{align-items:flex-start;gap:12px}
.mac-help-dialog .history-head h2{font-size:24px;line-height:1.15;margin:7px 0 0}
.mac-help-dialog .history-head form{margin:0;flex:0 0 auto}
.mac-help-current{margin:18px 0 12px;color:var(--blue);font-size:14px;font-weight:600}
.mac-help-copy{font-size:16px;line-height:1.5}
.mac-help-copy p{margin:12px 0}
.mac-help-copy ul{padding-left:20px;margin:12px 0}
.mac-help-copy li{margin:9px 0}
.mac-help-copy h3{font-size:18px;margin:24px 0 8px}
.mac-help-copy h3:first-child{margin-top:0}
.mac-help-note{font-size:13px;line-height:1.45;color:var(--muted);margin:18px 0 12px}
@media(max-width:680px){
  .config-area{gap:2px}
  .configurator>.panel{padding:10px 16px 16px}
  .config-settings{padding-bottom:8px}
  #priceBlock{padding-top:8px}
  #priceBlock .price-quick-actions{top:6px}
  #configContent.mac-layout .config-settings{display:grid;gap:4px 8px;padding-bottom:4px}
  #configContent.mac-layout .label-row{margin-bottom:4px}
  #configContent.mac-layout .model-select{height:40px;font-size:14px}
  #configContent.mac-layout #colorSection:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:8px}
  #configContent.mac-layout #colorSection .label-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;min-width:0}
  #configContent.mac-layout #colorSection .colors{gap:6px}
  .mac-help-dialog{padding:20px}
  .mac-storage-options{gap:8px}
  .mac-storage-field{gap:4px}
  .mac-storage-field .model-select{height:40px;font-size:14px}
  .visual img.tablet-shot,.visual.loading img.tablet-shot{padding:8px 12px;transform:scale(1.25)}
  .visual img.iphone-full-shot,.visual.loading img.iphone-full-shot{padding:0;transform:scale(1.12)}
  .visual img.desktop-mac-shot,.visual.loading img.desktop-mac-shot{padding:0;transform:none}
  #storageOptions.capacity-options .choice{font-size:12px}
  #configContent.mac-layout .recommendation{grid-column:1/-1}
  .meta-row{gap:5px;margin:0 1px;min-height:36px}
  .meta-row .footer-button{min-height:36px;padding:5px 6px}
}
@media(max-width:380px),(max-height:690px) and (max-width:680px){
  .configurator>.panel{padding:8px 13px 12px}
  #configContent.mac-layout .model-select{font-size:13px}
  #priceBlock{padding-top:7px}
}

.history-source{display:inline-flex;margin-top:8px;font-size:12px;color:#0071e3;text-decoration:none}.history-source:hover{text-decoration:underline}.history-source[hidden]{display:none}
