/* ===== WhatsApp button + nutritionist popup (all pages) ===== */
.wa-box { z-index: 31; }
.wa-box .wa { position: relative !important; inset: auto !important; top: auto !important; bottom: auto !important; translate: none !important; }
.wa-box--home { position: absolute; inset-inline-end: var(--gutter); top: 50%; translate: 0 -50%; }
.wa-box--page { position: fixed; inset-inline-end: var(--gutter); bottom: var(--gutter); }

.wa-pop {
  position: absolute; width: 290px; z-index: 2;
  background: #FBF6EE; color: #1f2618; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(31,38,24,.45), 0 0 0 1px rgba(69,82,53,.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1), visibility 0s .35s;
  font-family: var(--font); text-align: start;
}
/* default: opens above the button */
.wa-pop { bottom: calc(100% + 14px); inset-inline-end: 0; transform: translateY(10px) scale(.97); transform-origin: bottom right; }
html[dir="rtl"] .wa-pop { transform-origin: bottom left; }
/* homepage desktop: opens beside the button */
.wa-box--home .wa-pop { bottom: auto; top: 50%; inset-inline-end: calc(100% + 16px); transform: translate(10px, -50%) scale(.97); transform-origin: right center; }
html[dir="rtl"] .wa-box--home .wa-pop { transform: translate(-10px, -50%) scale(.97); transform-origin: left center; }

/* invisible bridge so the pointer can travel from button to popup */
.wa-pop::before { content: ""; position: absolute; inset: -16px; z-index: -1; }

@media (hover: hover) and (pointer: fine) {
  .wa-box:hover .wa-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .wa-box--home:hover .wa-pop { transform: translate(0, -50%); }
}
.wa-box:focus-within .wa-pop, .wa-box.is-open .wa-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.wa-box--home:focus-within .wa-pop, .wa-box--home.is-open .wa-pop { transform: translate(0, -50%); }

.wa-pop__img { position: relative; height: 128px; overflow: hidden; }
.wa-pop__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.wa-box:hover .wa-pop__img img, .wa-box.is-open .wa-pop__img img, .wa-box:focus-within .wa-pop__img img { transform: scale(1); }
.wa-pop__status {
  position: absolute; inset-inline-start: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 99px; background: rgba(251,246,238,.92); font-size: 12px; font-weight: 500; color: #455235;
}
.wa-pop__status i { width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.25); }
.wa-pop__body { padding: 16px 18px 18px; }
.wa-pop__title { font-size: 18px; font-weight: 500; line-height: 1.2; color: #455235; }
.wa-pop__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #5c6652; }
.wa-pop__btn {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 16px; border-radius: 14px; background: #25D366; color: #fff; font-size: 15px; font-weight: 500;
  transition: background .3s, transform .4s cubic-bezier(.22,1,.36,1);
}
.wa-pop__btn svg { width: 18px; height: 18px; }
.wa-pop__btn:hover, .wa-pop__btn:focus-visible { background: #1eb457; transform: translateY(-2px); }
.wa-pop__close {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: rgba(251,246,238,.92); color: #455235; display: none; place-items: center; cursor: pointer; font-size: 16px; line-height: 1;
}
@media (hover: none), (pointer: coarse) { .wa-pop__close { display: grid; } }

@media (max-width: 700px) {
  .wa-box--home { top: auto; bottom: calc(var(--gutter) + 170px); translate: none; }
  .wa-pop, .wa-box--home .wa-pop {
    top: auto; bottom: calc(100% + 12px); inset-inline-end: 0; width: min(290px, calc(100vw - 2 * var(--gutter)));
    transform: translateY(10px) scale(.97); transform-origin: bottom right;
  }
  .wa-box--home.is-open .wa-pop, .wa-box--home:focus-within .wa-pop { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-pop, .wa-pop__img img { transition: none !important; } }
