/* 3mpowr App – Global Styles
   Accessibility-first: WCAG-compliant contrast, visible focus outlines,
   keyboard-friendly controls, reduced motion support, and user toggles
   for High-contrast and Dark mode.
*/

/* Base */
:root {
  color-scheme: light dark;
  --font-scale: 1;
  --line-height: 1.6;
  --letter-spacing: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: #fafbfd;
  color: #222;
  line-height: var(--line-height);
  font-size: calc(16px * var(--font-scale));
  letter-spacing: var(--letter-spacing);
}

/* Header */
header {
  background: #183c65;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid currentColor;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
}
.site-brand:visited { color: #ffffff; }
.site-brand span { color: inherit; }
.site-brand:hover,
.site-brand:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

/* Ensure high-contrast mode keeps strong contrast for brand */
body[data-contrast="high"] .site-brand {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #fff;
  color: #183c65;
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid #183c65;
  transition: top 0.2s;
  z-index: 1000;
}
.skip-link:focus {
  top: 8px;
}

/* Navigation */
nav { 
  display: flex; 
  justify-content: center; 
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  /* WCAG 2.2 2.5.8: Minimum 24x24px, recommend 44x44px for touch */
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-list a:visited { color: #fff; }
.nav-list a:hover,
.nav-list a:focus-visible {
  background: #285e93;
}
.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  background: #ffffff;
  color: #183c65;
  border: 2px solid #183c65;
  /* WCAG 2.2 2.5.8: Minimum target size */
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle:hover,
.menu-toggle:focus-visible { background: #183c65; color: #fff; }

@media (max-width: 768px) {
  header { padding: 0.75rem 0; }
  .header-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0.75rem; gap: 0.5rem; }
  .menu-toggle { display: inline-block; }
  nav { width: 100%; }
  .nav-list { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.75rem; }
  #primary-nav.is-open .nav-list { display: flex; }
  .nav-list a { padding: 0.6rem 0.75rem; border-radius: 4px; }
  .header-controls { padding: 0.5rem 0.75rem; justify-content: flex-start; }
}

/* Header controls (toggles) */
.header-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0 0.25rem;
}
.lang-switch {
  color: #183c65;
  background: #fff;
  border: 2px solid #183c65;
  /* WCAG 2.2 2.5.8: Minimum target size */
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-switch:hover,
.lang-switch:focus-visible { background: #183c65; color: #fff; }
.contrast-toggle,
.theme-toggle {
  background: #ffffff;
  color: #183c65;
  border: 2px solid #183c65;
  /* WCAG 2.2 2.5.8: Minimum target size */
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contrast-toggle:hover,
.contrast-toggle:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: #183c65;
  color: #fff;
}

/* Content shell */
main {
  max-width: 700px;
  margin: 2em auto;
  padding: 1em;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 8px #0001;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 700px;
  margin: 0.5em auto 0;
  padding: 0 1em;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumbs li::after {
  content: '/';
  margin: 0 0.25rem;
  color: #6b7280;
}
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs [aria-current="page"] { font-weight: 700; }

/* Search highlight */
.mark { background: #fff3b0; color: inherit; padding: 0 0.1em; border-radius: 2px; }
body[data-theme="dark"] .mark { background: #4b3f00; }

/* Content links – clearly identifiable (WCAG 1.4.1) */
main a {
  color: #0645ad;             /* High-contrast blue */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Toggle underline strategy */
html[data-link-underline="always"] main a { text-decoration: underline !important; }
html[data-link-underline="auto"] main a { text-decoration: underline; }
html[data-link-underline="auto"] main a:hover,
html[data-link-underline="auto"] main a:focus-visible { text-decoration-thickness: 2px; }

/* Focus visibility (WCAG 2.4.7, 2.2 2.4.11 Enhanced) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #0066CC; /* High contrast blue */
  outline-offset: 3px;
  border-radius: 4px;
  /* Double ring for better visibility on all backgrounds (WCAG 2.2 2.4.11) */
  box-shadow: 0 0 0 1px #FFFFFF, 0 0 0 4px #0066CC;
}

/* Dark mode focus indicators */
body[data-theme="dark"] :focus-visible {
  outline-color: #66B3FF;
  box-shadow: 0 0 0 1px #000000, 0 0 0 4px #66B3FF;
}

/* High contrast mode focus indicators (WCAG 2.2 2.4.11 AAA) */
body[data-contrast="high"] :focus-visible {
  outline: 4px solid #000000 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 6px #000000 !important;
}

/* Ensure focus not obscured by sticky header (WCAG 2.2 2.4.12) */
:focus {
  scroll-margin-top: 100px;
  scroll-margin-bottom: 20px;
}

/* Visually hidden utility (WCAG 1.3.1) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.social-links a {
  color: #183c65;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 2px solid #183c65;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
}
.social-links a:hover,
.social-links a:focus-visible {
  background: #183c65;
  color: #fff;
}

/* Inline social icons and homepage socials list */
.social-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 0.35rem;
  display: inline-block;
  color: currentColor;
  fill: currentColor;
}
.socials-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.socials-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.socials-list a:hover,
.socials-list a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Footer – stronger contrast on light background (WCAG 1.4.6 AAA) */
footer {
  text-align: center;
  padding: 2em 0 0.7em 0;
  color: #2D3748; /* Darker gray for 8.5:1 contrast (AAA compliant) */
  font-size: 0.95em;
}
@media (max-width: 768px) {
  footer p { padding: 0 0.75rem; }
}
footer a {
  color: #183c65;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover,
footer a:focus-visible {
  color: #0f2a46;
}
body[data-theme="dark"] footer {
  color: #e5e7eb; /* Lighter for dark mode */
}
body[data-theme="dark"] footer a {
  color: #a8c7ff;
}
body[data-theme="dark"] footer a:hover,
body[data-theme="dark"] footer a:focus-visible {
  color: #d0e1ff;
}
body[data-contrast="high"] footer a {
  color: #0000EE !important;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.features-grid h3 {
  color: #183c65;
  margin-top: 0;
  font-size: 1.2em;
}
.features-grid > * {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #183c65;
  transition: transform 0.2s, box-shadow 0.2s;
}
.features-grid > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 60, 101, 0.1);
}

/* Store badges (Coming soon) */
.store-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1rem 0 2rem;
  list-style: none;
}
.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #f8f9fa;
  border: 2px dashed #d1d5db; /* visually conveys “not yet available” */
  min-height: 64px;
  line-height: 1.2;
  min-width: 200px;
  width: 100%;
  max-width: 400px; /* cap width so badges don’t stretch too wide */
  text-align: center;
}
.store-badge img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive embeds (WCAG 1.4.10) */
iframe {
  width: 100%;
  max-width: 100%;
}

/* Reduce motion (WCAG 2.3.3, 2.2.2) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* User override for reduced motion */
html[data-reduce-motion="on"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* High-contrast (user-controlled) */
body[data-contrast="high"] {
  background: #ffffff !important;
  color: #000000 !important;
}
body[data-contrast="high"] header {
  background: #000000 !important;
  color: #ffffff !important;
}
body[data-contrast="high"] main {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
  border: 3px solid #000;
}
body[data-contrast="high"] .nav-list a {
  color: #ffffff !important;
  border: 3px solid transparent;
}
body[data-contrast="high"] .nav-list a:visited { color: #ffffff !important; }
body[data-contrast="high"] .nav-list a:hover,
body[data-contrast="high"] .nav-list a:focus-visible {
  background: #333333 !important;
  color: #ffffff !important;
  border-color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-contrast="high"] main a {
  color: #0000EE !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
body[data-contrast="high"] .social-links a {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body[data-contrast="high"] .social-links a:hover,
body[data-contrast="high"] .social-links a:focus-visible {
  background: #222 !important;
  color: #fff !important;
}
body[data-contrast="high"] .contrast-toggle,
body[data-contrast="high"] .theme-toggle {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body[data-contrast="high"] :focus-visible {
  outline: 3px solid #ffbf00 !important; /* amber focus ring */
  outline-offset: 3px !important;
  border-radius: 2px !important;
}

/* Readable font toggle */
html[data-readable-font="readable"] body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif !important;
}
html[data-readable-font="dyslexia"] body {
  font-family: "OpenDyslexic", "Atkinson Hyperlegible", "Noto Sans", system-ui, Arial, sans-serif !important;
}

/* Color filters */
html[data-color-filter="grayscale"] {
  filter: grayscale(100%);
}
html[data-color-filter="hue"] {
  filter: hue-rotate(180deg);
}

/* Adjustable focus ring */
html[data-focus-ring="thick"] :focus-visible { outline-width: 5px !important; }
html[data-focus-ring="color"] :focus-visible { outline-color: #ff4d4f !important; }
body[data-contrast="high"] .store-badge {
  background: #fff !important;
  border: 3px solid #000 !important;
}

/* Dark mode (user-controlled) */
body[data-theme="dark"] {
  background: #0e1726;
  color: #f2f5f9;
}
body[data-theme="dark"] header {
  background: #0b2545;
}
body[data-theme="dark"] main {
  background: #111a2b;
  color: #f2f5f9;
  box-shadow: 0 2px 8px #0006;
}
body[data-theme="dark"] .nav-list a {
  color: #e6edf6;
}
body[data-theme="dark"] .nav-list a:hover,
body[data-theme="dark"] .nav-list a:focus {
  background: #183c65;
}
body[data-theme="dark"] main a {
  color: #a8c7ff; /* maintain strong contrast on dark */
}
body[data-theme="dark"] .social-links a {
  color: #cfe8ff;
  border-color: #82aaff;
}
body[data-theme="dark"] .social-links a:hover,
body[data-theme="dark"] .social-links a:focus-visible {
  background: #183c65;
  color: #fff;
}
body[data-theme="dark"] footer {
  color: #d1d5db;
}
body[data-theme="dark"] .store-badge {
  background: #0f2037;
  border-color: #355c7d;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  /* WCAG 2.2 2.5.8: Minimum target size */
  min-height: 44px;
  min-width: 44px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #183c65;
  color: #fff;
  border: 2px solid #183c65;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-to-top:focus-visible,
.back-to-top:hover {
  background: #285e93;
  color: #fff;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body[data-contrast="high"] .back-to-top {
  background: #000;
  color: #fff;
  border-color: #fff;
}

/* Modal utilities */
body.no-scroll {
  overflow: hidden !important;
}
.modal {
  position: fixed;
  inset: 0;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 1rem;
}
.modal.is-open {
  display: flex;
}
.is-hidden {
  display: none !important;
}

/* Newsletter page embed */
.newsletter-embed { position: relative; width: 100%; }
.newsletter-embed iframe { width: 100%; height: min(1600px, 86vh); background: #fff; border: 0; border-radius: 8px; }
.newsletter-redirecting { opacity: 0.4; transition: opacity 200ms ease-in-out; pointer-events: none; }

/* Newsletter modal styling */
.modal-dialog.newsletter-dialog {
  max-width: 640px;
  width: 100%;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
  gap: 0.75rem;
}
.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-link {
  font-size: 0.875rem;
  text-decoration: underline;
  color: #0645ad;
}
.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  padding: 0;
}
.modal-iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}
.modal-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eee;
}
.modal-footer .reminder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-buttons {
  display: flex;
  gap: 0.5rem;
}
.button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  background: #f6f6f6;
  color: #111;
  cursor: pointer;
}
.button--secondary {
  background: #f6f6f6;
}
.button--primary {
  background: #e9f5ff;
}

/* Dark/High contrast variants for modal */
body[data-theme="dark"] .modal-dialog.newsletter-dialog {
  background: #111a2b;
  color: #f2f5f9;
}
body[data-theme="dark"] .modal-link {
  color: #a8c7ff;
}
body[data-theme="dark"] .button {
  border-color: #355c7d;
  background: #0f2037;
  color: #e6edf6;
}
body[data-contrast="high"] .modal-dialog.newsletter-dialog {
  background: #fff !important;
  color: #000 !important;
  border: 3px solid #000 !important;
  box-shadow: none !important;
}
body[data-contrast="high"] .modal-link {
  color: #0000EE !important;
}
body[data-contrast="high"] .button {
  background: #fff !important;
  color: #000 !important;
  border: 3px solid #000 !important;
}

/* External link icon for visual users while keeping sr-only cue */
a[target="_blank"]:after {
  content: '\2197'; /* ↗ */
  font-size: 0.85em;
  margin-left: 0.25em;
}

/* Print styles */
@media print {
  header, nav, .social-links, .header-controls, footer, .back-to-top { 
    display: none !important; 
  }
  main {
    box-shadow: none;
    background: #fff;
    color: #000;
  }
}

/* Curated Daily Highlights banner */
.highlight-banner {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 2px solid #183c65;
  background: linear-gradient(180deg, #e9f5ff 0%, #ffffff 100%);
}
.highlight-banner h2,
.highlight-banner h3 {
  margin: 0;
  color: #0b2545;
}
.badge {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
}
.badge--new {
  background: #fffbeb; /* soft amber */
  color: #8a5a00;
  border-color: #f59e0b;
}
@media (prefers-reduced-motion: no-preference) {
  .badge--new {
    animation: badge-pop 2s ease-in-out 2;
  }
  @keyframes badge-pop {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.0); }
    20% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
    40% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.0); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
}
.highlight-banner__desc {
  margin: 0;
}
.highlight-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.highlight-banner__button {
  display: inline-block;
  font-weight: 700;
  background: #183c65;
  color: #fff !important;
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 2px solid #183c65;
}
.highlight-banner__button:hover,
.highlight-banner__button:focus-visible {
  background: #285e93;
}
.highlight-banner__list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.highlight-banner__list li::before {
  content: '•';
  color: #183c65;
  font-weight: 900;
  margin-right: 0.5rem;
}

/* Dark mode variants */
body[data-theme="dark"] .highlight-banner {
  background: linear-gradient(180deg, #0f2037 0%, #111a2b 100%);
  border-color: #355c7d;
}
body[data-theme="dark"] .highlight-banner h2,
body[data-theme="dark"] .highlight-banner h3 {
  color: #cfe8ff;
}
body[data-theme="dark"] .badge--new {
  background: #4b3f00;
  color: #ffd166;
  border-color: #ffd166;
}
body[data-theme="dark"] .highlight-banner__list li::before {
  color: #82aaff;
}

/* High contrast variants */
body[data-contrast="high"] .highlight-banner {
  background: #fff !important;
  border: 3px solid #000 !important;
}
body[data-contrast="high"] .highlight-banner__button {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
body[data-contrast="high"] .badge--new {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #111827;
  color: #fff;
  border-top: 3px solid #0066CC;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner a { 
  color: #60A5FA; 
  text-decoration: underline;
}
.cookie-banner a:hover,
.cookie-banner a:focus { 
  color: #93C5FD; 
  text-decoration: none;
}
.cookie-banner summary {
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.cookie-banner summary:hover,
.cookie-banner summary:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid #0066CC;
  outline-offset: 2px;
}
.cookie-banner label {
  min-height: 44px;
}
.cookie-banner input[type="checkbox"] {
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
}
.cookie-actions { 
  display: flex; 
  gap: 0.5rem; 
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .cookie-banner { 
    flex-direction: column; 
    align-items: stretch;
    max-height: 80vh;
    overflow-y: auto;
  }
  .cookie-actions { 
    justify-content: stretch;
    flex-direction: column;
  }
  .cookie-actions button {
    width: 100%;
  }
}
