.site-announcement[hidden] { display: none; }

.site-announcement {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 36, 48, .68);
}

.site-announcement__dialog {
  position: relative;
  width: min(100%, 540px);
  padding: 34px 36px 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .32);
  color: #263238;
  font: 16px/1.6 Arial, sans-serif;
}

.site-announcement__title {
  margin: 0 32px 14px 0;
  color: #1d5f82;
  font-size: 23px;
  line-height: 1.25;
}

.site-announcement__message { margin: 0 0 22px; white-space: pre-line; }

.site-announcement__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #3d4d56;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.site-announcement__close:focus,
.site-announcement__close:hover { background: #eef3f5; }

.site-announcement__button {
  border: 0;
  border-radius: 4px;
  padding: 10px 17px;
  background: #1d5f82;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.site-announcement__button:focus,
.site-announcement__button:hover { background: #154a66; }

/* Keep the Google appointment dialog above every page layer. */
.osv-booking-overlay {
  z-index: 2147483647;
  align-items: center;
  padding: 3vh 12px;
}

.osv-booking-modal {
  height: 94vh;
  height: 94dvh;
  max-height: 920px;
}

@media (max-width: 520px) {
  .site-announcement { padding: 14px; }
  .site-announcement__dialog { padding: 30px 24px 24px; }
  .site-announcement__title { font-size: 20px; }
}

@media (max-width: 600px) {
  .osv-booking-overlay {
    padding: 0;
  }

  .osv-booking-modal {
    height: 100vh;
    height: 100dvh;
  }
}
