@charset "utf-8";


.zync-popup-alert {
	visibility: hidden;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	background-color: #28A745; /* สีน้ำเงินเข้ม */
	color: #fff;
	border-radius: 12px;
	z-index: 10000;
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0,0,0,0.4);
	font-family: "Noto Sans Thai", sans-serif;
	border: 1px solid #ffeb3b;
	text-align: center;
	box-sizing: border-box; /* ป้องกันไม่ให้ padding ดันกล่องจนล้น */
	/* ขนาดสำหรับหน้าจอมือถือทั่วไป */
	width: 85%;
	padding: 20px;
	font-size: 1rem; /* ขนาดตัวอักษรกำลังดีบนมือถือ */
	line-height: 1.5;
}

/* ข้อความด้านใน */
.zync-popup-content {
    margin-bottom: 20px;
    font-weight: 500;
}

/* ปุ่ม "รับทราบและปิด" */
.zync-btn-confirm {
    background-color: #ffeb3b;
    color: #1e3a8a;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-family: "Noto Sans Thai", sans-serif;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 100%; /* บนมือถือปรับให้ปุ่มเต็มความกว้างเพื่อให้กดง่ายขึ้น */
}

.zync-btn-confirm:hover {
    background-color: #ffffff;
}

.zync-btn-confirm:active {
    transform: scale(0.98); /* เอฟเฟกต์ตอนกดปุ่ม */
}

/* คลาสสำหรับเปิดการแสดงผล */
.zync-popup-alert.zync-popup-show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* ==========================================
   Media Queries สำหรับปรับแต่งตามขนาดหน้าจอ
   ========================================== */

/* 1. สำหรับ แท็บเล็ต (หน้าจอตั้งแต่วันที่ 600px ขึ้นไป) */
@media screen and (min-width: 600px) {
    .zync-popup-alert {
        width: 60%; /* ขยายกล่องให้กว้างขึ้นตามหน้าจอ */
        padding: 25px;
        font-size: 1.1rem;
    }
    .zync-btn-confirm {
        width: auto; /* เปลี่ยนปุ่มให้ขนาดพอดีคำ ไม่ยาวเต็มจอเหมือนมือถือ */
        font-size: 1rem;
    }
}

/* 2. สำหรับ คอมพิวเตอร์/โน้ตบุ๊ก (หน้าจอตั้งแต่วันที่ 1024px ขึ้นไป) */
@media screen and (min-width: 1024px) {
    .zync-popup-alert {
        width: 100%;
        max-width: 450px; /* ล็อคความกว้างสูงสุดไว้ ไม่ให้กล่องยาวเกินไปบนหน้าจอคอม */
        padding: 30px;
        font-size: 1.2rem;
    }
}