@charset "utf-8";
/* =========================================
   1. ปุ่มกดแลกแต้ม (หน้าหลัก)
   ========================================= */
.tranfer-point {
	float: left;
	height: auto;
	width: 60%;
	margin-left: 20%;
	margin-top: 5%;
	margin-bottom: 8%;
}

.btn-tranfer-point {
    font-family: 'serithairegular', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    background-color: #fde594;
    height: auto;
    width: 100%;
    border-radius: 15px;
    border: none;
    padding: 15px 5%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-tranfer-point:hover {
    background-color: #FBCF37;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 207, 55, 0.5);
}

.btn-tranfer-point:active {
    transform: scale(0.95);
}


/* =========================================
   2. ระบบ Popup ยืนยัน (p-redeem-) 
   ========================================= */

/* พื้นหลังมัวทั้งหน้าจอ */
.p-redeem-overlay {
    display: none; /* ปิดไว้ก่อนในตอนเริ่ม */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    /* ลบ display: flex; ตรงนี้ออก หรือเปลี่ยนเป็นบรรทัดข้างล่างแทน */
    align-items: center;
    justify-content: center;
}

/* กล่อง Popup */
.p-redeem-box {
    background-color: #e9d3ed;
    /* เปลี่ยนจาก margin เป็นการคุมขนาด */
    padding: 30px 20px;
    border-radius: 30px;
    width: 90%; /* สำหรับมือถือ */
    max-width: 420px; /* สำหรับคอมพิวเตอร์ */
    text-align: center;
    font-family: 'serithairegular', sans-serif;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 4px solid #ffffff;
    position: relative;
    animation: pPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes pPopIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.p-redeem-icon { 
    font-size: clamp(45px, 10vw, 55px); /* ปรับขนาดตามจอ */
    margin-bottom: 10px; 
}

.p-redeem-title {
    color: #92278f;
    font-size: clamp(1.2rem, 5vw, 1.4rem); /* ยืดหยุ่นตามขนาดจอ */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
}

/* การ์ดสีขาวจางด้านใน */
.p-redeem-card {
    background-color: rgba(255, 255, 255, 0.5);
    padding: clamp(15px, 4vw, 22px);
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.p-redeem-summary {
    font-size: clamp(1rem, 4vw, 1.15rem);
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.p-redeem-minus { color: #d32f2f; font-weight: bold; }
.p-redeem-remain { color: #2e7d32; font-weight: bold; }

.p-redeem-divider {
    border: 0;
    border-top: 2px dashed #cea0de;
    margin: 15px 0;
}

.p-redeem-info {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* --- ส่วนจัดการปุ่ม (Responsive Button Group) --- */
.p-redeem-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

/* ปรับแต่งปุ่มให้เท่ากันทั้งสองข้าง */
.p-redeem-btn-confirm, 
.p-redeem-btn-cancel {
    flex: 1;
    min-width: 0; /* ป้องกันปุ่มล้นในจอเล็กมาก */
    padding: 12px 5px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'serithairegular', sans-serif;
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.p-redeem-btn-confirm {
    background: linear-gradient(135deg, #92278f 0%, #6d1c6a 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 15px rgba(146, 39, 143, 0.3);
}

.p-redeem-btn-cancel {
    background-color: #ffffff;
    color: #888;
    border: 1px solid #ccc;
}

/* Media Query สำหรับมือถือขนาดเล็กมาก (เช่น iPhone SE) */
@media (max-width: 360px) {
    .p-redeem-box {
        padding: 20px 15px;
    }
    .p-redeem-btn-group {
        gap: 8px;
    }
}

/* Hover & Active States */
.p-redeem-btn-confirm:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(146, 39, 143, 0.4);
}

.p-redeem-btn-cancel:hover {
    background-color: #f5f5f5;
    color: #333;
}

.p-redeem-btn-confirm:active, 
.p-redeem-btn-cancel:active {
    transform: scale(0.95);
}