.thai-lotto-wrapper {
  color: #333;
  padding: 20px;
  background-color: white;
  margin: 0 auto;
}

.lotto-title {
  font-size: 30px;
  font-weight: bold;
  color: #333;
}

.lotto-date {
  color: #007bff;
  margin-top: 5px;
  font-size: 18px;
}

.lotto-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}

.lotto-header img {
  width: 35px !important;
  max-width: 35px;
  height: auto;
  flex-shrink: 0;
}

.lotto-subtitle {
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  color: #223366;
}

.lotto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.lotto-box {
  flex: 1 1 220px;
  border-right: 1px solid #ddd;
  padding-right: 10px;
  padding-bottom: 20px;
}

.lotto-box:last-child {
  border-right: none;
}

.lotto-box h4 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.lotto-box .desc {
  font-size: 14px;
  color: #666;
}

.lotto-num {
  padding-top: 25px;
  font-size: 40px;
  font-weight: bold;
  color: #0056b3;
  margin-top: 10px;
}

.lotto-numbig {
  font-weight: bold;
  font-size: 40px;
  background: #ffe600;
  padding: 15px 25px;
  display: inline-block;
  color: #444;
  border-radius: 6px;
}

.prize-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* 🔽 Responsive Support */
@media (max-width: 768px) {
  .lotto-grid {
    flex-direction: column;
  }

  .lotto-box {
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding-right: 0;
    padding-bottom: 20px;
  }

  .lotto-box:last-child {
    border-bottom: none;
  }

  .lotto-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .lotto-subtitle {
    font-size: 22px;
  }

  .lotto-numbig {
    font-size: 32px;
    padding: 12px 20px;
  }

  .lotto-num {
    font-size: 32px;
  }
}


/* ===== ฟอร์มตรวจหวย ===== */
.lotto-check-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.lotto-check-form input[type="text"] {
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 140px;
}

.lotto-check-form button {
  padding: 8px 14px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.lotto-check-form button:hover {
  background-color: #0056b3;
}

/* ===== Popup แสดงผล ===== */
#lottoPopup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lotto-popup-inner {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.lotto-popup-inner a {
  text-decoration: underline;
  color: #007bff;
  font-weight: 500;
}

.lotto-popup-inner button {
  padding: 6px 14px;
  background: #ccc;
  border: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
}

.lotto-popup-inner button:hover {
  background: #aaa;
}
