html body :is(.lc-chat, .local-phone-contact, .sample-dialog) input[type="tel"]:focus,
html body.lahta-showcase :is(.ls-credit-dialog, .lr-purchase-module, .lr-drive) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: #007e77 !important;
  outline: none !important;
  box-shadow: none !important;
}

html body #feedback-dialog input[type="tel"]:focus,
html body .m_modal .component-form input[type="tel"]:focus {
  border-color: #30d2ca !important;
  outline: none !important;
  box-shadow: none !important;
}

html body :is(#feedback-dialog, .m_modal, .lc-chat, .local-phone-contact, .sample-dialog) input[type="tel"][aria-invalid="true"],
html body :is(#feedback-dialog, .m_modal, .lc-chat, .local-phone-contact, .sample-dialog) input[type="tel"][aria-invalid="true"]:focus {
  border-color: #d92d20 !important;
}

html body :is(#feedback-dialog, .m_modal, .lc-chat, .local-phone-contact, .sample-dialog) input[type="tel"],
html body :is(#feedback-dialog, .m_modal, .lc-chat, .local-phone-contact, .sample-dialog) input[type="tel"]::placeholder {
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1, "onum" 0, "pnum" 0 !important;
}

.m_modal .component-form button.form-button {
  background-color: #30d2ca;
  color: #fff !important;
}

.m_modal .component-form .form-button :is(.bg-fill, .bg-fill-hover) {
  background-color: #30d2ca !important;
}

.m_modal .component-form .form-button :is(.btn-text, .circle-loader, .success-icon) {
  color: #fff !important;
}

.lahta-thanks {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(24px, 6vw, 36px);
  border: 0;
  background: #fff;
  color: #202020;
  font: 16px/1.5 Wellingtons, Arial, sans-serif;
}

.lahta-thanks::backdrop { background: #000b; }
body:has(.lahta-thanks[open]) { overflow: hidden; }
.lahta-thanks h2 { margin: 0 32px 8px 0; color: inherit; font: 700 24px/1.3 Wellingtons, Arial, sans-serif; }
.lahta-thanks p { margin: 0 0 24px; color: #505050; }
.lahta-thanks button { font: inherit; cursor: pointer; }
.lahta-thanks .lahta-thanks-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #202020; font: 28px/1 Arial, sans-serif; }
.lahta-thanks .lahta-thanks-ok { min-height: 44px; padding: 8px 24px; border: 2px solid transparent; background: #30d2ca; color: #121212; }
.lahta-thanks .lahta-thanks-ok:is(:hover, :focus-visible) { border-color: #202020; outline: none; box-shadow: none; }
.lahta-thanks .lahta-thanks-close:focus-visible { outline: 2px solid #007e77; outline-offset: 2px; }

html body .m_modal .component-form input[type="tel"] {
  border-style: solid !important;
  border-width: 2px !important;
}

@media (min-width: 768px) {
  .m_modal .content-zone--double > .elements-list:has(.component-form) {
    box-sizing: border-box;
    padding-inline: clamp(24px, 3vw, 40px) !important;
  }

  html body .m_modal .component-form input[type="tel"]:not(:focus):not([aria-invalid="true"]) {
    border-color: #8a8a8a !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767px) {
  .m_modal:has(.component-form) .modal-data {
    top: var(--lahta-visible-top, 0px);
    height: var(--lahta-visible-height, 100%);
  }

  body.adaptive-mobile .m_modal:has(.component-form) .scroller {
    box-sizing: border-box;
    min-height: 0;
    max-height: 100%;
    padding: 12px;
    overscroll-behavior: contain;
  }

  .m_modal .modal-content:has(.component-form) {
    width: min(100%, 420px) !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    background: #fff;
    overflow: hidden;
  }

  .m_modal .modal-content:has(.component-form) .content-zone {
    border-radius: inherit;
  }

  .m_modal .content-zone--adaptive-column:has(.component-form)
    > .elements-list:has(.component-image):not(:has(form)) {
    display: none !important;
  }

  .m_modal .modal-content:has(.component-form) .elements-list:has(.component-form) {
    box-sizing: border-box;
    gap: 0;
    width: 100% !important;
    padding: 20px !important;
  }

  .m_modal .modal-content:has(.component-form) :is(.element-item, .element-content) {
    padding: 0 !important;
  }

  .m_modal .modal-content:has(.component-form) .element-content:has(> .text-style-subtitle) {
    justify-content: flex-start !important;
  }

  .m_modal .modal-content:has(.component-form) .text-style-subtitle {
    max-width: calc(100% - 44px);
    margin: 0;
    color: #181818;
    text-align: left !important;
    font: 700 clamp(18px, 4.6vw, 20px)/1.25 Haval, Wellingtons, Arial, sans-serif !important;
    overflow-wrap: break-word;
  }

  .m_modal .modal-content:has(.component-form) .text-style-content {
    margin: 8px 0 0;
    color: #505050;
    text-align: left !important;
    font: 14px/1.45 Wellingtons, Arial, sans-serif !important;
  }

  .m_modal .component-form {
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0 0 !important;
    text-align: left;
  }

  .m_modal .component-form .form-field-title {
    margin: 0 0 6px;
    color: #202020;
    font: 600 13px/1.4 Wellingtons, Arial, sans-serif !important;
  }

  .m_modal .component-form input[type="tel"] {
    min-height: 48px;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font: 16px/1.4 Wellingtons, Arial, sans-serif !important;
  }

  .m_modal .component-form .form-submit {
    width: 100%;
    margin-top: 12px !important;
  }

  .m_modal .component-form .form-button {
    width: 100% !important;
    min-height: 48px;
    border-radius: 6px;
    font: 600 15px/1.35 Wellingtons, Arial, sans-serif !important;
  }

  .m_modal .component-form .policy-data-warning {
    margin-top: 10px !important;
    line-height: 1.45;
  }

  .m_modal .component-form .policy-message {
    color: #606060;
    opacity: 1;
    font: 12px/1.45 Wellingtons, Arial, sans-serif !important;
  }

  .m_modal .component-form .policy-message a {
    color: #505050;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  html body #feedback-dialog input[type="tel"] {
    border-style: solid !important;
    border-width: 1px !important;
  }

  html body :is(#feedback-dialog, .m_modal .component-form)
    input[type="tel"]:not(:focus):not([aria-invalid="true"]) {
    border-color: #8a8a8a !important;
    box-shadow: none !important;
  }

  .m_modal .modal-content:has(.component-form) > .close--inside {
    position: absolute;
    inset: 6px 6px auto auto;
    display: grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    color: #171717;
    font: 26px/1 Arial, sans-serif;
  }

  .m_modal .modal-content:has(.component-form) > .close--inside::before { content: "×"; }
  .m_modal .modal-content:has(.component-form) > .close--inside .component-icon { display: none; }
  #feedback-dialog .feedback-x { width: 44px; height: 44px; top: 8px; right: 8px; }
}
