body.rs-purchase-opened {
  overflow: hidden;
}

.avtopark-modal-overlay.rs-purchase-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 0.5);
  z-index: 1002;
}

.avtopark-modal-overlay.rs-purchase-overlay.rs-open {
  display: block;
}

.avtopark-modal.payment-modal.rs-purchase-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
  width: 1074px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 62px 56px 30px;
  z-index: 1003;
  box-sizing: border-box;
}

.avtopark-modal.payment-modal.rs-purchase-modal.rs-open {
  display: block;
}

.payment-modal--re {
  width: 1074px;
  max-width: 90%;
  height: auto;
  max-height: 90vh;
}

.max-width-411 {
  max-width: 411px;
}

.margin-auto {
  margin-left: auto;
  margin-right: auto;
}

.prices-close-modal-btn.rs-purchase-close {
  position: absolute;
  top: 30px;
  right: 45px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s;
}

.prices-close-modal-btn.rs-purchase-close:hover {
  opacity: 0.8;
}

.prices-close-modal-btn.rs-purchase-close svg {
  display: block;
}

.payment-modal-title {
  width: 100%;
  margin-bottom: 35px;
  text-align: center;
}

.payment-modal-title p {
  margin: 0 auto;
  font-size: 26px;
  line-height: 26px;
  font-weight: 500;
  color: #000;
}

.payment-modal-step1 {
  border-radius: 16px;
  background-color: #f4f5fe;
  padding: 44px 22px 38px;
}

.payment-modal-step1-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 29px;
}

.payment-modal-step1-left h3 {
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  color: #000;
}

.payment-modal-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-modal-benefits li {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  position: relative;
  padding-left: 24px;
}

.payment-modal-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #0e26ff;
  border-radius: 50%;
}

.payment-modal-step1-price {
  margin-top: 30px;
  border-radius: 10px;
  background: #e5e6f5;
  padding: 20px 20px 24px;
}

.payment-modal-step1-price-label {
  margin-bottom: 13px;
  font-size: 18px;
  line-height: 18px;
  font-weight: 500;
  color: #000;
}

.payment-modal-step1-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.payment-modal-step1-price-old {
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  color: #191919;
  text-decoration: line-through;
}

.payment-modal-step1-price-new {
  font-size: 26px;
  line-height: 26px;
  font-weight: 600;
  color: #000;
}

.payment-modal-step1-price-discount {
  display: flex;
  align-items: center;
  gap: 5px;
}

.payment-modal-step1-price-discount span {
  padding: 2px 6px;
  border-radius: 30px;
  background: #fff705;
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
}

.payment-modal-step1-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 43px 28px 28px;
}

.payment-modal-custom-radio-btn-tink {
  position: relative;
  z-index: 2;
}

.payment-modal-step1-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-modal-step1-radio-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s;
}

.payment-modal-step1-radio-btn:hover {
  border-color: #3d3bff;
}

.payment-modal-step1-radio-btn.active {
  border-color: #0e26ff;
}

.payment-modal-step1-radio-btn img {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.payment-modal-step1-radio-btn > span {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.payment-modal-step1-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-modal-step1-inputs input {
  padding: 18px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  background: #fff;
  outline: none;
}

.payment-modal-step1-inputs input:focus {
  border-color: #3d3bff;
}

.payment-modal-step1-inputs input.payment-modal-field-error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 1px #e53935;
}

.submit-form-checkbox-row-buy.payment-modal-field-error input[type="checkbox"] {
  accent-color: #e53935;
  outline: 2px solid #e53935;
  outline-offset: 2px;
}

.payment-modal-step1-radio-group.payment-modal-field-error {
  border-radius: 12px;
  box-shadow: 0 0 0 2px #e53935;
  padding: 2px;
}

.payment-modal-step1-submit-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.payment-modal-step1-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  padding: 18px;
  background: #0e26ff;
  color: #fff;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.payment-modal-step1-submit:hover {
  background: #2d2bcc;
}

.payment-modal-step1-submit:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.submit-form-checkbox-row {
  display: flex;
  align-items: flex-start;
  margin: 0;
}

.submit-form-checkbox-row-buy {
  width: 100%;
  padding: 0;
}

.submit-form-checkbox-row-buy--re {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.submit-form-checkbox-row-buy--re input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 5px 5px 0 0;
  flex: 0 0 auto;
}

.submit-form-checkbox-row-buy--re label {
  margin: 0;
  max-width: 213px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
  color: rgb(0 0 0 / 0.4);
}

.submit-form-checkbox-row-buy--re-link {
  text-decoration: underline;
  color: inherit;
}

.submit-form-checkbox-row-buy--re-link:hover {
  opacity: 0.8;
}

.rs-purchase-status {
  min-height: 20px;
  margin: 0;
  width: 100%;
  text-align: left;
  color: #0e26ff;
  font-size: 13px;
  line-height: 18px;
}

.rs-purchase-status.rs-fail {
  color: #dc2626;
}

#rsPurchaseStep2 .payment-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 29px;
  margin-bottom: 16px;
}

#rsPurchaseStep2 .payment-modal-options {
  width: 100%;
  border-radius: 16px;
  background-color: #f4f5fe;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

#rsPurchaseStep2 .payment-modal-options-title {
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  color: #000;
  margin-bottom: 0;
}

#rsPurchaseStep2 .payment-modal-options-title p {
  margin: 0;
}

#rsPurchaseStep2 .payment-modal-options-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#rsPurchaseStep2 .payment-modal-custom-select-wrapper {
  position: relative;
  width: 100%;
}

#rsPurchaseStep2 .payment-modal-custom-select {
  min-height: 40px;
  height: 40px;
  padding: 10px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  background-color: #fff;
}

