/* Outage notice popup - see inc/outage-notice.php. */

.tci-outage[hidden] {
  display: none;
}

.tci-outage {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above Elementor headers and popups */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tci-outage__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.tci-outage__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 36px 32px 28px;
  background: #fff;
  color: #1f2933;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.tci-outage__dialog:focus {
  outline: none;
}

.tci-outage__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #52606d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tci-outage__close:hover,
.tci-outage__close:focus-visible {
  color: #1f2933;
}

.tci-outage__close:focus-visible,
.tci-outage__button:focus-visible {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
}

.tci-outage__title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  color: inherit;
}

.tci-outage__body p {
  margin: 0 0 12px;
}

.tci-outage__actions {
  margin: 20px 0;
}

.tci-outage__button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: #0b4f8a;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}

.tci-outage__button:hover {
  background: #083b67;
}

.tci-outage__footnote {
  margin: 0;
  font-size: 14px;
  color: #52606d;
}

/* No page scroll behind the open dialog. */
html.tci-outage-open,
html.tci-outage-open body {
  overflow: hidden;
}

@media (max-width: 480px) {
  .tci-outage__dialog {
    padding: 32px 20px 22px;
  }

  .tci-outage__title {
    font-size: 21px;
  }
}
