/* Shared modals */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-root.is-open {
  display: flex;
}

.modal-root__dim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
}

.modal-box {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  padding: 1.6rem 1.4rem 1.35rem;
}

.modal-box--doc {
  width: min(100%, 980px);
  height: min(88vh, 860px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.modal-box__head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.modal-close {
  border: 0;
  background: #f3f3f3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.modal-box__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #333;
  white-space: pre-line;
}

.modal-box__body--center {
  text-align: center;
  padding: 0.35rem 0.2rem 0.2rem;
}

.modal-box__body strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.modal-box__body p {
  margin: 0;
  color: #555;
  font-size: 0.98rem;
}

.modal-box__foot {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

.modal-box__foot .btn {
  min-width: 120px;
}

.modal-iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

body.modal-open {
  overflow: hidden;
}