#rsPurchaseStep2 .payment-modal-custom-select span {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rsPurchaseStep2 .rs-readonly-select {
  cursor: default;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btns > p {
  font-size: 18px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  height: 52px;
  border: 1px solid #fff;
  cursor: pointer;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btn.active {
  border-color: #0e26ff;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btn[data-sub-btns="1"] {
  margin-bottom: 7px;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btn img {
  width: 10px;
  height: auto;
}

#rsPurchaseStep2 .payment-modal-custom-radio-btn span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

#rsPurchaseStep2 .payment-modal-custom-radio-sub-btns {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 12px;
  margin-bottom: 7px;
}

#rsPurchaseStep2 .payment-modal-custom-radio-sub-btns.active {
  display: grid;
}

#rsPurchaseStep2 .payment-modal-custom-radio-sub-btn {
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: #fff;
  padding: 7px;
  cursor: pointer;
}

#rsPurchaseStep2 .payment-modal-custom-radio-sub-btn img {
  width: 10px;
  height: auto;
}

#rsPurchaseStep2 .payment-modal-custom-radio-sub-btn span {
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
}

#rsPurchaseStep2 .payment-modal-price {
  width: 100%;
  background-color: #d7d9ed87;
  border-radius: 10px;
  padding: 20px 14px 20px 18px;
}

#rsPurchaseStep2 .payment-modal-price p {
  font-size: 20px;
  line-height: 20px;
  font-weight: 500;
  margin-bottom: 14px;
}

#rsPurchaseStep2 .payment-modal-price-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

#rsPurchaseStep2 .payment-modal-price-discount > span {
  text-decoration: line-through;
  font-size: 16px;
  line-height: 16px;
  color: #191919;
}

#rsPurchaseStep2 .payment-modal-price-discount-yellow {
  display: flex;
  align-items: center;
  gap: 5px;
}

#rsPurchaseStep2 .payment-modal-price-discount-yellow span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  background-color: #fff705;
  border-radius: 30px;
  font-size: 12px;
  line-height: 16px;
}

#rsPurchaseStep2 .payment-modal-price > span {
  font-size: 24px;
  line-height: 24px;
  font-weight: 500;
}

#rsPurchaseStep2 .payment-btn-re,
#rsPurchaseStep3 .payment-btn-re {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

#rsPurchaseStep2 .payment-btn-re button,
#rsPurchaseStep3 .payment-btn-re button {
  width: 100%;
  height: 56px;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background-color: #0e26ff;
  color: #fff;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}

#rsPurchaseStep3 .rs-step2-back-btn {
  max-width: 170px;
  background: #fff;
  border: 1px solid #d8dbe8;
  color: #000;
}

#rsPurchaseStep3.payment-modal-step-installment {
  background-color: #f4f5fe;
  border-radius: 16px;
}

#rsPurchaseStep3 .payment-modal-step-content {
  padding: 65px 40px 40px;
  text-align: center;
}

#rsPurchaseStep3 .payment-modal-title-center {
  text-align: center;
  margin-bottom: 28px;
}

#rsPurchaseStep3 .payment-modal-step-title-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  margin: 0;
}

#rsPurchaseStep3 .payment-modal-step-description {
  text-align: center;
  max-width: 458px;
  margin: 0 auto 34px;
}

#rsPurchaseStep3 .payment-modal-step-description p {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin: 0;
}

#rsPurchaseStep3 .payment-modal-step-button {
  max-width: 360px;
}

#rsPurchaseStep3 .rs-step3-back-wrap {
  margin-top: 10px;
}

@media screen and (max-width: 1200px) {
  .avtopark-modal.payment-modal.rs-purchase-modal {
    padding: 62px 62px 30px;
    width: 1000px;
  }
}

@media screen and (max-width: 1024px) {
  .avtopark-modal.payment-modal.rs-purchase-modal {
    padding: 40px 20px 30px;
    width: 720px;
  }

  #rsPurchaseStep2 .payment-modal-custom-radio-sub-btn {
    padding: 5px;
  }

  #rsPurchaseStep2 .payment-modal-custom-radio-sub-btns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .payment-modal--re {
    max-width: 100%;
    bottom: 0;
    top: auto;
  }

  .avtopark-modal.payment-modal.rs-purchase-modal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding: 54px 18px 18px;
  }

  .prices-close-modal-btn.rs-purchase-close {
    top: 12px;
    right: 12px;
  }

  .payment-modal-title {
    margin-bottom: 18px;
  }

  .payment-modal-title p {
    width: 100%;
    font-size: 22px;
    line-height: 24px;
  }

  .payment-modal-step1-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .payment-modal-step1-left,
  .payment-modal-step1-right {
    padding: 24px 20px;
  }

  .payment-modal-step1-left h3 {
    font-size: 22px;
    line-height: 24px;
  }

  .payment-modal-step1-price-new {
    font-size: 24px;
    line-height: 24px;
  }

  .payment-modal-step1-submit {
    height: 52px;
    font-size: 16px;
    line-height: 18px;
  }

  #rsPurchaseStep2 .payment-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #rsPurchaseStep2 .payment-modal-options {
    padding: 22px;
  }

  #rsPurchaseStep2 .payment-btn-re,
  #rsPurchaseStep3 .payment-btn-re {
    flex-direction: column;
  }

  #rsPurchaseStep3 .rs-step2-back-btn {
    width: 100%;
    max-width: 100%;
  }

  #rsPurchaseStep2 .payment-modal-custom-radio-sub-btn {
    padding: 5px;
  }

  #rsPurchaseStep2 .payment-modal-custom-radio-sub-btns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #rsPurchaseStep3 .payment-modal-step-content {
    padding: 36px 18px 24px;
  }
}
