/* CraftFrame · Cookie consent banner
   Owns: #cf-cookie + .cf-cookie-* classes
   Loaded standalone after shared.css so it can be iterated without busting the rest of the cache. */

#cf-cookie {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  z-index: 450;
  width: calc(100% - 44px);
  max-width: 680px;

  background: rgba(20, 20, 20, .92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .02) inset;

  opacity: 0;
  transition:
    opacity .4s ease,
    transform .4s cubic-bezier(.2, .7, .2, 1);
}
#cf-cookie.in  { opacity: 1; transform: translate(-50%, 0); }
#cf-cookie.out { opacity: 0; transform: translate(-50%, 24px); }

.cf-cookie-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cf-cookie-body {
  flex: 1 1 320px;
  min-width: 240px;
}

.cf-cookie-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.cf-cookie-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 185, 74, .18);
  animation: cf-cookie-pulse 2.4s ease-in-out infinite;
}
@keyframes cf-cookie-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245, 185, 74, .18); }
  50%      { box-shadow: 0 0 0 5px rgba(245, 185, 74, .04); }
}

.cf-cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: .92;
}
.cf-cookie-text a { color: var(--ink); }

.cf-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  align-items: center;
}

.cf-cookie-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

.cf-cookie-decline {
  background: transparent;
  color: var(--dim);
  border-color: rgba(255, 255, 255, .12);
}
.cf-cookie-decline:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, .28);
}

.cf-cookie-accept {
  background: var(--accent);
  color: #0a0a0a;
}
.cf-cookie-accept svg          { transition: transform .25s ease; }
.cf-cookie-accept:hover        { transform: translateY(-1px); }
.cf-cookie-accept:hover svg    { transform: translateX(2px); }

@media (max-width: 640px) {
  #cf-cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: translateY(24px);
    padding: 16px 18px;
    border-radius: 16px;
  }
  #cf-cookie.in  { transform: translateY(0); }
  #cf-cookie.out { transform: translateY(24px); }

  .cf-cookie-inner   { gap: 14px; }
  .cf-cookie-body    { flex-basis: 100%; }
  .cf-cookie-text    { font-size: 13px; }
  .cf-cookie-actions { margin-left: 0; width: 100%; }
  .cf-cookie-btn     { flex: 1 1 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  #cf-cookie,
  .cf-cookie-btn,
  .cf-cookie-accept svg { transition: none; }
  .cf-cookie-dot        { animation: none; }
}
