

/* Dialog */

.modal--window {
	background: #fff;
	padding: 1em;
	box-shadow: 0 2px 4px 4px rgba(0,0,0,0.2);
	border: none;
	border-radius: 3px;
}

.modal--gentle {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90dvw;
	max-height: 90dvh;
	z-index: 2;
	overflow: auto;
}

.modal--window .window--header {
	display: flex;
	justify-content: flex-end;
	padding: 1em;
	margin: -1em -1em 0;
	gap: 1em;
	position: sticky;
	top: -1em;
	border-bottom: 1px solid var(--awb-color4);
	background: #fff;
}

.window--close-button {
	border: none;
	background: none;
	color: gray;
}

.modal--window .window--content {
	display: flex;
	justify-content: center;
	padding: 1em;
}


.modal--window .window--footer {
	display: flex;
	justify-content: center;
	padding: 1em;
}

/* Dialog */

.modal--dialog {
	background: #fff;
	padding: 1em;
	box-shadow: 0 2px 4px 4px rgba(0,0,0,0.2);
	border: none;
	border-radius: 3px;
}

.modal--dialog .dialog--header {
	display: flex;
	justify-content: center;
	padding: 1em;
}

.modal--dialog .dialog--content {
	display: flex;
	justify-content: center;
	padding: 1em;
}


.modal--dialog .dialog--footer {
	display: flex;
	justify-content: center;
	gap: 1em;
	padding: 1em;
}


/* Spinner */

.modal--spinner-dialog {
	background: #383838;
	border: none;
	border-radius: 3px;
	box-shadow: 0 2px 4px 4px rgba(0,0,0,0.2);
}

.modal--spinner-dialog::backdrop {
	background: rgba(0,0,0,0.4);
}

.modal--spinner-dialog .modal--spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #fff;
    border-bottom-color: var(--awb-color5);
    border-radius: 50%;
    display: block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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