/* Same local variable font as AutoHive, including Cyrillic and the ruble sign. */
@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-ruble.woff2") format("woff2");
  unicode-range: U+20BD;
}

html {
  height: 100%;
}

:root {
  --bg-1: #f3f6ec;
  --bg-2: #e8efd9;
  --surface: #ffffff;
  --surface-soft: #eef2e8;
  --text-main: #1f2933;
  --text-muted: #667064;
  --brand: #a91f3d;
  --brand-dark: #89182f;
  --line: #dde3d5;
  --chat-background: #fafbf8;
  --operator-bubble: #eef2e8;
  --operator-text: #1f2933;
  --user-bubble: #a91f3d;
  --system-bubble: #e8efd9;
  --system-text: #667064;
  --button-text: #ffffff;
  --price-color: #20a653;
  --positive: #20a653;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: var(--bg-1);
  height: 100%;
  min-height: 100vh;
}

body.embed-body {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none;
}

.chat-page {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-1);
}

.embed-page.chat-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  place-items: stretch;
  background: transparent;
}

.embedded-chat {
  width: min(520px, 100%);
  min-width: 0;
  min-height: 0;
}

.embed-page .embedded-chat {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.chat-shell {
  position: relative;
  font-family: Onest, Arial, sans-serif;
  width: 100%;
  height: min(92vh, 760px);
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.18);
}

.embed-page .chat-shell {
  height: 100%;
  max-height: none;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: none;
}

.chat-load-failure {
  position: absolute;
  z-index: 20;
  inset: 73px 0 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 41, 51, 0.46);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.chat-load-failure.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chat-load-failure-card {
  width: min(100%, 390px);
  padding: 25px 22px 22px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 55px rgba(22, 29, 34, 0.26);
}

.chat-load-failure-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand);
}

.chat-load-failure-icon svg {
  width: 31px;
  height: 31px;
}

.chat-load-failure-card h2 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 21px;
  line-height: 1.25;
}

.chat-load-failure-card p {
  max-width: 340px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.chat-load-failure-card p span {
  display: block;
}

.chat-load-failure-card button {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: var(--button-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.chat-load-failure-card button:hover {
  background: var(--brand-dark);
}

.chat-load-failure-card button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 3px;
}

.chat-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.operator-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.operator-box img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.operator-box.is-connecting img,
.operator-box.is-connecting strong {
  display: none;
}

.operator-box strong {
  display: block;
  color: var(--text-main);
}

.operator-box p {
  margin: 2px 0 0;
  color: var(--positive);
  font-size: 0.86rem;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.chat-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.font-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text-muted);
  min-width: 36px;
  min-height: 34px;
  padding: 5px 8px;
  font-weight: 700;
  cursor: pointer;
}

.chat-messages {
  position: relative;
  min-height: 0;
  max-height: 100%;
  background: var(--chat-background);
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-messages > * {
  flex: 0 0 auto;
}

.chat-messages {
  scrollbar-color: #b9bfb5 transparent;
  scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #b9bfb5;
  background-clip: padding-box;
}

.bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-main);
  line-height: 1.45;
  font-size: var(--chat-font-size, 16px);
}

.bubble.operator {
  background: var(--operator-bubble);
  color: var(--operator-text);
  border-top-left-radius: 4px;
  white-space: pre-line;
}

.bubble.operator:not(.offer-banner-bubble) {
  align-self: flex-start;
  width: fit-content;
  overflow-wrap: anywhere;
}

