/* Cora floating consultation chat widget */
.cora-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000; /* above sticky headers / Elementor overlays */
}

/* Launcher button */
.cora-chat__launcher {
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.cora-chat__launcher:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.cora-chat__launcher:focus-visible {
  outline: 3px solid rgba(108, 194, 76, 0.6);
  outline-offset: 3px;
}
.cora-chat__launcher svg {
  width: 40px;
  height: 40px;
  display: block;
}

/* Floating card */
.cora-chat__card {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 380px;
  height: min(620px, 80vh);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.cora-chat.is-open .cora-chat__card {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Card header */
.cora-chat__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 14px;
  background: #013138; /* Cora dark teal (matches site) */
  color: #ffffff;
}
.cora-chat__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.cora-chat__close:hover {
  background: rgba(255, 255, 255, 0.34);
}

/* Card body / iframe */
.cora-chat__body {
  flex: 1 1 auto;
  position: relative;
  background: #ffffff;
}
.cora-chat__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile: near full-screen card */
@media (max-width: 480px) {
  .cora-chat {
    right: 16px;
    bottom: 16px;
  }
  .cora-chat__card {
    width: calc(100vw - 32px);
    height: min(75vh, 620px);
  }
}
