/* "💬 שאלה למוכר" — the window shared by the item page and the 3D souk (ask-seller.js) */
  .offerbox { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
  .offerbox:empty { display: none; }
  .offerbox .offline { margin: 0; font-weight: 600; }
  .offerbox .offline.ok { color: var(--ok); }
  .offerform { padding: 14px; width: 100%; max-width: 420px; display: grid; gap: 4px; }
  .offsay { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 4px; padding: 10px 12px; line-height: 1.5; }
  .offwho { font-weight: 700; }
  /* 💬 שאל את המוכר — one button, a small window (owner, 2026-11-17) */
  /* the button floats over the item's picture (owner, 2026-11-17) */
  /* in the MIDDLE of the picture's top, pink with white letters (owner, 2026-11-18); ♥ / WhatsApp at the top-right */
  .askslot { position: absolute; top: 12px; left: 50%; right: auto; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 130px); }
  .stage .stagebtns { inset-inline-end: auto; right: 12px; left: auto; }
  .askbtn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; color: #fff;
    background: linear-gradient(180deg, #cc3c80, #a62b62); border: 1.5px solid rgba(255,255,255,.85); border-radius: 999px;
    padding: 8px 16px 8px 12px; min-height: 46px; box-shadow: 0 6px 18px rgba(184,51,106,.28); position: relative;
    animation: askFloat 3.2s ease-in-out infinite; transition: transform .2s, box-shadow .2s; }
  .askbtn:hover, .askbtn:focus-visible { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(184,51,106,.36); animation-play-state: paused; }
  .askbtn-ic { font-size: 1.35rem; line-height: 1; }
  .askbtn-t b { font-size: 1rem; font-weight: 700; white-space: nowrap; }
  .askbtn-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .askbtn.has::after { content: ''; position: absolute; top: -3px; inset-inline-end: -3px; width: 13px; height: 13px; border-radius: 50%; background: #1fae5b; border: 2px solid #fff; }
  .askbtn-on { position: absolute; bottom: -4px; inset-inline-start: 6px; }
  .askbtn-on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  @keyframes askFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  .askbtn .askbtn-t b { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
  .askbtn .askbtn-on { color: #fff; }
  .askbtn-on, .askstate.on { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ok); }
  .askbtn-on i, .askstate.on i { width: 9px; height: 9px; border-radius: 50%; background: #1fae5b; box-shadow: 0 0 0 3px rgba(31,174,91,.2); }
  html.ask-open { overflow: hidden; }
  .askwrap { position: fixed; inset: 0; z-index: 1100; background: rgba(20,10,20,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .askdlg { background: var(--card); color: var(--ink); width: min(440px, 100%); max-height: min(640px, calc(100vh - 32px)); display: flex; flex-direction: column;
    border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.3); overflow: hidden; }
  /* the chat window rises from below and settles with a small springy bounce */
  .askwrap { animation: askFade .5s ease-out; }
  .askdlg { animation: askRise 1.15s cubic-bezier(.25,.8,.3,1) both; }
  @keyframes askFade { from { background: rgba(20,10,20,0); } }
  @keyframes askRise { 0% { transform: translateY(100vh); } 70% { transform: translateY(-14px); } 84% { transform: translateY(6px); } 93% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
  .askwrap.closing { animation: askFadeOut 1.15s ease-in both; }
  .askwrap.closing .askdlg { animation: askFall 1.15s cubic-bezier(.7,0,.75,.2) both; }
  @keyframes askFall { 0% { transform: translateY(0); } 16% { transform: translateY(-14px); } 100% { transform: translateY(100vh); } }
  @keyframes askFadeOut { 0%, 55% { background: rgba(20,10,20,.45); } 100% { background: rgba(20,10,20,0); } }
  @media (prefers-reduced-motion: reduce) { .askbtn, .askwrap, .askdlg { animation: none; } }
  .askhead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .askface { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 1.4rem; background: var(--accent-soft); }
  .askwho { flex: 1; min-width: 0; }
  .askwho h2 { margin: 0; font-size: 1.15rem; }
  .askstate { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
  .askx { flex: none; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); border-radius: 4px; }
  .askx:hover { background: var(--accent-soft); }
  .askitem { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--accent-soft); }
  .askitem > div { display: grid; min-width: 0; }
  .askitem b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .askpic { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; }
  .asktabs { display: flex; gap: 6px; padding: 10px 14px 0; }
  .asktab { flex: 1; min-height: 44px; border: 1.5px solid var(--field-border, #b9a7ae); background: transparent; color: var(--ink); font: inherit; font-weight: 600; border-radius: 4px; cursor: pointer; }
  .asktab[aria-selected=true] { background: var(--primary); border-color: var(--primary); color: #fff; }
  .askbody { padding: 12px 14px 14px; overflow: auto; flex: 1; min-height: 0; }
  .askbody .offerbox { margin-top: 0; justify-items: stretch; }
  .askbody .offerform { box-shadow: none; border: 0; padding: 0; margin: 0; }
  .askq { display: flex; flex-direction: column; gap: 8px; }
  .askmsgs { display: flex; flex-direction: column; gap: 6px; max-height: 260px; min-height: 90px; overflow: auto; padding: 4px 2px; }
  .askempty { margin: auto 0; text-align: center; color: var(--muted); font-size: .92rem; }
  .askday { align-self: center; font-size: .78rem; color: var(--muted); border: 1px dashed var(--field-border, #ccc); border-radius: 4px; padding: 2px 8px; text-align: center; }
  .askb { max-width: 82%; padding: 7px 10px; border-radius: 10px; }
  .askb p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .askb time { display: block; font-size: .72rem; opacity: .75; margin-top: 2px; }
  .askb.mine { align-self: flex-start; background: var(--primary); color: #fff; border-end-start-radius: 2px; }
  .askb.theirs { align-self: flex-end; background: var(--accent-soft); border-end-end-radius: 2px; }
  .askchips { display: flex; flex-wrap: wrap; gap: 6px; }
  .askchips .chip { font-size: .85rem; min-height: 36px; cursor: pointer; }
  .askchips .chip.asked { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; cursor: default; }
  .askrow { display: flex; gap: 8px; align-items: flex-end; }
  .asktext { flex: 1; min-width: 0; resize: vertical; min-height: 44px; }
  .asknote { margin: 0; }
  @media (max-width: 600px) {
    .askwrap { align-items: flex-end; padding: 0; }
    .askdlg { width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; }
  }
  .askwa { display: inline-flex; align-items: center; gap: 6px; background: #1a7f4b; border-color: #1a7f4b; color: #fff; white-space: nowrap; }
  .askwa svg { width: 20px; height: 20px; }

/* a small WhatsApp mark on "שאלה למוכר" — the question goes to the seller's WhatsApp (owner, 2026-11-18) */
.askbtn-wa { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #25d366; color: #fff; flex: 0 0 auto; }
.askbtn-wa svg { width: 15px; height: 15px; display: block; }