.operator-phone-link {
  color: currentColor;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bubble.user {
  background: var(--user-bubble);
  color: var(--button-text);
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.bubble.system {
  align-self: center;
  max-width: 92%;
  background: var(--system-bubble);
  color: var(--system-text);
  font-size: calc(var(--chat-font-size, 16px) * 0.84);
  text-align: center;
  border-radius: 999px;
  padding: 7px 12px;
}

.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--operator-text);
  animation: blink 0.9s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chat-footer {
  min-height: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.phone-input-active .chat-footer {
  display: none;
}

.chat-shell.is-chat-finished .chat-footer {
  display: none;
}

.chat-shell.is-chat-finished .chat-messages button:disabled,
.chat-shell.is-chat-finished .chat-messages [aria-disabled="true"] {
  pointer-events: none;
}

.phone-input-bubble {
  width: min(100%, 540px);
  max-width: 100%;
  align-self: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-bubble {
  padding: 8px;
  background: transparent;
  box-shadow: none;
}

.choice-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}

.bubble.user.extra-question-choice-bubble {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.extra-question-choice-stack {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.choice-btn.extra-question-choice-btn {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  text-align: center;
}

.choice-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  min-height: 44px;
  padding: 7px 12px 7px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: var(--chat-font-size, 16px);
}

.choice-btn.has-image {
  width: 104px;
  min-height: 92px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.brand-choice-bubble {
  width: 100%;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.bubble.user.brand-choice-bubble {
  background: transparent !important;
  max-width: 100%;
}

.brand-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  width: 100%;
}

.choice-btn.brand-choice-btn {
  width: 100%;
  min-height: 126px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border-color: transparent;
  border-width: 0;
  color: var(--text-main);
  text-align: center;
  min-width: 0;
}

.brand-choice-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 58px;
}

.brand-choice-logo {
  width: 96px;
  height: 58px;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.choice-image.brand-choice-logo {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-choice-placeholder {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--system-bubble);
  color: var(--system-text);
  font-weight: 800;
}

.brand-choice-label {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-choice-bubble {
  width: min(100%, 1120px);
  max-width: 100%;
}

.bubble.user.model-choice-bubble {
  background: transparent;
  max-width: 100%;
  padding: 0;
}

.model-choice-stack {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.choice-btn.model-choice-btn {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  justify-items: stretch;
  padding: 12px;
  gap: 10px;
  border-radius: 16px;
  text-align: left;
  border-width: 0;
  background: #ffffff;
}

.choice-image.model-choice-image {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  object-fit: contain;
  flex: none;
  background: transparent;
  border: 0;
}

.vehicle-image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: #f8f9fa;
  color: var(--text-muted);
}

.vehicle-image-placeholder-logo {
  width: min(42%, 130px);
  max-height: 72px;
  object-fit: contain;
}

.vehicle-image-placeholder-text {
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.2;
}

.model-choice-content {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: center;
}

.model-choice-title {
  color: var(--text-main);
  font-size: 1.12em;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.model-choice-credit-row,
.model-choice-credit-label,
.selected-model-label {
  color: var(--text-muted);
  font-size: 1em;
  font-weight: 400;
}

.model-choice-credit-row,
.selected-model-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.model-choice-price {
  color: var(--price-color);
  font-size: 1.08em;
  font-weight: 800;
}

.model-choice-old-price {
  color: #92998f;
  font-size: 0.94em;
  text-decoration: line-through;
}

.model-choice-payment,
.selected-model-payment {
  color: var(--price-color);
  font-size: 1.14em;
  font-weight: 800;
}

.bubble.user.selected-model-bubble {
  display: grid;
  gap: 10px;
  align-items: stretch;
  width: min(100%, 520px);
  max-width: 100%;
  padding: 14px;
  border: 2px solid var(--brand);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 10%, transparent);
}

.choice-image.selected-model-image {
  width: 100%;
  height: 240px;
  flex: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
}

.selected-model-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.selected-model-title {
  color: var(--text-main);
  font-size: 1em;
  line-height: 1.2;
}

.offer-banner-bubble {
  width: min(100%, 780px);
  max-width: 100%;
  align-self: stretch;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.offer-banner {
  --offer-base: #e87532;
  --offer-light: #f39457;
  --offer-dark: #b95b2d;
  --offer-accent: #f4c2a6;
  --offer-text: #ffffff;
  --offer-bonus-text: #9f3f1d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  row-gap: 8px;
  width: 100%;
  border-radius: 14px;
  padding: 18px 28px 16px;
  background:
    linear-gradient(18deg, transparent 0 55%, rgba(255, 255, 255, 0.12) 55% 100%),
    linear-gradient(135deg, var(--offer-dark) 0%, var(--offer-base) 48%, var(--offer-light) 100%);
  color: var(--offer-text);
}

.offer-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  bottom: -18%;
  left: -14%;
  width: 66%;
  transform: rotate(-7deg) skewX(-10deg);
  clip-path: polygon(0 8%, 88% 0, 100% 72%, 12% 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0 58%, rgba(255, 255, 255, 0.16) 58% 66%, transparent 66%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.4), var(--offer-accent));
  opacity: 0.78;
}

.offer-banner::after {
  content: "";
  position: absolute;
  inset: auto -18% -34% 4%;
  z-index: -1;
  height: 68%;
  transform: rotate(7deg);
  clip-path: polygon(0 38%, 100% 0, 100% 58%, 10% 100%);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18));
}

.offer-banner-head,
.offer-banner-body {
  position: relative;
  z-index: 1;
}

.offer-banner-head {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.offer-banner-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.offer-banner-bank-logo {
  max-width: 285px;
  max-height: 58px;
  object-fit: contain;
}

.offer-banner-body {
  display: contents;
}

.offer-banner-car-box {
  display: contents;
}

.offer-banner-car {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  transform: scale(1.35);
  transform-origin: center;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.18));
}

.offer-banner-car-placeholder {
  width: min(100%, 330px);
  height: 170px;
  align-self: center;
  justify-self: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--offer-bonus-text);
  filter: none;
}

