/* ==========================================================================
   Konektenou — Sarah chat widget styles
   ========================================================================== */

.konek-chat-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20,36,64,0.35);
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.15s ease;
}
.konek-chat-fab:hover { transform: translateY(-2px); }

.konek-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 22px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(20,36,64,0.25);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
  font-family: var(--font-body);
}
.konek-chat-panel.is-open { display: flex; }

.konek-chat-header {
  background: var(--color-navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.konek-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}
.konek-chat-headtext { display: flex; flex-direction: column; line-height: 1.3; }
.konek-chat-headtext strong { font-size: 1rem; }
.konek-chat-headtext span { font-size: 0.78rem; color: #C7CEDC; }
.konek-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.konek-chat-gate {
  padding: 28px 22px;
  text-align: center;
  overflow-y: auto;
}
.konek-chat-gate-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin: 0 0 4px;
}
.konek-chat-gate-sub {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin: 0 0 20px;
}
.konek-chat-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.konek-chat-form input {
  padding: 12px 14px;
  border: 1px solid var(--color-line-strong);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--color-bg);
}
.konek-chat-form input:focus {
  outline: none;
  border-color: var(--color-teal);
  background: #fff;
}
.konek-chat-form-error {
  font-size: 0.8rem;
  color: #B3492F;
  font-weight: 600;
}
.konek-chat-start {
  background: var(--color-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 4px;
}
.konek-chat-start:hover { background: #1c3358; }

.konek-chat-frame-wrap {
  flex: 1;
  min-height: 380px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .konek-chat-panel {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: 86px;
  }
  .konek-chat-fab { right: 16px; bottom: 16px; }
}
