/* ONYX Kitchen & Bath: Warranty & repairs (/warranty/).
   The steps, problem cards, details grid, summary card and done state come from book.css;
   this file adds the cabinet picker and the photo thumbnails. */

.wr-intro{margin:0 0 24px;max-width:40rem}
.wr-intro a{color:var(--onyx);text-decoration:underline 1px;text-underline-offset:.2em}

/* ---------- Cabinet picker: line drawings, pick any, 2-up then 4-up ---------- */
.wr-cabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line-strong);border:1px solid var(--line-strong)}
@media (min-width:768px){.wr-cabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
.wr-cab{position:relative;display:grid;grid-template-rows:auto auto 1fr;align-content:start;gap:4px;min-height:172px;padding:20px;background:#fff;cursor:pointer;transition:background-color var(--t-fast)}
.wr-cab input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.wr-cab:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:3px;z-index:1}
.wr-cab:hover,.wr-cab:has(input:checked){background:var(--stone-50)}
.wr-cab:has(input:checked){box-shadow:inset 0 0 0 2px var(--onyx)}
.wr-cab:has(input:checked)::after{content:"";position:absolute;top:26px;right:20px;width:12px;height:6px;border-left:1.5px solid var(--onyx);border-bottom:1.5px solid var(--onyx);transform:rotate(-45deg);pointer-events:none}
.wr-cab:has(input[aria-invalid=true]){background:#fff}
.wr-cab__art{width:48px;height:48px;margin-bottom:12px;fill:none;stroke:var(--onyx);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.wr-cab__art .wr-cab__ctx{stroke:var(--fog-400)}
.wr-cab__name{padding-right:24px;font:500 1rem/1.3 var(--font-sans);color:var(--text);text-wrap:balance}
.wr-cab__line{font-size:var(--fs-small);line-height:1.45;color:var(--text-3)}
@media (max-width:479px){
  .wr-cab{min-height:156px;padding:16px}
  .wr-cab__art{width:40px;height:40px;margin-bottom:10px}
  .wr-cab:has(input:checked)::after{top:22px;right:16px}}

/* ---------- What happened ---------- */
.wr-types{margin-bottom:32px}
.wr-desc{max-width:none}

/* ---------- Photos: a drop zone, then square thumbnails ---------- */
.wr-drop{min-height:132px}
.wr-drop .drop__text{display:grid;gap:6px}
.wr-drop__go{font:500 1rem/1.3 var(--font-sans);color:var(--onyx)}
.wr-drop__go::before{content:"";display:inline-block;width:20px;height:20px;margin:-3px 10px 0 0;vertical-align:middle;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M2.75 6.25h3.5l1.5-2.5h4.5l1.5 2.5h3.5v10H2.75z'/%3E%3Ccircle cx='10' cy='10.75' r='3.25'/%3E%3C/svg%3E") center/20px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M2.75 6.25h3.5l1.5-2.5h4.5l1.5 2.5h3.5v10H2.75z'/%3E%3Ccircle cx='10' cy='10.75' r='3.25'/%3E%3C/svg%3E") center/20px no-repeat}
.wr-drop:has(input[aria-invalid=true]){border-color:var(--danger)}
.wr-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px;margin:16px 0 0;padding:0;list-style:none}
.wr-thumbs[hidden]{display:none}
.wr-thumb{position:relative;aspect-ratio:1;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--stone-100)}
.wr-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.wr-thumb__name{display:grid;place-items:center;height:100%;padding:12px;font-size:.75rem;line-height:1.35;color:var(--text-2);text-align:center;overflow-wrap:anywhere}
.wr-thumb__x{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:rgb(12 11 10/.72);color:#fff;cursor:pointer}
.wr-thumb__x::before,.wr-thumb__x::after{content:"";grid-area:1/1;width:14px;height:1.5px;background:currentColor;transform:rotate(45deg)}
.wr-thumb__x::after{transform:rotate(-45deg)}
.wr-thumb__x:hover{background:var(--onyx)}
.wr-thumb__x:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* ---------- The charge acknowledgement ---------- */
.wr-agree .check{align-items:flex-start;font-size:.9375rem;line-height:1.5;color:var(--text-2)}
.wr-agree .check input{margin-top:2px}
.wr-agree .check input[aria-invalid=true]{outline:1.5px solid var(--danger);outline-offset:2px}
