/**
 * Course-page term tips. The panel is hidden until the front script opens it.
 */

.cet-tip__term {
	text-decoration-line: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--bb-primary-color, currentColor);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

button.cet-tip__term {
	display: inline;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	line-height: inherit;
	text-align: inherit;
	vertical-align: baseline;
	cursor: help;
	white-space: normal;
	appearance: none;
	-webkit-appearance: none;
}

button.cet-tip__term:hover,
button.cet-tip__term:focus {
	background: transparent;
	color: inherit;
	text-decoration-line: underline;
	text-decoration-style: dashed;
	text-decoration-color: var(--bb-primary-color, currentColor);
}

button.cet-tip__term:focus {
	outline: 2px solid var(--bb-primary-color, #2271b1) !important;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bb-primary-color, #2271b1);
}

.cet-tip__panel {
	display: none;
}

.cet-tip__panel.is-open {
	display: block;
	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	width: max-content;
	max-width: min(20rem, calc(100vw - 16px));
	margin: 0;
	padding: 10px 12px;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	letter-spacing: normal;
	text-align: start;
	text-transform: none;
	text-decoration: none;
	overflow-wrap: break-word;
	user-select: text;
}

.cet-tip__panel .cet-tip__image {
	display: block;
	float: none;
	max-width: 100%;
	max-height: 140px;
	width: auto;
	height: auto;
	margin: 0 0 8px;
	object-fit: contain;
}

.cet-tip__panel .cet-tip__text {
	display: block;
}

.cet-tip__panel .cet-tip__image + .cet-tip__text {
	margin-top: 0;
}

@media print {
	.cet-tip__panel,
	.cet-tip__panel[hidden] {
		display: inline !important;
		position: static !important;
		max-width: none !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		background: transparent !important;
		color: inherit !important;
		border: 0 !important;
		box-shadow: none !important;
		font-size: inherit !important;
	}

	.cet-tip__panel .cet-tip__image {
		display: none !important;
	}

	.cet-tip__panel .cet-tip__text::before {
		content: " (";
	}

	.cet-tip__panel .cet-tip__text::after {
		content: ")";
	}
}
