/* Wave 6 (wave6.py), linked last in every page's head, after wave5.css. Existing tokens only; corners 6 px; no pills; 44 px targets. */

/* 1. The product photo viewer (M-038, wave6.js): the header's navy behind the photo, its ink for the words; the site's light buttons */
.detail-image img.main-photo.w6-zoomable{cursor:zoom-in}
dialog.w6-lb{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--navy);
  color:var(--header-ink);overflow:hidden}
dialog.w6-lb[open]{display:flex;flex-direction:column}
dialog.w6-lb::backdrop{background:var(--navy)}
.w6-lb-bar{display:flex;align-items:center;gap:8px;padding:8px 16px;flex:none}
.w6-lb-n{font-size:14px;margin-right:auto;white-space:nowrap}
.w6-lb-zoom{display:flex;gap:8px}
.w6-lb button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;font:inherit;font-size:14px;font-weight:600;
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;cursor:pointer}
.w6-lb button:disabled{opacity:.5;cursor:default}
.w6-lb button[hidden]{display:none}
.w6-lb button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.w6-lb button.w6-ic{padding:0;width:44px}
.w6-lb-stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;cursor:zoom-in;user-select:none;-webkit-user-select:none}
.w6-lb-stage.w6-in{cursor:grab}
.w6-lb-stage.w6-drag{cursor:grabbing}
.w6-lb-stage img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;will-change:transform;-webkit-user-drag:none;pointer-events:none}
.w6-lb .w6-lb-prev,.w6-lb .w6-lb-next{position:absolute;top:calc(50% - 22px);transform:none;z-index:1}  /* no transform: the site's pressed button moves by one */
.w6-lb .w6-lb-prev{left:16px}
.w6-lb .w6-lb-next{right:16px}
.w6-lb-cap{flex:none;margin:0;padding:8px 16px 16px;font-size:14px;line-height:1.4;color:var(--header-quiet);text-align:center;overflow-wrap:anywhere}
.w6-lb-cap:empty{display:none}
@media (max-width:420px){.w6-lb-bar{padding:8px;gap:4px}.w6-lb-zoom{gap:4px}.w6-lb .w6-lb-prev{left:8px}.w6-lb .w6-lb-next{right:8px}}

/* 2. Write a review's product search (M-273): the line that says the next part didn't come, beside its link to try again */
.rs-more .w6-fail{color:var(--muted);font-size:14px}

/* 3. The footer's contacts (M-508): one address per line on phones, same words, the dots between them only where they share a line */
/* each address a 44px row; the link's own box is 44px tall (its padding) without moving the line it sits on (the same negative margin), so a
   wrapped "(copyright and legal notices)" stays right under it */
@media (max-width:600px){.w6-contact>span{display:block}.w6-contact>.w6-sep{display:none}.w6-contact>span+span{padding:13px 0}}
@media (max-width:600px),(any-pointer:coarse){.w6-contact a{display:inline-block;padding:13px 0;margin:-13px 0}}

/* 4. Forced colors (M-506, Windows high contrast): a fill is dropped there, so every button, chip, switch and store button keeps a visible edge */
@media (forced-colors:active){
  .btn,button,[role=button],[role=switch],input[type=submit],input[type=button],summary.btn,a.btn,.chip,.ux-chip,.category-chip,.deal-chip,.cp-chip,.iv-chip,
  .tag,.listed-toggle .box,.dl-filter a,.pm-cc a,.le-cert-link .list-cert-name,.pm-sgo,.see,.home-deal-button,.seller-go,.view-now,.write-review,.pm-va{
    border:1px solid ButtonText!important;forced-color-adjust:auto}
  a.btn,a.pm-sgo,a.see,a.home-deal-button,a.seller-go,a.view-now,a.write-review,a.pm-va,.dl-filter a,.pm-cc a{border-color:LinkText!important}
  .btn:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid Highlight;outline-offset:2px}
  [aria-pressed=true],[aria-current=true],[aria-checked=true]{border-color:Highlight!important}
  dialog.w6-lb{border:1px solid CanvasText}
}
