/* PECR consent banner - shared stylesheet.
 * Moved rule-for-rule out of css/style.css (Legal & Cookie Banner block +
 * the 44px cookie-link rule) so every page that runs js/cookie-consent.js
 * renders the banner as a fixed in-viewport overlay - including pages that
 * never link css/style.css (homepage, tools, checklists, some posts).
 * Fallback values mirror css/style.css :root for pages that do not define
 * the custom properties; where the variables exist they win unchanged.
 * Keep in sync with js/cookie-consent.js - banner behaviour lives there. */
/* --- Legal & Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10,14,20,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(212,175,55,0.2);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--grey-light, #d1d5db);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  max-width: 900px;
}
.cookie-banner a {
  color: var(--gold, #D4AF37);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}

.cookie-banner-actions .btn {
  flex: 1;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

/* Accept = solid gold (the primary action); Decline = quiet outline.
 * Both keep identical size/padding (flex:1) so refusing stays exactly as
 * easy as accepting — only the visual weight differs. */
.cookie-banner-actions .btn-primary {
  background: var(--gold, #D4AF37);
  color: var(--dark, #0A0E14);
  border: 2px solid var(--gold, #D4AF37);
}

.cookie-banner-actions .btn-primary:hover {
  background: #C29B2E;
  border-color: #C29B2E;
  color: var(--dark, #0A0E14);
}

.cookie-banner-actions .btn-cookie {
  background: transparent;
  color: var(--white, #f0f0f0);
  border: 2px solid rgba(255,255,255,0.4);
}

.cookie-banner-actions .btn-cookie:hover {
  border-color: var(--white, #f0f0f0);
  color: var(--white, #f0f0f0);
}

.cookie-banner-actions .btn-cookie:focus-visible {
  outline: 2px solid #FFF4C2;
  outline-offset: 4px;
}

.cookie-banner-actions .btn-secondary {
  background: transparent;
  color: var(--white, #f0f0f0);
  border: 2px solid rgba(255,255,255,0.4);
}

.cookie-banner-actions .btn-secondary:hover {
  border-color: var(--white, #f0f0f0);
  color: var(--white, #f0f0f0);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  body.cookie-banner-visible { padding-bottom: 180px; }
}
/* Phones: keep the consent bar to a small strip so it does not hide prices and buttons */
@media (max-width: 640px) {
  .cookie-banner {
    gap: 10px;
    padding: 12px 16px;
  }
  .cookie-banner p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .cookie-banner p a {
    display: inline;
    min-height: 0;
    padding: 0;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    padding: 8px 16px;
    min-height: 44px;
  }
  body.cookie-banner-visible { padding-bottom: 130px; }
}

/* Cookie banner links */
.cookie-banner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}
