.bg-chat-launcher,
.bg-chat-welcome,
.bg-chat-welcome * {
  box-sizing: border-box;
}

.bg-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #064f8f;
  color: #fff;
  box-shadow: 0 12px 34px rgba(5, 38, 68, 0.3);
  font: 700 15px/1.1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.bg-chat-launcher:hover {
  background: #043b6c;
  box-shadow: 0 15px 38px rgba(5, 38, 68, 0.36);
  transform: translateY(-2px);
}

.bg-chat-launcher:focus-visible,
.bg-chat-welcome button:focus-visible,
.bg-chat-welcome a:focus-visible {
  outline: 3px solid #f1b24b;
  outline-offset: 3px;
}

.bg-chat-launcher svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.bg-chat-welcome[hidden] {
  display: none;
}

.bg-chat-welcome {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end;
  padding: 24px;
  background: rgba(4, 28, 49, 0.34);
}

.bg-chat-card {
  width: min(390px, 100%);
  overflow: hidden;
  border: 1px solid rgba(6, 79, 143, 0.14);
  border-radius: 20px;
  background: #fff;
  color: #123047;
  box-shadow: 0 24px 70px rgba(3, 31, 54, 0.3);
  animation: bg-chat-arrive 260ms ease-out;
}

.bg-chat-card-header {
  position: relative;
  padding: 24px 58px 22px 24px;
  background: linear-gradient(135deg, #043b6c, #0967ac);
  color: #fff;
}

.bg-chat-card-header p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bg-chat-card-header h2 {
  margin: 0;
  color: #fff;
  font: 700 25px/1.18 Arial, sans-serif;
}

.bg-chat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.bg-chat-card-body {
  padding: 23px 24px 24px;
}

.bg-chat-card-body p {
  margin: 0 0 20px;
  color: #4d6474;
  font: 400 15px/1.55 Arial, sans-serif;
}

.bg-chat-start {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 10px;
  background: #064f8f;
  color: #fff;
  text-decoration: none;
  font: 700 15px/1 Arial, sans-serif;
}

.bg-chat-start:hover {
  background: #043b6c;
  color: #fff;
}

.bg-chat-note {
  display: block;
  margin-top: 12px;
  color: #6b7e8b;
  text-align: center;
  font: 400 12px/1.4 Arial, sans-serif;
}

@keyframes bg-chat-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

@media (max-width: 760px) {
  .bg-chat-launcher {
    right: 14px;
    bottom: 82px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .bg-chat-welcome {
    align-items: end;
    padding: 12px 12px 82px;
  }

  .bg-chat-card {
    width: 100%;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-chat-launcher,
  .bg-chat-card {
    animation: none;
    transition: none;
  }
}