.offer-banner-car-placeholder .vehicle-image-placeholder-logo {
  width: min(44%, 120px);
  max-height: 64px;
}

.offer-banner-conditions {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  gap: 2px;
  justify-self: end;
  max-width: 100%;
  color: var(--offer-text);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  text-align: right;
}

.offer-banner-content {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.offer-banner-main-offer {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-banner-offer-label {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 0.95;
}

.offer-banner-offer-rate {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 0.88;
}

.offer-banner-bonus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 330px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--offer-bonus-text);
  text-align: left;
}

.offer-banner-percent {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 0.9em;
  color: var(--offer-bonus-text);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.offer-banner-bonus strong {
  font-size: 15px;
  line-height: 1.08;
}

.choice-image {
  width: 84px;
  height: 60px;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
  background: var(--chat-background);
  border: 1px solid var(--line);
}

.choice-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.choice-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.call-action-bubble {
  padding: 0;
}

.call-action-button {
  justify-content: center;
  min-width: 140px;
  padding: 10px 18px;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
}

.call-action-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call-action-button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--button-text);
}

.choice-bubble.is-history-choice .choice-btn {
  opacity: 0.72;
}

.choice-bubble.is-history-choice .choice-btn:hover,
.choice-bubble.is-history-choice .choice-btn.is-selected {
  opacity: 1;
}

.choice-btn.is-selected {
  box-shadow: inset 0 0 0 2px var(--brand);
}

.choice-btn.brand-choice-btn.is-selected,
.choice-btn.model-choice-btn.is-selected {
  background: color-mix(in srgb, var(--brand) 7%, #ffffff);
}

.choice-type-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 2px;
}

.choice-type-form input {
  appearance: none;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 9px 10px;
  font-size: var(--chat-font-size, 16px);
}

.choice-type-form input:focus,
.text-form input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-type-form button {
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: var(--button-text);
  padding: 9px 12px;
  cursor: pointer;
  font-size: var(--chat-font-size, 16px);
}

.choice-type-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #dc2626;
  font-size: 0.82rem;
  text-align: right;
}

.text-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.text-form.hidden {
  display: none;
}

.text-form input {
  appearance: none;
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  padding: 10px;
  font-size: var(--chat-font-size, 16px);
}

.phone-field-label {
  flex: 1 0 100%;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.text-form.phone-form input {
  border: 2px solid var(--brand);
  background: #ffffff;
  box-shadow: none;
}

.text-form.phone-form input:focus {
  box-shadow: none;
}

.text-form button {
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--button-text);
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  font-size: var(--chat-font-size, 16px);
}

.choice-type-form button:hover,
.text-form button:hover,
.cookie-notice-accept:hover {
  background: var(--brand-dark);
}

.personal-data-notice {
  flex: 1 0 100%;
  order: 2;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.personal-data-notice p {
  margin: 0;
}

.personal-data-notice a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.personal-data-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 24px;
  cursor: pointer;
}

.text-form.phone-form .personal-data-consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0 0 0 0;
  border: 0;
  border-radius: 0;
  background: initial;
  padding: 0;
  box-shadow: none;
  accent-color: var(--brand);
}

.personal-data-consent input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 2px;
}

.chat-alert-layer {
  position: absolute;
  z-index: 50;
  inset: 0;
  padding: 20px;
  background: rgba(31, 41, 51, 0.28);
}

.chat-alert-popup {
  position: absolute;
  left: 50%;
  bottom: var(--chat-alert-bottom, 20px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 360px);
  max-width: calc(100% - 40px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(31, 41, 51, 0.2);
}

.chat-alert-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8eef1;
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}

.chat-alert-content {
  display: grid;
  gap: 5px;
  align-content: center;
}

.chat-alert-content strong {
  color: var(--text-main);
  font-size: 16px;
}

.chat-alert-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.chat-alert-popup button {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 108px;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 9px 16px;
  background: var(--brand);
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
}

.chat-alert-popup button:hover,
.chat-alert-popup button:focus-visible {
  background: var(--brand-dark);
}

.chat-alert-popup button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent);
  outline-offset: 2px;
}

.cookie-notice {
  position: absolute;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 24px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.2);
  color: var(--text-main);
}

.cookie-notice-content {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cookie-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.cookie-notice a {
  width: fit-content;
  color: var(--brand-dark);
  font-size: 12px;
  text-decoration: underline;
}

.cookie-notice-accept {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--brand);
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
}

.cookie-notice-bottom-right {
  right: 12px;
  bottom: 12px;
  width: min(360px, calc(100% - 24px));
  flex-direction: column;
  align-items: stretch;
}

.cookie-notice-center {
  top: 50%;
  left: 50%;
  width: min(410px, calc(100% - 24px));
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: stretch;
}

