/* Consent panel only: colours and typography follow the existing Kmeggie+ brand. */
.cookie-panel {
  position: fixed;
  z-index: 9999;
  left: clamp(12px, 3vw, 32px);
  right: clamp(12px, 3vw, 32px);
  bottom: clamp(12px, 3vw, 28px);
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  color: #102f4f;
  border: 1px solid #cbd5df;
  border-top: 5px solid #b21f3d;
  border-radius: 2px;
  box-shadow: 0 16px 48px rgba(6, 43, 79, .24);
  font: inherit;
}
.cookie-copy h2 { margin: 3px 0 8px; font-size: 1.2rem; line-height: 1.25; color: #062b4f; }
.cookie-copy p { margin: 7px 0; font-size: .92rem; line-height: 1.5; }
.cookie-copy .cookie-eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: #b21f3d; }
.cookie-privacy-link a { font-weight: 700; text-underline-offset: 3px; color: #062b4f; }
.cookie-details { padding: 10px 12px; margin-top: 10px; background: #f1f5f8; border-left: 3px solid #b21f3d; }
.cookie-details[hidden] { display: none; }
.cookie-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 190px; }
.cookie-button { min-height: 42px; border: 1px solid #062b4f; border-radius: 2px; padding: 9px 13px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.cookie-primary { background: #062b4f; color: #fff; }
.cookie-secondary { background: #fff; color: #062b4f; }
.cookie-manage { background: transparent; border: 0; color: #062b4f; text-decoration: underline; text-underline-offset: 3px; padding: 7px; cursor: pointer; font: inherit; font-size: .85rem; }
.cookie-button:focus-visible, .cookie-manage:focus-visible, .cookie-privacy-link a:focus-visible { outline: 3px solid #d9b34a; outline-offset: 3px; }
.cookie-footer-link { color: inherit; text-underline-offset: 3px; }
.cookie-footer-link:focus-visible { outline: 3px solid #d9b34a; outline-offset: 3px; }
@media (max-width: 680px) {
  .cookie-panel { grid-template-columns: 1fr; gap: 12px; padding: 18px; max-height: min(80vh, 640px); overflow-y: auto; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
  .cookie-manage { grid-column: 1 / -1; }
  .cookie-copy p { font-size: .88rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-panel { animation: cookie-panel-in .18s ease-out; }
  @keyframes cookie-panel-in { from { transform: translateY(8px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
}

.cookie-panel .cookie-primary,
.cookie-panel .cookie-secondary {
  background: #0b2a4a;
  color: #ffffff;
  border: 1px solid #0b2a4a;
}
