
// Component styles
.modal {

	&_transition {
		&-enter, &-appear {
			opacity: 0;
		}
		&-enter-active, &-appear-active {
			opacity: 1;
			transition: opacity var(--animTime, 200ms);
		}
		&-enter-done, &-appear-done {
		}
		&-exit {
			opacity: 1;
		}
		&-exit-active {
			opacity: 0;
			transition: opacity var(--animTime, 200ms);
		}
	}

	&_portal {
		position: fixed;
		inset: 0;
		z-index: 10000;
		// Portal stays mounted for global modals; pass clicks through when no interactive overlay is shown.
		pointer-events: none;
	}

	&_backdrop {
		position: fixed;
		inset: 0;
		z-index: 1;
		background-color: rgba(0, 0, 0, 0.35);
		pointer-events: auto;

		&--blur {
			backdrop-filter: blur(4px);
			-webkit-backdrop-filter: blur(4px);
		}
	}

	// Dialog layer stays above backdrop during CSSTransition opacity animations.
	&_layer {
		position: fixed;
		inset: 0;
		z-index: 2;
		pointer-events: none;
	}

}
