.xpa-alert {
	max-width: 24rem;
	width: 100%;
	box-sizing: border-box;
	padding: 1rem 1.1rem;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	background: #fafafa;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #1d2327;
}

.xpa-alert *,
.xpa-alert *::before,
.xpa-alert *::after {
	box-sizing: border-box;
}

.xpa-alert__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.xpa-alert__hint {
	margin: 0 0 0.85rem;
	color: #50575e;
}

.xpa-alert__form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
	align-items: end;
}

.xpa-alert--cols-2 .xpa-alert__form {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xpa-alert--cols-3 .xpa-alert__form {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xpa-alert__field {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.xpa-alert__label,
.xpa-alert__field span {
	font-size: 0.8125rem;
	font-weight: 500;
}

.xpa-alert__label em,
.xpa-alert__field em {
	font-style: normal;
	font-weight: 400;
	color: #646970;
}

.xpa-alert__field input {
	width: 100%;
	padding: 0.45rem 0.6rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	color: inherit;
}

.xpa-alert__actions {
	display: flex;
	align-items: stretch;
	min-width: 0;
}

.xpa-alert__submit {
	justify-self: start;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.xpa-alert__submit:hover {
	background: #2c3338;
}

.xpa-alert__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.xpa-alert__privacy {
	margin: 0;
	font-size: 0.75rem;
	color: #646970;
	grid-column: 1 / -1;
}

.xpa-alert__message {
	margin-top: 0.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: 4px;
}

.xpa-alert__message.is-success {
	background: #edfaef;
	color: #1e4620;
	border: 1px solid #68de7c;
}

.xpa-alert__message.is-error {
	background: #fcf0f1;
	color: #8a2424;
	border: 1px solid #f1aeb5;
}

.xpa-alert--editor-notice {
	border-style: dashed;
	color: #646970;
}

@media (max-width: 767px) {
	.xpa-alert--cols-2 .xpa-alert__form,
	.xpa-alert--cols-3 .xpa-alert__form {
		grid-template-columns: 1fr;
	}
}
