.popup-close {
    display: none !important;
}

/* ซ่อนกากบาทในช่วงแรก (แบนเนอร์) */
.popup-banner .popup-close { display: none !important; }

/* สไตล์กากบาทในฟอร์มช่วงที่สอง */
#popup-form { position: relative;     width: 360px; }
.popup-close-form{
  position:absolute; top:6px; right:10px;
  background:transparent; border:0; cursor:pointer;
  font-size:22px; line-height:1;
}

button.popup-close-form {
    background-color: #fff;
    margin-top: -5px;
    /* margin-left: -10px; */
    margin-right: -5px;
}

button#popup-submit {
    background-color: goldenrod;
}

#popup-container { position: fixed; inset: 0; z-index: 9999; }
#popup-container .popup-close-form{
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: none; /* 🔒 ซ่อนไว้ก่อน */
padding: 0px 10px 0px 10px;
}
#popup-container .popup-close-form:hover{ opacity: .8; }


#popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10000;
    text-align: center;
min-height: 550px;
}
.popup-banner img {
    width: 100% !important;
}
.popup-content {
    width: 400px !important;
}
.popup-content ul {
    list-style: none;
    padding: 0;
width: 350px;
}
.popup-content ul li {
    cursor: pointer;
    padding: 10px;
    background: #eee;
    margin: 5px 0;
    transition: 0.3s;
}
.popup-content ul li:hover {
    background: #ddd;
}
.popup-close {
    position: absolute;
    top: 0px;          /* ขยับให้ลอยออกไปด้านบน */
    right: 0px;        /* ขยับให้ลอยออกไปด้านขวา */
    width: 40px;         /* ขนาดปุ่ม */
    height: 40px;
    line-height: 40px;   /* จัดกากบาทให้อยู่กลาง */
    text-align: center;
    font-size: 28px;     /* กากบาทใหญ่ขึ้น */
    font-weight: bold;
    color: #333;
    background: #fff;    /* ✅ พื้นหลังขาว */
    border-radius: 50%;  /* ทำให้เป็นวงกลม */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* เพิ่มเงาให้เด่น */
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}
.popup-close:hover {
    color: red;
    transform: scale(1.1); /* ขยายเบาๆตอน hover */
}

