/* Uni-E Core: WhatsApp chat button. Uses the theme's design tokens when present. */
.wa, .wa * { box-sizing: border-box; }
.wa button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
.wa .i { width: 20px; height: 20px; flex: none; }
.wa__go { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.swipe-dots button { position: relative; }


.wa { --wa: #25D366; --wa-ink: #0B7A3B; position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 101; display: grid; justify-items: end; gap: 12px; }
.wa__btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 17px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 28px rgba(37,211,102,.38), var(--sh-2, 0 8px 24px rgba(16,24,20,.12)); transition: transform var(--d-med, .3s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), box-shadow var(--d-med, .3s); }
.wa__btn .i { width: 26px; height: 26px; }
.wa__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,211,102,.45), var(--sh-2, 0 8px 24px rgba(16,24,20,.12)); }
.wa__btn:focus-visible { outline: 3px solid var(--wa-ink); outline-offset: 3px; }
.wa__btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-ping 2.6s var(--ease-out, cubic-bezier(.2,.8,.2,1)) 1.5s 3; pointer-events: none; }
.wa__btn { position: relative; }
@keyframes wa-ping { to { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.wa__card { width: min(340px, calc(100vw - 40px)); background: var(--white, #fff); border-radius: var(--r-lg, 20px); box-shadow: var(--sh-3, 0 24px 60px rgba(16,24,20,.18)); overflow: hidden; border: 1px solid var(--mist, #E6EAE8); transform-origin: bottom right; animation: wa-in var(--d-med, .3s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.wa__card[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.wa__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #0F5132, #128C4A); color: #fff; }
.wa__av { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 6px; }
.wa__av img { width: 100%; height: auto; }
.wa__head strong { display: block; font-family: var(--f-display, inherit); font-size: 1rem; font-weight: 600; }
.wa__status { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(255,255,255,.85); }
.wa__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9BA3A0; }
.wa.is-open-now .wa__status::before { background: #7CFFA8; box-shadow: 0 0 0 3px rgba(124,255,168,.25); }
.wa__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.wa__x:hover { background: rgba(255,255,255,.14); }
.wa__x .i { width: 18px; height: 18px; }
.wa__body { padding: 18px 16px 6px; background: #EFEAE2 radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 14px 14px; display: grid; gap: 12px; }
.wa__bubble { position: relative; justify-self: start; max-width: 92%; background: #fff; padding: 10px 12px; border-radius: 4px 12px 12px 12px; font-size: .9rem; line-height: 1.45; color: var(--charcoal, #2B3134); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa__hours { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--slate, #5B6660); padding-bottom: 8px; }
.wa__hours .i { width: 15px; height: 15px; }
.wa__go { margin: 14px 16px 6px; width: calc(100% - 32px); background: var(--wa); color: #fff; justify-content: center; }
.wa__go:hover { background: #1FBE5B; }
.wa__fine { font-size: .72rem; color: var(--slate, #5B6660); text-align: center; padding: 0 16px 14px; }
.wa.is-open .wa__lbl { display: none; }
.wa.is-open .wa__btn { padding: 0 17px; }
@media (max-width: 700px) {
  .wa { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa__btn { height: 56px; width: 56px; padding: 0; justify-content: center; }
  .wa__lbl { display: none; }
}
body:has(.mbar.is-on) .wa { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .wa__btn::before { animation: none; } .wa__card { animation: none; } }
