html.av-modal-open,
body.av-modal-open {
  overflow: hidden !important;
}

.av-modal[hidden] {
  display: none !important;
}

.av-modal {
  color: #fff;
  position: fixed;
  inset: 0;
  z-index: 2000001;
}

.av-modal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.av-modal__panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 940px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 10px;
  outline: none;
  background: #0e0e0e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(15%);
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.av-modal.is-open .av-modal__overlay {
  opacity: 1;
}

.av-modal.is-open .av-modal__panel {
  transform: translateY(0);
}

.av-modal__content {
  padding: 70px 30px;
}

.av-modal__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.av-modal__title {
  margin: 0 0 30px;
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.av-modal__logo {
  display: block;
  width: 150px;
  max-width: 60vw;
  height: auto;
  max-height: 110px;
  margin: 0 0 30px;
}

.av-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  gap: 20px;
}

.av-modal__button {
  flex-grow: 1;
  box-sizing: border-box;
  padding: 18px 31px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.av-modal__button--primary {
  background: #0d70de;
  color: #fff;
  font-weight: 600;
}

.av-modal__button--primary:hover,
.av-modal__button--primary:active {
  background: #0d5db5;
}

.av-modal__button--secondary {
  background: #f0f1f5;
  color: #8c8d96;
}

.av-modal__button--secondary:hover,
.av-modal__button--secondary:focus-visible,
.av-modal__button--secondary:active {
  background: #cfcfcf;
}

.av-modal__button:focus,
.av-modal__button:focus-visible {
  outline: none;
}

.av-modal__rta-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.av-modal__text {
  width: 100%;
}

.av-modal__text p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.av-modal__text p:last-child {
  margin-bottom: 0;
}

.av-modal__text strong {
  font-weight: 600;
}

.av-modal__rta-link {
  color: #0d70de;
  text-decoration: none;
}

.av-modal__rta-link:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .av-modal__content {
    padding: 30px 20px;
  }

  .av-modal__title {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .av-modal__title-detail {
    display: none;
  }

  .av-modal__actions {
    margin-bottom: 20px;
  }

  .av-modal__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-modal__overlay,
  .av-modal__panel {
    transition: none;
  }
}
