.chat-panel {
  position: fixed;
  inset: auto 22px 88px auto;
  margin: 0;
  padding: 0;
  width: min(370px, calc(100vw - 24px));
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 65px #10243740;
  z-index: 40;
}
.chat-panel:not([open]) {
  display: none;
}
.chat-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  padding: 23px;
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
}
.chat-panel-kicker {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #ffbd94;
  margin-bottom: 10px;
}
.chat-panel-head h2 {
  font-size: 23px;
  margin: 0 0 9px;
  letter-spacing: -0.6px;
}
.chat-panel-head p {
  color: #d8e1eb;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
.chat-close {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.chat-panel-body {
  padding: 22px;
}
.chat-greeting {
  padding: 13px 15px;
  border-radius: 0 9px 9px;
  background: #f1f5f8;
  color: #4f6072;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 17px;
}
.chat-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.chat-topics button {
  border: 1px solid #d3dde5;
  border-radius: 20px;
  padding: 7px 10px;
  background: white;
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}
.chat-topics button:hover {
  border-color: var(--red);
  color: var(--red);
}
.chat-form label {
  font-size: 10px;
}
.chat-form textarea {
  min-height: 86px;
  max-height: 190px;
  font-size: 12px;
  padding: 12px;
  margin-bottom: 13px;
  resize: vertical;
}
.chat-form .btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 11px;
}
.chat-form .chat-note {
  margin: 11px 0 16px;
  font-size: 9px;
  line-height: 1.7;
}
.chat-phone {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}
@media (max-width: 600px) {
  .chat-panel {
    right: 12px;
    bottom: 77px;
    max-height: calc(100dvh - 155px);
  }
  .chat-panel-head {
    padding: 20px;
  }
  .chat-panel-body {
    padding: 20px;
  }
}
