/* "What We Collect?" modal: the core Modal look, drawn here since the dashboard does not load wp-components CSS. */

.wpcpf-collect-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.35);
	animation: wpcpf-collect-modal-fade 0.08s linear;
}

.wpcpf-collect-modal {
	box-sizing: border-box;
	width: 558px;
	max-width: 100%;
	max-height: 70%;
	overflow: auto;
	padding: 32px;
	border-radius: 8px;
	background: #fff;
	box-shadow:
		0 5px 15px rgba(0, 0, 0, 0.08),
		0 15px 27px rgba(0, 0, 0, 0.07),
		0 30px 36px rgba(0, 0, 0, 0.04),
		0 50px 43px rgba(0, 0, 0, 0.02);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	animation: wpcpf-collect-modal-appear 0.1s ease-out;

	@media (prefers-reduced-motion: reduce) {
		animation: none;
	}

	/* Focus lands on the dialog itself on open, as in the core Modal. */
	&:focus {
		outline: none;
	}

	hr {
		height: 0;
		margin: 16px 0;
		border: 0;
		border-top: 1px solid #dcdcde;
		border-bottom: 1px solid #f6f7f7;
	}

	ul {
		margin: 13px 0;
		padding: 0;
	}

	li {
		margin: 0 0 6px 18px;
		list-style: disc;
	}

	b {
		font-weight: 600;
	}
}

.wpcpf-collect-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wpcpf-collect-modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 130%;
	color: #2f2f2f;
}

.wpcpf-collect-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: #1e1e1e;
	cursor: pointer;

	svg {
		width: 16px;
		height: 16px;
		fill: currentColor;
	}

	&:focus-visible {
		outline: 2px solid #2271b1;
		outline-offset: 2px;
	}
}

.wpcpf-collect-modal-text,
.wpcpf-collect-modal li {
	font-size: 14px;
	font-weight: 400;
	line-height: 160%;
	color: #4e4f52;
}

p.wpcpf-collect-modal-text {
	margin: 14px 0;
}

/* Scoped under the modal to outrank dashboard-wide link resets. */
.wpcpf-collect-modal .wpcpf-collect-modal-link {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 160%;
	color: #4e4f52;
	text-decoration: underline dotted;
	cursor: pointer;

	&:hover,
	&:focus {
		color: #4e4f52;
	}

	svg {
		transform: scale(0.7);
		fill: #4e4f52;
	}
}

@keyframes wpcpf-collect-modal-fade {
	from {
		opacity: 0;
	}
}

@keyframes wpcpf-collect-modal-appear {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
}
