.office-closure-toast[hidden],
.office-closure-call-modal[hidden] {
  display: none !important;
}

.office-closure-toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 10070;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  width: min(390px, calc(100vw - 32px));
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.96), rgba(11, 47, 91, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(90, 184, 255, 0.28), transparent 36%);
  border: 1px solid rgba(175, 195, 216, 0.42);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(3, 13, 29, 0.35), 0 0 26px rgba(90, 184, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.office-closure-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.office-closure-toast__accent {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ab8ff, #d6a23a);
  box-shadow: 0 0 18px rgba(90, 184, 255, 0.52);
}

.office-closure-toast__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.office-closure-toast__title {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.office-closure-toast__text {
  color: #c9d8e8;
  font-size: 0.88rem;
  line-height: 1.42;
}

.office-closure-toast__close,
.office-closure-call-modal__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(175, 195, 216, 0.35);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.office-closure-toast__close:hover,
.office-closure-call-modal__close:hover {
  background: rgba(90, 184, 255, 0.22);
  border-color: rgba(90, 184, 255, 0.68);
}

.office-closure-toast__close:focus-visible,
.office-closure-call-modal__close:focus-visible,
.office-closure-call-modal__button:focus-visible {
  outline: 3px solid rgba(90, 184, 255, 0.95);
  outline-offset: 3px;
}

.office-closure-call-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 20px;
}

.office-closure-call-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.68);
  backdrop-filter: blur(7px);
}

.office-closure-call-modal__panel {
  position: relative;
  width: min(520px, 100%);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(7, 26, 47, 0.98), rgba(11, 47, 91, 0.96)),
    radial-gradient(circle at 12% 0%, rgba(90, 184, 255, 0.2), transparent 34%);
  border: 1px solid rgba(175, 195, 216, 0.48);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 34px rgba(90, 184, 255, 0.22);
  opacity: 0;
  overflow: hidden;
  padding: 20px;
  transform: translateY(16px) scale(0.98);
  transition: opacity 260ms ease, transform 260ms ease;
}

.office-closure-call-modal.is-visible .office-closure-call-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.office-closure-call-modal__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #5ab8ff, #afc3d8, #d6a23a);
  opacity: 0.95;
}

.office-closure-call-modal__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}

.office-closure-call-modal__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #071a2f;
  background: linear-gradient(135deg, #5ab8ff, #ffffff);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(90, 184, 255, 0.36);
  font-weight: 900;
}

.office-closure-call-modal__heading {
  display: grid;
  gap: 4px;
}

.office-closure-call-modal__heading span {
  color: #5ab8ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.office-closure-call-modal__heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 900;
  line-height: 1.16;
}

.office-closure-call-modal__text {
  margin: 16px 0 0;
  color: #c9d8e8;
  font-size: 0.98rem;
  line-height: 1.55;
}

.office-closure-call-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.office-closure-call-modal__button {
  min-height: 48px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.office-closure-call-modal__button--primary {
  color: #071a2f;
  background: linear-gradient(135deg, #ffffff, #5ab8ff);
  box-shadow: 0 14px 30px rgba(90, 184, 255, 0.24);
}

.office-closure-call-modal__button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(175, 195, 216, 0.35);
}

.office-closure-call-modal__button--email {
  color: #ffffff;
  background: rgba(30, 90, 168, 0.52);
  border-color: rgba(90, 184, 255, 0.38);
}

.office-closure-call-modal__button:hover {
  transform: translateY(-1px);
}

html.office-closure-lock,
body.office-closure-lock {
  overflow: hidden;
}

@media (min-width: 560px) {
  .office-closure-call-modal__actions {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (max-width: 640px) {
  .office-closure-toast {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    border-radius: 16px;
  }

  .office-closure-call-modal {
    align-items: end;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .office-closure-call-modal__panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border-radius: 22px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-closure-toast,
  .office-closure-call-modal__panel,
  .office-closure-call-modal__button {
    transition: none !important;
  }

  .office-closure-call-modal__button:hover {
    transform: none;
  }
}
