/* Local review treatment. Shared site and Shopping client remain unchanged. */
.mac-demo { padding-block: 40px 72px; width: min(1120px, calc(100% - 112px)); }
.mac-demo .demo-intro { text-align: center; margin: 0 auto 32px; }
.mac-demo h1 { max-width: none; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.04em; }
.mac-demo .lead { max-width: 680px; margin: 16px auto 0; font-size: 17px; line-height: 1.5; }
.mac-demo .notice { max-width: 780px; margin: 12px auto 0; font-size: 12px; line-height: 1.6; color: #666; }
.app-window { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #cececc; border-radius: 14px; background: #fff; box-shadow: 0 32px 64px -22px #302b2626, 0 10px 24px -12px #302b2626, 0 1px 3px #302b2610; }
.window-titlebar { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #dededb; background: linear-gradient(#f8f8f7, #eeeeed); box-shadow: inset 0 1px #fff; }
.window-title { font-size: 13px; font-weight: 400; letter-spacing: .01em; color: #52524f; }
.window-lights { display: flex; gap: 8px; position: absolute; left: 18px; }
.window-lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff6058; box-shadow: inset 0 0 0 1px #00000012; }
.window-lights span:nth-child(2) { background: #ffbd2e; }
.window-lights span:nth-child(3) { background: #28c840; }
.window-mark { width: 17px; height: 17px; color: #8e8e89; position: absolute; right: 18px; }
.mac-demo form.window-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto; gap: 16px; padding: 22px 28px; margin: 0; border-bottom: 1px solid #e9e9e6; background: #fff; }
.mac-demo .window-toolbar label { gap: 7px; min-width: 0; font-size: 12px; font-weight: 400; color: #585854; }
.mac-demo input:not([type="checkbox"]), .mac-sheet input:not([type="radio"]) { height: 44px; border-color: #d8d8d3; background: #fcfcfb; font-size: 14px; border-radius: 7px; color: #292929; }
.mac-demo button, .mac-sheet button { min-height: 44px; font-size: 13px; font-weight: 400; border-radius: 7px; padding: 11px 16px; transition: background .15s, box-shadow .15s; }
.mac-demo #search, .mac-demo #compare, .mac-sheet #prepare { background: var(--orange-bright); border-color: #ff792e; color: #292929; box-shadow: inset 0 1px 1px #ffffff55, 0 2px 4px #ed4b0a12; }
.mac-demo #search:hover:not(:disabled), .mac-demo #compare:hover:not(:disabled), .mac-sheet #prepare:hover:not(:disabled) { background: #ff762f; }
.mac-demo :is(button,input,summary,a,.window-content):focus-visible, .mac-sheet :is(button,input,a):focus-visible { outline: 2px solid #923405; outline-offset: 3px; }
.window-content { height: clamp(380px, calc(100svh - 550px), 600px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 28px 24px; background: #fafaf9; scroll-padding-block: 24px; }
.mac-demo .results-status { min-height: 60px; display: flex; align-items: center; padding: 14px 28px; background: #fafaf9; }
.mac-demo #status { font-size: 12px; line-height: 1.6; margin: 0; min-height: 20px; color: #5c5c56; }
.mac-demo #status.warning { color: #88410c; }
.mac-demo .results { gap: 16px; min-height: 250px; align-items: stretch; }
.mac-demo .results:empty { display: block; position: relative; border: 1px dashed #d9d9d3; border-radius: 8px; background: linear-gradient(135deg, #fff, #f7f7f4); }
.mac-demo .results:empty::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); border: 1px solid #cecec8; border-radius: 8px; box-shadow: 10px 10px 0 -1px #fafaf9, 10px 10px 0 0 #deded8; }
.mac-demo .results[aria-busy="true"]:empty::after { border-radius: 50%; border: 2px solid #e2ded9; border-top-color: #c44708; box-shadow: none; animation: demo-spin 1s linear infinite; }
@keyframes demo-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mac-demo .product { display: flex; flex-direction: column; border-color: #e0e0da; border-radius: 9px; box-shadow: 0 2px 4px #27272003; }
.mac-demo .product img { flex: 0 0 auto; height: 175px; padding: 16px; background: #fff; border-bottom: 1px solid #f1f1ed; }
.mac-demo .product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.mac-demo .product h2 { font-size: 19px; line-height: 1.25; margin: 12px 0 8px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mac-demo .product p { font-size: 11px; line-height: 1.55; margin: 0 0 10px; color: #62625c; overflow-wrap: anywhere; }
.mac-demo .product .price { font-size: 17px !important; margin-bottom: 12px; }
.mac-demo .product label { min-height: 30px; font-size: 11px; color: #62625c; cursor: pointer; }
.mac-demo input[type="checkbox"], .mac-sheet input[type="radio"] { accent-color: #bd430c; width: 16px; height: 16px; flex-shrink: 0; }
.mac-demo .product:has(input:checked) { border-color: #d26430; box-shadow: 0 0 0 1px #d26430; }
.mac-demo .product button { margin-top: auto; width: 100%; background: #fff; border-color: #d8d8d2; color: #333; font-size: 12px; }
.mac-demo .product button:hover { background: #f4f4f0; }
.mac-demo #compare-controls { position: sticky; bottom: -24px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px -28px 0; padding: 14px 28px; border-block: 1px solid #e4e4dd; background: #fffffff5; backdrop-filter: blur(12px); }
.mac-demo #compare-controls[hidden] { display: none; }
.mac-demo #compare-controls p { margin: 0; font-size: 12px; }
.mac-demo #comparison:empty { margin: 0; }
.mac-demo #comparison:not(:empty) { margin-top: 28px; padding: 24px; border: 1px solid #deded7; border-radius: 10px; background: #fff; }
.mac-demo #comparison h2 { font-size: 26px; margin-bottom: 12px; }
.mac-demo .small { font-size: 12px; line-height: 1.65; }
.mac-demo .table-scroll { border: 1px solid #e0e0da; border-radius: 8px; margin-top: 18px; }
.mac-demo .table-scroll:focus-visible { outline: 2px solid #923405; outline-offset: 3px; }
.mac-demo th, .mac-demo td { font-size: 12px; padding: 14px; border-color: #e6e6e1; min-width: 145px; }
.mac-demo th { background: #f7f7f4; font-weight: 400; }
.mac-demo tbody th { width: 145px; }
.mac-demo .code.developer-panel { margin-top: 24px; border-top: 1px solid #deded8; }
.developer-panel summary { position: relative; padding: 18px 4px; font-size: 12px; font-weight: 400; cursor: pointer; color: #55554f; }
.developer-content { padding: 0 4px 4px; }
.developer-content>p { font-size: 12px; color: #65655e; }
.mac-demo #source-status { margin: 14px 0 0; font-size: 11px; }
.mac-demo .code-grid { gap: 14px; margin-top: 20px; }
.mac-demo .code-grid h3 { font-size: 14px; margin-bottom: 10px; }
.mac-demo pre { font-size: 11px; line-height: 1.6; max-height: 320px; padding: 16px; background: #fff; border-color: #deded8; }
.window-scrim { position: absolute; z-index: 4; inset: 44px 0 0; background: #2929253b; opacity: 0; pointer-events: none; transition: opacity .15s; }
.app-window:has(dialog[open]) .window-scrim { opacity: 1; }
.mac-sheet { position: fixed; inset: var(--sheet-top, 100px) auto auto var(--sheet-left, 24px); margin: 0; width: var(--sheet-width, min(720px, calc(100vw - 48px))); max-height: var(--sheet-height, calc(100dvh - 120px)); padding: 0; border-color: #c7c7c2; border-radius: 10px; background: #fff; box-shadow: 0 16px 50px #18181238, 0 2px 6px #18181220; overscroll-behavior: contain; }
.mac-sheet::backdrop { background: transparent; }
.sheet-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 1; padding: 8px 20px; background: #f6f6f3f5; backdrop-filter: blur(12px); border-bottom: 1px solid #e0e0db; font-size: 12px; color: #62625d; }
.mac-sheet .close { float: none; min-height: 36px; padding: 7px 13px; font-size: 12px; }
.mac-sheet #offer-content { padding: 24px; min-height: 220px; }
.mac-sheet h2 { font-size: 26px; line-height: 1.2; padding-right: 0; margin-bottom: 12px; }
.mac-sheet .small { color: #62625b; font-size: 12px; line-height: 1.6; }
.mac-sheet .offers { margin: 20px 0; }
.mac-sheet .offers legend { font-size: 12px; }
.mac-sheet .offers label { padding: 14px; border-color: #d8d8d1; font-size: 14px; border-radius: 7px; }
.mac-sheet .offers label:has(input:checked) { border-color: #cb632f; background: #fff9f5; }
.mac-sheet small { font-size: 11px; line-height: 1.6; }
.mac-sheet #offer-facts dl { grid-template-columns: 140px minmax(0, 1fr); font-size: 11px; gap: 8px 20px; padding: 18px; border: 1px solid #e8e8e1; border-radius: 7px; background: #fafaf8; }
.mac-sheet .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mac-sheet .offer-details { margin-top: 24px; border-top: 1px solid #e0e0d9; }
.mac-sheet .offer-details summary { padding-block: 16px 4px; cursor: pointer; color: #5c5c56; font-size: 12px; }
.mac-sheet .offer-details summary:focus-visible { outline: 2px solid #923405; outline-offset: 3px; }
.mac-sheet #refresh { background: #fff; color: #333; border-color: #d8d8d2; }
.mac-sheet .handoff { background: #f4f8f2; border-color: #d5e1cd; padding: 18px; }
.mac-sheet .handoff h3 { font-size: 22px; }
.mac-sheet .handoff p { font-size: 13px; }
.mac-sheet .handoff code { display: block; padding: 12px; border: 1px solid #dae2d5; border-radius: 5px; background: #ffffff80; font: 11px/1.6 var(--mono); }
.mac-sheet .handoff a { font-size: 12px; color: #314c29; }
@media (max-width: 1000px) {
  .mac-demo { width: calc(100% - 64px); }
  .mac-demo form.window-toolbar { grid-template-columns: minmax(0, 1fr) 180px; padding: 20px; gap: 12px; }
  .mac-demo .window-toolbar label:first-child { grid-column: 1 / -1; }
  .window-content { padding-inline: 20px; }
  .mac-demo .results-status { padding-inline: 20px; }
  .mac-demo .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mac-demo #compare-controls { margin-inline: -20px; padding-inline: 20px; }
}
@media (max-width: 600px) {
  .mac-demo { width: calc(100% - 24px); padding-block: 28px 40px; }
  .mac-demo .demo-intro { margin-inline: 12px; margin-bottom: 24px; }
  .mac-demo h1 { font-size: 32px; }
  .mac-demo .lead { font-size: 15px; margin-top: 12px; }
  .mac-demo .notice { font-size: 11px; }
  .app-window { border-radius: 10px; }
  .window-titlebar { height: 38px; }
  .window-lights { left: 13px; gap: 6px; }
  .window-lights span { width: 10px; height: 10px; }
  .window-title { font-size: 12px; }
  .window-mark { right: 13px; width: 15px; }
  .mac-demo form.window-toolbar { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .mac-demo .window-toolbar label:first-child { grid-column: auto; }
  .mac-demo .window-toolbar label { font-size: 11px; }
  .mac-demo input:not([type="checkbox"]):not([type="radio"]), .mac-demo select { font-size: 16px; }
  .window-content { height: min(660px, 80svh); min-height: 400px; padding: 0 16px 20px; }
  .mac-demo .results-status { padding-inline: 16px; }
  .mac-demo .results { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mac-demo .product img { height: 210px; }
  .mac-demo .product h2 { font-size: 21px; }
  .mac-demo #compare-controls { bottom: -20px; margin-inline: -16px; padding: 12px 16px; flex-direction: column; gap: 10px; align-items: stretch; }
  .mac-demo #comparison:not(:empty) { padding: 16px; }
  .mac-demo #comparison h2 { font-size: 23px; }
  .mac-demo .code-grid { grid-template-columns: 1fr; }
  .mac-demo th, .mac-demo td { min-width: 125px; }
  .window-scrim { top: 38px; }
  .mac-sheet { border-radius: 8px; }
  .sheet-topline { padding: 8px 14px; }
  .mac-sheet #offer-content { padding: 16px; }
  .mac-sheet h2 { font-size: 23px; }
  .mac-sheet #offer-facts dl { grid-template-columns: 1fr; gap: 4px; padding: 14px; }
  .mac-sheet #offer-facts dd { margin-bottom: 8px; }
  .mac-sheet .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .mac-demo *, .mac-sheet, .mac-sheet * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
