.flowmail-form {
	--flowmail-form-ink: #172b4d;
	--flowmail-form-muted: #65748b;
	--flowmail-form-line: #d8e1ed;
	--flowmail-form-primary: #315ee7;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	padding: 26px;
	border: 1px solid var(--flowmail-form-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(25, 45, 78, .08);
	color: var(--flowmail-form-ink);
	font: inherit;
}

.flowmail-form *,
.flowmail-form *::before,
.flowmail-form *::after {
	box-sizing: border-box;
}

.flowmail-form p {
	margin: 0 0 16px;
}

.flowmail-form label {
	display: block;
	color: #34445e;
	font-size: 14px;
	font-weight: 550;
	line-height: 1.55;
}

.flowmail-form input[type="email"],
.flowmail-form input[type="text"] {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 6px;
	padding: 9px 12px;
	border: 1px solid #cbd6e4;
	border-radius: 9px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(22, 40, 72, .025);
	color: var(--flowmail-form-ink);
	font: inherit;
	font-size: 15px;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.flowmail-form input[type="email"]:focus,
.flowmail-form input[type="text"]:focus {
	border-color: var(--flowmail-form-primary);
	box-shadow: 0 0 0 3px rgba(49, 94, 231, .14);
	outline: 0;
}

.flowmail-form input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 2px 8px 0 0;
	accent-color: var(--flowmail-form-primary);
	vertical-align: top;
}

.flowmail-form button[type="submit"] {
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--flowmail-form-primary);
	border-radius: 9px;
	background: var(--flowmail-form-primary);
	box-shadow: 0 4px 11px rgba(49, 94, 231, .2);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
	transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.flowmail-form button[type="submit"]:hover {
	transform: translateY(-1px);
	background: #2449c6;
	box-shadow: 0 6px 15px rgba(49, 94, 231, .25);
}

.flowmail-form button[type="submit"]:focus-visible,
.flowmail-form-close:focus-visible {
	outline: 3px solid rgba(49, 94, 231, .35);
	outline-offset: 3px;
}

.flowmail-form .flowmail-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.flowmail-form--popup,
.flowmail-form--slide-in,
.flowmail-form--bar {
	position: fixed;
	z-index: 99999;
	border: 1px solid rgba(211, 222, 237, .95);
	background: #fff;
	box-shadow: 0 24px 70px rgba(14, 29, 55, .24);
}

.flowmail-form--popup {
	top: 50%;
	left: 50%;
	width: min(560px, calc(100vw - 32px));
	max-height: min(90vh, 760px);
	overflow: auto;
	padding: 34px;
	border-radius: 18px;
	transform: translate(-50%, -50%);
}

.flowmail-form--slide-in {
	right: 22px;
	bottom: 22px;
	width: min(420px, calc(100vw - 32px));
	max-height: calc(100vh - 44px);
	overflow: auto;
	padding: 28px;
	border-radius: 17px;
}

.flowmail-form--bar {
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	max-width: none;
	padding: 14px max(22px, calc((100vw - 1180px) / 2));
	border-right: 0;
	border-bottom: 0;
	border-left: 0;
	border-radius: 15px 15px 0 0;
}

.flowmail-form--bar p {
	flex: 1 1 170px;
	min-width: 0;
	margin: 0;
}

.flowmail-form--bar .flowmail-hp {
	display: none;
}

.flowmail-form--bar input[type="email"],
.flowmail-form--bar input[type="text"] {
	min-height: 40px;
}

.flowmail-form--bar button[type="submit"] {
	min-height: 40px;
}

.flowmail-form--bar p:has(input[type="checkbox"]) {
	flex: 2 1 270px;
}

.flowmail-form-overlay {
	position: fixed;
	z-index: 99998;
	inset: 0;
	background: rgba(13, 25, 45, .56);
	backdrop-filter: blur(4px);
}

.flowmail-form-overlay[aria-hidden="true"] {
	display: none;
}

.flowmail-form-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	padding: 0 0 2px;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #f7f9fc;
	color: #52627b;
	cursor: pointer;
	font: inherit;
	font-size: 24px;
	line-height: 1;
}

.flowmail-form-close:hover {
	background: #edf2fa;
	color: #172b4d;
}

@media (max-width: 640px) {
	.flowmail-form {
		padding: 20px;
		border-radius: 13px;
	}

	.flowmail-form--popup {
		padding: 30px 20px 20px;
	}

	.flowmail-form--slide-in {
		right: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 24px);
		padding: 28px 20px 20px;
	}

	.flowmail-form--bar {
		align-items: stretch;
		gap: 9px;
		padding: 12px 14px;
	}

	.flowmail-form--bar p {
		flex-basis: calc(50% - 6px);
	}

	.flowmail-form--bar p:has(input[type="checkbox"]) {
		flex-basis: 100%;
	}

	.flowmail-form--bar p:last-of-type {
		flex: 1 1 100%;
	}

	.flowmail-form--bar button[type="submit"] {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flowmail-form *,
	.flowmail-form *::before,
	.flowmail-form *::after {
		transition-duration: .01ms !important;
	}
}
