/* Sarocha Law — cookie consent banner (paired with /assets/js/consent-banner.js) */

.cb-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(11, 22, 40, 0.97);
  color: #f3eadc;
  box-shadow: 0 18px 44px rgba(11, 22, 40, 0.28);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", Tahoma, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cb-banner-visible {
  opacity: 1;
  transform: translateY(0);
}

.cb-banner-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.cb-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(243, 234, 220, 0.92);
}

.cb-link {
  color: #e0c98b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-link:hover {
  color: #c5a15a;
}

.cb-actions {
  display: flex;
  gap: 10px;
}

.cb-btn {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, opacity 160ms ease;
}
.cb-btn:hover {
  transform: translateY(-1px);
}
.cb-btn:focus-visible {
  outline: 3px solid rgba(197, 161, 90, 0.5);
  outline-offset: 2px;
}

/* Accept and Reject share identical size/weight/padding — neither is visually
   subordinate, so the choice reads as a real choice rather than a nudge. */
.cb-btn-accept {
  background: #0b7a53;
  color: #ffffff;
}
.cb-btn-reject {
  background: transparent;
  color: #f3eadc;
  border-color: rgba(243, 234, 220, 0.55);
}

@media (min-width: 561px) {
  .cb-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 380px;
  }
}

/* Below 768px the site's own sticky call/LINE bar sits at bottom:12px,
   ~68px tall — clear it so the two bars don't overlap. */
@media (max-width: 767px) {
  .cb-banner {
    bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-banner {
    transition: none;
  }
}
