@charset "utf-8";

  /* พื้นหลังที่คลุมทั้งหน้าจอ */
  .mystic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* พื้นหลังดำโปร่งแสง */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px); /* เพิ่มเอฟเฟกต์เบลอพื้นหลัง */
  }

  /* ตัวกล่องข้อความ */
  .mystic-modal-card {
    background-color: #e9d3ed; /* สีพื้นที่กำหนด */
    width: 90%;
    max-width: 380px;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: mysticPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	max-height: 90vh; /* ป้องกันกล่องสูงเกินหน้าจอในมือถือแนวตั้ง */
  overflow-y: auto; /* ถ้าข้อความยาวเกินไป ให้เลื่อนอ่านในกล่องได้ */
  }

  /* ข้อความใน Popup */
  .mystic-modal-message {
	color: #000000; /* สีตัวอักษรดำ */
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 30px;
	font-family: "Noto Sans Thai";
  }

  /* ปุ่มตกลง */
  .mystic-modal-btn {
	background-color: #92278f; /* สีม่วงเข้มที่กำหนด */
	color: #ffffff; /* ตัวอักษรสีขาว */
	border: none;
	padding: 12px 45px;
	border-radius: 50px; /* ทรงมนยาว */
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 10px rgba(146, 39, 143, 0.3);
	font-family: serithairegular;
  }

  .mystic-modal-btn:hover {
    background-color: #7a1f77;
    transform: translateY(-2px);
  }

  .mystic-modal-btn:active {
    transform: translateY(0);
  }

  /* สไตล์ปุ่มเปิด (btn-popup-01) */
  .btn-popup-01 {
    cursor: pointer;
    padding: 10px 20px;
  }

  /* Animation */
  @keyframes mysticPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
  }
  @media (max-width: 320px) {
  .mystic-modal-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .mystic-modal-btn {
    padding: 10px 30px;
  }
}