/* Product page assistant (custom/product-ask). Two looks on .hdm-ask--a|c, sized small so they sit between buy box rows.
 * The panel, scrim, launcher and switcher sit on <body>, outside .hdm-pdx, so
 * they carry their own colors. */
.hdm-ask,.hdm-ask-panel,.hdm-ask-launcher{--ask-ink:#1a1d22;--ask-text:#39404a;--ask-muted:#5a6270;--ask-line:#d2d9e2;--ask-soft:#f2f5f9;--ask-blue:#115feb;--ask-blue-dark:#0b4fc6;--ask-sky:#f3f8ff;--ask-sky-line:#cfe0ff;font-family:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
.hdm-ask *,.hdm-ask-panel *{box-sizing:border-box}
.hdm-ask{margin:16px 0}
.hdm-pdx .hdm-pdx-buy > .hdm-ask[data-slot="after_keyspecs"]{margin:18px 0 0;order:3;min-width:0}
/* spot 3 sits in the gallery column under the key specs: give it its own grid row */
@media (min-width:1000px){
  .hdm-pdx .hdm-pdx-buy:has(> .hdm-ask){grid-template-rows:auto auto 1fr}
  .hdm-pdx .hdm-pdx-buy:has(> .hdm-ask) > .hdm-pdx-summary{grid-row:1/4}
  .hdm-pdx .hdm-pdx-buy > .hdm-ask{grid-column:1;grid-row:3}
}
.hdm-ask-head{display:flex;align-items:center;gap:6px;color:var(--ask-ink);font-weight:700;font-size:15px;line-height:1.3;margin-bottom:8px}
.hdm-ask-head .hdm-ask-spark{width:17px;height:17px}
.hdm-ask-spark{flex:none;color:var(--ask-blue)}
.hdm-ask ul.hdm-ask-pills,.hdm-ask-panel ul.hdm-ask-pills{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.hdm-ask .hdm-ask-pill,.hdm-ask-panel .hdm-ask-pill{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:5px 12px;border-radius:999px;font:600 14px/1.25 inherit;font-family:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.hdm-ask .hdm-ask-pill .hdm-ask-spark{width:14px;height:14px}
.hdm-ask-form{display:flex;align-items:center;gap:0;margin:0;position:relative}
.hdm-ask-form input{flex:1;min-width:0;height:52px;padding:0 58px 0 18px;border:1.5px solid var(--ask-line);border-radius:999px;font:400 17px/1 inherit;font-family:inherit;color:var(--ask-ink);background:#fff;-webkit-appearance:none;appearance:none}
.hdm-ask-form input:focus{outline:none;border-color:var(--ask-blue);box-shadow:0 0 0 3px rgba(17,95,235,.18)}
.hdm-ask-form .hdm-ask-send{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:var(--ask-blue);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.hdm-ask-form .hdm-ask-send:hover{background:var(--ask-blue-dark)}
.hdm-ask-inline{margin-top:16px}

/* ── a: Amazon style, grey outlined pills, answers in a side panel ───────── */
.hdm-ask--a .hdm-ask-form--top{display:none}
.hdm-ask--a .hdm-ask-pill{background:#fff;border:1.5px solid var(--ask-line);color:var(--ask-ink)}
.hdm-ask--a .hdm-ask-pill:hover{background:var(--ask-soft);border-color:#aab4c2}
.hdm-ask--a .hdm-ask-pill--ask{border-color:var(--ask-blue);color:var(--ask-blue-dark)}
.hdm-ask--a .hdm-ask-pill--ask:hover{background:var(--ask-sky)}

/* ── c: a search style box with small chips, answers in a chat window ───── */
.hdm-ask--c .hdm-ask-form--top{margin-bottom:8px}
.hdm-ask--c .hdm-ask-form--top input{height:42px;font-size:15px;padding-right:48px}
.hdm-ask--c .hdm-ask-form--top .hdm-ask-send{width:34px;height:34px;right:4px}
.hdm-ask--c .hdm-ask-form--top input{background:var(--ask-soft);border-color:transparent}
.hdm-ask--c .hdm-ask-form--top input:focus{background:#fff}
.hdm-ask--c .hdm-ask-pill{background:var(--ask-soft);border:0;color:var(--ask-text)}
.hdm-ask--c .hdm-ask-pill:hover{background:#e3e9f1;color:var(--ask-ink)}
.hdm-ask--c .hdm-ask-pill-more{display:none}

/* ── turns (question + answer), shared ───────────────────────────────────── */
.hdm-ask-q{margin:0 0 8px;font-weight:700;color:var(--ask-ink);font-size:17px;line-height:1.35}
.hdm-ask-a p{margin:0;font-size:17px;line-height:1.55;color:var(--ask-text)}
.hdm-ask-a p.hdm-ask-note{margin-top:10px;font-size:14px;color:var(--ask-muted)}
.hdm-ask-a p.hdm-ask-note a{color:var(--ask-blue-dark);font-weight:700;white-space:nowrap}
.hdm-ask-dots{display:inline-flex;gap:5px;padding:6px 0}
.hdm-ask-dots i{width:8px;height:8px;border-radius:50%;background:#9aa5b4;animation:hdm-ask-dot 1s infinite ease-in-out}
.hdm-ask-dots i:nth-child(2){animation-delay:.15s}
.hdm-ask-dots i:nth-child(3){animation-delay:.3s}
@keyframes hdm-ask-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

/* ── the panel (a = side panel, c = chat window) ─────────────────────────── */
.hdm-ask-scrim{position:fixed;inset:0;background:rgba(15,20,28,.38);z-index:99990}
.hdm-ask-scrim--c{background:transparent;pointer-events:none}
.hdm-ask-scrim[hidden],.hdm-ask-panel[hidden],.hdm-ask-launcher[hidden]{display:none}
.hdm-ask-panel{position:fixed;z-index:99991;background:#fff;color:var(--ask-text);display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(15,20,28,.22)}
.hdm-ask-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 4px 20px}
.hdm-ask-panel-title{display:flex;align-items:center;gap:8px;font-weight:800;font-size:19px;color:var(--ask-ink)}
.hdm-ask-close{width:44px;height:44px;border:0;background:transparent;border-radius:50%;display:grid;place-items:center;color:var(--ask-ink);cursor:pointer;padding:0}
.hdm-ask-close:hover{background:var(--ask-soft)}
.hdm-ask-panel-sub{margin:0;padding:0 20px 12px;font-size:14px;color:var(--ask-muted);border-bottom:1px solid #e3e7ed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdm-ask-thread{flex:1;overflow-y:auto;padding:16px 20px;overscroll-behavior:contain}
.hdm-ask-thread .hdm-ask-turn{margin-bottom:20px}
.hdm-ask-panel ul.hdm-ask-pills--panel{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:10px 20px 4px;scrollbar-width:none}
.hdm-ask-panel ul.hdm-ask-pills--panel::-webkit-scrollbar{display:none}
.hdm-ask-panel ul.hdm-ask-pills--panel li{flex:none}
.hdm-ask-panel .hdm-ask-pill{min-height:40px;padding:7px 14px;font-size:15px;background:#fff;border:1.5px solid var(--ask-line);color:var(--ask-ink);white-space:nowrap}
.hdm-ask-panel .hdm-ask-pill:hover{background:var(--ask-soft)}
.hdm-ask-panel .hdm-ask-form{padding:10px 16px 16px}
.hdm-ask-panel .hdm-ask-form .hdm-ask-send{right:22px}

/* a: slides in from the right */
.hdm-ask-panel--a{top:0;right:0;bottom:0;width:min(440px,100%);transform:translateX(100%);transition:transform .22s ease}
.hdm-ask-panel--a.is-in{transform:none}
/* c: a chat window, shopper on the right in blue, helper on the left in grey */
.hdm-ask-panel--c{right:24px;bottom:24px;width:400px;height:min(600px,calc(100vh - 48px));border-radius:18px;overflow:hidden;opacity:0;transform:translateY(12px);transition:opacity .18s,transform .18s}
.hdm-ask-panel--c.is-in{opacity:1;transform:none}
.hdm-ask-panel--c .hdm-ask-panel-head{background:var(--ask-blue);color:#fff;padding:12px 10px 12px 18px}
.hdm-ask-panel--c .hdm-ask-panel-title,.hdm-ask-panel--c .hdm-ask-close,.hdm-ask-panel--c .hdm-ask-spark{color:#fff}
.hdm-ask-panel--c .hdm-ask-close:hover{background:rgba(255,255,255,.15)}
.hdm-ask-panel--c .hdm-ask-panel-sub{background:var(--ask-blue);color:#dce8ff;border:0;padding-bottom:12px}
.hdm-ask-panel--c .hdm-ask-thread{background:#f7f9fc}
.hdm-ask-panel--c .hdm-ask-q{margin:0 0 10px auto;max-width:85%;width:fit-content;background:var(--ask-blue);color:#fff;font-weight:600;padding:10px 14px;border-radius:16px 16px 4px 16px}
.hdm-ask-panel--c .hdm-ask-a{max-width:90%;background:#fff;border:1px solid #e3e7ed;padding:12px 14px;border-radius:16px 16px 16px 4px}
.hdm-ask-launcher{position:fixed;right:20px;bottom:20px;z-index:99980;display:inline-flex;align-items:center;gap:8px;min-height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--ask-blue);color:#fff;font:700 16px/1 Figtree,system-ui,sans-serif;box-shadow:0 10px 28px rgba(17,95,235,.35);cursor:pointer}
.hdm-ask-launcher .hdm-ask-spark{color:#fff}
html.hdm-ask-open .hdm-ask-launcher{display:none}

/* ── the A B C switcher (test sites only) ────────────────────────────────── */


/* ── designs (spot 2 and 3): d1 card, d2 blue strip, d3 question box first ─ */
.hdm-ask-tag{display:none}
.hdm-ask.hdm-ask--d1 .hdm-ask-pill,.hdm-ask.hdm-ask--d2 .hdm-ask-pill,.hdm-ask.hdm-ask--d3 .hdm-ask-pill{min-height:34px;font-size:14px}

/* d1: a white card with a light blue head, pills in two even columns, a slim box under them */
.hdm-ask.hdm-ask--d1{border:1px solid var(--ask-line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(15,20,28,.05)}
.hdm-ask.hdm-ask--d1 .hdm-ask-head{margin:0;padding:11px 16px;background:var(--ask-sky);border-bottom:1px solid var(--ask-sky-line)}
.hdm-ask.hdm-ask--d1 .hdm-ask-tag{display:inline;margin-left:auto;font-size:12px;font-weight:600;color:var(--ask-muted)}
.hdm-ask.hdm-ask--d1 ul.hdm-ask-pills{padding:12px 14px 4px}
.hdm-ask.hdm-ask--d1 .hdm-ask-pill{width:100%;justify-content:space-between;border-radius:10px;background:#fff;border:1px solid var(--ask-line);color:var(--ask-ink);font-weight:600}
.hdm-ask.hdm-ask--d1 .hdm-ask-pill[data-q]::after{content:"\203A";font-size:20px;line-height:1;color:var(--ask-blue);margin-left:8px}
.hdm-ask.hdm-ask--d1 .hdm-ask-pill:hover{border-color:var(--ask-blue);background:var(--ask-sky)}
.hdm-ask.hdm-ask--d1 .hdm-ask-pill-more{display:none}
.hdm-ask.hdm-ask--d1 .hdm-ask-form--top{display:flex;order:3;margin:6px 14px 14px}
.hdm-ask.hdm-ask--d1{display:flex;flex-direction:column}
.hdm-ask.hdm-ask--d1 .hdm-ask-form--top input{height:40px;font-size:15px;background:var(--ask-soft);border-color:transparent;padding-right:46px}
.hdm-ask.hdm-ask--d1 .hdm-ask-form--top .hdm-ask-send{width:32px;height:32px;right:4px}
@media (min-width:761px){
  .hdm-ask.hdm-ask--d1 ul.hdm-ask-pills{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .hdm-ask.hdm-ask--d1 ul.hdm-ask-pills li:nth-child(5){grid-column:1/-1}
}

/* d2: a light blue strip, title and pills on one swipe row, no box */
.hdm-ask.hdm-ask--d2{background:var(--ask-sky);border:1px solid var(--ask-sky-line);border-radius:12px;padding:10px 12px}
.hdm-ask.hdm-ask--d2 .hdm-ask-head{margin:0 0 8px;font-size:14px;color:var(--ask-blue-dark)}
.hdm-ask.hdm-ask--d2 .hdm-ask-form--top{display:none}
.hdm-ask.hdm-ask--d2 ul.hdm-ask-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent);padding-right:24px}
.hdm-ask.hdm-ask--d2 ul.hdm-ask-pills::-webkit-scrollbar{display:none}
.hdm-ask.hdm-ask--d2 ul.hdm-ask-pills li{flex:none}
.hdm-ask.hdm-ask--d2 .hdm-ask-pill{white-space:nowrap;background:#fff;border:1px solid var(--ask-sky-line);color:var(--ask-blue-dark)}
.hdm-ask.hdm-ask--d2 .hdm-ask-pill:hover{border-color:var(--ask-blue)}
.hdm-ask.hdm-ask--d2 .hdm-ask-pill-more{display:list-item;list-style:none}
.hdm-ask.hdm-ask--d2 .hdm-ask-pill--ask{background:var(--ask-blue);border-color:var(--ask-blue);color:#fff}
.hdm-ask.hdm-ask--d2 .hdm-ask-pill--ask .hdm-ask-spark{color:#fff}

/* d3: the question box leads, pills are small text chips after "Popular" */
.hdm-ask.hdm-ask--d3 .hdm-ask-head{display:none}
.hdm-ask.hdm-ask--d3 .hdm-ask-form--top{display:flex;margin:0 0 10px}
.hdm-ask.hdm-ask--d3 .hdm-ask-form--top input{height:48px;font-size:16px;border:1.5px solid var(--ask-blue);background:#fff;padding-left:44px;padding-right:52px;box-shadow:0 2px 10px rgba(17,95,235,.10)}
.hdm-ask.hdm-ask--d3 .hdm-ask-form--top::before{content:"";position:absolute;left:16px;top:50%;width:18px;height:18px;transform:translateY(-50%);background:var(--ask-blue);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.9 5.6L19.5 9.5l-5.6 1.9L12 17l-1.9-5.6L4.5 9.5l5.6-1.9z'/%3E%3Cpath d='M19 14l.9 2.6 2.6.9-2.6.9L19 21l-.9-2.6-2.6-.9 2.6-.9z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.9 5.6L19.5 9.5l-5.6 1.9L12 17l-1.9-5.6L4.5 9.5l5.6-1.9z'/%3E%3Cpath d='M19 14l.9 2.6 2.6.9-2.6.9L19 21l-.9-2.6-2.6-.9 2.6-.9z'/%3E%3C/svg%3E") center/contain no-repeat}
.hdm-ask.hdm-ask--d3 .hdm-ask-form--top .hdm-ask-send{width:38px;height:38px;right:5px}
.hdm-ask.hdm-ask--d3 ul.hdm-ask-pills{align-items:center;gap:6px}
.hdm-ask.hdm-ask--d3 ul.hdm-ask-pills::before{content:"Popular";flex:none;font-size:13px;font-weight:700;color:var(--ask-muted);margin-right:2px}
.hdm-ask.hdm-ask--d3 .hdm-ask-pill{min-height:30px;padding:4px 11px;font-size:13px;font-weight:600;background:var(--ask-soft);border:0;color:var(--ask-text)}
.hdm-ask.hdm-ask--d3 .hdm-ask-pill:hover{background:#e3e9f1;color:var(--ask-ink)}
.hdm-ask.hdm-ask--d3 .hdm-ask-pill-more{display:none}

/* ── phones ──────────────────────────────────────────────────────────────── */
@media (max-width:760px){
  .hdm-pdx .hdm-pdx-buy > .hdm-ask[data-slot="after_keyspecs"]{margin-top:-12px}
  .hdm-ask{max-width:100%;overflow:hidden}
  .hdm-ask ul.hdm-ask-pills{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
  .hdm-ask ul.hdm-ask-pills::-webkit-scrollbar{display:none}
  .hdm-ask ul.hdm-ask-pills li{flex:none}
  .hdm-ask .hdm-ask-pill{white-space:nowrap}
  .hdm-ask--c .hdm-ask-form--top input{font-size:16px}
  .hdm-ask-panel--a{top:auto;left:0;width:100%;height:82vh;height:82dvh;border-radius:20px 20px 0 0;transform:translateY(100%)}
  .hdm-ask-panel--a.is-in{transform:none}
  .hdm-ask-panel--c{inset:0;width:100%;height:100%;height:100dvh;border-radius:0}
  .hdm-ask-form input{font-size:16px}
  .hdm-ask-launcher{right:16px;bottom:16px}
}
@media (prefers-reduced-motion:reduce){.hdm-ask-panel{transition:none}.hdm-ask-dots i{animation:none}}