.cookie-notice-bottom-compact {
  bottom: 12px;
  left: 50%;
  width: min(460px, calc(100% - 24px));
  transform: translateX(-50%);
}

.cookie-notice-full-width {
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #111827;
  color: #fff;
}

.cookie-notice-full-width a {
  color: #7dd3fc;
}

.chat-shell.font-large {
  --chat-font-size: 19px;
}

@media (min-width: 768px) and (max-width: 1099px) {
  .model-choice-bubble {
    width: min(100%, 900px);
  }

  .model-choice-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .chat-page {
    padding: 0;
  }

  .embedded-chat,
  .chat-shell {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .embed-page.chat-page,
  .embed-page .embedded-chat,
  .embed-page .chat-shell {
    width: 100%;
    height: 100%;
  }

  .embed-page .chat-shell {
    border-radius: var(--radius);
  }

  .chat-load-failure {
    padding: 16px;
  }

  .chat-load-failure-card {
    padding: 23px 18px 20px;
  }

  .is-ios-browser .embed-page .chat-messages {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .is-ios-chrome.text-input-active .embed-page .chat-footer {
    padding-bottom: calc(
      10px + var(--ios-chrome-toolbar-offset, 76px) + env(safe-area-inset-bottom, 0px)
    );
  }

  .cookie-notice {
    gap: 10px;
    padding: 12px;
  }

  .cookie-notice-bottom-compact,
  .cookie-notice-full-width {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-notice-bottom-compact {
    width: calc(100% - 20px);
    bottom: 10px;
  }

  .cookie-notice-bottom-right {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-width: 340px;
  }

  .personal-data-notice a {
    display: block;
    width: fit-content;
    margin-top: 2px;
  }

  .extra-question-choice-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extra-question-choice-btn-wide {
    grid-column: 1 / -1;
  }

  .chat-alert-layer {
    padding: 14px;
  }

  .chat-alert-popup {
    width: calc(100% - 28px);
    max-width: 360px;
    padding: 16px;
  }

  .brand-choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .choice-btn.brand-choice-btn {
    min-height: 78px;
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
  }

  .brand-choice-logo-wrap {
    height: 46.8px;
  }

  .brand-choice-logo {
    width: 75.4px;
    height: 46.8px;
  }

  .brand-choice-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.9em;
  }

  .brand-choice-label {
    font-size: 0.72em;
  }

  .choice-btn.model-choice-btn,
  .selected-model-bubble {
    align-items: stretch;
  }

  .model-choice-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-btn.model-choice-btn {
    min-height: 0;
    padding: 10px;
    border-radius: 14px;
  }

  .choice-image.model-choice-image {
    width: 100%;
    height: 150px;
    flex-basis: auto;
  }

  .model-choice-title {
    font-size: 1em;
  }

  .model-choice-credit-row,
  .model-choice-credit-label,
  .model-choice-payment {
    font-size: 0.9em;
  }

  .model-choice-price {
    font-size: 1em;
  }

  .model-choice-old-price {
    font-size: 0.82em;
  }

  .choice-image.selected-model-image {
    width: 100%;
    height: 150px;
    flex-basis: auto;
  }

  .offer-banner-bubble {
    width: 100%;
    max-width: 100%;
  }

  .offer-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    padding: 18px 16px 14px;
    border-radius: 14px;
  }

  .offer-banner::before {
    top: 34%;
    right: 24%;
    bottom: 4%;
    left: -22%;
    width: auto;
    transform: rotate(-8deg) skewX(-10deg);
  }

  .offer-banner-head {
    grid-column: 1;
    grid-row: 1;
    gap: 6px;
    justify-items: start;
    margin: 0;
    text-align: left;
  }

  .offer-banner-title {
    font-size: 16px;
  }

  .offer-banner-bank-logo {
    max-width: 230px;
    max-height: 48px;
  }

  .offer-banner-body {
    display: contents;
  }

  .offer-banner-car-box {
    display: contents;
  }

  .offer-banner-car {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    height: 180px;
    margin-block: -8px 0;
    transform: none;
  }

  .offer-banner-conditions {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    max-width: 100%;
    margin: 0;
    font-size: 9px;
    text-align: left;
  }

  .offer-banner-content {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    gap: 10px;
    text-align: left;
  }

  .offer-banner-main-offer {
    justify-items: start;
  }

  .offer-banner-offer-label {
    font-size: clamp(24px, 6.3vw, 34px);
  }

  .offer-banner-offer-rate {
    font-size: clamp(41px, 11.2vw, 57px);
  }

  .offer-banner-bonus {
    width: min(100%, 310px);
    gap: 12px;
    padding: 12px 14px;
  }

  .offer-banner-percent {
    font-size: 52px;
  }

  .offer-banner-bonus strong {
    font-size: 15px;
  }
}
