/* cookie-banner.css
   Small, unobtrusive privacy notice pill in the Hammer & Pixel brand
   (amber on near-black). The site uses cookieless, privacy-friendly
   analytics, so this is a brief courtesy notice rather than a consent gate.
   Sits above the sticky CTA on mobile. The choice is stored in localStorage
   and the pill never re-appears once dismissed. */

.cookie-pill {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 560px;
  width: calc(100% - 24px);
  background: #101013;
  color: #f3f3f1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9990;
  font-size: 0.8rem;
  font-family: inherit;
  line-height: 1.35;
}
.cookie-pill[hidden] { display: none !important; }
.cookie-pill-text { flex: 1; min-width: 0; margin: 0; }
.cookie-pill-text-short { display: none; }
.cookie-pill-text a {
  color: #ffa028;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie-pill-text a:hover { color: #ffbf63; }
.cookie-pill-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cookie-pill-btn {
  border: none;
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}
.cookie-pill-btn:active { transform: translateY(1px); }
.cookie-pill-accept {
  background: #ffa028;
  color: #050505;
}
.cookie-pill-accept:hover { background: #ffae47; color: #050505; }
.cookie-pill-decline {
  background: transparent;
  color: #f3f3f1;
  border: 1px solid rgba(243, 243, 241, 0.28);
}
.cookie-pill-decline:hover {
  background: rgba(243, 243, 241, 0.1);
  border-color: rgba(243, 243, 241, 0.55);
}

@media (max-width: 640px) {
  /* Tight single-row pill on mobile. Sits above the sticky CTA bar (~84px tall). */
  .cookie-pill {
    bottom: calc(92px + env(safe-area-inset-bottom));
    padding: 6px 6px 6px 14px;
    gap: 8px;
    font-size: 0.72rem;
    width: calc(100% - 16px);
  }
  .cookie-pill-text-full { display: none; }
  .cookie-pill-text-short { display: inline; }
  .cookie-pill-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}
