/* Remove a Person or Object From Your Photo (loaded only on pages with Picker):
   the builder in large type for older customers, "What do you want to
   remove?", the photo with what will be removed marked, "Move everyone closer
   together?", and Before / After on the result. Every rule here applies to
   this page only. */

/* Builder: 18 px text, big clear headings, buttons at least 56 px tall */
.builder { font-size: 18px; }
.builder .label { font: 700 20px/1.25 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 26px 0 12px; }
.builder .label small { display: block; margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--muted); }
.builder > form > .label:first-child { margin-top: 10px; }
.up-btn { min-height: 64px; font-size: 20px; }
.btn.big, #go { min-height: 64px; font-size: 20px; white-space: normal; line-height: 1.2; text-align: center; flex-wrap: wrap; }
/* "Remove Them From My Photo" + "Free preview" is wider than a phone: wrap it (the
   site's .btn never wraps, which widened this page to 462 px on a 390 px phone). */
.title-card .btn { white-space: normal; line-height: 1.2; text-align: center; flex-wrap: wrap; }
/* Six example thumbnails (6 × 64 px) do not fit a phone's gallery card: wrap them. */
.thumbs { flex-wrap: wrap; }
.sticky-go .btn { white-space: normal; line-height: 1.2; min-height: 56px; }
.error { font-size: 18px; font-weight: 600; }
.pick b { font-size: 18px; }

/* The photo card once a photo is in: a small thumbnail and a big "Change",
   since the photo itself is shown large in the picker right under it. */
