/* ============================================================
   Persetujuan cookie / Cookie consent gate
   ============================================================ */

html.consent-pending body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(circle at 50% 10%, #0a2b4b 0%, #041426 55%, #020b14 100%);
}

html.consent-pending body { overflow: hidden; }
body.consent-open { overflow: hidden; }

.cookie-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(2, 10, 18, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: cookie-fade .25s ease both;
}

.cookie-gate.is-closing { animation: cookie-fade-out .22s ease both; }

.cookie-card {
  position: relative;
  width: min(100%, 620px);
  margin: auto;
  padding: 30px 30px 26px;
  border: 1px solid rgba(142, 216, 255, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 134, 190, .22), transparent 55%),
    linear-gradient(180deg, #0a2743 0%, #05182c 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  color: #eef7ff;
  animation: cookie-rise .32s cubic-bezier(.2, .8, .2, 1) both;
}

.cookie-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cookie-brand img {
  display: block;
  width: 92px;
  height: auto;
  padding: 6px 9px;
  border-radius: 10px;
  background: #fff;
}

.cookie-brand span {
  color: #8fb2c9;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cookie-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.cookie-card h2 em {
  color: #8ed8ff;
  font-style: italic;
}

.cookie-intro {
  margin: 0 0 18px;
  color: #b9d2e4;
  font-size: 13px;
  line-height: 1.7;
}

.cookie-options {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cookie-option {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 207, 241, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.cookie-option svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #8ed8ff;
}

.cookie-option strong {
  display: block;
  margin-bottom: 2px;
  color: #eaf6ff;
  font-size: 12px;
  font-weight: 700;
}

.cookie-option span {
  display: block;
  color: #93b2c7;
  font-size: 11.5px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cookie-actions .btn { flex: 1 1 180px; justify-content: center; }

.cookie-foot {
  margin: 0;
  color: #7f9fb5;
  font-size: 11px;
  line-height: 1.6;
}

.cookie-foot a {
  color: #a9d9f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-link-btn:hover { color: #8ed8ff; }

@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cookie-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .cookie-gate { padding: 12px; place-items: start center; }
  .cookie-card { padding: 24px 20px 20px; border-radius: 18px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { flex: 1 1 auto; width: 100%; }
  .cookie-brand img { width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-gate,
  .cookie-card { animation: none; }
}
