/* ========================================================= CWU Cookie Consent Banner ========================================================= */
/* Keep all cookie button styling scoped to the cookie UI */
#cwu-cookie-banner button,
#cwu-cookie-preferences button {
  font: inherit;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  min-height: 44px;
}
#cwu-cookie-banner button:focus-visible,
#cwu-cookie-preferences button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
/* ========================================================= Main banner ========================================================= */
#cwu-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #820028;
  color: #ffffff;
  padding: 1.25rem max(1.5rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  grid-template-rows: auto auto;
  column-gap: 3rem;
  row-gap: 0.45rem;
  align-items: center;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.22);
}
/* Hide banner / preference UI when hidden */
#cwu-cookie-banner[hidden],
#cwu-cookie-preferences[hidden],
#cwu-cookie-overlay[hidden] {
  display: none;
}
/* Banner heading */
#cwu-cookie-banner > p:first-child {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
#cwu-cookie-banner > p:first-child strong {
  font-size: 1.05rem;
  font-weight: 700;
}
/* Banner explanatory text */
#cwu-cookie-banner > p:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  max-width: 760px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #ffffff;
}
#cwu-cookie-banner a {
  color: #f7d67e;
  text-decoration: underline;
}
/* ========================================================= Banner buttons ========================================================= */
#cwu-cookie-banner .cwu-cookie-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0;
}
/* Manage preferences spans full width */
#cwu-manage {
  grid-column: 1 / -1;
  grid-row: 1;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
}
/* Reject */
#cwu-reject-all {
  grid-column: 1;
  grid-row: 2;
  background: #ffffff;
  color: #222222;
  border: 2px solid #ffffff;
}
/* Accept */
#cwu-accept-all {
  grid-column: 2;
  grid-row: 2;
  background: #f7d67e;
  color: #111111;
  border: 2px solid #f7d67e;
}
/* Hover */
#cwu-manage:hover {
  background: #111212;
  border-color: #111212;
}
#cwu-reject-all:hover {
  background: #eeeeee;
  border-color: #eeeeee;
}
#cwu-accept-all:hover {
  background: #eed695;
  border-color: #eed695;
}
/* ========================================================= Preference modal overlay ========================================================= */
#cwu-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
}
/* ========================================================= Preference modal ========================================================= */
#cwu-cookie-preferences {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-sizing: border-box;
  background: #ffffff;
  color: #222222;
  border: 0;
  border-radius: 6px;
  padding: 2rem;
  z-index: 100001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
#cwu-cookie-preferences h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #222222;
}
#cwu-cookie-preferences fieldset {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
#cwu-cookie-preferences legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}
#cwu-cookie-preferences fieldset p {
  margin: 0.35rem 0 0.8rem;
  line-height: 1.5;
}
/* ========================================================= Preference controls / checkbox override ========================================================= */
/* * CWU's global forms stylesheet visually hides native * checkboxes by positioning them far off screen and setting * opacity to 0. * * Restore native checkbox behavior only inside the * cookie-preference modal. */
#cwu-cookie-preferences input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  position: static;
  left: auto;
  top: auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  opacity: 1;
  visibility: visible;
  flex: 0 0 auto;
  cursor: pointer;
}
/* * Strictly necessary is disabled, so don't show * a pointer cursor for that checkbox. */
#cwu-cookie-preferences input[type="checkbox"]:disabled {
  cursor: default;
}
/* * Lay out checkbox and label text together. */
#cwu-cookie-preferences fieldset label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
/* * The Strictly Necessary checkbox is disabled, * but its label should still look like normal text. */
#cwu-cookie-preferences fieldset label:has(input[type="checkbox"]:disabled) {
  cursor: default;
}
/* * Give keyboard users a visible focus indicator * directly on the checkbox. */
#cwu-cookie-preferences input[type="checkbox"]:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}
/* ========================================================= Preference modal buttons ========================================================= */
#cwu-cookie-preferences .cwu-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
#cwu-save-preferences,
#cwu-modal-accept-all {
  background: #f7d67e;
  color: #111111;
  border: 2px solid #f7d67e;
}
#cwu-modal-reject-all,
#cwu-close-preferences {
  background: #ffffff;
  color: #222222;
  border: 2px solid #555555;
}
#cwu-save-preferences:hover,
#cwu-modal-accept-all:hover {
  background: #eed695;
  border-color: #eed695;
}
#cwu-modal-reject-all:hover,
#cwu-close-preferences:hover {
  background: #eeeeee;
}
/* ========================================================= Cookie Settings icon ========================================================= */
[data-cwu-cookie-settings]::before {
  content: "";
  display: inline-block;
  position: static;
  z-index: auto;
  opacity: 1;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 87% 15%, #ffffff 0 16%, transparent 17%),
    radial-gradient(circle at 100% 42%, #ffffff 0 19%, transparent 20%),
    radial-gradient(circle at 32% 32%, #ffffff 0 7%, transparent 8%),
    radial-gradient(circle at 62% 52%, #ffffff 0 7%, transparent 8%),
    radial-gradient(circle at 39% 72%, #ffffff 0 7%, transparent 8%), #000000;
  vertical-align: -0.18rem;
}
/* ========================================================= Mobile ========================================================= */
@media (max-width: 760px) {
  #cwu-cookie-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  #cwu-cookie-banner > p:first-child,
  #cwu-cookie-banner > p:nth-child(2),
  #cwu-cookie-banner .cwu-cookie-actions {
    grid-column: 1;
    grid-row: auto;
  }
  #cwu-cookie-banner .cwu-cookie-actions {
    margin-top: 0.25rem;
  }
  #cwu-cookie-preferences {
    padding: 1.25rem;
  }
  #cwu-cookie-preferences .cwu-cookie-actions {
    flex-direction: column;
  }
  #cwu-cookie-preferences .cwu-cookie-actions button {
    width: 100%;
  }
}
/* ========================================================= Smaller phones ========================================================= */
@media (max-width: 480px) {
  #cwu-cookie-banner .cwu-cookie-actions {
    grid-template-columns: 1fr;
  }
  #cwu-manage,
  #cwu-reject-all,
  #cwu-accept-all {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}
