/* OMHAS course page buy block and bottom bar (1.10.12). Phones and tablets only;
   on a computer the pass box beside the course is already on the first screen. */

.omhas-cb {
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	margin: 14px 0 0;
	padding: 14px 14px 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 28px -14px rgba(14, 42, 71, .45);
	font-family: 'Inter', Arial, sans-serif;
	color: #14181F;
	text-align: left;
}

.omhas-cb *,
.omhas-cb *::before,
.omhas-cb *::after { box-sizing: border-box; }

.omhas-cb p { margin: 0; }

.omhas-cb__title { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: #12304F; margin-bottom: 4px !important; }

.omhas-cb__facts { font-size: 14px; line-height: 1.45; color: #4A5361; }

.omhas-cb__price { margin: 4px 0 10px !important; font-size: 14px; color: #4A5361; }
.omhas-cb__price b { font-family: 'Outfit', 'Inter', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.1; color: #14181F; margin-right: 2px; }

.omhas-cb a.omhas-cb__btn,
.omhas-cb a.omhas-cb__btn:visited {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border-radius: 8px;
	background: #1A7A7C;
	color: #fff;
	font-family: 'Outfit', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.omhas-cb a.omhas-cb__btn:hover,
.omhas-cb a.omhas-cb__btn:focus,
.omhas-cb a.omhas-cb__btn:active { background: #135C5E; color: #fff; }

.omhas-cb a.omhas-cb__btn:focus-visible { outline: 3px solid rgba(18, 48, 79, .4); outline-offset: 2px; }

.omhas-cb__note { margin-top: 9px !important; font-size: 13px; line-height: 1.45; color: #6B7280; text-align: center; }
.omhas-cb__note a { color: #1A7A7C; font-weight: 600; }

.omhas-cb--welcome { border-left: 5px solid #156A21; }
.omhas-cb--welcome .omhas-cb__facts { margin-bottom: 10px !important; }

/* The bar at the bottom of the screen. */
.omhas-cb-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: #12304F;
	color: #fff;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .45);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .22s ease, visibility 0s linear .22s;
}

.omhas-cb-bar.is-on { transform: none; visibility: visible; transition: transform .22s ease; }

.omhas-cb-bar__text { flex: 1; min-width: 0; }
.omhas-cb-bar__text b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.omhas-cb-bar a.omhas-cb-bar__btn,
.omhas-cb-bar a.omhas-cb-bar__btn:visited {
	flex-shrink: 0;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: #12304F;
	font-family: 'Outfit', 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.omhas-cb-bar a.omhas-cb-bar__btn:hover,
.omhas-cb-bar a.omhas-cb-bar__btn:focus { background: #E4F2F2; color: #12304F; }

body.omhas-cb-bar-on { padding-bottom: 68px; }

@media (min-width: 1025px) {
	.omhas-cb:not(.omhas-cb--welcome),
	.omhas-cb-bar { display: none !important; }
	body.omhas-cb-bar-on { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.omhas-cb-bar,
	.omhas-cb-bar.is-on { transition: none; }
}
