.spectra-gated-download-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.spectra-gated-download-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.spectra-gated-download-modal__dialog {
	background: #fff;
	border-radius: 4px;
	max-width: 90%;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	position: relative;
}

.spectra-gated-download-modal__header {
	margin: 0;
	padding: 1rem 3rem 1rem 1rem;
	font-size: 1.25rem;
	border-bottom: 1px solid #ddd;
}

.spectra-gated-download-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0.25rem;
}

.spectra-gated-download-modal__close:hover {
	color: #000;
}

.spectra-gated-download-modal__content {
	padding: 1rem;
	overflow-y: auto;
	flex: 1;
}

.spectra-gated-download-modal__loading {
	padding: 1rem;
	text-align: center;
	color: #666;
}

body.spectra-gated-download-modal-open {
	overflow: hidden;
}

@media (min-width: 600px) {
	.spectra-gated-download-modal__dialog {
		max-width: 500px;
	}
}