.pet.single .filled { grid-template-columns: 1fr; }
.pet.single .thumb { display: flex; align-items: center; gap: 14px; width: 100%; height: auto; aspect-ratio: auto; max-height: none; padding: 0; border: 0; background: none; border-radius: 12px; }
.pet.single .thumb img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.pet.single .thumb span { position: static; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 2px solid var(--burgundy); border-radius: 999px; background: #fff; color: var(--burgundy); font-size: 18px; font-weight: 700; }
@media (hover: hover) { .pet.single .thumb:hover span { background: var(--blush); } }
.label-pet { font-size: 20px; }

/* The picker: first "What do you want to remove?" — the box, example buttons that
   wrap onto lines, "Find it on my photo" and its answer line — then the photo. */
.picker { margin-top: 18px; }
.picker > .label { margin-top: 22px; }
.pk-ask label { cursor: pointer; }
.pk-text { display: block; width: 100%; min-height: 112px; padding: 12px 14px; border: 2px solid #a99686; border-radius: 12px; background: #fff; font-size: 20px; line-height: 1.4; resize: vertical; scroll-margin: 96px 0 140px; }
.pk-text:focus { outline: 3px solid var(--burgundy); outline-offset: 1px; border-color: var(--burgundy); }
.pk-text::placeholder { color: #7d7068; }
.pk-examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.pk-ex { min-height: 56px; max-width: 100%; padding: 8px 18px; border: 2px solid var(--burgundy); border-radius: 999px; background: #fff; color: var(--burgundy); font: 700 18px/1.2 var(--sans); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pk-ex:active { background: var(--blush); }
@media (hover: hover) { .pk-ex:hover { background: var(--blush); } }
.pk-ex:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.pk-find { margin-top: 16px; gap: 10px; }
.pk-find svg { flex: none; }
.btn.pk-find:disabled { opacity: .8; cursor: progress; }
.pk-find.pk-go { animation: pk-nudge .5s ease-in-out 2; }
.pk-find-msg { margin-top: 10px; min-height: 0; }
.pk-find-msg:empty { margin: 0; padding: 0; }
.picker[data-asking] .pk-find-msg::before, .picker[data-mode=finding] #pk-status::before { content: ""; display: inline-block; width: 18px; height: 18px; margin: 0 10px -2px 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--burgundy); animation: pk-spin 1s linear infinite; }
.picker > .pk-title { margin-top: 30px; }

.pk-stage { display: flex; justify-content: center; padding: 3px; }
#pk-canvas { display: block; max-width: 100%; border-radius: 14px; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 10px 26px -14px rgba(0, 0, 0, .55); touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; outline: none; }
#pk-canvas:focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--burgundy); }
.picker[data-mode=pick] #pk-canvas { cursor: pointer; }
.pk-status { margin: 14px 0 0; min-height: 1.5em; padding: 6px 10px; border-radius: 12px; font-size: 20px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--ink); text-wrap: balance; }
.pk-status.pk-miss { background: #fdecec; color: #8a1c1c; }
.picker.pk-need #pk-status, .picker.pk-need .pk-text { background: #fff1c9; box-shadow: 0 0 0 2px #b5893a; }
.picker.pk-need #pk-status { animation: pk-nudge .5s ease-in-out 2; }
.pk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 6px; }
.pk-count { margin: 0; flex: 1 1 12em; font-size: 20px; font-weight: 700; color: #a50e25; }
.pk-count:empty { display: none; }
.pk-tools { display: flex; gap: 8px; margin-left: auto; }
.pk-word { min-height: 56px; min-width: 88px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--burgundy); font-size: 19px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (hover: hover) { .pk-word:hover:not(:disabled) { background: var(--blush); } }
.pk-word:disabled { color: #8c7f76; text-decoration: none; cursor: default; }
.pk-word:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 2px; }
.picker[data-mode=text] .pk-row, .picker[data-mode=finding] .pk-row { display: none; }

/* "Move everyone closer together?" (shown by app.js while someone stays) and
   "Photo or painting?": two big cards side by side. The closer cards are drawn. */
.group[data-show=after] .picks, .group[data-show=people] .picks { grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-art { display: block; width: 100%; height: auto; aspect-ratio: 160 / 104; border-radius: 11px; background: var(--lightcream); }
.pk-art .pk-ground { stroke: #cdbfb2; stroke-width: 2; }
.pk-art .pk-man { fill: #6b5a50; }
.pk-art .pk-gone { fill: none; stroke: #c8102e; stroke-width: 2.5; stroke-dasharray: 5 4; }
.pk-art .pk-x circle { fill: #c8102e; }
.pk-art .pk-x path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.pk-art .pk-arrow { fill: none; stroke: var(--burgundy); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* Under the button: typed words but nothing marked */
.pk-typed { margin: 12px 4px 0; font-size: 18px; line-height: 1.35; color: var(--muted); text-align: center; text-wrap: balance; }

/* Result: Before / After toggle under the picture, the customer's photo laid over the result */
#ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; border: 1px solid var(--line); background: #fff; opacity: 1; transform: none; filter: none; min-height: 0; box-shadow: none; transition: none; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 420px; margin: 14px auto 0; padding: 4px; border: 2px solid var(--burgundy); border-radius: 999px; background: #fff; }
.ba button { min-height: 56px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--burgundy); font-size: 19px; font-weight: 700; cursor: pointer; }
.ba button[aria-pressed=true] { background: var(--burgundy); color: #fff; }
.ba button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.result-actions .pillbtn { min-height: 56px; padding: 0 24px; font-size: 18px; font-weight: 600; border-width: 2px; }
.btn.cta { min-height: 58px; font-size: 19px; white-space: normal; }
.pk-closed { max-width: 520px; margin: 12px auto 0; font-size: 18px; line-height: 1.35; text-align: center; color: var(--ink); }
.pillbtn.pk-flash { border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(104, 31, 37, .25); animation: pk-nudge .5s ease-in-out 3; }

@keyframes pk-spin { to { transform: rotate(360deg); } }
@keyframes pk-nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  .picker[data-asking] .pk-find-msg::before, .picker[data-mode=finding] #pk-status::before, .picker.pk-need #pk-status, .pk-find.pk-go, .pillbtn.pk-flash { animation: none; }
}
