.dpc-chat,
.dpc-chat * {
  box-sizing: border-box;
}

.dpc-chat {
  --dpc-ink: #09131f;
  --dpc-ink-soft: #122231;
  --dpc-paper: #f4f7f8;
  --dpc-white: #ffffff;
  --dpc-line: #dbe5ea;
  --dpc-muted: #60727d;
  --dpc-cyan: #35d4d0;
  --dpc-cyan-dark: #087e86;
  --dpc-danger: #b42318;
  --dpc-cookie-offset: 0px;
  position: relative;
  z-index: 999999;
  color: var(--dpc-ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.48;
  text-align: left;
}

.dpc-chat [hidden] {
  display: none !important;
}

.dpc-chat button,
.dpc-chat input,
.dpc-chat textarea {
  font: inherit;
}

.dpc-chat button {
  text-transform: none;
}

.dpc-chat__launcher {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--dpc-cookie-offset));
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 11px;
  padding: 7px 19px 7px 8px;
  border: 1px solid rgba(53, 212, 208, 0.34);
  border-radius: 999px;
  background: var(--dpc-ink);
  color: var(--dpc-white);
  box-shadow: 0 18px 45px rgba(9, 19, 31, 0.23), 0 4px 12px rgba(9, 19, 31, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 150ms ease, bottom 220ms ease;
}

.dpc-chat__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(9, 19, 31, 0.27), 0 5px 14px rgba(9, 19, 31, 0.16);
}

.dpc-chat__launcher-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--dpc-cyan);
  color: var(--dpc-ink);
}

.dpc-chat__launcher-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dpc-chat__launcher-label {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.dpc-chat--open .dpc-chat__launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
}

.dpc-chat__dialog {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--dpc-cookie-offset));
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(690px, calc(100dvh - 48px - var(--dpc-cookie-offset)));
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(9, 19, 31, 0.12);
  border-radius: 22px;
  background: var(--dpc-white);
  box-shadow: 0 28px 80px rgba(9, 19, 31, 0.25), 0 8px 24px rgba(9, 19, 31, 0.12);
  transform-origin: right bottom;
  animation: dpc-chat-in 220ms cubic-bezier(0.2, 0.82, 0.3, 1) both;
  transition: bottom 220ms ease;
}

@keyframes dpc-chat-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dpc-chat__header {
  position: relative;
  display: grid;
  min-height: 82px;
  flex: 0 0 auto;
  grid-template-columns: 42px 1fr 44px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 17px 14px 16px 18px;
  background:
    linear-gradient(rgba(53, 212, 208, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 212, 208, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, var(--dpc-ink), #10283a);
  background-size: 18px 18px, 18px 18px, auto;
  color: var(--dpc-white);
}

.dpc-chat__header::after {
  position: absolute;
  right: 58px;
  bottom: 0;
  width: 86px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dpc-cyan));
  content: "";
}

.dpc-chat__brandmark {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(53, 212, 208, 0.38);
  border-radius: 11px;
  background: rgba(53, 212, 208, 0.08);
}

.dpc-chat__brandmark::before,
.dpc-chat__brandmark::after {
  position: absolute;
  inset: 50% 7px auto;
  height: 1px;
  background: rgba(53, 212, 208, 0.62);
  content: "";
}

.dpc-chat__brandmark::after {
  inset: 7px auto 7px 50%;
  width: 1px;
  height: auto;
}

.dpc-chat__brandmark span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--dpc-cyan);
  border-radius: 50%;
  background: var(--dpc-ink);
}

.dpc-chat__brandmark span:nth-child(1) { top: 7px; left: 7px; }
.dpc-chat__brandmark span:nth-child(2) { top: 7px; right: 7px; }
.dpc-chat__brandmark span:nth-child(3) { right: 7px; bottom: 7px; }
.dpc-chat__brandmark span:nth-child(4) { bottom: 7px; left: 7px; }

.dpc-chat__heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.dpc-chat__heading strong {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.dpc-chat__heading span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dpc-chat__heading i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--dpc-cyan);
  box-shadow: 0 0 0 4px rgba(53, 212, 208, 0.13);
}

.dpc-chat__close,
.dpc-lead-form__back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.dpc-chat__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dpc-chat__close svg,
.dpc-lead-form__back svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.dpc-chat__body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--dpc-paper);
  scrollbar-color: #b8c7ce transparent;
  scrollbar-width: thin;
}

.dpc-chat__messages {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 13px;
  padding: 20px 18px 10px;
}

.dpc-chat--lead .dpc-chat__messages {
  display: none;
}

.dpc-chat--lead .dpc-chat__body {
  background: var(--dpc-white);
}

.dpc-chat__message {
  max-width: 91%;
  overflow-wrap: anywhere;
  animation: dpc-message-in 180ms ease both;
}

@keyframes dpc-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.dpc-chat__message p {
  margin: 0;
}

.dpc-chat__message--bot {
  align-self: flex-start;
  padding: 13px 14px 14px;
  border: 1px solid var(--dpc-line);
  border-radius: 4px 15px 15px 15px;
  background: var(--dpc-white);
  box-shadow: 0 4px 14px rgba(9, 19, 31, 0.05);
}

.dpc-chat__message--user {
  align-self: flex-end;
  padding: 11px 14px;
  border-radius: 15px 4px 15px 15px;
  background: var(--dpc-ink);
  color: var(--dpc-white);
}

