/* Priya AI — launcher, glass panel, chat, voice orb, voice message card (W7).
   Brand: navy #1B2B52, fox-orange #E8650F (primary buttons), gold #D4A04A
   small accents only. Mobile-first; panel fits 320px viewports. */
/* ================= SPEED DIAL — one smart contact button (live-faithful, MATCH-PREVIOUS 2026-12-01) =================
   Single 60px fox button (.sd-main) expanding to AI Assistant /
   WhatsApp / Telegram / Call BD Hotline + one-time greeting bubble.
   Replaces the old two-float setup (.priya-launcher + .wa-float). */
.sd-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s; }
.sd-wrap.sd-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), visibility 0s 0s; }
.sd-wrap.sd-footer-hide { opacity: 0 !important; visibility: hidden !important; transform: translateY(18px); pointer-events: none !important; }
.sd-wrap.sd-globe-hide { opacity: 0 !important; visibility: hidden !important; transform: translateY(18px); pointer-events: none !important; }
.sd-main { position: relative; width: 60px; height: 60px; flex: none; border-radius: 50%; background: #0F1A3A; border: 2px solid #F5B942; box-shadow: 0 12px 30px rgba(15,26,58,.38), 0 0 22px rgba(245,185,66,.35); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .2s ease; }
/* MOBILE FIXES 2026-12-04 (blueprint §5): soft pulse every ~3s (was 6s);
   button scales to 1.08 on hover/tap. */
.sd-main:hover, .sd-main:active { transform: scale(1.08); }
.sd-main::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(245,185,66,.75); opacity: 0; pointer-events: none; animation: sdPulse 3s ease-out infinite; }
@keyframes sdPulse { 0%, 80% { transform: scale(1); opacity: 0; } 86% { opacity: .85; } 100% { transform: scale(1.5); opacity: 0; } }
.sd-wrap.sd-interacted .sd-main::after { animation: none; opacity: 0; }
.sd-fox, .sd-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); }
.sd-fox img { width: 37px; height: 37px; border-radius: 50%; background: #fff; padding: 2px; }
.sd-x { opacity: 0; transform: rotate(-90deg) scale(.55); }
.sd-x .ic { width: 22px; height: 22px; color: #fff; }
.sd-wrap.open .sd-fox { opacity: 0; transform: rotate(90deg) scale(.55); }
.sd-wrap.open .sd-x { opacity: 1; transform: none; }
.sd-dot { position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; z-index: 3; box-shadow: 0 2px 8px rgba(34,197,94,.5); }
.sd-menu { position: absolute; bottom: calc(100% + 12px); right: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; visibility: hidden; transition: visibility 0s .35s; }
.sd-wrap.open .sd-menu { visibility: visible; transition-delay: 0s; }
.sd-item { display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; text-decoration: none; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1); transition-delay: 0ms; }
.sd-wrap.open .sd-item { opacity: 1; transform: none; pointer-events: auto; transition-delay: var(--d, 0ms); }
.sd-label { background: #0F1A3A; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3; padding: 9px 15px; border-radius: 99px; border: 1.5px solid transparent; box-shadow: 0 10px 24px rgba(15,26,58,.28); white-space: nowrap; transition: border-color .2s ease; }
.sd-opt { width: 48px; height: 48px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(15,26,58,.28); }
.sd-opt svg, .sd-opt .ic { width: 22px; height: 22px; }
.sd-opt-ai { background: #0F1A3A; color: #F5B942; border: 1.5px solid #F5B942; }
.sd-opt-wa { background: #25D366; color: #fff; }
.sd-opt-tg { background: #229ED9; color: #fff; }
.sd-opt-call { background: #fff; color: #0F1A3A; border: 1.5px solid #d7deeb; }
.sd-greet { position: absolute; bottom: calc(100% + 12px); right: 0; background: #0F1A3A; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.55; padding: 12px 38px 12px 15px; border-radius: 14px; width: max-content; max-width: 262px; box-shadow: 0 16px 38px rgba(15,26,58,.35); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s; }
.sd-greet::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; background: #0F1A3A; transform: rotate(45deg); }
.sd-greet.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), visibility 0s 0s; }
.sd-greet-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.sd-greet-x .ic { width: 12px; height: 12px; }
/* MOBILE FIXES 2026-12-04 (blueprint §5): typing dots inside the greeting
   bubble — gold #F5B942, min opacity .55. SEPARATE keyframes
   (priya-blink-bubble); the global priya-blink below is untouched. */
.sd-greet-typing { display: inline-flex; align-items: center; gap: 4px; height: 21px; }
.sd-greet-typing[hidden] { display: none; }
.sd-greet-msg[hidden] { display: none; }
.sd-greet-typing i { width: 7px; height: 7px; border-radius: 50%; background: #F5B942; animation: priya-blink-bubble 1.2s infinite; }
.sd-greet-typing i:nth-child(2) { animation-delay: .2s; }
.sd-greet-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes priya-blink-bubble { 0%, 80%, 100% { opacity: .55; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sd-main::after { animation: none !important; }
  .sd-wrap, .sd-item, .sd-greet, .sd-fox, .sd-x, .sd-menu { transition: none !important; }
}
@media print { .sd-wrap, .priya-panel { display: none !important; } }

.priya-panel {
  position: fixed; right: 14px; bottom: 94px; z-index: 96;
  width: min(380px, 94vw); height: min(560px, 72vh);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif; color: #16233c;
}
.priya-panel[hidden] { display: none; }
@media (max-width: 620px) {
  /* Live-faithful: the chat goes fullscreen on phones. On staging the
     mobile bottom nav (G-05) occupies the bottom 60px, so the panel
     clears it (bottom:60px) instead of sliding under it — the staging
     convention is that nothing covers the bottom nav. This rule's
     specificity (body class + class) ties store.css's 142px lift, and
     priya.css loads after store.css, so it wins at <=620px. */
  .priya-panel { inset: 0; right: 0; left: 0; bottom: 0; width: auto; height: auto; max-height: none; border-radius: 0; z-index: 130; }
  body.pb-bottomnav .priya-panel { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

.priya-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px;
  background: linear-gradient(135deg, #1B2B52, #16294d 60%, #0d1a33); color: #fff;
}
.priya-ava { position: relative; flex: none; width: 40px; height: 40px; }
.priya-ava img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #0d1a33; }
.priya-ava-dot { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: #1d9e6c; border: 2px solid #fff; }
.priya-head-text { flex: 1; min-width: 0; line-height: 1.25; }
.priya-head-text b { font-size: 15.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.priya-status { font-size: 12px; color: #c9d6f2; display: inline-flex; align-items: center; gap: 5px; }
.priya-sdot { width: 7px; height: 7px; border-radius: 50%; background: #2fd08a; display: inline-block; }
.priya-icon-btn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; cursor: pointer; /* BUG-117: 34px→44px */
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
.priya-icon-btn svg { width: 18px; height: 18px; }
.priya-icon-btn.off { opacity: .55; }

.priya-modes {
  display: flex; gap: 6px; padding: 8px 10px 0; background: transparent;
}
.priya-modes button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid #dde4f0; background: #fff; color: #44557a; border-radius: 12px;
  padding: 9px 6px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.priya-modes button svg { width: 16px; height: 16px; }
.priya-modes button.on { background: #1B2B52; border-color: #1B2B52; color: #fff; }

.priya-mode { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.priya-mode[hidden] { display: none; }

.priya-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; }
.priya-quick button {
  border: 1px solid #dde4f0; background: #f0f3fa; color: #1B2B52; border-radius: 999px;
  padding: 13px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; /* BUG-117: 6px→13px, ~31px→~45px tall */
}
.priya-quick button:hover { border-color: #D4A04A; background: #fff4dd; }

.priya-body {
  flex: 1; min-height: 180px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.priya-msg { display: flex; gap: 6px; align-items: flex-start; max-width: 92%; }
.priya-msg span {
  padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.55;
  white-space: pre-line; word-break: break-word;
}
.priya-msg.me { align-self: flex-end; }
.priya-msg.me span { background: #E8650F; color: #fff; border-bottom-right-radius: 4px; }
.priya-msg.bot span { background: #eef2f9; color: #16233c; border-bottom-left-radius: 4px; }
.priya-msg-spk {
  flex: none; border: 0; background: transparent; cursor: pointer; font-size: 15px;
  padding: 8px 2px; line-height: 1; opacity: .75;
}
.priya-msg-spk:hover { opacity: 1; }
.priya-typing { align-items: center; }
.priya-typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #8fa0bf; display: inline-block;
  margin: 12px 2px; animation: priya-blink 1.2s infinite;
}
.priya-typing i:nth-child(2) { animation-delay: .2s; }
.priya-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes priya-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.priya-vm-slot { padding: 2px 12px 8px; }
.priya-vm-slot:empty { display: none; }

.priya-wa {
  margin: 0 12px 8px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #e7f5ec; color: #14532d; border: 1px solid #bfe3cc; border-radius: 12px;
  padding: 10px; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.priya-wa svg { width: 18px; height: 18px; flex: none; }

.priya-input { display: flex; gap: 6px; padding: 0 12px 12px; }
.priya-input input {
  flex: 1; min-width: 0; border: 1.5px solid #dde4f0; border-radius: 12px;
  padding: 12px 12px; font-size: 14px; font-family: inherit; color: #16233c; background: #fff; /* BUG-117: 10px→12px, ~41px→~45px tall */
}
.priya-input input:focus { outline: none; border-color: #D4A04A; box-shadow: 0 0 0 3px rgba(212, 160, 74, .25); }
.priya-mic-btn {
  flex: none; width: 44px; border: 1.5px solid #dde4f0; border-radius: 12px; background: #fff; /* BUG-117: 42px→44px wide */
  color: #1B2B52; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.priya-mic-btn svg { width: 18px; height: 18px; }
.priya-mic-btn.listening { background: #fdeedd; border-color: #E8650F; color: #E8650F; animation: priya-pulse 1.2s infinite; }
.priya-input button[type="submit"] {
  flex: none; border: 0; border-radius: 12px; background: #E8650F; color: #fff;
  padding: 0 16px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}
@keyframes priya-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 101, 15, .35); } 50% { box-shadow: 0 0 0 6px rgba(232, 101, 15, 0); } }

/* Voice Message mode */
.priya-voice-stage { padding: 18px 14px 16px; text-align: center; overflow-y: auto; }
.priya-orb {
  position: relative; width: 132px; height: 132px; margin: 6px auto 14px; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.priya-orb-halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 101, 15, .22), rgba(27, 43, 82, .08) 65%, transparent 75%);
}
.priya-orb-ring {
  position: absolute; border-radius: 50%; border: 2px solid rgba(232, 101, 15, .5);
  inset: 6px; opacity: 0; pointer-events: none;
}
.priya-orb.st-listening .priya-orb-ring { animation: priya-ring 1.6s ease-out infinite; }
.priya-orb.st-listening .r2 { animation-delay: .8s; }
@keyframes priya-ring { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.priya-orb-core {
  position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  background: #1B2B52; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(18, 38, 77, .3);
}
.priya-orb-core img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.priya-orb-eq { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: none; gap: 2px; align-items: flex-end; height: 16px; }
.priya-orb-eq i { width: 3px; background: #E8650F; border-radius: 2px; height: 6px; }
.priya-orb.st-speaking .priya-orb-eq { display: flex; }
.priya-orb.st-speaking .priya-orb-eq i { animation: priya-eq .7s ease-in-out infinite alternate; }
.priya-orb.st-speaking .priya-orb-eq i:nth-child(2) { animation-delay: .15s; }
.priya-orb.st-speaking .priya-orb-eq i:nth-child(3) { animation-delay: .3s; }
.priya-orb.st-speaking .priya-orb-eq i:nth-child(4) { animation-delay: .1s; }
.priya-orb.st-speaking .priya-orb-eq i:nth-child(5) { animation-delay: .25s; }
@keyframes priya-eq { from { height: 4px; } to { height: 15px; } }
.priya-call-name { font-weight: 800; font-size: 16px; color: #1B2B52; }
.priya-call-status { font-size: 13px; color: #5b6b8c; margin-top: 4px; line-height: 1.5; }
.priya-call-timer { font-size: 13px; color: #44557a; margin-top: 8px; font-variant-numeric: tabular-nums; }
.priya-call-subs { font-size: 14px; line-height: 1.6; color: #16233c; background: #eef2f9; border-radius: 12px; padding: 10px 12px; margin-top: 10px; min-height: 42px; text-align: left; }
.priya-call-lang { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.priya-call-lang button {
  border: 1.5px solid #dde4f0; background: #fff; color: #44557a; border-radius: 999px;
  padding: 13px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; /* BUG-117: 7px→13px, ~34px→~46px tall */
}
.priya-call-lang button.on { background: #1B2B52; border-color: #1B2B52; color: #fff; }
.priya-call-prompts { margin-top: 12px; text-align: left; }
.priya-call-prompts p { font-size: 13px; color: #5b6b8c; margin: 0 0 8px; }
.priya-call-prompts button {
  display: block; width: 100%; text-align: left; margin-bottom: 6px;
  border: 1px solid #dde4f0; background: #fff; color: #1B2B52; border-radius: 10px;
  padding: 12px 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; /* BUG-117: 10px→12px, ~41px→~45px tall */
}
.priya-call-prompts[hidden] { display: none; }

/* Priya Voice Message player card (chat + order pages only) */
.pvm-card {
  display: flex; gap: 10px; align-items: flex-start; background: #fff;
  border: 1px solid #dde4f0; border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(18, 38, 77, .07);
}
.pvm-card > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #1B2B52; }
.pvm-play {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; /* BUG-117: 36px→44px */
  background: #E8650F; color: #fff; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pvm-main { flex: 1; min-width: 0; }
.pvm-wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.pvm-wave i { width: 3px; background: #8fa0bf; border-radius: 2px; display: block; }
.pvm-card.playing .pvm-wave i { background: #E8650F; }
.pvm-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #5b6b8c; margin-top: 2px; }
.pvm-meta b { color: #1B2B52; }
.pvm-text { font-size: 13px; line-height: 1.55; color: #44557a; margin: 6px 0 0; }

@media (max-width: 420px) {
  /* MATCH-PREVIOUS: the speed-dial lifts with the device safe-area so
     the home indicator never crowds it. The panel is fullscreen ≤620px,
     so no panel offset is needed here. The storefront footer clearance
     lives in store.css. */
  .sd-wrap { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .priya-body { min-height: 150px; }
}

/* Homepage Fixes B1.1c: on small screens the greeting bubble never
   grows wider than the viewport minus the launcher. */
@media (max-width:760px){
  .sd-greet{max-width:calc(100vw - 100px)}
}
