/* Unizon cookie banner + settings (privacy v5). Public marketing / path-hub pages only. */
.uz-consent-banner,
.uz-consent-modal {
  --uz-plum: #702C74;
  --uz-ink: #2B2540;
  --uz-paper: #FAF5EF;
  --uz-yellow: #FFC93C;
  --uz-rule: rgba(43, 37, 64, 0.22);
  box-sizing: border-box;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--uz-ink);
}
.uz-consent-banner *,
.uz-consent-modal * { box-sizing: border-box; }

.uz-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--uz-paper);
  border-top: 3px solid var(--uz-plum);
  box-shadow: 0 -8px 28px rgba(43, 37, 64, 0.16);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
}
.uz-consent-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.uz-consent-copy { flex: 1 1 16rem; min-width: 0; }
.uz-consent-banner h2,
.uz-consent-modal h2 {
  font-family: Brico, "Bricolage Grotesque", Georgia, serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--uz-plum);
}
.uz-consent-banner p,
.uz-consent-modal p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.uz-consent-banner p:last-child,
.uz-consent-modal p:last-child { margin-bottom: 0; }
.uz-consent-banner a,
.uz-consent-modal a { color: var(--uz-plum); text-underline-offset: 2px; }
.uz-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  flex: 0 0 auto;
}
.uz-consent-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 11.5rem;
  padding: 8px 16px;
  margin: 0;
  border: 2px solid var(--uz-plum);
  border-radius: 10px;
  font: 700 1rem/1.2 "DM Sans", "Segoe UI", sans-serif;
  text-align: center;
  cursor: pointer;
  color: var(--uz-plum);
  background: #fff;
  text-decoration: none;
}
.uz-consent-btn:hover { background: #fff6e0; }
.uz-consent-btn:focus {
  outline: 3px solid var(--uz-yellow);
  outline-offset: 2px;
}
.uz-consent-btn-accept,
.uz-consent-btn-decline {
  /* Equal visual weight: same size, weight, border. Accept is filled; Decline is the inverse. */
}
.uz-consent-btn-accept { background: var(--uz-plum); color: #fff; }
.uz-consent-btn-accept:hover { background: #5a2360; color: #fff; }

.uz-consent-back {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(43, 37, 64, 0.45);
}
.uz-consent-modal {
  position: fixed;
  z-index: 10002;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 34rem;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--uz-paper);
  border: 3px solid var(--uz-plum);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(43, 37, 64, 0.28);
}
.uz-consent-status { font-weight: 700; }
.uz-consent-note {
  font-size: 0.9rem;
  color: #4a4460;
  background: #fff;
  border-left: 4px solid var(--uz-yellow);
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
}

button.uz-cookie-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
button.uz-cookie-settings:focus {
  outline: 3px solid var(--uz-yellow);
  outline-offset: 2px;
}
.uz-cookie-foot {
  max-width: 56rem;
  margin: 0 auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  font: 15px/1.4 "DM Sans", "Segoe UI", sans-serif;
  color: #2B2540;
  text-align: center;
}
.uz-cookie-foot button.uz-cookie-settings { color: #702C74; }

@media (max-width: 640px) {
  .uz-consent-actions { width: 100%; }
  .uz-consent-btn { flex: 1 1 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .uz-consent-banner, .uz-consent-modal, .uz-consent-back { transition: none; }
}

/* Compact banner on phones (2026-11-26): same wording, same two equal buttons, less of the first screen. */
@media (max-width: 640px) {
  .uz-consent-banner { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .uz-consent-inner { gap: 8px; }
  .uz-consent-copy { flex-basis: 100%; }
  .uz-consent-banner h2 { font-size: 1rem; margin: 0 0 2px; }
  .uz-consent-banner p { font-size: 0.8125rem; line-height: 1.38; margin: 0; }
  .uz-consent-banner .uz-consent-actions { flex-wrap: nowrap; gap: 8px; }
  .uz-consent-banner .uz-consent-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 8px; font-size: 0.9375rem; }
}