.dpc-chat__message-label {
  display: block;
  margin-bottom: 5px;
  color: var(--dpc-cyan-dark);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.dpc-chat__details {
  margin-top: 11px !important;
  padding-top: 11px;
  border-top: 1px solid var(--dpc-line);
  color: #425661;
  font-size: 13px;
  line-height: 1.52;
}

.dpc-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.dpc-chat__action {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #c4d3d9;
  border-radius: 9px;
  background: var(--dpc-white);
  color: var(--dpc-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dpc-chat__action:hover {
  border-color: var(--dpc-cyan-dark);
}

.dpc-chat__action--primary {
  border-color: var(--dpc-ink);
  background: var(--dpc-ink);
  color: var(--dpc-white);
}

.dpc-chat__topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 18px 17px;
}

.dpc-chat__topic {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #cbd8de;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #243844;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.dpc-chat__topic:hover {
  border-color: var(--dpc-cyan-dark);
  background: var(--dpc-white);
  transform: translateY(-1px);
}

.dpc-chat__question {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--dpc-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(9px);
}

.dpc-chat__question textarea {
  width: 100%;
  min-height: 44px;
  max-height: 88px;
  resize: none;
  padding: 10px 12px;
  border: 1px solid #c6d3d9;
  border-radius: 11px;
  outline: 0;
  background: var(--dpc-white);
  color: var(--dpc-ink);
  line-height: 1.4;
}

.dpc-chat__question textarea::placeholder,
.dpc-lead-form input::placeholder,
.dpc-lead-form textarea::placeholder {
  color: #83949d;
  opacity: 1;
}

.dpc-chat__question button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--dpc-cyan);
  color: var(--dpc-ink);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.dpc-chat__question button:hover {
  background: #55e1dd;
  transform: translateY(-1px);
}

.dpc-chat__question button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dpc-lead-form {
  display: flex;
  flex-direction: column;
  padding: 17px 18px 21px;
}

.dpc-lead-form__head {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
  margin: -4px 0 15px -9px;
}

.dpc-lead-form__back {
  color: var(--dpc-ink);
}

.dpc-lead-form__back:hover {
  background: #e7eef1;
}

.dpc-lead-form__head div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.dpc-lead-form__head strong {
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.dpc-lead-form__head span {
  color: var(--dpc-muted);
  font-size: 12px;
}

.dpc-lead-form > label:not(.dpc-lead-form__consent) {
  margin: 9px 0 5px;
  color: #304650;
  font-size: 12px;
  font-weight: 700;
}

.dpc-lead-form > label span {
  color: var(--dpc-cyan-dark);
}

.dpc-lead-form > input,
.dpc-lead-form > textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid #c7d4da;
  border-radius: 9px;
  outline: 0;
  background: var(--dpc-white);
  color: var(--dpc-ink);
}

.dpc-lead-form > textarea {
  min-height: 78px;
  resize: vertical;
}

.dpc-lead-form [aria-invalid="true"] {
  border-color: var(--dpc-danger) !important;
}

.dpc-lead-form__field-error {
  min-height: 0;
  margin-top: 3px;
  color: var(--dpc-danger);
  font-size: 11px;
}

.dpc-lead-form__field-error:empty {
  display: none;
}

.dpc-lead-form__consent {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 9px;
  margin-top: 13px;
  color: #51656f;
  font-size: 11px;
  line-height: 1.4;
}

.dpc-lead-form__consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dpc-cyan-dark);
}

.dpc-lead-form__consent a {
  color: var(--dpc-cyan-dark);
  text-underline-offset: 2px;
}

.dpc-lead-form__submit {
  min-height: 46px;
  margin-top: 15px;
  border: 0;
  border-radius: 10px;
  background: var(--dpc-ink);
  color: var(--dpc-white);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.dpc-lead-form__submit:hover {
  background: #14293a;
}

.dpc-lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.dpc-lead-form__status {
  margin: 10px 0 0;
  color: var(--dpc-danger);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dpc-lead-form__status--success {
  padding: 13px 14px;
  border: 1px solid rgba(8, 126, 134, 0.24);
  border-radius: 10px;
  background: rgba(53, 212, 208, 0.09);
  color: #075e65;
  font-size: 13px;
}

.dpc-lead-form__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.dpc-chat__footer {
  display: flex;
  min-height: 35px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-top: 1px solid var(--dpc-line);
  background: var(--dpc-white);
  color: #71838c;
  font-size: 10px;
  letter-spacing: 0.015em;
  text-align: center;
  overflow-wrap: anywhere;
}

.dpc-chat__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dpc-chat :focus-visible {
  outline: 3px solid rgba(53, 212, 208, 0.5);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  body.dpc-chat-page--locked {
    overflow: hidden;
  }

  .dpc-chat__launcher {
    right: 14px;
    bottom: calc(14px + var(--dpc-cookie-offset));
  }

  .dpc-chat__dialog {
    right: 12px;
    bottom: calc(12px + var(--dpc-cookie-offset));
    width: calc(100vw - 24px);
    height: min(720px, calc(100dvh - 24px - var(--dpc-cookie-offset)));
    min-height: min(500px, calc(100dvh - 24px - var(--dpc-cookie-offset)));
    border-radius: 18px;
  }

  .dpc-chat__header {
    min-height: 76px;
    padding-top: 14px;
    padding-bottom: 13px;
  }

  .dpc-chat__messages {
    padding-right: 14px;
    padding-left: 14px;
  }

  .dpc-chat__topics {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 390px) {
  .dpc-chat__launcher-label {
    display: none;
  }

  .dpc-chat__launcher {
    padding: 7px;
  }

  .dpc-chat__topics {
    grid-template-columns: 1fr;
  }

  .dpc-chat__heading strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpc-chat *,
  .dpc-chat *::before,
  .dpc-chat *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
