/* Exit-Intent, WhatsApp-Button, Cookie-Banner */

.wg-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #DCEAE1;
  box-shadow: 0 -8px 30px rgba(16, 42, 29, 0.12);
  padding: 16px 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.wg-cookie.is-visible { transform: translateY(0); }
.wg-cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.wg-cookie p {
  margin: 0;
  font-size: 0.88rem;
  color: #4A6455;
  max-width: 640px;
  line-height: 1.5;
}
.wg-cookie a { color: #226244; }
.wg-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.wg-cookie-btns button {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.wg-cookie-accept { background: #226244; color: #fff; }
.wg-cookie-decline { background: transparent; color: #102A1D; border: 2px solid #DCEAE1 !important; }

.wg-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wg-wa:hover { transform: scale(1.08); }
.wg-wa svg { width: 30px; height: 30px; fill: currentColor; }

.wg-exit {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 31, 21, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.wg-exit.is-visible { opacity: 1; visibility: visible; }
.wg-exit-box {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(16, 42, 29, 0.25);
}
.wg-exit-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #4A6455;
  cursor: pointer;
  line-height: 1;
}
.wg-exit-box h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #102A1D;
  margin-bottom: 10px;
}
.wg-exit-box p {
  color: #4A6455;
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.55;
}
.wg-exit-cta {
  display: inline-block;
  background: #226244;
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  margin: 4px;
}
.wg-exit-phone {
  display: block;
  margin-top: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: #17472F;
  text-decoration: none;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .wg-wa { bottom: 70px; left: 16px; width: 50px; height: 50px; }
  .wg-wa svg { width: 26px; height: 26px; }
  .wg-cookie { bottom: 54px; }
  body:not(.page-thankyou) .wg-cookie.is-visible ~ .wg-wa { bottom: 130px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-cookie, .wg-exit, .wg-wa { transition: none !important; }
}
