/* plg_system_kahnbookingcta – floating "book a call / meeting" button.
   Change the colours here (or override these variables in the template's custom CSS). */
.kahn-cta {
  --kahn-cta-bg: #00377b;
  --kahn-cta-bg-hover: #002a5e;
  --kahn-cta-text: #ffffff;
  --kahn-cta-ring: #ffffff;
  /* 46px + 52px height puts the button on the same line as the WhatsApp and accessibility buttons. */
  --kahn-cta-bottom: 46px;

  position: fixed;
  bottom: calc(var(--kahn-cta-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  height: 52px;
  padding: 0 24px;
  border: 2px solid var(--kahn-cta-ring);
  border-radius: 999px;
  background: var(--kahn-cta-bg);
  color: var(--kahn-cta-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: background-color .15s ease, transform .15s ease;
}

.kahn-cta--center { left: 50%; transform: translateX(-50%); }
.kahn-cta--start { inset-inline-start: 20px; }
.kahn-cta--end { inset-inline-end: 20px; }

.kahn-cta:hover,
.kahn-cta:focus {
  background: var(--kahn-cta-bg-hover);
  color: var(--kahn-cta-text);
  text-decoration: none;
}

.kahn-cta--center:hover { transform: translateX(-50%) translateY(-2px); }
.kahn-cta--start:hover,
.kahn-cta--end:hover { transform: translateY(-2px); }

.kahn-cta:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.kahn-cta__icon { flex: none; }

/* Phones: stay between the WhatsApp and accessibility buttons in the corners. */
@media (max-width: 640px) {
  .kahn-cta {
    max-width: calc(100% - 150px);
    padding: 0 14px;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kahn-cta { transition: none; }
  .kahn-cta--center:hover { transform: translateX(-50%); }
  .kahn-cta--start:hover,
  .kahn-cta--end:hover { transform: none; }
}

@media print {
  .kahn-cta { display: none; }
}
