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

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

.isures-acb--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;
    width: 100%;
}

.isures-acb--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;
}

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

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

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

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

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

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

.vicweb-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 .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position: relative;
    top: 5px;
    right: 5px;
    margin: 0 auto;
}

.vicweb-success-wrap .checkmark__circle,
.vicweb-gateway-result .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6scubic-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;
    }
}


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

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

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

.vicweb-global__sq-img,
.vicweb-global__sq-img img {
    width: 26px;
    height: 26px;
}

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

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

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

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

.vicweb-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
    }
}

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

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

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

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

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



/* new layout */

.scan-payment {
    margin-block: 50px;
}

.scan-payment-inner {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    column-gap: 30px;
    margin-inline: auto;
}

@media only screen and (max-width: 768px) {
    .scan-payment-inner {
        display: block;
    }
}

.scan-payment-info {
    width: 50%;
    flex-shrink: 0;
}

@media only screen and (max-width: 768px) {
    .scan-payment-info {
        width: 100%;
        margin-bottom: 30px;
    }
}

.scan-payment-info .timeout,
.isures-acb--qr_df.timeout {
    margin-bottom: 30px;
    padding: 20px 30px;
    background-color: #fffcf5;
    color: #ce8a55;
    text-align: center;
    border: 1px solid rgba(206, 138, 85, 0.5);
    border-radius: 12px;
}

.scan-payment-info .timeout p,
.isures-acb--qr_df.timeout p {
    font-weight: 600px;
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 0;
}

.scan-payment-info .timeout strong,
.isures-acb--qr_df.timeout strong {
    font-size: 24px;
}

.scan-payment-info .info {
    border: 1px solid #c3c3c3;
    border-radius: 12px;
    padding: 30px;
}

.scan-payment-info .info-title {
    font-size: 18px;
    font-weight: bold;
    color: #068d4c;
    margin-bottom: 16px;
    margin-top: 0;
}

.scan-payment-info .info-bank-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.scan-payment-info .info-bank-header .thumbnail {
    max-width: 70px;
    margin: 0;
}

.scan-payment-info .info-bank-header .thumbnail img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

.scan-payment-info .info-bank-header .name {
    color: #5e5e5e;
    font-size: 16px;
    margin: 0;
}

.scan-payment-info .info-bank-body .item {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.scan-payment-info .info-bank-body .item .title {
    font-size: 14px;
    margin-bottom: 10px;
}

.scan-payment-info .info-bank-body .item .value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    position: relative;
    top: -8px;
    cursor: pointer;
}

.scan-payment-info .info-bank-body .item .value strong {
    font-size: 18px;
    font-weight: bold;
    line-height: 26px;
}

.scan-payment-info .info-bank-body .item .value span {
    width: 95px;
    height: 32px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 7px;
    border: 1px solid #dbdfe9;
    border-radius: 6px;
    position: relative;
    top: -14px;
}

.scan-payment-info .info-bank-body .item .value strong {
    text-transform: uppercase;
    color: #424242;
}

.scan-payment-info .info-bank-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    column-gap: 8px;
    color: #5e5e5e;
}

.scan-payment-info .info-bank-footer p strong {
    font-weight: bold;
}

.scan-payment-qr {
    width: 50%;
    background-image: url("../images/bg-qr.jpg");
    padding: 30px;
    text-align: center;
    color: #fff;
    border-radius: 12px;
}

@media only screen and (max-width: 768px) {
    .scan-payment-qr {
        width: 100%;
    }
}

@media only screen and (max-width: 576px) {
    .scan-payment-qr {
        padding: 30px 20px;
    }
}

.scan-payment-qr h5.title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0;
    margin-inline: auto;
    width: 100%;
    max-width: 355px;
}

@media only screen and (max-width: 992px) {
    .scan-payment-qr h5.title {
        font-size: 20px;
        font-weight: 500;
        max-width: 100%;
    }
}

.scan-payment-qr .thumbnail {
    width: 260px;
    height: 260px;
    padding: 17px;
    background-color: #fff;
    border: 1px solid #dadee9;
    border-radius: 12px;
    margin-bottom: 20px;
    margin-inline: auto;
    position: relative;
}

@media only screen and (max-width: 992px) {
    .scan-payment-qr .thumbnail {
        width: 200px;
        height: 200px;
    }
}

.scan-payment-qr .thumbnail-qr {
    position: relative;
    overflow: hidden;
}

.scan-payment-qr .thumbnail-qr .qr-code {
    max-width: 100%;
    max-height: 100%;
}

.scan-payment-qr .thumbnail-qr .scanner {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    animation: scan 3s infinite linear;
}

.scan-payment-qr .thumbnail-border img {
    position: absolute;
}

.scan-payment-qr .thumbnail-border img:nth-child(1) {
    position: absolute;
    top: 8px;
    left: 8px;
}

.scan-payment-qr .thumbnail-border img:nth-child(2) {
    position: absolute;
    top: 8px;
    right: 8px;
    transform: rotate(90deg);
}

.scan-payment-qr .thumbnail-border img:nth-child(3) {
    position: absolute;
    bottom: 8px;
    left: 8px;
    transform: rotate(270deg);
}

.scan-payment-qr .thumbnail-border img:nth-child(4) {
    position: absolute;
    bottom: 8px;
    right: 8px;
    transform: rotate(180deg);
}

.scan-payment-qr .desc {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

@media only screen and (max-width: 768px) {
    .scan-payment-qr .desc {
        flex-wrap: wrap;
        line-height: 21px;
    }
}

.scan-payment-qr .desc img {
    padding-right: 8px;
}

.scan-payment-qr .desc strong {
    font-weight: bold;
    padding-inline: 3px;
}

.scan-payment-qr a {
    position: relative;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    background-color: #fff;
    color: #424242;
    border: 1px solid #dbdfe9;
    padding: 0 10px;
    margin: 0 auto;
}

.scan-payment-qr a img {
    padding-right: 7px;
}

.scan-payment-qr .note {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    margin-bottom: 40px;
}

.scan-payment-qr .note span {
    width: 85%;
    display: inline-block;
}

@media only screen and (max-width: 576px) {
    .scan-payment-qr .note span {
        width: 100%;
        line-height: 21px;
    }
}

.scan-payment-qr .loading {
    margin-top: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
}

.scan-payment-qr .loading .spinner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 10px 0px 0 0 rgba(255, 255, 255, 0.2), 8px 6px 0 0 rgba(255, 255, 255, 0.4), 3px 10px 0 0 rgba(255, 255, 255, 0.6), -3px 10px 0 0 rgba(255, 255, 255, 0.8), -8px 6px 0 0 #fff;
    animation: spinner-b87k6z 1s infinite linear;
}

@keyframes spinner-b87k6z {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner-b87k6z {
    to {
        transform: rotate(360deg);
    }
}

.scan-payment-cancel {
    margin-top: 30px;
    color: #ce3628;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes scan {
    0% {
        top: -72px;
    }

    50% {
        top: calc(100% - 72px);
    }

    100% {
        top: -72px;
    }
}