dialog {
	margin: auto;
	padding: 0;
	width: 95%;
	max-width: 640px;
	min-width: 250px;
	height: fit-content;

	/* User agent overrides */
	border: solid 1px var(--color-stroke-1-default);
	outline: none;

	/* Style at dialog[open=false] transition end */
	transition: 200ms ease-in allow-discrete;
	opacity: 0;
	transform: scale(0.90);
}

dialog::backdrop {
	background: var(--color-background-5-strong);
	transition: 200ms ease-in allow-discrete;
	opacity: 0;
}

dialog[open] {
	transition: 200ms ease-out allow-discrete;
	opacity: 1;
	transform: scale(1);
}

dialog[open]::backdrop {
	transition: 200ms ease-out allow-discrete;
	opacity: 1;
}

.dialog-container {
	border-radius: 8px;
	padding: 16px;
	border: solid 1px var(--color-stroke-1-default);
}

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

.dialog-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: var(--color-text-1-default);
	background-color: var(--color-background-1-default);
	overflow: auto;
	scrollbar-width: thin;
	font: var(--font-m-regular);
	padding: 8px;
}

.dialog-second-level-overlapping {
	max-width: 540px;
}

.dialog-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dialog-buttons {
	display: flex;
	flex-direction: column-reverse;
	gap: 16px;
	padding-top: 40px;
	width: 100%;
}

.loading-animation-dialog {
	min-width: 100px;
	width: 100px;
	height: 100px;
	background: transparent;
	overflow: hidden;
	border: none;
}

.loading-animation-image {
	position: relative;
}

.loading-animation-image img {
	width: 100%;
	height: 100%;
}

.price-tier-tabs {
	display: flex;
	gap: 16px;
	padding-bottom: 16px;
}

.price-tier-tab {
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.price-tier-tab-selected {
	position: relative;
	font: var(--font-m-bold);
}

.price-tier-tab-selected::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-stroke-1-strong);
}

.photo-guidelines-dialog-tips {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

/* Required for allow-discrete transitions */
@starting-style {
	dialog[open] {
		opacity: 0;
		transform: scale(0.90);
	}

	dialog[open]::backdrop {
		opacity: 0;
	}
}

@media screen and (min-width: 860px) {
	.dialog-container {
		padding: 24px; /* Made the padding here smaller (initial value: 32px) so I could add a bit (8px) of padding on the dialog-content class. We need this to have a visible outline on the buttons when tabbing through. */
	}

	.dialog-buttons {
		flex-direction: row;
	}

	.dialog-buttons button {
		flex: 1;
	}

	.photo-guidelines-dialog-tips {
		flex-direction: row;
	}
}