.relay-modal-open {
  overflow: hidden;
}

.relay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.42);
}

.relay-confirm-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  padding: 30px;
}

.relay-confirm-modal .eyebrow {
  margin: 0 0 10px;
}

.relay-confirm-modal h2 {
  margin: 0;
  padding-right: 42px;
  max-width: 100%;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.relay-confirm-message {
  margin: 18px 0 0;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.relay-confirm-detail {
  margin: 10px 0 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: #667085;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.relay-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.relay-confirm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}

.relay-confirm-close:hover,
.relay-confirm-close:focus-visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .relay-modal-overlay {
    padding: 16px;
  }

  .relay-confirm-modal {
    width: 100%;
    padding: 26px 22px 22px;
  }

  .relay-confirm-modal h2 {
    font-size: 28px;
  }

  .relay-confirm-actions {
    flex-direction: column-reverse;
  }

  .relay-confirm-actions .button {
    width: 100%;
  }
}
