/*
 * AMK Floating Contact Ads
 */

.amk-fca {
  position: fixed;
  z-index: 99999;
  bottom: var(--amk-fca-bottom, 22px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  pointer-events: none;
}

.amk-fca-right {
  right: 18px;
}

.amk-fca-left {
  left: 18px;
}

.amk-fca * {
  box-sizing: border-box;
}

.amk-fca-note {
  pointer-events: none;
  width: max-content;
  max-width: 230px;
  margin: 0 0 8px auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #101828;
  background: #ffffff;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .12);
  font-size: 12px;
  font-weight: 800;
}

.amk-fca-left .amk-fca-note {
  margin-left: 0;
  margin-right: auto;
}

.amk-fca-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.amk-fca-left .amk-fca-actions {
  flex-direction: row-reverse;
}

.amk-fca-btn,
.amk-fca-main {
  text-decoration: none !important;
  outline: none;
}

.amk-fca-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  color: #101828;
  border: 1px solid rgba(16, 24, 40, .08);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.amk-fca-btn:hover,
.amk-fca-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .22);
}

.amk-fca-icon {
  font-size: 20px;
  line-height: 1;
}

.amk-fca-phone {
  color: #2563eb;
}

.amk-fca-email {
  color: #9333ea;
}

.amk-fca-main {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--amk-fca-primary, #16a34a);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 44px rgba(22, 163, 74, .34);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}

.amk-fca-main:hover {
  filter: brightness(1.04);
  color: #ffffff !important;
}

.amk-fca-wa {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--amk-fca-primary, #16a34a);
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.amk-fca-label {
  line-height: 1;
}

.amk-fca-main::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--amk-fca-primary, #16a34a) 40%, transparent);
  animation: amk-fca-pulse 1.9s infinite;
  pointer-events: none;
}

@keyframes amk-fca-pulse {
  0% {
    opacity: .55;
    transform: scale(.96);
  }
  70% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (max-width: 640px) {
  .amk-fca {
    bottom: max(var(--amk-fca-bottom, 18px), env(safe-area-inset-bottom));
  }

  .amk-fca-right {
    right: 12px;
  }

  .amk-fca-left {
    left: 12px;
  }

  .amk-fca-note {
    font-size: 11px;
    padding: 6px 10px;
  }

  .amk-fca-actions {
    gap: 8px;
  }

  .amk-fca-btn {
    width: 43px;
    height: 43px;
    border-radius: 15px;
  }

  .amk-fca-main {
    min-height: 50px;
    padding-right: 14px;
    font-size: 13px;
  }

  .amk-fca-wa {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 390px) {
  .amk-fca-label {
    max-width: 116px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 767px) {
  .amk-fca-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .amk-fca-hide-desktop {
    display: none !important;
  }
}
