/* Free-zone pages — WhatsApp button beside quote buttons + sticky contact bar on phones.
   Loaded only on free-zone pages by inc/alya-freezone-cta.php (SEO task 4). */

/* Quote button + WhatsApp sit side by side inside the button widget. */
.elementor-widget-button:has(.alya-fz-wa-wrap) > .elementor-widget-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.alya-fz-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1.5px solid #25D366;
  border-radius: 9999px;
  color: #25D366;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.alya-fz-wa:hover,
.alya-fz-wa:focus-visible {
  background: #25D366;
  color: #021F4B;
}
.alya-fz-wa:focus-visible,
.alya-fz-bar a:focus-visible {
  outline: 2px solid #7FFA7B;
  outline-offset: 2px;
}

/* Sticky bar: phones only. */
.alya-fz-bar { display: none; }

@media (max-width: 767px) {
  /* On phones the bar replaces the inline WhatsApp button. */
  .alya-fz-wa-wrap { display: none; }

  .alya-fz-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #021F4B;
    box-shadow: 0 -6px 20px rgba(2, 31, 75, .25);
  }
  .alya-fz-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
  }
  .alya-fz-bar a.is-wa { border-color: #25D366; color: #25D366; }
  .alya-fz-bar a.is-quote { background: #7FFA7B; border-color: #7FFA7B; color: #021F4B; }

  /* Keep the page's last content (footer) clear of the bar. */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
