.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  transition: opacity 250ms linear;
  overflow: auto;
}

.backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.backdrop h3 {
  font-style: normal;
}

.addChildModal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 900px;
  height: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 4px;
}

.add-class-modal-wr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 900px;
  height: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 4px;
}

.close-modal-btn {
  position: absolute;
  top: 20px;/*5px;*/
  right: 20px;/*5px;*/
  padding: 0px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  stroke: #6d7278;
}

.close-modal-btn:hover svg {
  stroke: #ec008c;
}

.add-child_modal-title {
  margin-top: 0px;
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.21;
}

.add-child_modal-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 20px;
  background-color: #bfd3e7;
}

.childrens-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 0px;
  margin-bottom: 20px;
  padding-left: 0px;
}

.child-image {
  width: 70px;
  height: 70px;
}

.add-child-btn-wrapper::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 20px;
  background-color: #bfd3e7;
}

.add-child-btn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0px;
  border: none;
  background-color: transparent;
}

.add-child-btn span {
  font-size: 14px;
  font-weight: 500;
  color: #0c6db6;
  text-transform: uppercase;
  line-height: 0.714;
}

.add-child-btn svg {
  stroke: #0c6db6;
}

.add-child-btn:hover span {
  color: #ec008c;
}

.add-child-btn:hover svg {
  stroke: #ec008c;
}

.add-child-icon {
  margin-right: 8px;
}

.childrens-list li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: calc((100% - 40px) / 2);
  list-style: none;
  gap: 8px;
}

.child-button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  padding: 0px;
  gap: 8px;
  border: none;
  background-color: transparent;
}

.childrens-list p {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.21;
  color: #121921;
  text-align: start;
}

.child-image {
  border-radius: 50%;
}

.modal-hidden {
  display: none;
}

.childrens-list.link {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 50px;
}

.childrens-list.link li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: calc((100% - 40px) / 3);
  list-style: none;
  gap: 8px;
}

.link-modal-descr-wrapper .add-child-btn-wrapper::before {
  display: none;
}

.link-modal-descr-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-modal-descr-wrapper {
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eef1f4;
}

.link-modal-descr-wrapper h3 {
  margin: 0px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: #6d7278;
}

.childrens-list.link.add-class {
  margin-bottom: 0px;
}

.childrens-list-warning {
  width: 100%;
}

.childrens-list .childrens-list-warning {
  width: 100% !important;
  flex-wrap: nowrap;
}

.childrens-list-warning span {
  color: #ec008c;
  font-size: 18px;
  font-weight: 400;
}

.childrens-list-item {
  color: #ec008c;
  font-size: 16px;
  font-weight: 400;
}

.info-model-wrapper h3 {
  margin-top: 0px;
  margin-bottom: 20px;
}

.info-model-wrapper h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 20px;
  background-color: #bfd3e7;
}

.info-model-wrapper {
  font-size: 18px;
}

.info-model-wrapper h3 {
  font-size: 26px;
}

.info-modal-list {
  list-style: none;
  padding-left: 0px;
  margin-top: 0px;
  margin-bottom: 30px;
}

.info-modal-item {
  display: flex;
  margin-bottom: 30px;
}

.info-modal-item img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 50%;
}

.info-modal-item p {
  margin: 0px;
  font-size: 18px;
  line-height: 1.21;
}

.info-modal-item span {
  font-weight: 700;
}

.info-text {
  margin-top: 0px;
  margin-bottom: 0px;
  line-height: 1.21;
}

.text-link {
  color: #0c6db6;
}

.end-premium-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 430px;
  height: auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 4px;
}

.end-premium-modal-wr {
  line-height: 1.21;
}

.end-premium-modal-wr h3 {
  margin-top: 0px;
  margin-bottom: 20px;/*12px*/
  font-size: 26px;
  font-weight: 700;
  line-height: 1.21;
  text-transform: uppercase;
}

.end-premium-modal-wr p {
  margin-top: 0px;
  margin-bottom: 26px;
  font-size: 14px;/*18px;*/
}

.end-premium-modal-wr a {
  display: block;
  width: 100%;
  padding-top: 17px;
  padding-bottom: 17px;
  background-color: #0c6db6;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 0.71;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.end-premium-modal-wr a:hover {
  background-color: #ec008c;
}

@media screen and (max-width: 991.9px) {
  .addChildModal {
    min-width: 650px;
    height: auto;
  }

  .add-class-modal-wr {
    min-width: 650px;
    height: auto;
  }

  .add-child_modal-title {
    margin-bottom: 20px;
  }

  .childrens-list {
    flex-wrap: wrap;
    gap: 20px;
  }

  .childrens-list li {
    width: calc((100% - 20px) / 2);
  }

  .childrens-list.link li {
    width: calc((100% - 40px) / 2);
  }

  .childrens-list.link.add-class span {
    font-size: 16px;
  }

  .childrens-list-item {
    font-size: 16px;
  }

  .childrens-list-warning span {
    color: #ec008c;
    font-size: 16px;
    font-weight: 400;
  }

  .info-model-wrapper {
    font-size: 16px;
  }

  .info-model-wrapper h3 {
    font-size: 26px;
    line-height: 1.21;
  }

  .info-modal-item p {
    font-size: 16px;
    line-height: 1.21;
  }
}

@media screen and (max-width: 767.9px) {
  .addChildModal {
    /* top: 71px;
    left: 0px;
    transform: none; */
    min-width: 100%;
    height: auto;
    padding: 30px 15px;
    border-radius: 0px;
  }

  .add-class-modal-wr {
    position: static;
    left: 0px;
    min-width: 100%;
    padding: 30px 15px;
    transform: none;
    margin-top: 71px;
    margin-bottom: 71px;
    border-radius: 0px;
  }

  .add-class-modal {
    position: relative;
  }

  .close-modal-btn.link-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    top: -25px;
    right: -10px;
  }

  .add-class-modal {
    /* margin-bottom: 48px; */
  }

  .close-modal-btn {
    width: 24px;
    height: 24px;
  }

  .close-modal-icon {
    width: 16px;
    height: 16px;
  }

  .add-child_modal-title {
    font-size: 20px;
  }

  .childrens-list {
    flex-direction: column;
    align-items: normal;
    gap: 15px;
  }

  .childrens-list li {
    justify-content: flex-start;
    width: 100%;
  }

  .childrens-list.link li {
    justify-content: flex-start;
    width: 100%;
  }

  .childrens-list p {
    font-size: 16px;
  }

  .child-image {
    width: 50px;
    height: 50px;
  }

  .add-child-btn span {
    font-size: 12px;
    line-height: 0.833;
  }

  .child-name-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4px;
  }

  .childrens-list.link.add-class span {
    font-size: 14px;
  }

  .childrens-list-item {
    font-size: 12px;
    line-height: 1.21;
  }

  .childrens-list-warning span {
    color: #ec008c;
    font-size: 12px;
    font-weight: 400;
  }

  .info-model-wrapper {
    font-size: 16px;
  }

  .info-model-wrapper h3 {
    font-size: 20px;
    line-height: 1.21;
  }

  .info-modal-item img {
    display: none;
  }

  .info-modal-item p {
    font-size: 14px;
    line-height: 1.21;
  }

  .info-text {
    font-size: 14px;
  }

  .end-premium-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    padding: 30px 15px;
    background-color: #ffffff;
    border-radius: 0px;
  }

  .end-premium-modal-wr h3 {
    font-size: 20px;
  }

  .end-premium-modal-wr p {
    font-size: 14px;
  }
}
