.site-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  background-color: #d8ebff;
  box-shadow: rgb(99 99 99 / 20%) 0 2px 8px 0;
  color: var(--miso-crn-color-primary);
  font-size: var(--body-font-size-s);
  transition: margin-top 0.3s ease-in-out 100ms, opacity 0.3s ease-in-out 100ms;
  transform: translateY(0);
  backdrop-filter: blur(4px);
}

.site-alert.hidden {
  transform: translateY(-100%);
}

.site-alert-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.75rem var(--padding-spacer-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
  padding-right: calc(var(--padding-spacer-x) + 2rem); /* Make room for close button */
}

.site-alert p {
  margin: 0;
  text-align: center;
}

.site-alert .alert-left {
  font-weight: bold;
  flex: 0 0 auto;
}

.site-alert .alert-center {
  flex: 1;
  text-align: center;
}

.site-alert .alert-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-alert .alert-right a {
  color: var(--clr-black);
  text-decoration: underline;
  font-weight: bold;
}

.site-alert .alert-right a:hover {
  color: var(--clr-black);
  text-decoration: underline;
  font-weight: bold;
}

.site-alert-close {
  position: absolute;
  right: var(--padding-spacer-x);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--clr-black);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.site-alert-close:hover {
  opacity: 1;
}

/* Adjust body margin when alert is present  calc(33px + 2.5rem); */
body.has-alert {
  margin-top: 55px;
} 