
:root {
  --sm-navy: #081e3a;
  --sm-navy-2: #0d2b4d;
  --sm-silver: #c8cfd7;
  --sm-paper: #f8fafc;
  --sm-white: #ffffff;
  --sm-ink: #1d2b3c;
  --sm-muted: #607084;
  --sm-line: rgba(8,30,58,.14);
  --sm-shadow: 0 24px 70px rgba(8,30,58,.20);
}
.sm-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: var(--sm-navy);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font: 700 14px/1 Inter, system-ui, sans-serif;
  box-shadow: var(--sm-shadow);
  cursor: pointer;
}
.sm-chat-launcher-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(145deg,#fff,#c8cfd7);
  color: var(--sm-navy);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
}
.sm-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 9999;
  width: min(430px, calc(100vw - 28px));
  height: min(680px, calc(100vh - 110px));
  background: rgba(255,255,255,.98);
  border: 1px solid var(--sm-line);
  border-radius: 26px;
  box-shadow: var(--sm-shadow);
  overflow: hidden;
  display: none;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
}
.sm-chat-panel.open { display: flex; }
.sm-chat-header {
  padding: 20px 20px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200,207,215,.38), transparent 36%),
    linear-gradient(145deg, #081e3a, #0d2b4d);
  color: #fff;
  position: relative;
}
.sm-chat-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sm-chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sm-chat-seal {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: var(--sm-navy);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: .08em;
  flex: 0 0 42px;
}
.sm-chat-title strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: .03em;
}
.sm-chat-title span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.sm-chat-close {
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 20px;
}
.sm-chat-intro {
  margin: 16px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  line-height: 1.45;
}
.sm-chat-actions {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--sm-line);
  background: #fff;
}
.sm-action-card {
  border: 1px solid var(--sm-line);
  border-radius: 16px;
  padding: 11px 10px;
  background: #f8fafc;
  color: var(--sm-navy);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.sm-action-card small {
  display: block;
  margin-top: 4px;
  color: var(--sm-muted);
  font-weight: 600;
}
.sm-chat-messages {
  flex: 1;
  padding: 18px 16px;
  overflow: auto;
  background:
    radial-gradient(circle at 0 0, rgba(200,207,215,.18), transparent 34%),
    #fbfcfe;
}
.sm-msg {
  max-width: 88%;
  margin: 0 0 12px;
  padding: 13px 14px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.sm-msg.bot {
  background: #fff;
  color: var(--sm-ink);
  border: 1px solid rgba(8,30,58,.10);
  box-shadow: 0 8px 20px rgba(8,30,58,.04);
}
.sm-msg.user {
  margin-left: auto;
  background: var(--sm-navy);
  color: #fff;
}
.sm-msg-meta {
  display: block;
  margin-top: 8px;
  color: var(--sm-muted);
  font-size: 12px;
}
.sm-quick-replies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px 2px;
  background: #fbfcfe;
}
.sm-quick-replies button {
  border: 1px solid var(--sm-line);
  background: #fff;
  color: var(--sm-navy);
  border-radius: 999px;
  padding: 9px 11px;
  font: 700 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.sm-contact-box {
  margin-top: 12px;
  padding: 12px;
  background: #f4f7fb;
  border: 1px solid rgba(8,30,58,.10);
  border-radius: 16px;
}
.sm-contact-box label {
  display: block;
  margin: 8px 0 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sm-navy);
}
.sm-contact-box input,
.sm-contact-box textarea {
  width: 100%;
  border: 1px solid rgba(8,30,58,.18);
  border-radius: 10px;
  padding: 10px;
  font: 14px Inter, system-ui, sans-serif;
}
.sm-contact-box textarea {
  min-height: 74px;
}
.sm-contact-box button {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--sm-navy);
  color: #fff;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.sm-chat-input {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--sm-line);
  background: #fff;
}
.sm-chat-input input {
  flex: 1;
  border: 1px solid rgba(8,30,58,.18);
  border-radius: 14px;
  padding: 13px 14px;
  font: 14px Inter, system-ui, sans-serif;
}
.sm-chat-input button {
  border: 0;
  border-radius: 14px;
  background: var(--sm-navy);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.sm-chat-disclaimer {
  padding: 0 14px 12px;
  background: #fff;
  color: var(--sm-muted);
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 620px) {
  .sm-chat-panel {
    right: 10px;
    left: 10px;
    bottom: 78px;
    width: auto;
    height: min(680px, calc(100vh - 92px));
    border-radius: 22px;
  }
  .sm-chat-launcher {
    right: 14px;
    bottom: 14px;
  }
  .sm-chat-actions {
    grid-template-columns: 1fr;
  }
}
