/* FIT CONTENT MODAL*/
.modal-new-contact {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 290px;
  height: max-content;
  padding: 30px;
  font-size: 12pt;
  background-color: #fff;
  box-shadow: 2px 2px 5px grey;
  border-radius: 5px;
  filter: unset !important;
  z-index: 99;
}

.modal-new-contact .add-user-info {
  display: none;
  align-items: center;
  font-size: 10pt;
}

.modal-new-contact .add-user-info > input {
  width: 12px;
  margin-right: 5px;
}

.modal-new-contact .new-container {
  position: relative;
  width: 100%;
  padding-bottom: 4em;
}

.modal-new-contact .container-bttns {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.modal-new-contact .container-newContact {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: 1fr 1fr;
}

.modal-new-contact .contact-title {
  font-size: 16pt;
  font-weight: bold;
  color: #5a9ed6;
}

.modal-new-contact .flex-splitted {
  display: flex;
  align-items: baseline;
}

/* SELECT MODAL */
.modal-select {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  flex-direction: column;
  justify-content: space-between;
  min-width: 300px;
  width: max-content;
  max-width: 300px;
  height: max-content;
  padding: 10px;
  font-size: 12pt;
  background-color: #fff;
  box-shadow: 2px 2px 5px grey;
  border-radius: 5px;
  filter: unset !important;
  z-index: 99;
}

.modal-select > div {
  position: relative;
}

.modal-select .close-select {
  position: absolute;
  top: -18px;
  right: 0;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.modal-select .select-title {
  font-size: 16pt;
  font-weight: bold;
  color: #5a9ed6;
}

/* INPAGE MODAL */
.inpage-modal {
  width: 300px;
  height: min-content;
  margin: 3em auto;
  padding: 5px 10px;
  box-shadow: 2px 2px 5px grey;
}

.modal-blur {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  background-color: rgba(67, 95, 122, 0.4);
  z-index: 98;
}

.modal-container {
  display: none;
  filter: unset !important;
  position: fixed;
  height: 600px;
  width: 300px;
  left: 50%;
  margin-left: -150px;
  top: 50%;
  margin-top: -300px;
  background-color: #fff;
  box-shadow: 2px 2px 5px grey;
  border-radius: 5px;
  z-index: 99;
}

.close-modal {
  position: absolute;
  top: -5px;
  right: 15px;
  color: #fff;
  font-size: 44px;
  font-weight: bold;
  cursor: pointer;
}

.modal-title {
  position: relative;
  height: 70px;
  width: 300px;
  border-radius: 5px 5px 0 0;
  text-align: left;
  font-weight: bold;
  font-size: 18pt;
  background-color: #5a9ed6;
  color: #fff;
}

.modal-title > div {
  position: absolute;
  height: 30px;
  top: 50%;
  margin-top: -15px;
  padding-left: 25px;
  line-height: 1.2em;
  width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.modal-content {
  width: 300px;
  height: 530px;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-content-container {
  box-sizing: border-box;
  height: 100%;
}

/* SUB MODAL */
.container-subscribe {
  padding: 5px;
}

.container-abo-bttn .bttn {
  margin: 0;
}

.container-subscribe > div {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.container-subscribe .container-abo-listing {
  margin-bottom: 10px;
}

.container-subscribe .abo-overview-creditcard {
  display: flex;
  align-items: center;
}

.container-subscribe .abo-overview-creditcard > span {
  padding-right: 5px;
}

.container-subscribe .abo-overview-container {
  background-color: #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 10px 0;
  font-size: 12pt;
}

.abo-overview-container > div {
  padding: 0 5px;
}

.abo-overview-container .background-grey {
  background-color: rgba(0, 0, 0, 0.1);
}

.container-subscribe .abo-calc {
  border-bottom: 1px solid #999998;
}

.container-subscribe .abo-calc > div {
  display: flex;
  flex-direction: column;
}

.container-subscribe .abo-calc > div > span {
  font-size: 10pt;
}

.container-subscribe .abo-overview-title {
  display: flex;
  align-items: center;
  font-size: 15pt;
  font-weight: bold;
}

.container-subscribe ul {
  line-height: 1.4;
  padding: 0;
  padding-left: 10px;
  margin: 0;
}

.container-subscribe .abo-overview-title > div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #5a9ed6;
  color: #ffffff;
  font-size: 14pt;
  border-radius: 50%;
  margin-right: 5px;
}

.wrapper-modal-page {
  position: relative;
  height: 100%;
  padding-bottom: 2em;
  margin-bottom: 10px;
}

.container-abo-bttn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  flex-direction: row !important;
}

.container-abo-bttn > button {
  width: max-content;
}

.container-subscribe .abo-overview-sum {
  font-weight: bold;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#changePaymentMethod {
  cursor: pointer;
}

#changePaymentMethod:hover {
  color: #afca0f;
}

/* MODAL TO LIST CREDIT CARDS */
.sub-modal-payment-method {
  position: fixed;
  height: 400px;
  width: 320px;
  left: 50%;
  margin-left: -160px;
  top: 50%;
  margin-top: -200px;
  background-color: #e6eaea;
  box-shadow: 2px 2px 5px grey;
  z-index: 99;
}

.sub-modal-payment-method > div {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 380px;
  padding: 10px;
  overflow-y: auto;
}

.close-sub-modal {
  position: absolute;
  top: 0;
  right: 10px;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.selected-payment-method {
  border: 2px solid #5a9ed6;
}

.sub-modal-payment-method .abo-overview-container {
  background-color: #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 10px 0;
  font-size: 12pt;
}

.pointer {
  cursor: pointer;
}

.sub-modal-payment-method .abo-overview-creditcard {
  display: flex;
  align-items: center;
}

.sub-modal-payment-method .abo-overview-creditcard > span {
  padding-right: 5px;
}

@media screen and (min-width: 768px) {
  /* FIT CONTENT MODAL*/
  .modal-new-contact {
    max-width: unset;
  }

  /* SELECT MODAL */
  .modal-select {
    min-width: 310px;
    width: max-content;
    max-width: 400px;
  }

  /* INPAGE MODAL */
  .inpage-modal {
    width: 600px;
    margin: 3em auto;
    padding: 1em 2em;
  }

  .modal-container {
    height: 700px;
    width: 800px;
    margin-left: -400px;
    margin-top: -350px;
  }

  .modal-content {
    width: 800px;
    height: 630px;
  }

  .modal-content-container {
    box-sizing: border-box;
    padding: 1em;
  }

  .close-modal {
    right: 25px;
  }

  .modal-title {
    width: 800px;
  }

  .modal-title > div {
    width: 600px;
  }

  /* SUB MODAL */
  .container-subscribe > div {
    flex-direction: column;
  }

  .container-subscribe .abo-overview-container {
    font-size: 14pt;
  }

  .container-subscribe .abo-calc > div {
    flex-direction: row;
  }

  .container-subscribe .abo-calc > div > span {
    font-size: 14pt;
  }

  .container-subscribe .abo-overview-title {
    font-size: 15pt;
  }

  .container-subscribe ul {
    padding-left: 20px;
  }
}

@media screen and (min-width: 1680px) {
}
