.scanto-pay-text:before {
    content: "SCAN KHQR";
}
.acleda-pay-text:before {
    content: "ACLEDA PAY";
}

@media screen and (max-width: 320px) {
    .h-swal2-popup {
        min-height: auto !important;
    }

}

@media screen and (max-width: 900px) {

    .container {
        max-width: 450px !important;
        padding: 0;
    }
    .logo-sm-view {
        width: 120px !important;
        display: block !important;
    }
    .logo-md-view, .summary-label {
        display: none !important;
    }
    .acledapay-box {
        flex-direction: column;
        border-radius: 0 !important;
        height: 100% !important;
        overflow: auto;
    }
    .action-box {
        order: 2;
        width: 100% !important;
        height: 100% !important;
        justify-content: start !important;
        font-size: 14px;
    }
    .action-content {
        margin-top: 190px;
    }
    .summary-box {
        order: 1;
        width: 100% !important;
        height: auto;
        border-radius: 0 !important;
        line-height: 1;
        font-size: 14px;
        padding-top: 1rem !important;
    }
    .action-header {
        flex-direction: column!important;
        /*padding-bottom: 1rem!important;*/
    }
    .action-header .selection {
        order: 1!important;
    }
    .action-header .spinner-icon {
        align-self: flex-end;
    }
    .qr-img {
        width: 80% !important;
    }
    .details {
        margin-bottom: 0.4rem!important;
    }
    .merchant-logo-md-view {
        display: none !important;
    }
    .merchant-logo-sm-view {
        display: flex !important;
        justify-content: center !important;
    }
    .swal2-container.swal2-backdrop-show, .swal2-container.swal2-noanimation {
        background: rgb(0 0 0 / 70%) !important;
    }
    .spinner-icon {
        display: flex;
        justify-content: end;
        flex-grow: 1;
        margin-bottom: 0.5rem;
    }
    .logo-timer-spinner {
        justify-content: flex-end!important;
        margin-bottom: 10px !important;
    }
    .merchant-logo, .merchant-logo-warpper, .acleda-logo-wrapper {
        height: 40px !important;
    }
    .did-floating-label, .did-floating-label {
        font-size: 11px !important;
    }
    .btn-acleda-primary, .btn-acleda-secondary {
        font-size: 14px;
    }
    #acleda-logo-wrapper {
        display: none !important;
    }
    .merchantCompanyName p {
        font-size: 14pt;
    }
    #merchantCompanyName p {
        display: none !important;
    }
    .fw-summary {
        font-size: 14px;
    }
    #merchantCompanyName {
        display: none;
    }
    #xpay-cancel-sm {
        display: block !important;
    }
    .merchantName-sm-view {
        font-size: 12px !important;
    }
    .box-wrapper {
        width: 100% !important;
    }
    .optionButton {
        flex-direction: column !important;
    }
    .optionButton .custom-w-49 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .reference-no {
        margin-top: 40px !important;
    }
    
    .only-mobile {
        display: block !important;
    }
    
    .only-desktop {
        display: none !important;
    }
    
    .account-detail-box label, .account-detail-box span, .account-detail-box button, .account-detail-box p, .account-detail-box li, .account-detail-box .alert-primary,
    .success-box, .success-box label, .success-box span, .success-box button {
        font-size: 12px !important;
    }
    
    .success-box h4 {
        font-size: 16px !important;
    }
    
    ._userid {
        min-height: 42px !important;
    }
    
    .did-floating-input, .did-floating-select {
        height: calc(2.8rem + 2px) !important;
        line-height: 1.25 !important;
    }
    .khqr-content-direct .khqr-content-wrapper{
        margin-top: 0px !important;
    }
    .backToInputAmtDiv {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 425px) {
    .h-swal2-popup {
        height: auto !important;
        width: 98% !important;
        min-width: 98% !important;
        padding: 20px !important;
    }
    #swal2-html-container {
        margin: 10px;
    }
    .account-detail-box label, .account-detail-box span, .account-detail-box button, .account-detail-box p, .account-detail-box li, .account-detail-box .alert-primary,
    .success-box, .success-box label, .success-box span, .success-box button {
        font-size: 14px;
    }
    .acleda-thank {
        width: 60px!important;
    }
    .card-acceptance-text {
        font-size: 10px !important;
    }
}

@media screen and (max-width: 375px) {
    .h-swal2-popup {
        min-height: auto !important;
    }
    .account-detail-box label, .account-detail-box span, .account-detail-box button, .account-detail-box p, .account-detail-box li, .account-detail-box .alert-primary,
    .success-box, .success-box label, .success-box span, .success-box button {
        font-size: 12px;
    }

    .did-floating-label, .did-floating-label {
        font-size: 9px !important;
        /*top: -5px !important;*/
    }
    .merchantName-sm-view {
        font-size: 12px !important;
    }
    .fw-summary, .saveTokenCheckbox, #inputToPayButton span, #validateBtn {
        font-size: 12px !important;
    }
    .input-to-pay-content label {
        font-size: 9px !important;
    }
    .selected-acledaicon {
        font-size: 16px !important;
    }
    .acledapay-box {
        flex-direction: column;
        border-radius: 0 !important;
        height: 100% !important;
        overflow: auto;
    }
    .box-wrapper {
        width: 100% !important;
    }
    .qr-img {
        width: 80% !important;
    }
    
    .optionButton {
        flex-direction: column !important;
    }
    .optionButton .custom-w-49 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .reference-no {
        margin-top: 40px !important;
    }
    
}


/* Change option button for small viewport */
@media (min-width: 320px) and (max-width: 375px) {
    .scanto-pay-text:before {
        content: "KHQR";
    }
    .acleda-pay-text:before {
        content: "ACLEDA PAY";
    }
    .optionButton {
        flex-direction: column !important;
    }
    .optionButton .custom-w-49 {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-height: 610px) {
    .summary-box, .action-box {
        padding-top: 1rem !important;
    }
    #xpay-cancel-sm {
        display: none !important;
    }
    .box-wrapper {
        width: 100% !important;
    }
    .qr-img {
        width: 80% !important;
    }
}