/* Purchase path: sign-in step before paying and the course buy bar (cart, checkout and the page after payment: checkout-flow.css). */
.ye-signin-step,
.ye-buybar {
	--ye-flow-accent: var(--ye-accent);
	--ye-flow-accent-dark: var(--ye-accent-strong);
	--ye-flow-ink: var(--ye-ink);
	--ye-flow-muted: var(--ye-muted);
	--ye-flow-border: var(--ye-border);
	--ye-flow-tint: var(--ye-tint);
	--ye-flow-buy: var(--ye-buy);
	--ye-flow-buy-dark: var(--ye-buy-strong);
	box-sizing: border-box;
	direction: rtl;
}

/* Sign-in step: short, with the cart in view, so the forms start on the first screen. */
.mustreg.ye-signin-step { margin: 0 0 24px; padding: 20px 22px; border: 1px solid var(--ye-flow-border); border-radius: 18px; background: var(--ye-flow-tint); box-shadow: none; color: var(--ye-flow-ink); }
.ye-signin-step__head { display: flex; align-items: center; gap: 16px; }
.ye-signin-step__head img { flex: 0 0 auto; width: 72px; height: auto; border-radius: 50%; background: #fff; }
.ye-signin-step__head h2 { margin: 0 0 4px; color: var(--ye-flow-ink); font-size: 22px; font-weight: var(--ye-w-heading); line-height: 1.6; }
.ye-signin-step__head p { margin: 0; color: var(--ye-flow-muted); font-size: 16px; line-height: 1.9; }
.ye-signin-step__cart { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--ye-flow-border); border-radius: 14px; background: #fff; font-size: 15px; }
.ye-signin-step__label { color: var(--ye-flow-accent); font-weight: var(--ye-w-bold); }
.ye-signin-step__cart ul { flex: 1 1 100%; margin: 0; padding: 0 18px 0 0; color: var(--ye-flow-ink); font-weight: 700; line-height: 1.9; }
.ye-signin-step__total { font-weight: var(--ye-w-bold); }
.ye-signin-step__cart a { margin-right: auto; color: var(--ye-flow-accent); font-weight: var(--ye-w-semibold); }
.ye-signin-step__hint { margin: 12px 0 0; color: var(--ye-flow-muted); font-size: 14px; line-height: 1.9; }
@media (max-width: 480px) {
	.mustreg.ye-signin-step { padding: 16px; }
	.ye-signin-step__head { align-items: flex-start; gap: 12px; }
	.ye-signin-step__head img { width: 52px; }
	.ye-signin-step__head h2 { font-size: 19px; }
	.ye-signin-step__head p { font-size: 15px; }
}

/* Course page buy bar. */
.ye-buybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 990; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ye-flow-border); background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 24px rgba(41, 34, 53, .1); }
.ye-buybar[hidden] { display: none; }
.ye-buybar__inner { display: flex; align-items: center; gap: 12px; max-width: 1140px; margin: 0 auto; }
.ye-buybar__info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ye-buybar__name { overflow: hidden; color: var(--ye-flow-ink); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.ye-buybar__price { color: var(--ye-flow-accent); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.6; }
/* Only the price to pay; the crossed-out one stays in the buy box above. */
.ye-buybar__price del,
.ye-buybar__price .screen-reader-text { display: none; }
.ye-buybar__price ins { text-decoration: none; }
.ye-buybar .ye-buybar__button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 20px; border-radius: 12px; background: var(--ye-flow-buy); color: #fff; font-size: 16px; font-weight: var(--ye-w-bold); text-decoration: none; white-space: nowrap; }
.ye-buybar .ye-buybar__button:hover,
.ye-buybar .ye-buybar__button:focus { background: var(--ye-flow-buy-dark); color: #fff; text-decoration: none; }
.ye-buybar .ye-buybar__free { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--ye-border-accent); border-radius: 12px; color: var(--ye-flow-accent); font-size: 15px; font-weight: var(--ye-w-semibold); text-decoration: none; white-space: nowrap; }
.ye-buybar .ye-buybar__free:hover { background: var(--ye-flow-tint); text-decoration: none; }
body.ye-buybar-open { padding-bottom: 76px; }
body.ye-buybar-open .supbtn { bottom: 72px; }
/* The support chat launcher moves up so it never covers the course name and price. */
body.ye-buybar-open .yet-support { inset-block-end: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 420px) {
	.ye-buybar { padding-right: 12px; padding-left: 12px; }
	.ye-buybar__inner { gap: 8px; }
	.ye-buybar .ye-buybar__button { padding: 8px 14px; font-size: 15px; }
	.ye-buybar .ye-buybar__free { width: 48px; justify-content: center; padding: 0; }
	.ye-buybar .ye-buybar__free span { display: none; }
}
