.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #f2bc2b;
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.chat-panel-wrap[hidden] {
  display: none;
}

.chat-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 40, 0.26);
  z-index: 1190;
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(320px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  z-index: 1201;
  border: 1px solid rgba(15, 59, 130, 0.1);
}

.chat-panel-header {
  background: linear-gradient(135deg, #1a3774, #213f82);
  color: #ffffff;
  padding: 14px 14px 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chat-panel-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-panel-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-panel-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.chat-panel-header h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}

.chat-panel-header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.chat-panel-close {
  background: transparent;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.chat-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chat-panel-body {
  background: #f8fafc;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 13px 14px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}

.chat-contact-card:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.chat-contact-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.chat-contact-text strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.chat-contact-text span {
  font-size: 0.9rem;
  margin-top: 4px;
  opacity: 0.96;
}

.chat-contact-card.messenger {
  background: #2b7be8;
}

.chat-contact-card.phone {
  background: #11a36a;
}

.chat-contact-card.email-primary {
  background: #1b336f;
}

.chat-contact-card.email-secondary {
  background: #e5e7eb;
  color: #111827;
  box-shadow: none;
  border: 1px solid #d3d9e4;
}

.chat-contact-card.email-secondary .chat-contact-icon {
  background: rgba(15, 23, 42, 0.06);
}

.chat-panel-verse {
  margin: 4px 4px 0;
  text-align: center;
  font-style: italic;
  color: #6b7280;
  line-height: 1.45;
  font-size: 0.88rem;
}

body.chat-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .chat-panel {
    right: 10px;
    bottom: 76px;
    width: calc(100vw - 20px);
    max-width: 320px;
  }

  .chat-panel-header h3 {
    font-size: 1.25rem;
  }

  .chat-contact-text strong {
    font-size: 1rem;
  }

  .chat-contact-text span {
    font-size: 0.86rem;
  }
}
