@charset "utf-8";
/* CSS Document */
/* --- ส่วนของ Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0073b2; /* สีฟ้าตามที่กำหนด */
    color: #ffffff; /* ตัวอักษรสีขาว */
    box-sizing: border-box;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease-in-out;
    font-family: sans-serif;
}

/* ข้อความแจ้งเตือน */
.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    margin-right: 20px;
    max-width: 70%;
}

.cookie-text a {
    color: #F0D202;
    text-decoration: underline;
}

/* กลุ่มปุ่มกด */
.cookie-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

/* ปุ่มยืนยัน (สีเหลือง #F0D202) */
.btn-accept {
    background-color: #F0D202;
    color: #111111; /* สีเข้มเพื่อให้ตัวอักษรบนพื้นเหลืองอ่านง่าย */
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-accept:hover {
    background-color: #d8bc02; /* สีเหลืองเข้มขึ้นเล็กน้อยตอน hover */
}

/* ปุ่มปิด (แบบโปร่งใส/ข้อความขาว) */
.btn-close {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ซ่อน Banner เมื่อกดยอมรับหรือปิด */
.cookie-banner.hidden {
    display: none !important;
}

/* การรองรับหน้าจอมือถือ (Responsive) */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column-reverse; /* ให้ปุ่มยืนยันอยู่ด้านบนในมือถือ */
        gap: 10px;
    }

    .btn-accept, .btn-close {
        width: 100%;
        padding: 12px;
    }
}
