.aibook-access {
	display: block;
}

.aibook-access__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aibook-access__field {
	box-sizing: border-box;
	width: 100%;
	border-width: 0 0 1px 0 !important;
	border-style: solid !important;
	border-color: currentColor !important;
	border-radius: 0 !important;
	padding: 10px 0;
	background: var(--aibook-access-field-bg, transparent) !important;
	color: var(--aibook-access-field-color, inherit) !important;
	font: inherit;
	-webkit-text-fill-color: var(--aibook-access-field-color, currentColor) !important;
	caret-color: var(--aibook-access-field-color, currentColor);
	appearance: none;
	box-shadow: none !important;
	outline: 0;
}

.aibook-access__field:focus,
.aibook-access__field:active {
	background: var(--aibook-access-field-bg, transparent) !important;
	color: var(--aibook-access-field-color, inherit) !important;
	border-color: currentColor !important;
	-webkit-text-fill-color: var(--aibook-access-field-color, currentColor) !important;
	box-shadow: none !important;
	outline: 0;
}

.aibook-access__field:-webkit-autofill,
.aibook-access__field:-webkit-autofill:hover,
.aibook-access__field:-webkit-autofill:focus,
.aibook-access__field:-webkit-autofill:active {
	border-color: currentColor !important;
	background: var(--aibook-access-field-bg, transparent) !important;
	color: var(--aibook-access-field-color, inherit) !important;
	-webkit-text-fill-color: var(--aibook-access-field-color, currentColor) !important;
	caret-color: var(--aibook-access-field-color, currentColor);
	-webkit-box-shadow: 0 0 0 1000px var(--aibook-access-field-bg, transparent) inset !important;
	box-shadow: 0 0 0 1000px var(--aibook-access-field-bg, transparent) inset !important;
	transition: background-color 99999s ease-out 0s;
}

.aibook-access__field::placeholder {
	color: currentColor;
	opacity: 0.75;
}

.aibook-access__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 12px 18px;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}

.aibook-access__button:disabled {
	cursor: progress;
	opacity: 0.7;
}

.aibook-access__register-prompt {
	margin: 14px 0 0;
}

.aibook-access__register-link {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.aibook-access__overlay[hidden] {
	display: none;
}

.aibook-access__overlay {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	padding: 24px;
}

.aibook-access__dialog {
	position: relative;
	box-sizing: border-box;
	width: min(520px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	color: #101828;
	border-radius: 8px;
	padding: 28px;
}

.aibook-access__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	color: currentColor;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	transition: background-color 160ms ease, color 160ms ease;
}

.aibook-access__privacy {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.aibook-access__privacy input {
	margin-top: 0.25em;
}

.aibook-access__message {
	min-height: 1.4em;
}

.aibook-access__message--success {
	color: #027a48;
}

.aibook-access__message--error {
	color: #b42318;
}

.aibook-access-lock {
	overflow: hidden;
}
