.modal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: calc(var(--overlay-z-position) + 2);
  line-height: 1.5;
}

@supports (overflow-y: overlay) {
  .modal {
    overflow-y: overlay;
  }
}

.modal gpdi-close-button.close-modal-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 12px;
  width: 12px;
  padding: 12px;
}

.modal .page-header {
  margin-bottom: 22px;
}

.modal-button-container {
  justify-content: center;
  margin-top: 25px;
  gap: var(--button-margin);
}

.modal-positioner {
  margin: auto;
  width: 90%;
  padding: 80px 0;
  /* max-width: 700px; */
  /*temporarily set lower max width until the coming soon message is removed*/
  max-width: 600px;
}

.modal-content-outer-container {
  background-color: var(--principal-element-background);
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .25);
  border-radius: 5px;
  width: 100%;
  position: relative;
}

.modal-content-wrap {
  padding: 40px;
  text-align: center;
}

.modal-content-outer-container .tip-container {
  border-top: 1px solid #dedede;
  padding: 25px 40px;
  border-radius: 0 0 5px 5px;
  background-color: #f8f8f8;
}

.modal-content-wrap > .section-wrap:last-child {
  margin-bottom: 0;
}

.modal .section-sub-header {
  max-width: 600px;
}

.close-modal {
  position: absolute;
  top: 0;
  right: 0;
  padding: 15px;
  cursor: pointer;
}

.modal-inline-link {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .3px;
}

.modal .checklist-icon {
  fill: var(--primary-color);
  margin-right: 10px;
  height: 22px;
  width: 22px;
  flex: none;
}

.modal gpdi-accordion-list {
  text-align: left;
}

.modal .inline-link {
  font-weight: 300;
}

.modal gpdi-accordion-list-item:last-child .accordion-list-item {
  margin-bottom: 0;
  border-bottom: none;
}

.modal-footer-buttons {
  border-top: var(--border-style);
}

.modal-footer-buttons .btn {
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  border-right: var(--border-style);
  background: transparent;
  color: var(--text-color);
  line-height: 1.2;
}

.modal-footer-buttons .btn.primary {
  color: var(--primary-color);
}

.modal-footer-buttons .btn:hover {
  background-color: var(--background-on-hover);
}

.modal-footer-buttons button {
  border: none;
}

.modal-footer-buttons .btn:first-child {
  border-radius: 0 0 0 5px;
}

.modal-footer-buttons .btn:last-child {
  border-right: none;
  border-radius: 0 0 5px 0;
}

.modal-footer-buttons .btn:only-child {
  border-radius: 0 0 5px 5px;
}

body[data-theme="dark"] .modal-content-outer-container {
  border: var(--border-style);
}

@media screen and (max-width: 600px) {
  .modal-content-wrap {
    padding: 25px;
  }
  .modal gpdi-close-button.close-modal-button {
    padding: 8px;
  }
  .modal-footer-buttons .btn {
    padding: 18px 20px;
  }
}
