.lh-portal-tooltip,
.lh-help-tip {
	display: inline-flex;
	position: relative;
	vertical-align: middle;
}

.lh-portal-tooltip__trigger,
.lh-help-tip__toggle {
	align-items: center;
	background: #f3ecee;
	border: 1px solid #d4ccc2;
	border-radius: 999px;
	color: #7a3e48;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	height: 1.5rem;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0;
	width: 1.5rem;
}

.lh-portal-tooltip__trigger:hover,
.lh-portal-tooltip__trigger:focus-visible,
.lh-portal-tooltip.is-open .lh-portal-tooltip__trigger,
.lh-help-tip__toggle:hover,
.lh-help-tip__toggle:focus-visible,
.lh-help-tip.is-open .lh-help-tip__toggle {
	background: #7a3e48;
	border-color: #7a3e48;
	color: #fff;
	outline: none;
}

.lh-portal-tooltip__bubble,
.lh-help-tip__bubble {
	background: #fff;
	border: 1px solid #e8e2da;
	border-radius: 8px;
	bottom: calc(100% + 0.45rem);
	box-shadow: 0 6px 18px rgb(36 38 36 / 0.12);
	color: #222;
	display: none;
	font-size: 0.8rem;
	font-weight: 400;
	left: 50%;
	line-height: 1.45;
	max-width: min(16rem, calc(100vw - 2rem));
	padding: 0.5rem 0.65rem;
	position: absolute;
	text-align: left;
	transform: translateX(-50%);
	white-space: normal;
	width: max-content;
	z-index: 30;
}

.lh-portal-tooltip__bubble::after,
.lh-help-tip__bubble::after {
	border: 6px solid transparent;
	border-top-color: #fff;
	content: "";
	filter: drop-shadow(0 1px 0 #e8e2da);
	left: 50%;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

.lh-portal-tooltip:hover .lh-portal-tooltip__bubble,
.lh-portal-tooltip:focus-within .lh-portal-tooltip__bubble,
.lh-portal-tooltip.is-open .lh-portal-tooltip__bubble,
.lh-help-tip:hover .lh-help-tip__bubble,
.lh-help-tip:focus-within .lh-help-tip__bubble,
.lh-help-tip.is-open .lh-help-tip__bubble {
	display: block;
}

.lh-portal-tooltip--compact .lh-portal-tooltip__trigger {
	font-size: 0.78rem;
	height: 1.2rem;
	width: 1.2rem;
}

.lh-portal-tooltip--below-end .lh-portal-tooltip__bubble,
.lh-portal-tooltip--below-end .lh-help-tip__bubble {
	bottom: auto;
	left: auto;
	right: 0;
	top: calc(100% + 0.4rem);
	transform: none;
}

.lh-portal-tooltip--below-end .lh-portal-tooltip__bubble::after,
.lh-portal-tooltip--below-end .lh-help-tip__bubble::after {
	border-bottom-color: #fff;
	border-top-color: transparent;
	bottom: 100%;
	left: auto;
	right: 0.35rem;
	top: auto;
	transform: none;
}

.lh-classroom-join__meta-addon .lh-portal-tooltip {
	margin: -0.05rem 0 0 0.12rem;
}
