.hidden {
	display: none;
}

[role="alertdialog"],
[role="dialog"] {
	box-sizing: border-box;
	padding: 25px 15px;
	border: 1px solid #000;
	background-color: #fff;
	min-height: 100vh;
}

@media screen and (min-width: 640px) {

	[role="alertdialog"],
	[role="dialog"] {
		position: absolute;
		top: 2rem;
		left: 50vw;
		/* move to the middle of the screen (assumes relative parent is the body/viewport) */
		transform: translateX(-50%);
		/* move backwards 50% of this element's width */

		max-width: 670px;
		padding: 35px;
		/* == breakpoint - left+right margin */
		min-height: auto;
		box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, .5);
	}
}

.dialog_label {
	text-align: left;
	margin-bottom: 30px
}

.dialog_desc {
	color: #666;
}

.dialog_form {
	 height: calc(50vh - 3.5rem);
	overflow: auto;
	padding-right: 15px;
	margin: 30px 0;
}
.dialog_form:focus {
	outline: 3px solid rgba(195, 0, 89, 0.7);
}

.dialog_form .label_text {
	box-sizing: border-box;
	padding-right: 0.5em;
	display: inline-block;
	font-size: 16px;
	font-weight: bold;
	width: 30%;
	text-align: right;
}

.dialog_form .label_info {
	box-sizing: border-box;
	padding-right: 0.5em;
	font-size: 12px;
	width: 30%;
	text-align: right;
	display: inline-block;
}

.dialog_form_item label {
	color: #000;
}

.dialog_form .checkbox.disabled input {
	opacity: .35;
	pointer-events: none;
}

.dialog_form_actions.text-right {
	text-align: right;
}
.dialog_form_actions.text-right button {
	margin-left: 5px;
}

.dialog_form_actions button {
	border: none;
	font-size: 14px;
	text-transform: uppercase;
	background: #505050;
	color: #fff;
	text-align: center;
	margin-bottom: 10px;
	padding-right: 16px;
	padding-left: 16px;
}

[role="dialog"] .btn:hover {
	text-decoration: underline
}

[role="dialog"] a:focus,
[role="dialog"] input:focus,
[role="dialog"] .btn:focus,
[role="dialog"] .dialog_close_button:focus {
	outline: 3px solid rgba(195, 0, 89, 0.7);
}

.dialog_form_actions .secondary {
	background: #e4e4e4;
	color: #505050;
}

.dialog_form_actions .btn-config {
	display: block;
	width: 44%;
}

.dialog_form_actions .accept-all {
	width: 49%;
	float: right;
}

.dialog_form_actions .reject-all {
	width: 44%;
}

.dialog_close_button {
	cursor: pointer;
	float: right;
	position: absolute;
	top: 25px;
	left: 92%;
	width: 25px;
	height: 25px;
	background: transparent url(https://www.kbv.de/system/layout/icon-close.png) center center no-repeat;
	border: none;
}

.dialog_close_button img {
	border: 0;
}


/* native <dialog> element uses the ::backdrop pseudo-element */

/* dialog::backdrop, */
.dialog-backdrop {
	display: none;
	position: fixed;
	overflow-y: auto;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999999;
}

@media screen and (min-width: 640px) {
	.dialog-backdrop {
		background: rgb(0 0 0 / 80%);
	}
}

.dialog-backdrop.active {
	display: block;
}

.no-scroll {
	overflow-y: auto !important;
}

/* this is added to the body when a dialog is open */
.has-dialog {
	overflow: hidden;
}

/* styling for alert-dialog example */
.notes {
	display: block;
	font-size: 1rem;
	line-height: 1.3;
	min-width: 400px;
	max-width: 100%;
	width: 33%;
}

.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

#notes_save {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

#notes_save svg {
	display: block;
	width: 0.75rem;
}

#notes_save .icon {
	display: none;
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

#notes_save.loading .spinner {
	display: block;
	animation: rotate 2s linear infinite;
}

#notes_save.saved .check {
	display: block;
}

#dialog1.default_dialog {
	max-width: 370px;
}

@media (min-width:320px) and (max-width: 640px) {
	
	#dialog1.default_dialog,
	#dialog2.default_dialog {
		max-width: 100%;
		width: 100%;
	}
}
@media (min-width:641px) and (max-width: 767px) {
	
	#dialog1.default_dialog,
	#dialog2.default_dialog {
		max-width: 100%;
		width: 90%;
	}
}

@media (min-width:320px) and (max-width: 640px) {
	.dialog_close_button {
		top: 20px;
		left: 88%;
	}
	.dialog_form_actions button,
	.dialog_form_actions .btn-config,
	.dialog_form_actions .accept-all,
	.dialog_form_actions .reject-all {
		width: 100%;
		margin-left: 0;
	}
}