/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

label[for="payment_method_allpayvn"] img {
  width: 50px;
  float: right;
}

.allpayvn--qr_wrap {
  border-color: #e2e2e2;
  border-width: 1px;
  border-style: solid;
  border-radius: 12px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  background: #fff;
}

.allpayvn--col_left {
  display: flex;
  flex-direction: column;
  border-radius: 10px 0px 0px 10px;
  padding: 20px 30px;
  border-right: 1px solid #e2e2e2;
}

.payment-info {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  border-radius: 10px 0px 0px 10px;
  padding: 20px 30px;
}

.payment-info p {
  font-size: 15px;
}

img.acb-loading--icon {
  max-width: 40px;
}

.payment_desc {
  color: red;
  font-weight: bold;
  border: 1px solid red;
  padding: 1px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 15px;
  cursor: pointer;
}

.note-customer {
  display: block;
  font-weight: 500;
  background: #f3f3f3;
  padding: 5px;
  border-radius: 5px;
  margin: 15px auto;
}

.allpayvn-logo--acb_wrap img {
  width: 50px;
  margin-right: 10px;
  vertical-align: middle;
  padding: 5px;
  background-color: #fff;
}

@media screen and (max-width: 540px) {
  .allpayvn--qr_wrap {
    flex-basis: 100% !important;
    flex-direction: column;
    margin-bottom: 15px;
  }

  .allpayvn-qrcode--image {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.allpayvn-success-wrap {
  margin: 20px auto;
}

#allpayvn_popup_wrap {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.86);
  left: 0;
  top: 0;
  z-index: 10000;
  position: fixed;
  display: none;
  visibility: hidden;
}

#allpayvn_popup_wrap.show {
  display: block;
  visibility: visible;
}

.allpayvn-gateway-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 100%;
  min-height: 150px;
  background: #fff;
  border-radius: 5px;
  padding: 30px;
}

.success-animation {
  margin: 20px auto;
}

.checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #4bb71b;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #4bb71b;
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
  position: relative;
  top: 5px;
  right: 5px;
  margin: 0 auto;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4bb71b;
  fill: #fff;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #4bb71b;
  }
}

.allpayvn-qrcode--wrap_container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 15px;
  overflow: hidden;
}

.allpayvn-qrcode--wrap_container[data-frame=""] {
  width: 240px;
  height: 240px;
}

.allpayvn-qrcode--wrap_container > span {
  position: absolute;
  z-index: 2;
}

span.allpayvn-qrcode--wrap_left {
  top: 0;
  left: 0;
}

span.allpayvn-qrcode--wrap_right {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

span.allpayvn-qrcode--wrap_bottomr {
  bottom: 0;
  left: 0;
  transform: rotate(270deg);
}

span.allpayvn-qrcode--wrap_bottoml {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.allpayvn-qrcode--scan {
  top: 242px;
  z-index: 1;
  animation-duration: 1.4s;
  animation-name: qrscan;
  animation-iteration-count: 6;
  animation-direction: alternate;
  position: absolute;
}

@keyframes qrscan {
  0% {
    top: 230px;
  }

  100% {
    top: 0;
  }
}

.allpayvn-download__qrcode-wrap {
  text-align: center;
  margin-top: 10px;
}

.allpayvn-download__qrcode {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  display: inline-block;
  padding: 0.5rem 1.25rem;
  text-align: center;
  border: 1px solid #9ca3af;
  border-radius: 5px;
}

.allpayvn-download__qrcode svg {
  width: 15px;
  height: 15px;
  fill: #6b7280;
}

.allpayvn-download__qrcode:hover {
  color: #6b7280;
}

.allpayvn--col_left span {
  font-size: 15px;
}
