@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;300;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=Open+Sans&display=swap');

body {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background-color: #E5E5E5;
  padding: 30px;
  min-height: calc(var(--vh, 1vh) * 100);;
}

.payment-container {
  background-color: white;
  width: 100%;
  max-width: 630px;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  padding: 34px 58px;
  box-sizing: border-box;
  position: relative;
  border-radius: 19px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  padding-bottom: 23px;
  z-index: 1;
}
.amount{
  font-size: 20px;
  font-weight: 500;
  color: #737871;
}
.total-amount{
  font-weight: 600;
  font-size: 26px;
  line-height: 46px;
}

.coin-amount {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  color: #737871;
  position: relative;
  z-index: 1;
}
.payment-detail{
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #00B140;
  margin-top: 10px;
  cursor: pointer;
}
.qr-code{
  max-width: 247px;
  z-index: 1;

}
.pending-container{
  background-color: #E8F5E7;
  padding: 8px 13px;
  display: inline-flex;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.pending-box{
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
}

.refresh-icon{
  padding-left: 10px;
  cursor: pointer ;
}
.info-container{
  display: flex;
}
.info{
  color: #737871;
  font-weight: 400;
  padding-left: 10px;
}
.how-to{
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
  padding: 20px 0 15px 0;
}
.how-to-steps{
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
  letter-spacing: 0px;
  text-align: left;
}
.cancel-payment{
  margin-bottom: 20px;
}
.payment-experience{
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  cursor: pointer ;
  color: #737871;
  text-decoration: underline;
}
.close-button{
  position: absolute;
  top: 56px;
  right: 56px;
  cursor: pointer;
}
.leaf-decoration{
  position: absolute;
  top: 30px;
  left: 0;
}

.container {
  padding: 40px 58px;
  width: 100%;
}

.more-information {
  padding: 24px 38px;
  background: #F6FBF5;
  border: 1px solid #E8F5E7;
  border-radius: 7px;
  align-self: stretch;
}

.more-information table {
  width: 100%;
  table-layout: auto;
  border: 0;
  box-sizing: border-box;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
}

.more-information table tr td:first-child div {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.more-information table tr td:last-child  {
  text-align: right;
  vertical-align: middle;
}

.more-information table tr td:first-child div svg {
  margin-right: 15px;
  min-width: 30px;
}


button,a {
  width: 100%;
  padding: 17px;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  outline: none;
  font-family: 'Barlow Condensed';
  border-radius: 6px;
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  text-decoration: none;
}

button.primary, a.primary {
  background: #00B140;
  color: #fff;
}

button.secondary, a.secondary {
  color: #00B140;
  border: 1px solid #D8EDD6;
  background: #fff;
}

button.danger, a.danger {
  color: #D80027;
  background: #fff;
}

.heading2 {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-size: 26px;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 2s;
}

.heading3 {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
  width: 100%;
  text-align: left;
  padding-left: 5px;
}

.redirecting {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  color: #737871;
}

.payment-success {
  width: 100%;
}

.more-information-container {
  display: none;
}

.payment-success {
  display: none;
}

.pay-with-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading {
  width: 144px;
  height: 148px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.loading .small-circle {
  position: absolute;
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}



.small-circle:nth-child(1) {
  transform: rotate(0deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleAppear 0.3s ease forwards;
  animation-delay: 0s, 1.4s;
}
.small-circle:nth-child(2) {
  transform: rotate(45deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 0.2s, 0.8s;
}
.small-circle:nth-child(3) {
  transform: rotate(90deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 0.4s, 0.9s;
}
.small-circle:nth-child(4) {
  transform: rotate(135deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 0.6s, 1s;
}
.small-circle:nth-child(5) {
  transform: rotate(180deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 0.8s, 1.1s;
}
.small-circle:nth-child(6) {
  transform: rotate(225deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 1s, 1.2s;
}
.small-circle:nth-child(7) {
  transform: rotate(270deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 1.2s, 1.3s;
}
.small-circle:nth-child(8) {
  transform: rotate(315deg) translateY(66px) rotate(0deg);
  animation: circlePulse 0.4s ease forwards, circleDisapear 0.4s ease forwards;
  animation-delay: 1.4s, 1.4s;
}


.circle__box {
  width: 146px;
  height: 150px;
  margin: 50px auto;
  position: relative;
}

.circle__wrapper {
  width: 75px;
  height: 150px;
  position: absolute;
  top: 0;
  overflow: hidden;
}

.circle__wrapper--right {
  right: 0;
}

.circle__wrapper--left {
  left: 0;
}

.circle__whole {
  width: 124px;
  height: 124px;
  border: 12px solid transparent;
  border-radius: 50%;
  position: absolute;
  top: 0;
  transform: rotate(-135deg);
}

.circle__right {
  border-top: 12px solid #00B140;
  border-right: 12px solid #00B140;
  right: 1px;
  animation: circleRight 1s linear forwards;
  animation-delay: 1.7s;
}

.circle-tail {
  position: absolute;
  right: 7px;
  bottom: 2px;
  transform: rotate(135deg);
  width: 26px;
  height: 12px;
  background: linear-gradient(91deg, rgb(1 177 64) 17%, rgba(255,255,255,0) 100%);
  opacity: 0;
}

.circle-tail.right {
  animation: tailRight 0.5s linear forwards;
  animation-delay: 1.7s;
}

.circle-tail.left {
  bottom: auto;
  top: 0px;
  right: auto;
  left: 9px;
  background: linear-gradient(270deg, rgb(1 177 64) 17%, rgba(255,255,255,0) 100%);
  animation: tailLeft 0.5s linear forwards;
  animation-delay: 2.05s;
}

.circle__left {
  border-bottom: 12px solid #00B140;
  border-left: 12px solid #00B140;
  left: 1px;
  animation: circleLeft 1s linear forwards;
  animation-delay: 1.7s;
}

.check-container {
  position: absolute;
  top: 62%;
  left: 41%;
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: fadeIn 0.4s ease forwards;
  animation-delay: 2.4s;
  opacity: 0;
}

.check-left {
  height: 10px;
  width: 30px;
  background: #00B140;
  position: absolute;
  left: 0px;
  border-radius: 4px;
  transform: translateY(6px) rotate(270deg);
  transform-origin: 0 0;
}

.check-right {
  height: 10px;
  width: 60px;
  background: #00B140;
  position: absolute;
  left: 0;

  border-radius: 4px;
}
.mobile-actions {
  display: none;
}
body.mobile .mobile-actions {
  display: block;
}

.mobile-only, .mobile-only-inline-flex {
  display: none;
}

body.mobile .mobile-only {
  display: block;
}

body.mobile .mobile-only-inline-flex {
  display: inline-flex;
}

body.mobile .desktop-only {
  display: none;
}

body.mobile .desktop-actions {
  display: none;
}

body.mobile .more-information-container {
  display: block;
}

body.mobile .pay-with-qr-code {
  display: none;
}

.language-picker {
  position: absolute;
  font-family: 'Barlow';
  font-weight: 500;
  font-size: 20px;
  line-height: 21px;
  color: #737871;
  top: 66px;
  right: 47px;
  z-index: 10;
}

.language-picker span {
  cursor: pointer;
  padding: 0 3px;
  display: inline-block;
}

.language-picker span.selected {
  color: #00B140;
}


@keyframes circleRight {
  0% {
    transform: rotate(-135deg);
  }
  50%,
  100% {
    transform: rotate(45deg);
  }
}

@keyframes tailLeft {
  0% {
    opacity: 0;
  }
  49% {
   opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes tailRight {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
}

@keyframes circleLeft {
  0% {
    visibility: hidden;
  }
  50% {
    visibility: visible;
    transform: rotate(-135deg);
  }
  100% {
    visibility: visible;
    transform: rotate(45deg);
  }
}

@keyframes circlePulse {
  0% {
    background: #D8EDD6;
  }
  50% {
    background:#00B140;
    height: 14px;
    width: 14px;
  }
  100% {
    background: #D8EDD6;
  }
}

@keyframes circleDisapear{
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeIn{
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes circleAppear{
  0% {
    opacity: 1;
  }

  100% {
    background:#00B140;
    height: 12px;
    width: 12px;
  }
}

@media only screen and (max-width: 600px) {
 body {
   margin: 0;
   background: #fff;
   padding: 0;
 }

  .payment-container {
    border-radius: 0;
    padding: 25px;
    padding-bottom: 230px;
    box-sizing: border-box;
  }

  .more-information, .more-information-container {
    width: 100%;
  }

  .mobile-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 0 25px 25px;
    z-index: 4;
    box-shadow: 0 0 15px 15px #fff;
  }

  .logo-container img {
    width: 79px;
  }

  .more-information {
    padding:0px;
    border: none;
    background: none;
  }
  .more-information table {
    font-size: 15px;
    line-height: 17px;
    font-weight: 500;
  }

  .more-information table tr td div:first-child {
    padding: 5px 0;
  }

  button, a {
    font-size: 16px;
    line-height: 19px;
  }

  .pending-box {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
  }
}

