.nie-cf7-download-modal {
	display: inline;
}

.nie-cf7-download-modal__trigger {
	cursor: pointer;
}

.nie-cf7-download-modal__dialog {
	background: transparent;
	border: 0;
	box-sizing: border-box;
	margin: auto;
	max-height: calc(100vh - 2rem);
	max-width: 680px;
	padding: 0;
	width: calc(100% - 2rem);
}

.nie-cf7-download-modal__dialog::backdrop {
	background: rgba(22, 22, 22, 0.62);
	backdrop-filter: blur(2px);
}

.nie-cf7-download-modal__panel {
	background: #fff;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	color: #2b2b2b;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 2.75rem 2rem 2rem;
	position: relative;
}

.nie-cf7-download-modal__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #4a4a4a;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 1.5rem;
	height: 2rem;
	justify-content: center;
	line-height: 1;
	padding: 0 0 0.15rem;
	position: absolute;
	right: 0.75rem;
	top: 0.75rem;
	transition: background-color 120ms ease, color 120ms ease;
	width: 2rem;
}

.nie-cf7-download-modal__close:hover {
	background: transparent;
	color: #111;
}

.nie-cf7-download-modal__close:focus-visible,
.nie-cf7-download-modal__trigger:focus-visible {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.nie-cf7-download-modal__form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.nie-cf7-download-modal__form select,
.nie-cf7-download-modal__form textarea {
	border-color: #d8d8d8;
	border-radius: 0.5rem;
	box-sizing: border-box;
	max-width: 100%;
	padding: 0.5rem 1rem;
	width: 100%;
}

.nie-cf7-download-modal__form input[type='submit'],
.nie-cf7-download-modal__form button[type='submit'] {
	background: #204496;
	border: 0;
	border-radius: 0.5rem;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	padding: 0.35rem 1rem;
}

.nie-cf7-download-modal__form .wpcf7-spinner {
	vertical-align: middle;
}

.nie-cf7-download-modal__form .wpcf7 form .wpcf7-response-output {
	border-radius: 0.5rem;
}

.nie-cf7-download-modal__error {
	color: #b32d2e;
	font-weight: 600;
}

@media (max-width: 480px) {
	.nie-cf7-download-modal__dialog {
		max-height: calc(100vh - 1rem);
		width: calc(100% - 1rem);
	}

	.nie-cf7-download-modal__panel {
		max-height: calc(100vh - 1rem);
		padding: 2.75rem 1rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nie-cf7-download-modal__close {
		transition: none;
	}
}
