/* Top banner */
.avary-alert-bar {
  position: sticky; /* stays at top below admin bar if present */
  top: 0;
  z-index: 100000; /* above theme headers */
  background: #b00020; /* accessible red */
  color: #fff;
  font: 600 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.avary-alert-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.avary-alert-bar__link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* If your theme’s header is fixed and overlaps, add top padding to body */
body.avary-alert-active {
  /* Uncomment if you see overlap:
  padding-top: 44px;
  */
}

/* Modal */
.avary-alert-modal[hidden] { display: none !important; }

.avary-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
}

.avary-alert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.avary-alert-modal__dialog {
  position: relative;
  width: min(640px, 92vw);
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 40px;
  outline: none;
  text-align: center;
}

.avary-alert-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  width: fit-content;
}

.avary-alert-modal__title {
  margin: 0 0 8px 0;
  font-size: 22px;
  color: #b00020;
}

.avary-alert-modal__text {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #111;
}

.avary-alert-modal__cta {
  margin: 8px 0 0 0;
}

.avary-alert-modal__link {
  display: inline-block;
  padding: 10px 14px;
  background: #b00020;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}
.avary-alert-modal__link:hover,
.avary-alert-modal__link:focus {
  text-decoration: underline;
}
