html.ae-sdx6040-open,
html.ae-sdx6040-open body { overflow: hidden; }

#ae-sdx6040-popup {
  position: fixed;
  inset: 0;
  width: min(960px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: #071f46;
  color: #fff;
  box-shadow: 0 16px 50px rgb(0 0 0 / 35%);
}

#ae-sdx6040-popup:not([open]) { display: none; }
#ae-sdx6040-popup::backdrop { background: rgb(0 0 0 / 68%); }

#ae-sdx6040-popup .ae-sdx6040-close {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #071f46;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}

#ae-sdx6040-popup .ae-sdx6040-link {
  display: block;
  color: #fff;
  text-decoration: none;
}

#ae-sdx6040-popup img {
  display: block;
  width: 100%;
  height: auto;
}

#ae-sdx6040-popup .ae-sdx6040-cta {
  display: block;
  padding: 13px 16px;
  background: #f7a22a;
  color: #071f46;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

#ae-sdx6040-popup .ae-sdx6040-link:hover .ae-sdx6040-cta { text-decoration: underline; }
#ae-sdx6040-popup .ae-sdx6040-link:focus-visible { outline: 0; }
#ae-sdx6040-popup .ae-sdx6040-link:focus-visible .ae-sdx6040-cta {
  outline: 3px solid #071f46;
  outline-offset: -5px;
}
#ae-sdx6040-popup .ae-sdx6040-close:focus-visible {
  outline: 3px solid #f7a22a;
  outline-offset: 2px;
}

#ae-sdx6040-popup .ae-sdx6040-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 601px) {
  #ae-sdx6040-popup .ae-sdx6040-details {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  #ae-sdx6040-popup .ae-sdx6040-details {
    display: block;
    padding: 10px 14px;
    color: #fff;
    text-align: center;
    font: 14px/1.45 Arial, sans-serif;
  }
}

#ae-sdx6040-popup img[hidden] + .ae-sdx6040-details {
  display: block;
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 56px 16px 14px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  text-align: center;
  font: 16px/1.45 Arial, sans-serif;
}
