/* WhatsApp — üzən düymə, qabarcıq və kartlar (gradient yoxdur, düz rənglər) */

:root {
  --wa-green: #25d366;
  --wa-green-ink: #1da851;
  --wa-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  height: 60px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 14px 30px rgba(18, 140, 74, 0.32);
  opacity: 0;
  transition:
    background-color 0.25s ease,
    box-shadow 0.35s var(--wa-ease),
    bottom 0.35s var(--wa-ease);
}

.wa-fab.is-in {
  opacity: 1;
}

.wa-fab:hover,
.wa-fab:focus-visible {
  background: var(--wa-green-ink);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 18px 36px rgba(18, 140, 74, 0.4);
  outline: none;
}

.wa-fab__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.wa-fab__icon svg {
  width: 30px;
  height: 30px;
  transform-origin: 50% 55%;
}

.wa-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-family: var(--lada-font, "Montserrat", sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    max-width 0.45s var(--wa-ease),
    opacity 0.3s ease,
    padding 0.45s var(--wa-ease);
}

.wa-fab:hover .wa-fab__label,
.wa-fab:focus-visible .wa-fab__label {
  max-width: 220px;
  padding-right: 22px;
  opacity: 1;
}

.wa-fab__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border: 2px solid var(--wa-green);
  border-radius: 50%;
  pointer-events: none;
  animation: wa-ring 3s var(--wa-ease) infinite;
}

.wa-fab__ring--late {
  animation-delay: 1.5s;
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Model səhifəsində "yuxarı qayıt" düyməsinin üstündə */
body[data-page="model-detail"] .wa-fab {
  bottom: 92px;
}

body[data-page="model-detail"] .wa-bubble {
  bottom: 164px;
}

body.menu-open .wa-fab,
body.menu-open .wa-bubble {
  opacity: 0 !important;
  pointer-events: none;
}

/* Salam qabarcığı */
.wa-bubble {
  position: fixed;
  right: 24px;
  bottom: 98px;
  z-index: 950;
  width: min(290px, calc(100vw - 48px));
  border-radius: 18px 18px 6px 18px;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(16, 24, 32, 0.06),
    0 20px 48px rgba(16, 24, 32, 0.18);
  transform-origin: bottom right;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.wa-bubble[hidden] {
  display: none;
}

.wa-bubble.is-leaving {
  opacity: 0 !important;
  transform: translateY(8px) scale(0.96) !important;
}

.wa-bubble__body {
  display: grid;
  gap: 4px;
  padding: 16px 40px 16px 18px;
  font-family: var(--lada-font, "Montserrat", sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  color: #4c5865;
  text-decoration: none;
}

.wa-bubble__body strong {
  font-size: 14.5px;
  color: #11161c;
}

.wa-bubble__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  font-size: 16px;
  line-height: 1;
  color: #4c5865;
  cursor: pointer;
}

.wa-bubble__close:hover {
  background: #e3e7eb;
}

/* Kart (servis formasının xülasəsi və digər yerlər) */
.wa-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid #e3e7eb;
  border-radius: 18px;
  background: #fff;
  color: #11161c;
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    transform 0.35s var(--wa-ease),
    box-shadow 0.35s var(--wa-ease);
}

.wa-card:hover {
  border-color: var(--wa-green);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 140, 74, 0.14);
}

.wa-card__icon {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
}

.wa-card__icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.5s var(--wa-ease);
}

.wa-card:hover .wa-card__icon svg {
  transform: rotate(-12deg) scale(1.08);
}

.wa-card__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--wa-green);
  border-radius: 50%;
  opacity: 0;
  animation: wa-ring 2.8s var(--wa-ease) infinite;
}

.wa-card__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wa-card__text span {
  font-size: 12.5px;
  color: #7b8691;
}

.wa-card__text strong {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wa-card__arrow {
  margin-left: auto;
  color: #a9b1b9;
  transition:
    transform 0.35s var(--wa-ease),
    color 0.25s ease;
}

.wa-card:hover .wa-card__arrow {
  transform: translateX(3px);
  color: var(--wa-green-ink);
}

/* Düymə variantı (məs. xəritə kartında) */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--wa-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.wa-btn:hover {
  background: var(--wa-green-ink);
}

.wa-btn svg {
  width: 22px;
  height: 22px;
}

/* Model səhnəsində dairəvi düymə */
.wa-round {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  transition:
    background-color 0.25s ease,
    transform 0.35s var(--wa-ease);
}

.wa-round:hover {
  background: var(--wa-green-ink);
  transform: scale(1.06);
}

.wa-round svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 640px) {
  .wa-fab {
    right: 16px;
    bottom: 16px;
    height: 56px;
  }

  .wa-fab__icon,
  .wa-fab__ring {
    width: 56px;
    height: 56px;
  }

  .wa-bubble {
    right: 16px;
    bottom: 86px;
  }

  body[data-page="model-detail"] .wa-fab {
    bottom: 84px;
  }

  body[data-page="model-detail"] .wa-bubble {
    bottom: 152px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab__ring,
  .wa-card__icon::after {
    animation: none;
  }
}
