/* The quiz result on the product page (skybuds-quiz-personalization.js), in the kit.
   The picker badge uses the hero's variables; the "Why" section carries .pdp for the tokens.
   Nothing here sits in the buy box: the first screen never moves when the answers arrive. */

/* The picker marks the match: a yellow badge with a navy check on its face, the quiz's own
   best-match colours. Absolutely placed, so the pill keeps its size; the face clips its photo
   itself so the badge can sit over its edge. */
.skybuds-charpicker__item.is-quiz-match .skybuds-charpicker__avatar { position: relative; overflow: visible; }
.skybuds-charpicker__item.is-quiz-match .skybuds-charpicker__img { border-radius: 50%; }
.sbq-pick-badge {
  position: absolute; right: -5px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--h-yellow, #FFDF68); border: 2px solid #fff; box-shadow: 0 2px 0 #E8B93A;
  pointer-events: none; animation: sbq-badge-pop .5s .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.sbq-pick-badge svg { display: block; width: 100%; height: 100%; }
.sbq-pick-badge circle { fill: none; }
.sbq-pick-badge path { stroke: var(--h-navy, #173F79); stroke-width: 3.4; }
@keyframes sbq-badge-pop { from { transform: scale(0); } }
@media (max-width: 767px) { .sbq-pick-badge { width: 18px; height: 18px; right: -4px; bottom: -2px; border-width: 1.5px; } }
@media (max-width: 380px) { .sbq-pick-badge { width: 16px; height: 16px; right: -3px; } }
@media (prefers-reduced-motion: reduce) { .sbq-pick-badge { animation: none; } }

/* "Why Ash": navy, so it continues the proof ribbon above it and the next section's navy wave. */
.sbq-why { background: var(--navy); color: #fff; padding: 30px 0 46px; margin-top: -1px; }
.sbq-why .pdp-head { text-align: center; }
.sbq-why .pdp-eyebrow { margin: 0; }
.sbq-why .pdp-h2 { color: #fff; font-size: clamp(32px, 8.6vw, 54px); }
/* their answers (age, vibe) as chips under the title */
.sbq-why__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; }
.sbq-why__chips li { padding: 8px 14px; border-radius: 999px; background: var(--yellow-soft); color: var(--navy); font-weight: 800; font-size: 15px; line-height: 1.2; }
/* on another bud's page: back to the match, a 48px pill with a press state */
.sbq-why__back {
  display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; min-height: 48px; margin: 18px auto 0; padding: 8px 18px 8px 10px;
  border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: left;
  box-shadow: 0 4px 0 #E8B93A; transition: transform .14s ease, box-shadow .14s ease;
}
.sbq-why__back svg { flex: none; width: 28px; height: 28px; fill: var(--navy); }
.sbq-why__back b { font-weight: 800; }
.sbq-why__back-arrow { font-size: 20px; line-height: 1; transition: transform .2s var(--pop); }
.sbq-why__back:hover .sbq-why__back-arrow { transform: translateX(3px); }
.sbq-why__back:active { transform: translateY(3px); box-shadow: 0 1px 0 #E8B93A; }
.sbq-why__back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sbq-why__grid { list-style: none; display: grid; gap: 14px; margin: 24px auto 0; padding: 0; max-width: 1080px; }
.sbq-why__card { background: #fff; color: var(--navy); border-radius: 26px; padding: 18px 20px 20px; box-shadow: 0 6px 0 #0E2A55; }
.sbq-why__topic { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink); } /* orange text is --orange-ink (4.5:1 on white); --orange-deep is 4.25:1 */
.sbq-why__said { margin: 8px 0 0; font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.sbq-why__line { margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed #F0E4CF; font-weight: 600; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
@media (min-width: 900px) {
  .sbq-why { padding: 44px 0 64px; }
  .sbq-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 32px; }
  /* The three cards share their rows, so a quote that wraps pushes every divider down together. */
  .sbq-why__card { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; padding: 24px 26px 26px; }
}

/* The example chat (2026-09-24): a wide white card under the three reasons, about what the child
   loves, with the kit's chat bubbles (the home page's friends): the child on the right in yellow,
   the bud on the left in its own colour (--ink) with its face. */
.sbq-chat { max-width: 720px; margin: 18px auto 0; padding: 18px 20px 20px; border-radius: 26px; background: #fff; color: var(--navy); box-shadow: 0 6px 0 #0E2A55; }
.sbq-chat__lines { display: grid; gap: 10px; margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed #F0E4CF; }
.sbq-chat__line { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.sbq-chat__line--kid { justify-content: flex-end; }
.sbq-chat__words { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-weight: 600; font-size: 17px; line-height: 1.4; text-wrap: pretty; }
.sbq-chat__line--kid .sbq-chat__words { background: var(--yellow-soft); border-bottom-right-radius: 6px; }
.sbq-chat__line--bud .sbq-chat__words { background: #fff; border: 2.5px solid var(--ink, var(--orange)); border-bottom-left-radius: 6px; }
.sbq-chat__face { flex: none; width: 40px; height: 44px; object-fit: contain; }
.sbq-chat__line--cont .sbq-chat__face { visibility: hidden; }
.sbq-chat__note { margin: 14px 0 0; font-weight: 600; font-size: 14px; line-height: 1.45; opacity: .82; }
/* quiz2's own line under everything that quotes its answers */
.sbq-why__legal { margin: 22px auto 0; max-width: 42ch; text-align: center; font-weight: 600; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
@media (min-width: 900px) {
  .sbq-chat { margin-top: 26px; padding: 24px 28px 26px; }
  .sbq-chat__words { max-width: 70%; font-size: 18px; }
}
