.ac-popup {
  position: fixed;
  z-index: 9997;
  max-width: 32rem;
}

.ac-popup--bottom-right {
  bottom: 1rem;
  right: 1rem;
}

.ac-popup--bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.ac-popup--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ac-popup__inner {
  position: relative;
  padding: 1rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ac-popup__close {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}

.ac-popup__close span {
  display: block;
  margin-top: -0.125rem;
}

.ac-popup__close:hover,
.ac-popup__close:focus {
  opacity: 0.7;
}

.ac-popup--closable .ac-popup__title {
  padding-right: 2.25rem;
}

.ac-popup__description {
  margin: 0 0 0.75rem;
}

.ac-popup__actions {
  display: flex;
  justify-content: flex-end;
}

.ac-popup__button {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.ac-popup--preview .ac-popup__inner {
  outline: 2px dashed #2271b1;
  outline-offset: 2px;
}

.ac-popup-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: #2271b1;
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
}

.ac-popup-preview-banner p {
  margin: 0;
}

.ac-popup-preview-banner a {
  color: #fff;
  margin-left: 0.5rem;
}

body.admin-bar .ac-popup-preview-banner {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ac-popup-preview-banner {
    top: 46px;
  }
}
