.bos-launch-button {
	padding: 0.6em 1.2em;
	font-size: 1rem;
	cursor: pointer;
}

.bos-panel {
	max-width: 480px;
	margin: 1.5em 0;
}

.bos-panel__collapsed {
	display: flex;
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
}

.bos-panel__collapsed[hidden] {
	display: none;
}

.bos-panel__full {
	position: relative;
	background: #fff;
	color: #1d2327;
	padding: 2em;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.15 );
}

.bos-panel__full[hidden] {
	display: none;
}

.bos-panel__collapse {
	position: absolute;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	/* Explicit, not inherited: this theme styles buttons white-on-
	   green by default, and stripping the background above (this is
	   meant to be a plain icon button) left plain white text on the
	   panel's white background - invisible, though still clickable,
	   which is arguably worse than not having it at all. */
	color: #1d2327;
}

@media ( prefers-color-scheme: dark ) {
	.bos-panel__collapse {
		color: #f0f0f0;
	}
}

.bos-signed-in-as {
	font-size: 0.85em;
	color: #646970;
	margin: -0.5em 0 1.5em;
}

@media ( prefers-color-scheme: dark ) {
	.bos-signed-in-as {
		color: #a7aaad;
	}
}

.bos-modal__field {
	margin-bottom: 1em;
}

.bos-modal__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.bos-modal__field input,
.bos-modal__field textarea {
	width: 100%;
	box-sizing: border-box;
}

.bos-char-counter {
	font-size: 0.85em;
	color: #646970;
	text-align: right;
	margin: 0.3em 0 0;
}

@media ( prefers-color-scheme: dark ) {
	.bos-char-counter {
		color: #a7aaad;
	}
}

.bos-field-error {
	color: #d63638;
	font-size: 0.9em;
	margin: 0.4em 0 0;
}

.bos-field-error[hidden] {
	display: none;
}

.bos-field-hint,
.bos-suggest-counter {
	font-size: 0.85em;
	color: #646970;
	margin: 0.3em 0 0;
}

@media ( prefers-color-scheme: dark ) {
	.bos-field-hint,
	.bos-suggest-counter {
		color: #a7aaad;
	}
}

.bos-modal__actions {
	display: flex;
	gap: 0.75em;
}

.bos-stage-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid #dcdcde;
}

.bos-stage-nav form:only-child {
	margin-left: auto;
}

@media ( prefers-color-scheme: dark ) {
	.bos-stage-nav {
		border-top-color: #3c434a;
	}
}

.bos-pricing-footer-link {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid #dcdcde;
	font-size: 0.9em;
	text-align: center;
}

@media ( prefers-color-scheme: dark ) {
	.bos-pricing-footer-link {
		border-top-color: #3c434a;
	}
}

.bos-check-item {
	display: flex;
	align-items: center;
	gap: 0.75em;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 0.75em 1em;
	margin-bottom: 0.75em;
	cursor: pointer;
}

.bos-check-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bos-check-box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 5px;
	border: 2px solid #c3c4c7;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bos-check-box::after {
	content: "";
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg ) translate( -1px, -1px );
	opacity: 0;
}

.bos-check-input:checked + .bos-check-box {
	background-color: #00a32a;
	border-color: #00a32a;
}

.bos-check-input:checked + .bos-check-box::after {
	opacity: 1;
}

.bos-check-input:focus-visible + .bos-check-box {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

@media ( prefers-color-scheme: dark ) {
	.bos-check-item {
		border-color: #3c434a;
	}

	.bos-check-box {
		border-color: #6c7276;
	}
}

@media ( prefers-color-scheme: dark ) {
	.bos-panel__full {
		background: #1e1e1e;
		color: #f0f0f0;
	}
}
