@font-face {
  font-family: "Basis Grotesque Arabic Pro";
  src: local("BasisGrotesqueArabicPro-Regular"), url("/fonts/BasisGrotesqueArabicPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Mulish", sans-serif;
  width: 98%;
  font-size: 16px;
  background-color: #f7f8f7;
  margin: auto;
  color: #4e584b;
}

table {
  border-collapse: collapse;
  width: 100%;
  border: 2px solid #f2f2f2;
  border-radius: 8px;
  margin-top: 3rem;
}
thead {
  border-bottom: 2px solid #f2f2f2;
}

tbody tr td:first-child {
  padding: 0rem;
}

th {
  text-align: center;
  padding: 1rem 0rem;
  font-family: "Mulish";
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #4e584b;
  border-right: 2px solid #f2f2f2;
}

th span {
  padding: 0.5rem 2rem;
}

td span {
  padding: 0.5rem 1rem;
}

td {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 2px solid #f2f2f2;
  font-family: "Mulish";
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #6e756c;
  padding: 0.8rem 0.8rem 1rem 2rem;
  vertical-align: middle;
}

.navbar {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 4px;
  align-items: center;
  padding: 0.5rem 1rem;
}

.navbar__title {
color: #1C6806;
font-family: "Basis Grotesque Arabic Pro";
}

.main {
  background-color: #ffffff;
  border-radius: 8px;
  margin-top: 1rem;
  padding: 2rem;
}

.main__wrapper {
  background-color: #f7f8f7;
  border-radius: 8px;
  padding: 3rem;
}

.main__container {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 3rem;
}

.main__container h1 {
  font-family: "Basis Grotesque Arabic Pro";
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.01em;
  margin-top: 1rem;
  text-align: center;
  color: #1C6806;
}

.main__container p {
  font-family: "Mulish";
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.01em;
  width: 48%;
  margin: auto;
  margin-top: 1rem;
  text-align: center;
  animation-duration: 3s;
  animation-name: showContent;
}

.main__container__payment-wrapper {
  margin: auto;
  width: 40%;
  overflow: hidden;
  margin-top: 3rem;
}

.main__container__payment-wrapper label {
  font-family: "Mulish";
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #1C6806;
}

.main__container__payment-wrapper input {
  width: 100%;
  padding: 20px 16px;
  background-color: #f7f8f7;
  border: none;
  outline: none;
  border-radius: 4px;
  margin-top: 0.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.main__container__payment-wrapper input::placeholder {
  font-family: "Mulish";
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: #929890;
}

.main__container__payment-wrapper select {
  padding: 15px 16px;
  border-radius: 4px;
  width: 100%;
  border: none;
  outline: none;
  font-family: "Mulish";
  font-weight: 300;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("./images/arrow-dwn.svg") no-repeat right;
  background-size: 2%;
  background-position: calc(100% - 20px);
  background-color: #f7f8f7;
  color: #929890;
}

.main__container__payment-wrapper select:focus {
  transform: translateY(4px);
}

.main__container__payment-wrapper-text {
  background-color: #f6faf5;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #ff0000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.main__container__content {
  background-color: #f7f8f7;
  border: 3px solid #fafafa;
  text-align: center;
  border-radius: 8px;
  margin-top: 2rem;
  padding: 3rem;
}

.main__container__content img {
  animation-duration: 3s;
  animation-name: slidein;
}

.main__container__content p {
  width: 30% !important;
  margin-top: 2rem;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  letter-spacing: -0.01em;
  color: #929890;
}

.bill {
  display: block;
  justify-content: center;
}

.bill img {
  margin-right: 0.5rem;
}

.main_container-table-wrapper {
  overflow-x: auto;
}

.main__container__tax-table h2, .main__container__bill-table h2 {
  font-family: "Basis Grotesque Arabic Pro";
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.01em;
  margin-top: 3rem;
  text-align: center;
}

.main__container__bill-table__check-container {
  position: relative;
  margin-right: .5rem;
}

.main__container__bill-table__check-container label {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  height: 18px;
  left: 0;
  position: absolute;
  top: 0;
  width: 18px;
}

.main__container__bill-table__check-container label:after {
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  content: "";
  height: 3px;
  left: 5px;
  opacity: 0;
  position: absolute;
  top: 5px;
  transform: rotate(-45deg);
  width: 6px;
}

.main__container__bill-table__check-container input[type="checkbox"] {
  visibility: hidden;
}

.main__container__bill-table__check-container input[type="checkbox"]:checked + label {
  background-color: #42526E;
  border-color: #42526E;
}

.main__container__bill-table__check-container input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

.main__container__total-amout {
  text-align: end;
  margin-top: 3rem;
  background-color: #42526E;
  color: #ffffff;
  border: 1px solid #42526E;
  border-radius: 4px;
  padding: 0.5rem;
  width: 207px;
  margin-left: auto;
  font-family: "Basis Grotesque Arabic Pro";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  text-align: center;
  letter-spacing: -0.01em;
  color: #ffffff;
  box-shadow: rgb(0 0 0 / 8%) 0px 4px 8px;
}

.main__container__total-amout span {
  font-family: "Basis Grotesque Arabic Pro";
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.main__container__total-amout.sub-total {
  background-color: #f9fcf9;
  border: 1px solid #ffffff;
  color: #4e584b;
}

.main__container__total-amout.sub-total span {
  color: #4e584b;
}

.main__container button {
  display: flex;
  padding: 24px 208px;
  height: 64px;
  font-family: "Basis Grotesque Arabic Pro";
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  background: #1C6806;
  border-radius: 4px;
  border: none;
  color: #ffffff;
  margin: auto;
  margin-top: 3rem;
  cursor: pointer;
  /* box-shadow: #c9d1cc 0px 4px 8px; */
}

.main__container button:hover {
  background-color: #0d9d59;
  transition: 250ms ease-in-out;
}

.main__container button:active {
  transform: translateY(4px);
}

.revenue {
  text-align: start;
  padding: 1rem 0rem;
}

.revenue span {
  background-color: #f7f8f7;
  border: 1px solid #f2f2f2;
  border-radius: 4px;
  text-align: start;
  margin-left: 0.5rem;
}

.overlay-wrapper {
  position: relative;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background-color: rgba(25, 41, 20, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) !important;
  background-color: #ffffff;
  z-index: 600;
  padding: 2rem;
  border-radius: 3px;
  margin: auto;
}

/**
 * The Modal Content
 */

.modal__content-wrapper {
  display: flex;
  align-items: center;
}

.modal h3 {
  font-family: "Basis Grotesque Arabic Pro";
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #36b37e;
  margin-left: 0.8rem;
}

.modal h3.failed-title {
  color: #ff5630;
}

.modal p {
  width: 80%;
  font-family: "Basis Grotesque Arabic Pro";
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: #6e756c;
  margin-top: 1.5rem;
}

.modal p.failed-text {
  width: 90%;
}

.modal button {
  display: flex;
  justify-content: center;
  background-color: #f3fbf8;
  border: none;
  outline: none;
  border-radius: 4px;
  font-family: "Basis Grotesque Arabic Pro";
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: -0.01em;
  color: #2c8968;
  margin-left: auto;
  margin-top: 3rem;
  cursor: pointer;
  padding: 16px 24px;
}

.modal__button-wrapper {
  display: flex;
  align-items: center;
}

.modal__button-wrapper button.close {
  background-color: transparent;
  color: #4e584b;
}
footer .footer-container {
  display: flex;
  align-items: center;
}

footer .footer-container p {
  margin-bottom: 0 !important;
  margin-left: 20px;
}

/**
 * Payment
 */

 .payment {
  width: 650px;
  margin: auto;
  font-family: "Basis Grotesque Arabic Pro";
  background-color: #ffffff;
  padding: 1rem .5rem;
  height: 750px;
}

.payment > div:last-child {
  border-bottom: 1px solid lightgray;
}

.payment__logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.payment__logo.eras {
  width: 200px;
  display: block;
}

.payment__logo.eras {
  margin-left: -18px;
}

.payment__logo.quickteller {
  margin-left: auto;
  margin-right: -28px;
}

.payment__logo img {
 height: 60px
}

.payment__title {
  font-weight: 800;
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  line-height: 24px;
  color: #01425f;
  margin: 8px 0 18px;
}

.payment__title__header-1 {
  color: #01425f;
  font-weight: 500;
  line-height: 20px;
  margin-top: 0.3rem;
  font-size: 20px;
}

.payment__details-title {
  color: #01202d;
  font-weight: 800;
  margin: 2.5rem 0rem 1.5rem 0rem;
  font-family: "Mulish", sans-serif;
}

.payment__details-wrapper,
.payment__details-wrapper-multiple {
  border-top: 1px solid lightgray;
  padding: 0.5rem 0rem;
}

.payment__details-wrapper,
.payment__details-wrapper-multiple div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.print {
  display: none;
}

/* .payment__details-wrapper-multiple div {
   padding-bottom: .5rem;
 } */

.payment__details-wrapper p,
.payment__details-wrapper-multiple p {
  display: flex;
  color: #01202d;
  font-weight: 600;
  padding: 0.7rem 0;
}

.payment__details-wrapper p:nth-child(1),
.payment__details-wrapper-multiple p:nth-child(1) {
  font-weight: 400;
}

.payment__details-success {
  color: #36b37e !important;
}

@keyframes showContent {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slidein {
  from {
    margin-left: -550px;
  }
  to {
    margin-left: 0%;
  }
}

@media screen and (max-width: 768px) {
  body {
    width: 100%;
  }
  table {
    overflow: scroll;
  }
  .navbar {
    padding: 0.5rem;
  }
  .main {
    padding: 0rem;
  }

  .main__container {
    padding: 1rem;
  }

  .main__container__content {
    padding: 1rem;
  }

  .main__container button {
    padding: 24px 108px;
  }

  .main__wrapper {
    padding: 1rem;
  }
  .main__container p {
    width: 100% !important;
  }
  .main__container__payment-wrapper {
    width: 100%;
  }
  .main__container__payment-wrapper select {
    width: 100%;
  }
  .main__container__payment-wrapper input {
    padding: 20px 0px 20px 5px;
  }

  .main__container__tax-table {
    width: 100%;
    overflow: scroll;
  }

  .main__container__bill-table {
    width: 100%;
    overflow: scroll;
  }

  .modal {
    width: 80%;
  }
}


@media only print {
  .no-print { 
    display: none !important;
  }
  .print { display: block; }
}
