/* Motana Shop – WhatsApp chat window (centred, grows out of the green button) */
.ms-wac{font-family:inherit;direction:rtl}
.ms-wac svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ms-wac-panel{min-width:0;max-width:100%;--pop-from:translate(var(--wac-x,0px),var(--wac-y,38vh)) scale(.1);--pop-ease:cubic-bezier(.18,1.25,.32,1);--pop-dur:.6s;position:relative;width:min(410px,100%);max-height:min(640px,calc(100dvh - 28px));display:flex;flex-direction:column;background:#efeae2;border-radius:26px;overflow:hidden;box-shadow:0 40px 90px -20px rgba(0,0,0,.55)}
.ms-wac-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 12px;background:var(--wac-head,linear-gradient(135deg,#075e54,#128c7e));color:var(--wac-head-ink,#fff);flex:none}
.ms-wac-av{position:relative;width:48px;height:48px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.ms-wac-av img{width:38px;height:38px;object-fit:contain;border-radius:50%}
.ms-wac-av b{font-size:20px;color:#075e54}
.ms-wac-av i{position:absolute;bottom:1px;left:1px;width:12px;height:12px;border-radius:50%;background:#25d366;border:2px solid #fff;animation:msWacDot 2s ease-in-out infinite}
@keyframes msWacDot{50%{box-shadow:0 0 0 5px rgba(37,211,102,.25)}}
.ms-wac-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.ms-wac-who b{font-size:16.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-wac-who small{display:flex;align-items:center;gap:6px;font-size:12.5px;opacity:.9}
.ms-wac-live{width:7px;height:7px;border-radius:50%;background:#25d366;box-shadow:0 0 0 3px rgba(37,211,102,.25);flex:none}
.ms-wac-x{border:0!important;background:rgba(255,255,255,.16)!important;color:inherit!important}
.ms-wac-x:hover{background:rgba(255,255,255,.28)!important}
.ms-wac-body{flex:1 1 auto;min-height:140px;overflow-y:auto;padding:16px 12px 10px;display:flex;flex-direction:column;gap:8px;background-color:#efeae2;background-image:radial-gradient(rgba(0,0,0,.035) 1px,transparent 1.5px),radial-gradient(rgba(0,0,0,.03) 1px,transparent 1.5px);background-size:22px 22px,30px 30px;background-position:0 0,11px 15px}
.ms-wac-b{align-self:flex-start;max-width:86%;background:#fff;color:#111;border-radius:4px 16px 16px 16px;padding:8px 12px 6px;box-shadow:0 1px 1px rgba(0,0,0,.08);opacity:0;transform:translateY(8px) scale(.96);transition:opacity .28s,transform .32s cubic-bezier(.2,1.2,.3,1)}
.ms-wac-b.in{opacity:1;transform:none}
.ms-wac-b p{margin:0!important;font-size:15px!important;line-height:1.5!important;color:#111!important;word-break:break-word}
.ms-wac-b time{display:flex;align-items:center;justify-content:flex-start;gap:3px;font-size:11px;color:#667781;margin-top:2px;direction:ltr}
.ms-wac-b time svg{width:16px;height:11px;color:#53bdeb;stroke-width:1.8}
.ms-wac-b.me{align-self:flex-end;background:#d9fdd3;border-radius:16px 4px 16px 16px}
.ms-wac-typing{display:flex;gap:4px;padding:12px 14px}
.ms-wac-typing span{width:7px;height:7px;border-radius:50%;background:#8696a0;animation:msWacTy 1.1s infinite}
.ms-wac-typing span:nth-child(2){animation-delay:.15s}.ms-wac-typing span:nth-child(3){animation-delay:.3s}
@keyframes msWacTy{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
.ms-wac-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:4px 12px 12px;background:#efeae2;flex:none}
.ms-wac-chips[hidden]{display:none!important}
.ms-wac-chips button{white-space:normal!important;text-transform:none!important;letter-spacing:0!important;height:auto!important;position:relative;display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 12px;border-radius:16px;border:1.5px solid rgba(18,140,126,.25);background:#fff;color:#0b3d36;font-size:14px;font-weight:700;line-height:1.25;cursor:pointer;font-family:inherit;text-align:right;transition:border-color .2s,background .2s,transform .2s,box-shadow .2s;opacity:0;transform:translateY(12px) scale(.94)}
.ms-wac-chips.in button{animation:msWacChip .45s cubic-bezier(.2,1.2,.3,1) both;animation-delay:calc(var(--i) * .05s)}
@keyframes msWacChip{from{opacity:0;transform:translateY(12px) scale(.92)}to{opacity:1;transform:none}}
.ms-wac-chips button .e{font-size:18px;line-height:1;flex:none}
.ms-wac-chips button .l{flex:1;min-width:0;overflow-wrap:anywhere}
.ms-wac-chips button .ok{width:20px;height:20px;flex:none;border-radius:50%;padding:3px;box-sizing:border-box;background:#25d366;color:#fff;stroke-width:3;transform:scale(0);transition:transform .3s cubic-bezier(.3,1.6,.4,1)}
.ms-wac-chips button:hover{border-color:#25d366;transform:translateY(-1px)}
.ms-wac-chips button.on{border-color:#25d366;background:#effcf2;box-shadow:0 8px 18px -10px rgba(37,211,102,.7)}
.ms-wac-chips button.on .ok{transform:scale(1)}
.ms-wac-foot{flex:none;padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));background:#f0f2f5;border-top:1px solid rgba(0,0,0,.06)}
.ms-wac-send{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border:0;border-radius:16px;background:#25d366;color:#fff!important;font-size:16.5px;font-weight:800;line-height:1;cursor:pointer;font-family:inherit;transition:background .25s,transform .2s,box-shadow .25s,opacity .25s;box-shadow:0 12px 24px -10px rgba(37,211,102,.75)}
.ms-wac-send svg{width:24px;height:24px;fill:#fff;stroke:none;flex:none}
.ms-wac-send span{display:block;line-height:1.2}
.ms-wac-send:disabled{background:#c9d2cc;box-shadow:none;cursor:not-allowed}
.ms-wac-send.ready{animation:msWacReady .7s cubic-bezier(.3,1.5,.4,1)}
@keyframes msWacReady{30%{transform:scale(1.04)}60%{transform:scale(.98)}}
.ms-wac-send:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.04)}
.ms-wac-on .ms-wa{animation:none!important;transform:scale(.9)}
@media(max-width:420px){.ms-wac-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ms-wac-chips button{font-size:13px;padding:8px 10px;min-height:46px}}
