dialog[open] {
	margin: auto;
	padding: 0;
	width: 95%;
	max-width: 500px;
	min-width: 250px;
	height: fit-content;
	max-height: 80vh;

	/* User agent overrides */
	border: none;
	outline: none;
}

dialog::backdrop {
	background: #00000080;
	backdrop-filter: blur(2px);
}

.dialog-container {
	border-radius: 12px;
	/*background (upper part black, lower part white) which helps for dialog overscroll*/
	background: linear-gradient(
		to bottom,
		var(--color-text-1) 0%,
		var(--color-text-1) 50%,
		var(--color-background-1) 50%,
		var(--color-background-1) 100%
	);
	box-shadow: 0 0 36px 2px #272727;
	animation: dialog-fade-in-expand 180ms ease-out forwards;
}

.dialog-container-2 {
	max-width: 600px;
}

.dialog-header {
	padding: 12px 16px;
	background-color: var(--color-text-1);
	color: var(--color-background-1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dialog-content {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	color: var(--color-text-1);
	background-color: var(--color-background-1);
	overflow: auto;
}

.dialog-section-row {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dialog-section-row-description {
	width: 100%;
	text-align: left;
	font-size: 0.85rem;
}

.dialog-section-row p {
	padding-bottom: 0;
}

.dialog-section-row-action {
	display: flex;
	align-items: center;
	width: 100%;
	padding-left: 0;
}

.dialog-section-row-action button {
	width: 100%;
}

.dialog-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 26px 26px 26px;
	width: 100%;
}

.loading-animation-image {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	position: relative;
	animation: notification-loading-rotate 1s linear infinite;
}

.loading-animation-image::before , .loading-animation-image::after {
	content: "";
	box-sizing: border-box;
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 5px solid #FFF;
	animation: notification-loading-catchup 2s linear forwards;
}

.loading-animation-image::after {
	transform: rotate3d(90, 90, 0, 180deg);
	border-color: var(--color-accent-1);
}

@keyframes dialog-fade-in-expand {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes notification-loading-rotate {
	0%   {transform: rotate(0deg)}
	100%   {transform: rotate(360deg)}
}

@keyframes notification-loading-catchup {
	0% {clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)}
	50% {clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)}
	75%, 100% {clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)}
}