.deltanet-chat {
  --chat-blue: #2864df;
  position: fixed;
  z-index: 1000;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  font-family: var(--font-body, "DM Sans", Arial, sans-serif);
}
.deltanet-chat-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #6192fa;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2864df, #1749b6);
  box-shadow: 0 12px 34px rgb(19 64 148 / 38%);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.deltanet-chat-launch:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgb(19 64 148 / 45%); }
.deltanet-chat-launch svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deltanet-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(690px, calc(100dvh - 105px));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgb(158 188 229 / 45%);
  border-radius: 20px;
  color: #1b2c43;
  background: #fff;
  box-shadow: 0 26px 90px rgb(4 18 42 / 35%);
}
.deltanet-chat-panel[hidden] { display: none; }
.deltanet-chat-header { position: sticky; top: 0; z-index: 1; flex: 0 0 auto; display: flex; align-items: center; gap: 11px; padding: 16px 17px; color: #f5f8ff; background: #101d31; }
.deltanet-chat-avatar { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #70dbe7, #2864df); font: 800 19px/1 var(--font-display, "Manrope", Arial, sans-serif); }
.deltanet-chat-heading { min-width: 0; }
.deltanet-chat-heading h2 { margin: 0; color: inherit; font-size: 14px; line-height: 1.3; }
.deltanet-chat-heading p { margin: 4px 0 0; color: #b9c9df; font-size: 10px; line-height: 1.4; }
.deltanet-chat-close { width: 36px; height: 36px; margin-left: auto; border: 1px solid rgb(255 255 255 / 15%); border-radius: 50%; color: #fff; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.deltanet-chat-log { min-height: 130px; max-height: 290px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; overflow-y: auto; overscroll-behavior: contain; }
.deltanet-chat-message { max-width: 91%; padding: 10px 12px; border-radius: 13px; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.deltanet-chat-message--bot { border: 1px solid #e1e8f1; border-bottom-left-radius: 4px; color: #30435c; background: #f4f7fb; }
.deltanet-chat-message--user { align-self: flex-end; border-bottom-right-radius: 4px; color: #183e7b; background: #e8f0ff; }
.deltanet-chat-form { display: grid; gap: 10px; padding: 0 16px 15px; }
.deltanet-chat-form[hidden], .deltanet-chat-contact[hidden] { display: none; }
.deltanet-chat-form label { display: grid; gap: 6px; color: #273a53; font-size: 11px; font-weight: 700; }
.deltanet-chat-form input:not([type="checkbox"]), .deltanet-chat-form textarea, .deltanet-chat-form select { width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid #d5deea; border-radius: 9px; outline: 0; color: #1b2c43; background: #fff; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.45; }
.deltanet-chat-form textarea { min-height: 74px; resize: vertical; }
.deltanet-chat-form input:focus, .deltanet-chat-form textarea:focus, .deltanet-chat-form select:focus { border-color: #4e83eb; box-shadow: 0 0 0 3px rgb(40 100 223 / 12%); }
.deltanet-chat-contact { display: grid; gap: 9px; }
.deltanet-chat-contact .chat-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.deltanet-chat-consent { display: flex !important; align-items: flex-start; gap: 8px !important; color: #68788f !important; font-size: 10px !important; font-weight: 400 !important; line-height: 1.5; }
.deltanet-chat-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #2864df; }
.deltanet-chat-consent a { color: #2864df; font-weight: 700; text-decoration: underline; }
.deltanet-chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 0 16px 12px; }
.deltanet-chat-contact-open, .deltanet-chat-submit { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: var(--chat-blue); font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.deltanet-chat-contact-open:hover, .deltanet-chat-submit:hover { transform: translateY(-1px); background: #1749b6; }
.deltanet-chat-continue { min-height: 39px; padding: 0 13px; border: 1px solid #cbd8e8; border-radius: 10px; color: #284260; background: #fff; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.deltanet-chat-status { min-height: 0; margin: 0; color: #315a9e; font-size: 10px; line-height: 1.5; }
.deltanet-chat-footnote { margin: auto 0 0; padding: 11px 16px; border-top: 1px solid #e9eef5; color: #77869b; font-size: 9px; line-height: 1.5; }
.deltanet-chat-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.deltanet-chat [hidden] { display: none !important; }
@media (max-width: 520px) {
  .deltanet-chat { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .deltanet-chat-launch { min-height: 46px; padding: 0 14px; font-size: 12px; }
  .deltanet-chat-panel { right: -2px; bottom: 57px; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 82px); border-radius: 16px; }
  .deltanet-chat-log { max-height: min(260px, 31dvh); }
  .deltanet-chat-contact .chat-contact-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .deltanet-chat-launch, .deltanet-chat-contact-open, .deltanet-chat-submit { transition: none; } }
