.pv-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 24, 39, 0.68);
}

.pv-modal-overlay.is-open {
	display: flex;
}

.pv-modal {
	position: relative;
	width: min(100%, 460px);
	padding: 28px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
	color: #1f2937;
}

.pv-modal h2 {
	margin: 0 36px 8px 0;
	font-size: 26px;
	line-height: 1.2;
}

.pv-modal-intro {
	margin: 0 0 20px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.5;
}

.pv-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pv-modal-close:hover,
.pv-modal-close:focus {
	background: #e5e7eb;
}

.pv-modal-form {
	display: grid;
	gap: 14px;
}

.pv-modal-field {
	display: grid;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #374151;
}

.pv-modal-field input,
.pv-modal-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 11px 12px;
	font: inherit;
	color: #111827;
	background: #ffffff;
}

.pv-modal-field input:focus,
.pv-modal-field textarea:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.pv-modal-status {
	min-height: 20px;
	color: #047857;
	font-size: 14px;
}

.pv-modal-status.is-error {
	color: #b91c1c;
}

.pv-modal-submit,
.pv-modal-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 6px;
	padding: 12px 18px;
	background: #2563eb;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pv-modal-submit:hover,
.pv-modal-trigger:hover,
.pv-modal-submit:focus,
.pv-modal-trigger:focus {
	background: #1d4ed8;
}

.pv-modal-submit:disabled {
	cursor: wait;
	opacity: 0.72;
}

@media (max-width: 520px) {
	.pv-modal-overlay {
		padding: 16px;
	}

	.pv-modal {
		padding: 22px;
	}

	.pv-modal h2 {
		font-size: 22px;
	}
}
