/* ==========================================================================
   PTW POPUP ประกาศ
   สีและ radius อิงชุดเดียวกับ Additional CSS หน้า SAR
   ========================================================================== */

.ptw-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 62, 0.6); /* navy #16213e โปร่ง */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.ptw-popup-overlay.is-open {
  display: flex;
}

.ptw-popup {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 28px 28px;
  animation: ptwPopIn 0.3s ease;
}

@keyframes ptwPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ptw-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #f0f0f0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.ptw-popup-close:hover {
  background: #e2e2e2;
}

.ptw-popup-title {
  margin: 0 0 16px;
  font-weight: 700;
  color: #16213e;
  padding-right: 40px; /* กันชนปุ่มปิด */
}

.ptw-popup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 16px;
}

.ptw-popup-body {
  line-height: 1.75;
  color: #2b2b2b;
}

.ptw-popup-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .ptw-popup {
    padding: 24px 18px 20px;
  }
}
