/* Review-only shared WhatsApp contact widget. Loaded before the canonical final navigation stylesheet. */
.ag-whatsapp {
  --ag-wa-bottom: 76px;
  position: fixed;
  z-index: 99990;
  right: max(16px, env(safe-area-inset-right));
  bottom: var(--ag-wa-bottom);
  font-family: Inter, Arial, sans-serif;
  color: #172329;
}

.ag-whatsapp__launcher {
  display: inline-grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 43, 29, .27);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ag-whatsapp__launcher:hover { transform: translateY(-2px); background: #20bd5a; box-shadow: 0 16px 34px rgba(15, 43, 29, .32); }
.ag-whatsapp__launcher svg { width: 30px; height: 30px; fill: currentColor; }
.ag-whatsapp__launcher:focus-visible,
.ag-whatsapp__panel button:focus-visible,
.ag-whatsapp__panel select:focus-visible,
.ag-whatsapp__panel textarea:focus-visible,
.ag-whatsapp__continue:focus-visible { outline: 3px solid #f0b34a; outline-offset: 3px; }

.ag-whatsapp__panel[hidden] { display: none !important; }
.ag-whatsapp__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(354px, calc(100vw - 32px));
  max-height: min(610px, calc(100dvh - var(--ag-wa-bottom) - 92px));
  overflow: auto;
  box-sizing: border-box;
  padding: 0 18px 18px;
  border: 1px solid rgba(20, 50, 38, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(11, 34, 25, .25);
}

.ag-whatsapp__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -18px 16px;
  padding: 16px 16px 14px 18px;
  border-radius: 17px 17px 0 0;
  background: #0d6b41;
  color: #fff;
}
.ag-whatsapp__heading { margin: 0; font: 800 18px/1.25 Montserrat, Inter, Arial, sans-serif; letter-spacing: -.015em; }
.ag-whatsapp__brand { display: block; margin-top: 4px; color: rgba(255,255,255,.83); font-size: 12px; line-height: 1.3; }
.ag-whatsapp__close { flex: 0 0 auto; width: 36px; height: 36px; margin: -5px -5px 0 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font: 500 25px/1 Arial, sans-serif; cursor: pointer; }
.ag-whatsapp__intro { margin: 0 0 14px; color: #506059; font-size: 13px; line-height: 1.52; }
.ag-whatsapp__field { display: block; margin-top: 12px; }
.ag-whatsapp__label { display: block; margin-bottom: 6px; color: #24342d; font-size: 13px; font-weight: 750; }
.ag-whatsapp__panel select,
.ag-whatsapp__panel textarea { width: 100%; box-sizing: border-box; border: 1px solid #bcc9c2; border-radius: 10px; background: #fff; color: #172329; font: 15px/1.45 Inter, Arial, sans-serif; }
.ag-whatsapp__panel select { min-height: 44px; padding: 9px 35px 9px 11px; }
.ag-whatsapp__panel textarea { min-height: 98px; padding: 10px 11px; resize: vertical; }
.ag-whatsapp__continue { display: flex; min-height: 46px; margin-top: 15px; padding: 10px 16px; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 999px; background: #25d366; color: #0b2d1d !important; font-size: 14px; font-weight: 850; text-align: center; text-decoration: none !important; }
.ag-whatsapp__continue:hover { background: #20bd5a; }
.ag-whatsapp__handoff { margin: 10px 2px 0; color: #65736d; font-size: 11.5px; line-height: 1.48; }

.review-no-send-notice { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #d8b263; border-radius: 9px; background: #fff8df; color: #594719; font-size: 13px; font-weight: 700; line-height: 1.45; }

@media (max-width: 560px) {
  .ag-whatsapp { --ag-wa-bottom: 68px; right: max(12px, env(safe-area-inset-right)); }
  .ag-whatsapp__launcher { width: 52px; height: 52px; }
  .ag-whatsapp__panel { bottom: 62px; width: min(348px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - var(--ag-wa-bottom) - 76px)); padding: 0 15px 15px; border-radius: 16px; }
  .ag-whatsapp__header { margin-right: -15px; margin-left: -15px; padding-left: 15px; border-radius: 15px 15px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-whatsapp__launcher { transition: none; }
}
