/* HS Course Offer modal. Logical properties only (RTL first). */
.hsco-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}
.hsco-overlay[hidden] {
	display: none;
}
body.hsco-locked {
	overflow: hidden;
}
.hsco-dialog {
	position: relative;
	inline-size: min(640px, 100%);
	max-block-size: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.hsco-x {
	position: absolute;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	inline-size: 36px;
	block-size: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.hsco-title {
	margin: 0 0 8px;
	padding-inline-end: 36px;
	font-size: 1.35em;
}
.hsco-intro {
	margin: 0 0 16px;
}
.hsco-error {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 6px;
	background: #fcf0f1;
	color: #8a2424;
}
.hsco-error[hidden] {
	display: none;
}
.hsco-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hsco-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
}
.hsco-item img {
	flex: 0 0 auto;
	inline-size: 72px;
	block-size: 72px;
	object-fit: cover;
	border-radius: 8px;
}
.hsco-body {
	flex: 1 1 auto;
	min-inline-size: 0;
}
.hsco-name {
	display: block;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}
.hsco-price del {
	opacity: 0.6;
}
.hsco-price ins,
ins.hsco-free {
	font-weight: 700;
	text-decoration: none;
	color: #0a7d3b;
}
.hsco-dialog .hsco-choose,
.hsco-dialog .hsco-later {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}
.hsco-dialog .hsco-choose {
	background: #0a7d3b;
	color: #fff;
}
.hsco-dialog .hsco-choose:hover,
.hsco-dialog .hsco-choose:focus-visible {
	background: #08652f;
}
.hsco-dialog .hsco-choose:disabled {
	opacity: 0.6;
	cursor: progress;
}
.hsco-dialog .hsco-later {
	background: transparent;
	border-color: #c3c4c7;
	color: inherit;
}
.hsco-actions {
	margin-block-start: 16px;
	text-align: end;
}
.hsco-notice .hsco-open {
	margin-inline-start: 8px;
}
@media (max-width: 480px) {
	.hsco-item {
		flex-wrap: wrap;
	}
	.hsco-dialog .hsco-choose {
		inline-size: 100%;
	}
}
