/* Corner chat widgets — WhatsApp (right) + Call (left) */

.asmorix-wa {
  position: fixed;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.asmorix-wa--right {
  right: 16px;
  bottom: 16px;
}

.asmorix-wa--left {
  left: 16px;
  bottom: 16px;
  align-items: flex-start;
}

.asmorix-wa__panel,
.asmorix-wa__fab,
.asmorix-wa__callbar {
  pointer-events: auto;
}

.asmorix-wa__panel[hidden] {
  display: none !important;
}

.asmorix-wa__panel {
  width: min(320px, calc(100vw - 32px));
  background: #f4f1ee;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 28, 20, 0.22);
  overflow: hidden;
  animation: asmorix-wa-in 0.22s ease;
}

@keyframes asmorix-wa-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.asmorix-wa__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  background: #075e54;
  color: #fff;
}

.asmorix-wa__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 6px;
  flex-shrink: 0;
}

.asmorix-wa__meta {
  min-width: 0;
  flex: 1;
}

.asmorix-wa__name {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.asmorix-wa__status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
}

.asmorix-wa__close {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.asmorix-wa__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.asmorix-wa__msgs {
  padding: 14px 14px 8px;
}

.asmorix-wa__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.asmorix-wa__avatar--sm {
  width: 28px;
  height: 28px;
  padding: 4px;
}

.asmorix-wa__bubble {
  max-width: 86%;
  background: #fff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.asmorix-wa__bubble--follow {
  margin-left: 36px;
}

.asmorix-wa__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 14px 14px;
  min-height: 48px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.asmorix-wa__cta:hover {
  background: #1ebe5d;
  color: #fff !important;
}

.asmorix-wa--left .asmorix-wa__head {
  background: #00008b;
}

.asmorix-wa--left .asmorix-wa__cta {
  background: #00008b;
  box-shadow: 0 8px 18px rgba(0, 0, 139, 0.28);
}

.asmorix-wa--left .asmorix-wa__cta:hover {
  background: #000070;
}

.asmorix-wa__callbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: #00008b;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 139, 0.28);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
}

.asmorix-wa__callbar:hover {
  background: #000070;
  color: #fff !important;
}

.asmorix-wa__callbar-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffd200;
  color: #00008b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.asmorix-wa__callbar-num {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.asmorix-wa__fab {
  appearance: none;
  position: relative;
  width: 62px;
  height: 62px;
  border: 3px solid #25d366;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.asmorix-wa--left .asmorix-wa__fab {
  border-color: #00008b;
}

.asmorix-wa__fab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.asmorix-wa__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #fff;
}

.asmorix-wa--left .asmorix-wa__badge {
  background: #00008b;
}

body.asmorix-hsrch-open .asmorix-wa {
  display: none !important;
}

.progress-wrap {
  right: 22px !important;
  bottom: 96px !important;
}

@media (max-width: 575px) {
  .asmorix-wa--right,
  .asmorix-wa--left {
    bottom: 12px;
  }

  .asmorix-wa--right {
    right: 12px;
  }

  .asmorix-wa--left {
    left: 12px;
  }

  .asmorix-wa__callbar {
    min-height: 46px;
    padding: 6px 14px 6px 8px;
  }

  .asmorix-wa__callbar-ico {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .asmorix-wa__callbar-num {
    font-size: 14px;
  }
}
