/* Shared styles for shared components only. Each site styles its own pages
   in public/styles.css and can override these through the custom properties. */
:root {
  --wa-bg: #25d366;
  --wa-fg: #ffffff;
  --footer-fg: inherit;
  --notice-bg: #ffffff;
  --notice-fg: #1d1d1f;
  --notice-accent: #1d1d1f;
}

.wa-bubble {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-bg);
  color: var(--wa-fg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  z-index: 50;
  transition: transform 0.15s ease;
}
.wa-bubble:hover { transform: scale(1.06); }
.wa-bubble:focus-visible { outline: 3px solid var(--notice-accent); outline-offset: 3px; }

.site-footer {
  padding: 32px 20px 96px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-fg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.site-footer a { color: inherit; }

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 92px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  background: var(--notice-bg);
  color: var(--notice-fg);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-actions button {
  font: inherit;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  border: 1px solid var(--notice-accent);
  background: transparent;
  color: var(--notice-accent);
}
.cookie-actions #cookie-accept { background: var(--notice-accent); color: var(--notice-bg); }

@media (prefers-reduced-motion: reduce) { .wa-bubble { transition: none; } }
