.js-brand,
.js-model,
.js-year,
.js-vin {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
}

.js-promo-code{
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 400;
}

/*Убираем текстовый курсор с кнопки*/

.js-btn-text{
  pointer-events:none;
  cursor:pointer;
}

.js-action-pay,
.js-action-save{
  cursor:pointer;
}

.js-action-pay * ,
.js-action-save * {
  pointer-events:none;
  cursor:pointer;
}

/* ==============================
   POLICY SWITCH
   ============================== */

.policy-switch{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.policy-switch__label{
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:18px;
  line-height:1.2;
  color:#111;
  user-select:none;
}


/* скрываем нативный checkbox */

.policy-switch__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}


/* обёртка переключателя */

.policy-switch__control{
  position:relative;
  width:72px;
  height:38px;
  overflow:visible;
  cursor:pointer;
  display:inline-block;
}


/* убираем clipping у Tilda */

#rec2005554131,
#rec2005554131 .t123,
#rec2005554131 .t-container,
#rec2005554131 .t-container_100,
#rec2005554131 .t-width,
#rec2005554131 .t-width_100{
  overflow:visible !important;
}


/* TRACK */

.policy-switch__track{
  position:absolute;
  inset:0;
  border-radius:100px;
  background:linear-gradient(90deg,#057D58 0%,#20DF71 100%);
}


/* градиентная рамка */

.policy-switch__track::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:100px;
  padding:1.5px;
  background:linear-gradient(90deg,#8B8B8B 0%,#F3F3F3 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}


/* THUMB */

.policy-switch__thumb{
  position:absolute;
  width:34px;
  height:34px;
  top:2px;
  left:2px;
  border-radius:999px;

  background:radial-gradient(circle at 35% 30%,
    #FFFFFF 0%,
    #FFFFFF 40%,
    #D9D9D9 70%,
    #5A5C5D 100%
  );

  box-shadow:
    0 0 0 1.5px rgba(0,0,0,.12),
    0 3px 4px rgba(0,0,0,.18);

  transition:transform .22s ease;
  will-change:transform;
}


/* ON state */

.policy-switch__input:checked + .policy-switch__control .policy-switch__track{
  background:linear-gradient(90deg,#CE2E1C 0%,#FDB0A7 100%);
}

.policy-switch__input:checked + .policy-switch__control .policy-switch__track::before{
  background:linear-gradient(90deg,#FFA985 0%,#FFEDE2 100%);
}

.policy-switch__input:checked + .policy-switch__control .policy-switch__thumb{
  transform:translateX(34px);
}



/* ==============================
   скрываем кнопку формы
   ============================== */

.js-defans-form .t-submit,
.js-defans-form button[type="submit"],
.js-defans-form input[type="submit"]{
  display:none !important;
}



/* ==============================
   utility классы
   ============================== */

.defans-hidden{
  display:none !important;
}

.defans-visible{
  visibility:visible !important;
}

/* ==============================
   ЛЕНДИНГ 2 - СТИЛИ
   ============================== */

/* контейнер чекбокса и текста */
#rec2015126201 .t-checkbox__control.t-checkbox__control_flex{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

/* квадрат чекбокса */
#rec2015126201 .t-checkbox__indicator{
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:6px;
  background:#F1F1F1;
  border:0;
  position:relative;
  margin-top:2px;
}

/* состояние unchecked — лёгкая рамка */
#rec2015126201 input[type="checkbox"] + .t-checkbox__indicator{
  box-shadow: inset 0 0 0 2px #D9D9D9;
}

/* состояние checked */
#rec2015126201 input[type="checkbox"]:checked + .t-checkbox__indicator{
  box-shadow:none;
}

/* галка */
#rec2015126201 input[type="checkbox"]:checked + .t-checkbox__indicator:after{
  content:"";
  position:absolute;
  left:9px;
  top:4px;
  width:7px;
  height:13px;
  border-right:3px solid #16A36A;
  border-bottom:3px solid #16A36A;
  transform:rotate(45deg);
}

/* текст согласия */
#rec2015126201 .t-checkbox__labeltext{
  font-size:12px;
  line-height:1.4;
  color:#757575;
}

/*Стилизация текста промокода*/

#rec2015126201 .tn-elem.js-promo-code{
  font-family: Inter, Arial, sans-serif !important;
}

#rec2015126201 .tn-elem.js-promo-code [style],
#rec2015126201 .tn-elem.js-promo-code,
#rec2015126201 .tn-elem.js-promo-code div{
  font-size: 24px !important;
  font-weight: 400 !important;
}

@media screen and (max-width: 640px){
  #rec2015126201 .tn-elem.js-promo-code,
  #rec2015126201 .tn-elem.js-promo-code div{
    font-size: 16px !important;
  }
}

/*ПОП-АП*/

  #discount-success-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
  }

  .discount-success-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
  }

  .discount-success-popup__box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 460px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  }

  .discount-success-popup__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .discount-success-popup__text {
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    color: #000;
    padding-right: 20px;
  }

  @media (max-width: 640px) {
    .discount-success-popup__box {
      width: calc(100% - 24px);
      padding: 40px 32px;
      border-radius: 14px;
    }

    .discount-success-popup__text {
      font-size: 15px;
    }
  }
