/* Cookie notice (inc/analytics.php, assets/js/consent.js): a small card in
   the bottom-right corner, under the preloader, above everything else. */

@layer components {
  .cookie-notice {
    position: fixed;
    inset: auto 16px 16px auto;
    z-index: 900;
    width: min(26rem, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid var(--theme-color-border);
    border-radius: 8px;
    background: var(--theme-color-background);
    box-shadow: var(--theme-shadow-card);
    color: var(--theme-color-text);
  }

  .cookie-notice[hidden] {
    display: none;
  }

  .cookie-notice__title {
    margin-bottom: 8px;
    font-size: var(--theme-font-size-base);
    font-weight: 500;
  }

  .cookie-notice__text {
    margin-bottom: 20px;
    font-size: var(--theme-font-size-sm);
    line-height: 1.6;
    color: var(--theme-color-text-muted);
  }

  .cookie-notice__text a {
    color: var(--theme-color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .cookie-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}
