/*
  cookie-notice: Figma "Card" (Release A1 as built, node 1491:5760).
  Message, then "Questions?" and the contact email (text-link S), then small buttons, right-aligned.
*/
.cookie-notice {
  position: fixed;
  z-index: 10;
  left: var(--space-s);
  right: var(--space-s);
  bottom: calc(var(--footer-height, var(--space-xl)) + var(--space-s)); /* token-exception: footer height measured by app.js; keeps the footer links visible */
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-width: var(--layout-width-reading);
  margin: 0 auto;
  padding: var(--space-s);
  border-radius: var(--border-radius-card);
  background: var(--surface-container);
  color: var(--text-primary);
}
.cookie-notice[hidden] { display: none; }

.cookie-notice__message {
  margin: 0;
  font-family: var(--text-style-button-text-m-font-family);
  font-weight: var(--text-style-button-text-m-font-weight);
  font-size: var(--text-style-button-text-m-font-size);
  line-height: var(--text-style-button-text-m-line-height);
}
.cookie-notice__contact {
  margin: 0;
  font-family: var(--text-style-link-s-font-family);
  font-weight: var(--text-style-link-s-font-weight);
  font-size: var(--text-style-link-s-font-size);
  line-height: var(--text-style-link-s-line-height);
}
.cookie-notice__contact[hidden] { display: none; }
.cookie-notice__contact .text-link { white-space: nowrap; } /* keep the email address on one line */

/* Figma Button/S: small buttons, right-aligned */
.cookie-notice__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
}
.cookie-notice__button {
  height: var(--space-l);
  padding: 0 var(--space-xs);
  border-radius: var(--border-radius-button);
  cursor: pointer;
  font-family: var(--text-style-button-text-s-font-family);
  font-weight: var(--text-style-button-text-s-font-weight);
  font-size: var(--text-style-button-text-s-font-size);
  line-height: var(--text-style-button-text-s-line-height);
  border: 1px solid var(--button-primary-bg-primary); /* token-exception: Figma uses a 1px stroke, border-width token is 2px */
  background: var(--button-primary-bg-primary);
  color: var(--button-primary-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cookie-notice__button[hidden] { display: none; }
.cookie-notice__button:hover {
  background: var(--button-primary-bg-hover);
  color: var(--button-primary-text-hover);
}
.cookie-notice__button:focus-visible {
  outline: var(--border-width) solid var(--action-accent-interactive);
  outline-offset: var(--border-width);
}
/* ButtonType=Default as in the design: transparent with a light outline (Close, No thanks) */
.cookie-notice__button--secondary {
  background: var(--button-secondary-bg-secondary);
  border-color: var(--button-secondary-border-secondary);
  color: var(--text-link-secondary);
}
.cookie-notice__button--secondary:hover {
  background: var(--button-secondary-bg-secondary-hover);
  color: var(--button-secondary-text-secondary-hover);
}
