/**
 * framework/modal — a delayed popup.
 */

.fw-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: grid;
	place-items: center;
	padding: 5vmin;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fw-modal[hidden] { display: none; }

.fw-modal.is-open { opacity: 1; }

.fw-modal__panel {
	position: relative;
	width: min(100%, 520px);
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--fw-radius, 10px);
	padding: 2rem 2rem 1.5rem;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.fw-modal__logo img {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto 1rem;
	object-fit: contain;
}

.fw-modal__content > :first-child { margin-block-start: 0; }
.fw-modal__content > :last-child  { margin-block-end: 0; }

.fw-modal__close {
	margin-block-start: 1.25rem;
	appearance: none;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--fw-grey, #5A5A5A);
	text-decoration: underline;
	cursor: pointer;
}

.fw-modal__close:hover { color: var(--fw-primary, #B25F55); }

@media (prefers-reduced-motion: reduce) {
	.fw-modal { transition: none; }
}
