html-modal {
	--section-padding: 20px 30px 68px 30px;
}

.html-modal {
	position: fixed;
	z-index: 999999;
	top: 5%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);;
	overflow: visible;
	height: fit-content;
	border: none;
	border-radius: 8px;
}

.html-modal[open] {
	display: flex;
  flex-direction: column;
}

.html-modal--iframe {
	width: 100%;
	height: 100%;
  max-height: 93vh;
}
.html-modal.html-modal--iframe .html-modal_inner{
	overflow: visible;
}

.html-modal iframe {
	width: 100%;
	height: 100%;
  background: #fff;
}

.html-modal .html-modal_inner {
	max-height: 93vh;
	height: fit-content;
  overflow: auto;
  flex: 1 1 auto;
}

dialog.html-modal::backdrop {
	background-color: rgba(0,0,0,.5);
}

.modal_close-btn {
	border-radius: 50%;
	background: #000000;
	height: 1.5rem;
	width: 1.5rem;
	color: #fff;
	position: absolute;
	top: -.7rem;
	right: -.7rem;
	z-index: 1;
}

.modal_close-btn:hover {
	color: red;
}

.html-modal a:hover,
.html-modal a:focus {
  text-decoration: underline;
}

.modal_btn--primary {
	border: 2px solid #0046ad;
  background-color: #0046ad;
  color: #fff;
  padding: 10px;
  font-weight: 400;
  text-align: center;
  transition: .2s background-color ease;
  min-width: 180px;
  margin-bottom: .5rem;
}
.modal_btn--primary:focus,
.modal_btn--primary:hover {
	background-color: #4993FF;
}

@media screen and (max-width: 984px) {
	html-modal {
  --section-padding: 0;
  }
}