.announcement {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  background: var(--cream, #f8f4e9);
  color: var(--ink, #193c36);
  overflow-wrap: anywhere;
}
.announcement-title { margin: 0 0 .3rem; font: 600 1.15rem/1.3 Georgia, serif; }
.announcement-body { margin: .35rem 0; white-space: pre-line; }
.announcement-image { display: block; width: 100%; max-height: 32vh; object-fit: contain; margin-bottom: .75rem; }
.announcement .button { margin-top: .45rem; }
.announcement-close {
  position: absolute;
  top: .25rem;
  right: .25rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--cream, #f8f4e9);
  color: var(--ink, #193c36);
  font-size: 1.6rem;
  cursor: pointer;
}
#announcement-banners .announcement { text-align: center; background: var(--gold, #e9b750); border-bottom: 1px solid var(--ink, #193c36); }
#announcement-banners .button { background: var(--teal, #123e3b); color: var(--cream, #f8f4e9); }
#announcement-banners .announcement-image { max-height: 7rem; }
#announcement-menu .announcement { margin-bottom: 1rem; border-left: 4px solid var(--gold, #e9b750); }
.announcement-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: .6rem;
  background: var(--cream, #f8f4e9);
  color: var(--ink, #193c36);
}
.announcement-dialog::backdrop { background: rgb(10 34 31 / 70%); }
.announcement-dialog .announcement { padding: 1.5rem 3.25rem 1.5rem 1.5rem; }
.announcement-coupon { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.announcement-code { user-select: all; font-weight: bold; }
.announcement-status { flex-basis: 100%; font-size: .9rem; }

.announcement-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .5rem;
  color: var(--ink, #193c36);
  font-size: .85rem;
}
#announcement-banners .announcement-slides { background: var(--gold, #e9b750); }
.announcement-slide-button {
  min-height: 44px;
  padding: .35rem .75rem;
  border: 1px solid var(--teal, #123e3b);
  border-radius: .25rem;
  background: var(--cream, #f8f4e9);
  color: var(--teal, #123e3b);
  cursor: pointer;
}

.announcement-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 .5rem .5rem;
}
.announcement-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal, #123e3b);
  cursor: pointer;
}
.announcement-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.announcement-dot[aria-current="true"]::before { background: currentColor; }
.announcement-dot:disabled { cursor: default; }

/* A popup image fills the card, with the announcement over its lower edge. */
.announcement-dialog .announcement--photo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(20rem, 70dvh, 27rem);
  padding: 3.5rem clamp(1.25rem, 5vw, 2rem) 1.5rem;
  isolation: isolate;
  background: var(--deep, #0a302d);
  color: #fff;
}
.announcement-dialog .announcement--photo .announcement-image,
.announcement-dialog .announcement--photo::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.announcement-dialog .announcement--photo .announcement-image {
  z-index: -2;
  max-height: none;
  object-fit: cover;
}
.announcement-dialog .announcement--photo::before {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 8%) 25%, rgb(0 0 0 / 75%) 73%, rgb(0 0 0 / 94%) 100%);
}
.announcement--photo .announcement-title {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  text-shadow: 0 1px 5px #000;
}
.announcement--photo .announcement-body { text-shadow: 0 1px 5px #000; }
.announcement--photo .announcement-close {
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
}
.announcement-dialog:has(.announcement--photo):has(.announcement-dots) .announcement--photo {
  padding-bottom: 3.75rem;
}
.announcement-dialog:has(.announcement--photo) .announcement-dots {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: .25rem;
}
.announcement-dialog:has(.announcement--photo) .announcement-dot { color: #fff; }

.announcement-slides[hidden] { display: none; }
.announcement .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  background: var(--gold, #e9b750);
  color: var(--deep, #0a302d);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
