/* /assets/css/cookie-consent.css */
.eh-cookie-consent[hidden] { display: none !important; }

.eh-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  font-family: 'Kanit', Arial, sans-serif;
}

.eh-cookie-card {
  position: relative;
  width: min(960px, 100%);
  background: #eaf4ff;
  border: 1px solid rgba(66, 49, 242, 0.28);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  padding: 24px;
  color: #000;
}

.eh-cookie-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #4432f2;
  border-radius: 50%;
  background: transparent;
  color: #4432f2;
  font-size: 26px;
  line-height: 26px;
  cursor: pointer;
}

.eh-cookie-main {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding-right: 38px;
}

.eh-cookie-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #a8ff52;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  line-height: 1;
}

.eh-cookie-content h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eh-cookie-content p {
  margin: 0 0 8px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 300;
}

.eh-cookie-note { color: #25314d; }

.eh-cookie-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
}

.eh-cookie-links a {
  color: #4432f2;
  text-decoration: none;
  font-weight: 600;
}

.eh-cookie-links a:hover { text-decoration: underline; }

.eh-cookie-preferences {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eh-cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(66, 49, 242, 0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.65);
  padding: 14px 16px;
}

.eh-cookie-toggle strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.eh-cookie-toggle small {
  display: block;
  margin-top: 4px;
  color: #647086;
  font-size: 12px;
  line-height: 1.25;
}

.eh-cookie-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #4432f2;
  flex: 0 0 auto;
}

.eh-cookie-toggle.is-disabled { opacity: 0.75; }

.eh-cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.eh-cookie-btn {
  min-width: 118px;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #4432f2;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.eh-cookie-btn:hover { transform: translateY(-1px); }

.eh-cookie-btn--primary {
  background: #4432f2;
  color: #fff;
}

.eh-cookie-btn--outline {
  background: #fff;
  color: #4432f2;
}

.eh-cookie-btn--ghost {
  background: transparent;
  color: #4432f2;
}

@media (max-width: 720px) {
  .eh-cookie-consent { bottom: 12px; padding: 0 12px; }
  .eh-cookie-card { border-radius: 20px; padding: 20px; }
  .eh-cookie-main { grid-template-columns: 1fr; gap: 12px; padding-right: 32px; }
  .eh-cookie-mark { width: 54px; height: 54px; font-size: 32px; }
  .eh-cookie-content h2 { font-size: 22px; }
  .eh-cookie-preferences { grid-template-columns: 1fr; }
  .eh-cookie-actions { justify-content: stretch; }
  .eh-cookie-btn { width: 100%; }
}
