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

.ptw-cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  background: #16213e;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: ptwCookieSlideIn 0.3s ease;
}

.ptw-cookie-consent.is-open {
  display: flex;
}

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

.ptw-cookie-consent__text {
  flex: 1 1 320px;
  line-height: 1.6;
  font-size: 14px;
}

.ptw-cookie-consent__text p:last-child {
  margin-bottom: 0;
}

.ptw-cookie-consent__link {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 6px;
  white-space: nowrap;
}

.ptw-cookie-consent__link:hover {
  opacity: 0.85;
}

.ptw-cookie-consent__button {
  flex: 0 0 auto;
  background: #ffffff;
  color: #16213e;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ptw-cookie-consent__button:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .ptw-cookie-consent {
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .ptw-cookie-consent__button {
    width: 100%;
  }
}
