/* Inquiry basket (css/inquiry.css + js/inquiry.js), shared by /?business=locks and /?business=attendance.
   Card buttons toggle a model; the bar sits left of the floating contact button and fans the
   picked models out like a hand of cards on hover (or tap on touch). */

/* card button, replaces "Ask for price" */
.prod-add { background: none; border: 0; border-bottom: 2px solid var(--green); border-radius: 0; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.prod-add .pa-on { display: none; }
.prod.is-picked .prod-add .pa-off { display: none; }
.prod.is-picked .prod-add .pa-on { display: inline; }
.prod.is-picked .prod-add { color: var(--green-deep); border-bottom-color: var(--green-deep); }
.prod.is-picked { border-color: var(--green) !important; box-shadow: 0 0 0 1.5px var(--green), 0 24px 50px -30px rgba(14,59,46,.45); }
.prod-img::after, .ring-face::before { content: ""; position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M9 15.5l4 4 8-9' fill='none' stroke='%2310241D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px no-repeat; box-shadow: 0 6px 14px -6px rgba(14,59,46,.6); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.prod.is-picked .prod-img::after, .ring-card.is-picked .ring-face::before { opacity: 1; transform: scale(1); }
.ring-card.is-picked .ring-face { box-shadow: 0 0 0 2px var(--green), 0 30px 50px -30px rgba(14,59,46,.55); }
#ring-cta .pa-on { display: none; }
#ring-cta.is-picked .pa-off { display: none; }
#ring-cta.is-picked .pa-on { display: inline; }
#ring-cta.is-picked { background: var(--forest); color: var(--on-forest); box-shadow: none; }

/* floating bar */
.iq { position: fixed; z-index: 59; right: calc(clamp(16px, 2.4vw, 32px) + 78px); bottom: clamp(16px, 2.4vw, 32px); transition: opacity .35s, transform .45s var(--ease), visibility .45s; }
.iq.is-empty, .iq.is-away { opacity: 0; visibility: hidden; transform: translateY(24px); }
.iq-bar { display: flex; align-items: center; height: 64px; padding: 6px; border-radius: 999px; background: var(--forest); color: var(--on-forest); box-shadow: 0 18px 40px -16px rgba(14,59,46,.8); }
.iq-count { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 15px; cursor: pointer; transition: background-color .2s; }
.iq-count:hover, .iq.is-open .iq-count { background: rgba(255,255,255,.08); }
.iq-count b { font-size: 18px; color: var(--white); font-variant-numeric: tabular-nums; }
.iq-stack { display: flex; }
.iq-stack i { width: 38px; height: 38px; margin-left: -14px; border-radius: 50%; border: 2px solid var(--forest); background: var(--white) center/80% no-repeat; }
.iq-stack i:first-child { margin-left: 0; }
.iq-send { display: inline-flex; align-items: center; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--green); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.iq-send:hover { background: #3DCB7E; }
.iq.is-bump .iq-bar { animation: iqBump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes iqBump { 30% { transform: scale(1.06); } }

/* the fan: picked models spread up from the bar like a hand of cards */
.iq-fan { position: absolute; left: calc(50% + var(--shift, 0px)); bottom: 76px; width: 0; height: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.iq-card { position: absolute; left: -62px; bottom: 0; width: 124px; height: 164px; border-radius: 16px; background: var(--white); box-shadow: 0 22px 40px -18px rgba(14,59,46,.6), 0 0 0 1px var(--line); transform-origin: 50% 100%; transform: translateX(0) rotate(0deg) translateY(30px) scale(.6); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; transition-delay: calc(var(--i) * 35ms); pointer-events: none; display: grid; grid-template-rows: 1fr auto; padding: 10px 10px 12px; }
.iq-card img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.iq-card b { font-size: 14px; font-weight: 700; text-align: center; letter-spacing: -0.01em; }
.iq-card button { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); background: var(--ink); color: var(--white); font-size: 15px; line-height: 1; cursor: pointer; transition: background-color .2s; }
.iq-card button:hover { background: #B4501E; }
.iq.is-open .iq-card { opacity: 1; pointer-events: auto; transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(1); }
.iq.is-open .iq-card:hover { transform: translateX(var(--x)) translateY(calc(var(--y) - 16px)) rotate(var(--r)) scale(1.05); z-index: 9; }
.iq-more { position: absolute; left: 50%; bottom: 196px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .3s .2s; }
.iq.is-open .iq-more:not(:empty) { opacity: 1; }

/* flying thumbnail when a model is added */
.iq-fly { position: fixed; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: var(--white) center/80% no-repeat; box-shadow: 0 10px 24px -10px rgba(14,59,46,.7), 0 0 0 2px var(--green); pointer-events: none; }

@media (max-width: 560px) {
  .iq { right: 80px; left: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .iq-bar { height: 56px; padding: 4px; justify-content: space-between; }
  .iq-count { height: 48px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .iq-count .iq-dot { display: none; }
  .iq-stack i { width: 26px; height: 26px; }
  .iq-stack i:not(:last-child) { display: none; }
  .iq-stack i:last-child { margin: 0; }
  .iq-send { height: 48px; padding: 0 12px; font-size: 14px; }
  .iq-fan { bottom: 68px; }
  .iq-card { width: 100px; height: 136px; left: -50px; }
}
@media (max-width: 360px) { .iq-stack { display: none; } }
@media (prefers-reduced-motion: reduce) { .iq-card, .iq { transition: none; } .iq.is-bump .iq-bar { animation: none; } }

/* the old "Ask for price" link stretched over the whole card; the add button must not */
.prod-add::before { content: none !important; }
.prod-add { position: relative; z-index: 2; padding: 8px 0; }
