/* Container */
.mtbp-wrap { display: inline-block; }

/* Knop */
.mtbp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.1rem;
  border-radius: .6rem;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mtbp-button:hover { filter: brightness(.96); }
.mtbp-alt { background:#fff; color:#2563eb; }

/* Lock scroll wanneer modal open is */
body.mtbp-modal-open { overflow: hidden !important; }

/* Modal */
.mtbp-modal[hidden] { display: none !important; }

/* Zet de modal extreem hoog zodat hij boven sticky headers/menus staat */
.mtbp-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647; /* max safe int voor meeste browsers */
}

/* semi-transparante achtergrond */
.mtbp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
}

/* Dialoogvenster */
.mtbp-modal-dialog {
  position: relative;
  max-width: min(1100px, 96vw);
  height: min(88vh, 900px);
  margin: 6vh auto;
  background: #fff;
  border-radius: .85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

/* Header en footer krijgen eigen stacking-context zodat ze nooit door een iframe overlapt worden */
.mtbp-modal-header div{
  font-size:18px;
  font-weight: bolder;
}
.mtbp-modal-header,
.mtbp-modal-footer {
  position: relative;
  z-index: 2;
  padding: .7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.mtbp-modal-footer { border-bottom: 0; border-top: 1px solid #e2e8f0; }

.mtbp-modal-close {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  padding: .3rem .55rem;
  cursor: pointer;
}

/* Body onder de header */
.mtbp-modal-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
}

/* Iframe vult het dialoogvenster */
.mtbp-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
