/* ครอบทั้งจอ */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    /* เริ่มซ่อน */
    align-items: center;
    /* จัดแนวตั้งกลาง */
    justify-content: center;
    /* จัดแนวนอนกลาง */
    background: rgba(0, 0, 0, .35);
    z-index: 9999;
}

.loading-overlay.is-visible {
    display: flex;
}

/* กล่องด้านใน: จัดกึ่งกลางทั้งแนวตั้ง-นอน */
.loading-box {
    /* เอา absolute ออก ให้ flex เป็นคนจัดกึ่งกลาง */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    text-align: center;
}

/* วงแหวนโหลด */
.loader-dual-ring {
    width: 48px;
    height: 48px;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    border-radius: 50%;
    animation: ldr 1.2s linear infinite;
}

/* ข้อความ */
.loading-text {
    line-height: 1.2;
}

/* กันดูเอียงจาก line-height */

@keyframes ldr {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}