.textpopup-success, .textpopup-failed{
    font-size: 16px;
}
.failed-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;

}
.success-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;

}
.infakin-failed{
    width: auto;
    height: 44px;
}
@media screen and (max-width: 992px){
    .success-container, .failed-container {
        padding: 20px 50px 20px 50px;
    }
    .checkmark-container, .checkmark-container-failed {
        width: 50px; /* Lebar container centang */
        height: 50px; /* Tinggi container centang */
        margin: 10px auto; /* Posisi tengah */
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .checkmark {
        width: 40px; /* Lebar centang */
        height: 40px; /* Tinggi centang */
        position: absolute;
        top: 7.5px;
        left: 0;
        opacity: 0; /* Mulai dengan opacity 0 (tersembunyi) */
        transform-origin: left center; /* Pusat transformasi di kiri tengah */
        animation: drawCheckmark 1s ease forwards; /* Animasi menggambar */
        margin-left: 10px;
    }

    .failed {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 7.5px;
        left: 0;
        opacity: 0;
        transform-origin: left center;
        animation: drawCheckmarkFailed 0.5s ease forwards;
        margin-left: 5px;
    }
    .infakin-success, .infakin-failed{
        width: auto;
        height: 22px;
        margin-bottom: 15px;
    }
    .textpopup-success, .textpopup-failed{
        font-size: 12.22px;
    }
    #btnOK, #btnOKFailed {
        background-color: #faffff; 
        color: #100f0f; 
        padding: 5px 10px; 
        /* border: none;  */
        border-color: #3c4396;
        border-radius: 5px;
        cursor: pointer; /* Kursor berubah menjadi tangan saat diarahkan */
        font-size: 8px; /* Ukuran teks */
        margin-top: 15px;
    }
} 

@media screen and (min-width: 992px){
    .failed-container{
        padding: 50px;
    }
    .checkmark-container-failed {
        width: 50px; /* Lebar container centang */
        height: 50px; /* Tinggi container centang */
        margin: 10px auto; /* Posisi tengah */
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .failed {
        width: 70px;
        height: 70px;
        position: absolute;
        top: 15px;
        left: 0;
        opacity: 0;
        transform-origin: left center;
        animation: drawCheckmarkFailed 0.5s ease forwards;
        margin-left: 10px;
    }
   .infakin-failed{
        width: 219px;
        height: 44px;
    }
   .textpopup-failed{
        font-size: 16px;
    }
    #btnOKFailed {
        background-color: #faffff; 
        color: #100f0f; 
        padding: 5px 10px; 
        /* border: none;  */
        border-color: #3c4396;
        border-radius: 5px;
        cursor: pointer; /* Kursor berubah menjadi tangan saat diarahkan */
        font-size: 14px; /* Ukuran teks */
    }
} 

.failed-container.hidden {
    display: none;
}


@keyframes drawCheckmarkFailed {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

 /* batas END*/