/* Cart, checkout, order payment and the page after payment (inc/checkout-flow.php, woocommerce/cart/, woocommerce/checkout/).
   Same tokens as the header and the course page; one amount to read and one green button on every page.
   Rules start with body.ye-flow .woocommerce so they win over WooCommerce's own cart and checkout styles. */
body.ye-flow {
	--yf-deep: var(--ye-deep);
	--yf-accent: var(--ye-accent);
	--yf-ink: var(--ye-ink);
	--yf-muted: var(--ye-muted);
	--yf-border: var(--ye-border);
	--yf-tint: var(--ye-tint);
	--yf-buy: var(--ye-buy);
	--yf-buy-dark: var(--ye-buy-strong);
	--yf-sale: var(--ye-sale);
	--yf-head: 74px;
	background: var(--ye-tint-soft);
}
body.ye-flow .small-hero:not(.sadoo-countdown-banner) { display: none; }
body.ye-flow .single-main-page { padding: 22px 0 72px; }
body.ye-flow .woocommerce { direction: rtl; color: var(--yf-ink); }
body.ye-flow .woocommerce *,
body.ye-flow .woocommerce *::before,
body.ye-flow .woocommerce *::after { box-sizing: border-box; }
body.ye-flow .woocommerce a:hover,
body.ye-flow .woocommerce a:focus { text-decoration: none; }
body.ye-flow .woocommerce [hidden] { display: none !important; }

/* ----- Steps and heading ----- */
.ye-flow-head { margin: 0 0 22px; text-align: center; }
.ye-steps ol { display: flex; align-items: center; justify-content: center; max-width: 560px; margin: 0 auto 16px; padding: 0; list-style: none; }
.ye-steps__item { display: flex; align-items: center; color: var(--yf-muted); font-size: 14px; font-weight: var(--ye-w-semibold); line-height: 1.6; white-space: nowrap; }
.ye-steps__item + .ye-steps__item { flex: 1 1 auto; }
.ye-steps__item + .ye-steps__item::before { content: ""; flex: 1 1 auto; min-width: 18px; height: 2px; margin: 0 10px; border-radius: 2px; background: var(--yf-border); }
.ye-steps__item.is-done + .ye-steps__item::before { background: var(--yf-buy); }
.ye-steps__item a { display: inline-flex; align-items: center; color: inherit; }
.ye-steps__item a:hover .ye-steps__label { color: var(--yf-accent); }
.ye-steps__dot { display: inline-grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; margin-left: 8px; border: 2px solid var(--yf-border); border-radius: 50%; background: var(--ye-surface); color: var(--yf-muted); font-size: 14px; font-weight: var(--ye-w-heading); line-height: 1; }
.ye-steps__item.is-current { color: var(--yf-ink); }
.ye-steps__item.is-current .ye-steps__dot { border-color: var(--yf-accent); background: var(--ye-fill-accent); color: #fff; box-shadow: 0 0 0 4px rgba(111, 63, 192, .14); }
.ye-steps__item.is-done .ye-steps__dot { border-color: var(--yf-buy); background: var(--yf-buy); color: #fff; font-size: 12px; }
.ye-flow-head__title { margin: 0; color: var(--yf-ink); font-size: 28px; font-weight: var(--ye-w-display); line-height: 1.5; }
.ye-flow-head__text { margin: 4px 0 0; color: var(--yf-muted); font-size: 15.5px; line-height: 1.9; }

/* ----- Buttons ----- */
body.ye-flow .woocommerce .ye-btn-pay,
body.ye-flow .woocommerce a.button.alt.ye-btn-pay,
body.ye-flow .woocommerce #payment #place_order.button,
body.ye-flow .woocommerce .ye-paybar__button {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin: 0; padding: 10px 20px;
	border: 0; border-radius: 14px; background: var(--yf-buy); box-shadow: 0 10px 24px rgba(31, 174, 91, .28);
	color: #fff; font-family: inherit; font-size: 17.5px; font-weight: var(--ye-w-heading); line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}
body.ye-flow .woocommerce .ye-btn-pay:hover,
body.ye-flow .woocommerce .ye-btn-pay:focus,
body.ye-flow .woocommerce #payment #place_order.button:hover,
body.ye-flow .woocommerce #payment #place_order.button:focus,
body.ye-flow .woocommerce .ye-paybar__button:hover { background: var(--yf-buy-dark); color: #fff; }
body.ye-flow .woocommerce .ye-btn-pay:active,
body.ye-flow .woocommerce #payment #place_order.button:active { transform: translateY(1px); }
body.ye-flow .woocommerce .ye-btn-pay:focus-visible,
body.ye-flow .woocommerce #payment #place_order.button:focus-visible { outline: 3px solid rgba(31, 174, 91, .35); outline-offset: 2px; }
body.ye-flow .woocommerce .ye-btn-pay i { font-size: 18px; }
body.ye-flow .woocommerce .ye-btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 1px solid var(--ye-border-accent); border-radius: 12px; background: var(--ye-surface); color: var(--yf-accent); font-size: 15.5px; font-weight: var(--ye-w-bold); text-decoration: none; }
body.ye-flow .woocommerce .ye-btn-soft:hover { border-color: var(--yf-accent); color: var(--yf-deep); }

/* Notices sit as quiet cards in the same width. */
body.ye-flow .woocommerce .woocommerce-message,
body.ye-flow .woocommerce .woocommerce-info,
body.ye-flow .woocommerce .woocommerce-error { margin: 0 0 16px; padding: 14px 52px 14px 18px; border: 1px solid var(--yf-border); border-top: 0; border-radius: 14px; background: var(--ye-surface); color: var(--yf-ink); font-size: 15px; line-height: 1.9; box-shadow: 0 6px 18px rgba(46, 31, 84, .05); }
body.ye-flow .woocommerce .woocommerce-message::before,
body.ye-flow .woocommerce .woocommerce-info::before,
body.ye-flow .woocommerce .woocommerce-error::before { top: 14px; right: 18px; left: auto; }
body.ye-flow .woocommerce .woocommerce-message::before { color: var(--yf-buy); }
body.ye-flow .woocommerce .woocommerce-info::before { color: var(--yf-accent); }
body.ye-flow .woocommerce .woocommerce-error { border-color: var(--ye-sale-line); background: var(--ye-sale-tint); }
body.ye-flow .woocommerce .woocommerce-message .button,
body.ye-flow .woocommerce .woocommerce-info .button { float: left; margin: 0 12px 0 0; padding: 4px 14px; border-radius: 10px; background: var(--yf-tint); color: var(--yf-accent); font-size: 14px; font-weight: var(--ye-w-bold); }

/* ----- Cart ----- */
.ye-cart { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
body.ye-flow .woocommerce .ye-cart .ye-cart__aside { float: none; width: auto; margin: 0; }
@media (min-width: 992px) and (min-height: 640px) {
	.ye-cart__aside { position: sticky; top: calc(var(--yf-head) + 16px); }
	body.admin-bar .ye-cart__aside { top: calc(var(--yf-head) + 48px); }
}
body.ye-flow .woocommerce table.ye-cart-table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; border-radius: 0; background: transparent; }
body.ye-flow .woocommerce table.ye-cart-table tbody { display: flex; flex-direction: column; gap: 12px; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item {
	display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; grid-template-areas: "thumb name total remove" "thumb qty total remove";
	align-items: center; column-gap: 16px; padding: 14px; border: 1px solid var(--yf-border); border-radius: 18px; background: var(--ye-surface); box-shadow: 0 6px 18px rgba(46, 31, 84, .05);
}
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item td { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: right; }
body.ye-flow .woocommerce table.ye-cart-table td.product-thumbnail { display: block; grid-area: thumb; align-self: start; min-width: 0; }
body.ye-flow .woocommerce table.ye-cart-table td.product-thumbnail img { display: block; width: 92px; height: 62px; margin: 0; border-radius: 12px; background: var(--yf-tint); object-fit: cover; box-shadow: none; }
body.ye-flow .woocommerce table.ye-cart-table td.product-name { grid-area: name; align-self: end; }
.ye-cart-item__name { display: block; color: var(--yf-ink); font-size: 16.5px; font-weight: var(--ye-w-heading); line-height: 1.7; }
body.ye-flow .woocommerce .ye-cart-item__name a { color: inherit; }
body.ye-flow .woocommerce .ye-cart-item__name a:hover { color: var(--yf-accent); }
.ye-cart-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; color: var(--yf-muted); font-size: 13.5px; font-weight: var(--ye-w-semibold); line-height: 1.7; }
.ye-cart-item__sale { padding: 0 8px; border-radius: 999px; background: var(--ye-sale-tint); color: var(--yf-sale); font-size: 12.5px; font-weight: var(--ye-w-bold); }
body.ye-flow .woocommerce table.ye-cart-table td.product-name dl.variation { margin: 4px 0 0; color: var(--yf-muted); font-size: 13px; }
body.ye-flow .woocommerce table.ye-cart-table td.product-quantity { grid-area: qty; align-self: start; margin-top: 6px; }
body.ye-flow .woocommerce table.ye-cart-table td.ye-cart-quantity--static { display: none; }
body.ye-flow .woocommerce table.ye-cart-table td.product-quantity .quantity .qty { width: 72px; height: 38px; border: 1px solid var(--yf-border); border-radius: 10px; text-align: center; }
body.ye-flow .woocommerce table.ye-cart-table td.product-subtotal { grid-area: total; color: var(--yf-ink); font-size: 16.5px; font-weight: var(--ye-w-heading); text-align: left; white-space: nowrap; }
body.ye-flow .woocommerce table.ye-cart-table td.product-subtotal del { display: block; color: var(--ye-faint); font-size: 13px; font-weight: var(--ye-w-medium); }
body.ye-flow .woocommerce table.ye-cart-table td.product-subtotal ins { text-decoration: none; }
body.ye-flow .woocommerce table.ye-cart-table td.product-remove { grid-area: remove; align-self: center; }
body.ye-flow .woocommerce table.ye-cart-table td.product-remove a.remove {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: 36px; padding: 0 12px; border: 1px solid var(--yf-border); border-radius: 10px;
	background: var(--ye-surface); color: var(--yf-muted) !important; font-size: 13.5px; font-weight: var(--ye-w-semibold); line-height: 1;
}
body.ye-flow .woocommerce table.ye-cart-table td.product-remove a.remove:hover { border-color: var(--ye-sale-line); background: var(--ye-sale-tint); color: var(--ye-sale) !important; }
body.ye-flow .woocommerce table.ye-cart-table td.product-remove a.remove i { font-size: 13px; }

/* A course inside a package: a light line under the package card. */
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child { display: flex; align-items: center; margin-top: -8px; padding: 8px 16px; border-style: dashed; background: var(--ye-tint-soft); box-shadow: none; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-thumbnail,
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-subtotal,
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-quantity,
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-remove { display: none; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-name { display: flex; align-items: center; gap: 8px; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child td.product-name > i { color: var(--yf-buy); font-size: 13px; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item--child .ye-cart-item__name { font-size: 14.5px; font-weight: var(--ye-w-semibold); }

/* Coupon and the (rarely needed) update button under the cards. */
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-actions-row { display: block; }
body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-actions-row td.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; text-align: right; }
.ye-coupon { flex: 1 1 260px; border: 1px dashed var(--ye-border-accent); border-radius: 14px; background: var(--ye-surface); }
.ye-coupon > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--yf-accent); font-size: 15px; font-weight: var(--ye-w-bold); list-style: none; cursor: pointer; }
.ye-coupon > summary::-webkit-details-marker { display: none; }
.ye-coupon > summary::after { content: "+"; margin-right: auto; color: var(--yf-muted); font-size: 18px; font-weight: var(--ye-w-medium); }
.ye-coupon[open] > summary::after { content: "−"; }
body.ye-flow .woocommerce table.cart td.actions .ye-coupon .coupon { display: flex; flex-wrap: wrap; gap: 8px; float: none; padding: 0 14px 14px; }
body.ye-flow .woocommerce table.cart td.actions .ye-coupon .coupon .input-text { flex: 1 1 160px; float: none; width: auto; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--yf-border); border-radius: 12px; font-size: 15px; }
body.ye-flow .woocommerce table.cart td.actions .ye-coupon .coupon .input-text:focus { border-color: var(--yf-accent); outline: 0; box-shadow: 0 0 0 3px rgba(111, 63, 192, .12); }
body.ye-flow .woocommerce table.cart td.actions .ye-coupon .coupon .button { display: inline-flex; flex: 0 0 auto; align-items: center; float: none; width: auto; height: 46px; margin: 0; padding: 0 18px; border: 1px solid var(--ye-border-accent); border-radius: 12px; background: var(--yf-tint); color: var(--yf-accent); font-size: 15px; font-weight: var(--ye-w-bold); }
body.ye-flow .woocommerce table.cart td.actions .ye-coupon .coupon .coupon-error-notice { flex-basis: 100%; width: auto; margin: 0; text-align: right; }
body.ye-flow .woocommerce table.cart td.actions .ye-cart-update { width: auto; height: 46px; margin: 0; padding: 0 18px; border: 1px solid var(--yf-border); border-radius: 12px; background: var(--ye-surface); color: var(--yf-ink); font-size: 14.5px; font-weight: var(--ye-w-semibold); }
/* Courses are bought one each; "update cart" only matters when some quantity can change. */
.ye-cart__form:not(:has(.ye-cart-quantity--editable)) .ye-cart-update { display: none !important; }

/* Summary card: one amount, one button. */
body.ye-flow .woocommerce .cart-collaterals .cart_totals.ye-sum { float: none; width: 100%; padding: 20px; border: 1px solid var(--yf-border); border-radius: 20px; background: var(--ye-surface); box-shadow: 0 18px 44px rgba(46, 31, 84, .09); }
.ye-sum__title { margin: 0 0 10px; color: var(--yf-ink); font-size: 19px; font-weight: var(--ye-w-display); line-height: 1.6; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table { width: 100%; margin: 0 0 14px; border: 0; border-collapse: collapse; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table th,
body.ye-flow .woocommerce .cart_totals table.ye-sum__table td { width: auto; padding: 9px 0; border: 0; border-top: 1px solid var(--ye-tint-strong); background: none; color: var(--yf-muted); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.7; vertical-align: middle; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr:first-child th,
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr:first-child td { border-top: 0; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table td { color: var(--yf-ink); text-align: left; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.cart-discount td { color: var(--yf-buy-dark); }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table a.woocommerce-remove-coupon { margin-right: 6px; color: var(--ye-sale); font-size: 13px; font-weight: var(--ye-w-bold); }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total th,
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total td { padding-top: 14px; color: var(--yf-ink); font-size: 16px; font-weight: var(--ye-w-heading); }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total th small { display: block; color: var(--yf-muted); font-size: 13px; font-weight: var(--ye-w-semibold); }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total td { font-size: 23px; font-weight: var(--ye-w-display); white-space: nowrap; }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total td strong { font-weight: var(--ye-w-display); }
body.ye-flow .woocommerce .cart_totals table.ye-sum__table tr.order-total td small { display: block; font-size: 12px; font-weight: var(--ye-w-medium); white-space: normal; }
body.ye-flow .woocommerce .cart_totals .wc-proceed-to-checkout { padding: 0; }
body.ye-flow .woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button { margin: 0; font-size: 17.5px; }
.ye-sum__next { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--yf-muted); font-size: 14px; font-weight: var(--ye-w-semibold); line-height: 1.8; text-align: center; }
.ye-sum__next i { color: var(--yf-accent); }
.ye-cart-trust { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ye-tint-strong); list-style: none; color: var(--yf-muted); font-size: 14px; line-height: 2; }
.ye-cart-trust li { display: flex; align-items: baseline; gap: 8px; }
.ye-cart-trust i { color: var(--yf-buy); }

/* Phones: the amount and the button stay at the bottom while the summary's own button is off screen. */
.ye-paybar { display: none; }
@media (max-width: 991px) {
	.ye-cart { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	body.ye-flow .woocommerce .ye-paybar:not([hidden]) {
		position: fixed; right: 0; bottom: 0; left: 0; z-index: 985; display: flex; align-items: center; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--yf-border); background: rgb(var(--ye-surface-rgb) / .97); box-shadow: 0 -8px 24px rgba(41, 34, 53, .1);
	}
	.ye-paybar__total { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; color: var(--yf-muted); font-size: 12.5px; font-weight: var(--ye-w-bold); line-height: 1.5; }
	.ye-paybar__total strong { overflow: hidden; color: var(--yf-ink); font-size: 17px; font-weight: var(--ye-w-display); text-overflow: ellipsis; white-space: nowrap; }
	.ye-paybar__total strong small { display: none; }
	body.ye-flow .woocommerce .ye-paybar .ye-paybar__button { flex: 0 0 auto; width: auto; min-height: 50px; padding: 8px 18px; font-size: 16px; box-shadow: none; }
	body.ye-paybar-open { padding-bottom: 80px; }
	body.ye-paybar-open .yet-support { inset-block-end: calc(88px + env(safe-area-inset-bottom)); }
	body.ye-paybar-open .supbtn { bottom: 84px; }
}

/* Course suggestions under the cart. */
.ye-cart-more { clear: both; margin: 32px 0 0; }
body.ye-flow .ye-cart-more h2 { margin: 0 0 14px; color: var(--yf-ink); font-size: 20px; font-weight: var(--ye-w-display); line-height: 1.6; }
.ye-cart-more__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.ye-flow .ye-cart-more__item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--yf-border); border-radius: 16px; background: var(--ye-surface); color: var(--yf-ink); text-decoration: none; }
body.ye-flow .ye-cart-more__item:hover { border-color: var(--ye-border-accent); text-decoration: none; }
body.ye-flow .ye-cart-more__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--yf-tint); }
.ye-cart-more__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.ye-cart-more__name { font-size: 15.5px; font-weight: var(--ye-w-bold); line-height: 1.7; }
.ye-cart-more__price { color: var(--yf-accent); font-size: 15px; font-weight: var(--ye-w-bold); }
.ye-cart-more__price del { color: var(--ye-faint); font-size: 13px; font-weight: var(--ye-w-medium); }
.ye-cart-more__price ins { text-decoration: none; }
.ye-cart-more__action { margin-top: auto; color: var(--yf-accent); font-size: 14px; font-weight: var(--ye-w-semibold); }

/* Empty cart */
.ye-cart-empty .cart-empty { max-width: 560px; margin: 0 auto; padding: 34px 24px; border: 1px solid var(--yf-border); border-radius: 22px; background: var(--ye-surface); text-align: center; box-shadow: 0 18px 44px rgba(46, 31, 84, .07); }
.ye-cart-empty__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 50%; background: var(--yf-tint); color: var(--yf-accent); font-size: 28px; }
/* The guide's strip under the empty cart (inc/guide-card.php). */
.ye-cart-empty .ygc { max-width: 560px; margin: 16px auto 0; }
.ye-cart-empty h2 { margin: 0 0 6px; color: var(--yf-ink); font-size: 22px; font-weight: var(--ye-w-display); }
.ye-cart-empty p { margin: 0 0 18px; color: var(--yf-muted); font-size: 15.5px; line-height: 1.9; }
.ye-cart-empty__actions { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }

/* ----- Checkout ----- */
.ye-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "main aside"; gap: 24px; align-items: start; }
.ye-co__main { display: grid; grid-area: main; gap: 16px; min-width: 0; }
.ye-co__aside { grid-area: aside; min-width: 0; }
@media (min-width: 992px) and (min-height: 640px) {
	.ye-co__aside { position: sticky; top: calc(var(--yf-head) + 16px); }
	body.admin-bar .ye-co__aside { top: calc(var(--yf-head) + 48px); }
}
.ye-co__card { padding: 20px; border: 1px solid var(--yf-border); border-radius: 20px; background: var(--ye-surface); box-shadow: 0 10px 30px rgba(46, 31, 84, .06); }
body.ye-flow .woocommerce .ye-co__title,
body.ye-flow .woocommerce .ye-co #order_review_heading { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; color: var(--yf-ink); font-size: 19px; font-weight: var(--ye-w-display); line-height: 1.6; }
.ye-co__num { display: inline-grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--yf-tint); color: var(--yf-accent); font-size: 15px; font-weight: var(--ye-w-display); }

/* Buyer's details: a two-column form, folded to one line when it is already complete. */
body.ye-flow .woocommerce .ye-co #customer_details { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields > h3 { display: none; }
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper .form-row { float: none; width: auto; margin: 0 0 6px; padding: 0; }
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper .form-row-wide,
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper #billing_address_1_field,
body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper #billing_address_2_field { grid-column: 1 / -1; }
body.ye-flow .woocommerce .ye-co .form-row label { margin: 0 0 4px; color: var(--yf-ink); font-size: 14.5px; font-weight: var(--ye-w-semibold); line-height: 1.8; }
body.ye-flow .woocommerce .ye-co .form-row .required { visibility: visible; color: var(--ye-sale); text-decoration: none; }
body.ye-flow .woocommerce .ye-co .form-row .input-text,
body.ye-flow .woocommerce .ye-co .form-row select { height: 48px; padding: 0 14px; border: 1px solid var(--ye-border-strong); border-radius: 12px; background: var(--ye-surface); color: var(--yf-ink); font-size: 16px; line-height: 1.5; }
body.ye-flow .woocommerce .ye-co .form-row textarea.input-text { height: 96px; padding: 10px 14px; }
body.ye-flow .woocommerce .ye-co .form-row .input-text:focus,
body.ye-flow .woocommerce .ye-co .form-row select:focus { border-color: var(--yf-accent); outline: 0; box-shadow: 0 0 0 3px rgba(111, 63, 192, .12); }
body.ye-flow .woocommerce .ye-co .form-row.woocommerce-invalid .input-text { border-color: #d6336c; }
body.ye-flow .woocommerce .ye-co .form-row.woocommerce-invalid label { color: var(--ye-sale); }
body.ye-flow .woocommerce .ye-co #billing_email,
body.ye-flow .woocommerce .ye-co #billing_phone { direction: ltr; text-align: left; }
.ye-co__filled { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--yf-tint); }
.ye-co__filled p { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--yf-ink); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.9; overflow-wrap: anywhere; }
body.ye-flow .woocommerce .ye-co__edit { flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid var(--ye-border-accent); border-radius: 10px; background: var(--ye-surface); color: var(--yf-accent); font-family: inherit; font-size: 14px; font-weight: var(--ye-w-bold); cursor: pointer; }
.ye-co__contact.is-filled #customer_details { display: none; }

/* Payment methods as cards; the chosen one is outlined. The App 2 may hide the others with [hidden]. */
body.ye-flow .woocommerce .ye-co #payment,
body.ye-flow.woocommerce-order-pay .woocommerce #payment { overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.ye-flow .woocommerce #payment ul.payment_methods { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; list-style: none; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; border: 1.5px solid var(--yf-border); border-radius: 14px; background: var(--ye-surface); line-height: 1.7; transition: border-color .15s ease, background-color .15s ease; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method[hidden] { display: none !important; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method::before,
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method::after { content: none; display: none; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--yf-accent); background: var(--ye-tint-soft); box-shadow: 0 0 0 3px rgba(111, 63, 192, .10); }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > input.input-radio { flex: 0 0 auto; width: 20px; height: 20px; margin: 0 16px 0 0; accent-color: var(--yf-accent); cursor: pointer; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; margin: 0; padding: 14px 12px 14px 16px; color: var(--yf-ink); font-size: 16px; font-weight: var(--ye-w-bold); line-height: 1.6; cursor: pointer; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label img { max-height: 26px; width: auto; margin: 0 0 0 auto; float: none; }
body.ye-flow .woocommerce #payment ul.payment_methods li.wc_payment_method > label img + img { margin-right: 0; }
body.ye-flow .woocommerce #payment div.payment_box { flex: 1 1 100%; margin: 0; padding: 0 16px 16px; border-radius: 0 0 14px 14px; background: transparent; color: var(--yf-muted); font-size: 14.5px; line-height: 1.9; }
body.ye-flow .woocommerce #payment div.payment_box::before { content: none; display: none; }
body.ye-flow .woocommerce #payment div.payment_box p:last-child { margin-bottom: 0; }
body.ye-flow .woocommerce #payment div.form-row.place-order { margin: 14px 0 0; padding: 0; }
body.ye-flow .woocommerce #payment .woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; font-size: 14px; }
.ye-paytotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: var(--yf-tint); color: var(--yf-ink); font-size: 15px; font-weight: var(--ye-w-semibold); }
.ye-paytotal strong { color: var(--yf-ink); font-size: 21px; font-weight: var(--ye-w-display); text-align: left; }
.ye-paytotal strong small { display: block; font-size: 12px; font-weight: var(--ye-w-medium); }
body.ye-flow .woocommerce #payment #place_order.button { float: none; margin: 0; }
.ye-co__secure { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0; color: var(--yf-muted); font-size: 13.5px; line-height: 1.8; }
.ye-co__secure i { color: var(--yf-buy); }

/* The Iran site's note for foreign payers: a quiet line instead of a second big button above the payment methods. */
body.ye-flow .woocommerce .ye-co .yfpr-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; padding: 10px 14px; border: 1px dashed #f0c36d; border-radius: 12px; text-align: right; font-size: 14px; }
body.ye-flow .woocommerce .ye-co .yfpr-notice__text { flex: 1 1 200px; margin: 0; font-size: 14px; }
body.ye-flow .woocommerce .ye-co .yfpr-notice__text p { margin: 0; }
body.ye-flow .woocommerce .ye-co .yfpr-notice__button { padding: 0; background: none; color: var(--ye-info) !important; font-size: 14px; font-weight: var(--ye-w-bold); text-decoration: underline; }
body.ye-flow .woocommerce .ye-co .yfpr-notice__button:hover { background: none; }

/* Order summary beside the form. */
body.ye-flow .woocommerce .ye-co #order_review { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Rows as flex lines (a table would squeeze the course names), each with its amount on the left. */
body.ye-flow .woocommerce table.ye-review { display: block; width: 100%; margin: 0; overflow: visible; border: 0; border-radius: 0; }
body.ye-flow .woocommerce table.ye-review tbody,
body.ye-flow .woocommerce table.ye-review tfoot { display: block; }
body.ye-flow .woocommerce table.ye-review tr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--ye-tint-strong); }
body.ye-flow .woocommerce table.ye-review tbody tr:first-child { border-top: 0; padding-top: 0; }
body.ye-flow .woocommerce table.ye-review th,
body.ye-flow .woocommerce table.ye-review td { display: block; padding: 0; border: 0; background: none; color: var(--yf-ink); font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.7; }
body.ye-flow .woocommerce table.ye-review td.product-name { display: flex; flex: 1 1 0; align-items: center; gap: 12px; min-width: 0; }
body.ye-flow .woocommerce table.ye-review .ye-review__image { flex: 0 0 auto; width: 64px; height: 44px; margin: 0; border-radius: 10px; background: var(--yf-tint); object-fit: cover; box-shadow: none; }
.ye-review__name { min-width: 0; font-size: 15px; font-weight: var(--ye-w-bold); line-height: 1.7; }
.ye-review__name .ye-review__one { display: none; }
.ye-review__name dl.variation { margin: 2px 0 0; color: var(--yf-muted); font-size: 13px; font-weight: var(--ye-w-medium); }
body.ye-flow .woocommerce table.ye-review td.product-total { flex: 0 0 auto; text-align: left; white-space: nowrap; }
body.ye-flow .woocommerce table.ye-review td.product-total del { display: block; color: var(--ye-faint); font-size: 13px; font-weight: var(--ye-w-medium); }
body.ye-flow .woocommerce table.ye-review td.product-total ins { text-decoration: none; }
body.ye-flow .woocommerce table.ye-review tr.ye-review__child { padding: 0 76px 6px 0; border-top: 0; }
body.ye-flow .woocommerce table.ye-review tr.ye-review__child td.product-name { gap: 8px; color: var(--yf-muted); font-size: 13.5px; }
body.ye-flow .woocommerce table.ye-review tr.ye-review__child td.product-total { display: none; }
body.ye-flow .woocommerce table.ye-review tr.ye-review__child .ye-review__name { font-size: 13.5px; font-weight: var(--ye-w-semibold); }
body.ye-flow .woocommerce table.ye-review tr.ye-review__child td.product-name > i { color: var(--yf-buy); font-size: 12px; }
body.ye-flow .woocommerce table.ye-review tfoot th { color: var(--yf-muted); font-weight: var(--ye-w-bold); text-align: right; }
body.ye-flow .woocommerce table.ye-review tfoot td { text-align: left; }
body.ye-flow .woocommerce table.ye-review tfoot tr.cart-discount td { color: var(--yf-buy-dark); }
body.ye-flow .woocommerce table.ye-review tfoot tr.order-total { padding-top: 14px; }
body.ye-flow .woocommerce table.ye-review tfoot tr.order-total th,
body.ye-flow .woocommerce table.ye-review tfoot tr.order-total td { color: var(--yf-ink); font-size: 16px; font-weight: var(--ye-w-heading); }
body.ye-flow .woocommerce table.ye-review tfoot tr.order-total td { font-size: 22px; font-weight: var(--ye-w-display); white-space: nowrap; }
body.ye-flow .woocommerce table.ye-review tfoot tr.order-total td small { display: block; font-size: 12px; font-weight: var(--ye-w-medium); white-space: normal; }
body.ye-flow .woocommerce table.ye-review tfoot tr.yet-gmc-equivalent-row { padding-top: 0; border-top: 0; }
body.ye-flow .woocommerce table.ye-review tfoot tr.yet-gmc-equivalent-row td { flex: 1 1 100%; text-align: right; }

/* Coupon line above the form. */
body.ye-flow .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info { padding: 10px 44px 10px 16px; border-style: dashed; box-shadow: none; font-size: 14.5px; }
body.ye-flow .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info::before { top: 10px; }
body.ye-flow .woocommerce form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; padding: 14px; border: 1px dashed var(--ye-border-accent); border-radius: 14px; background: var(--ye-surface); }
body.ye-flow .woocommerce form.checkout_coupon[style*="display: none"],
body.ye-flow .woocommerce form.checkout_coupon[style*="display:none"] { display: none !important; }
body.ye-flow .woocommerce form.checkout_coupon > p:not(.form-row) { flex-basis: 100%; margin: 0; color: var(--yf-muted); font-size: 14px; }
body.ye-flow .woocommerce form.checkout_coupon .form-row { float: none; width: auto; margin: 0; padding: 0; }
body.ye-flow .woocommerce form.checkout_coupon .form-row-first { flex: 1 1 200px; }
body.ye-flow .woocommerce form.checkout_coupon .input-text { height: 46px; border: 1px solid var(--yf-border); border-radius: 12px; }
body.ye-flow .woocommerce form.checkout_coupon .button { height: 46px; padding: 0 18px; border: 1px solid var(--ye-border-accent); border-radius: 12px; background: var(--yf-tint); color: var(--yf-accent); font-weight: var(--ye-w-bold); }

@media (max-width: 991px) {
	.ye-co__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "main"; gap: 16px; }
}

/* ----- Order payment page (failed payment tried again, old app builds) ----- */
body.ye-flow--pay .woocommerce form#order_review { max-width: 720px; margin: 0 auto; padding: 20px; border: 1px solid var(--yf-border); border-radius: 20px; background: var(--ye-surface); box-shadow: 0 10px 30px rgba(46, 31, 84, .06); }
body.ye-flow--pay .woocommerce form#order_review table.shop_table { margin: 0 0 16px; border: 0; border-radius: 0; }
body.ye-flow--pay .woocommerce form#order_review table.shop_table th,
body.ye-flow--pay .woocommerce form#order_review table.shop_table td { padding: 10px 0; border: 0; border-top: 1px solid var(--ye-tint-strong); background: none; font-size: 15px; }
body.ye-flow--pay .woocommerce form#order_review table.shop_table tfoot tr:last-child td,
body.ye-flow--pay .woocommerce form#order_review table.shop_table tfoot tr:last-child th { color: var(--yf-ink); font-size: 18px; font-weight: var(--ye-w-display); }

/* ----- The page after payment ----- */
.ye-done { max-width: 760px; margin: 0 auto; }
.ye-done__card { margin: 0 0 20px; padding: 26px 24px 22px; border: 1px solid var(--yf-border); border-radius: 22px; background: var(--ye-surface); text-align: center; box-shadow: 0 18px 44px rgba(46, 31, 84, .08); }
.ye-done__card .ye-steps ol { margin-bottom: 18px; }
.ye-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--ye-green-tint); color: var(--yf-buy); font-size: 28px; }
.ye-done__card--review .ye-done__icon,
.ye-done__card--waiting .ye-done__icon { background: var(--ye-gold-tint); color: #b77700; }
.ye-done__card--failed .ye-done__icon,
.ye-done__card--cancelled .ye-done__icon { background: var(--ye-sale-tint); color: var(--ye-sale); }
body.ye-flow .woocommerce .ye-done__title { margin: 0; color: var(--yf-ink); font-size: 25px; font-weight: var(--ye-w-display); line-height: 1.6; }
body.ye-flow .woocommerce .ye-done__text { margin: 6px auto 0; max-width: 560px; padding: 0; border: 0; background: none; color: var(--yf-muted); font-size: 16px; line-height: 1.9; box-shadow: none; }
body.ye-flow .woocommerce .ye-done__text::before { content: none; }
.ye-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ye-done__actions:empty { display: none; }
body.ye-flow .woocommerce .ye-done__actions .ye-btn-pay { width: auto; min-width: 240px; }
body.ye-flow .woocommerce ul.ye-done__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
body.ye-flow .woocommerce ul.ye-done__facts li { display: flex; flex-direction: column; float: none; margin: 0; padding: 10px 12px; border: 1px solid var(--ye-tint-strong); border-radius: 12px; background: var(--ye-tint-soft); color: var(--yf-muted); font-size: 13px; font-weight: var(--ye-w-semibold); line-height: 1.7; text-align: center; text-transform: none; }
body.ye-flow .woocommerce ul.ye-done__facts::before,
body.ye-flow .woocommerce ul.ye-done__facts::after,
body.ye-flow .woocommerce ul.ye-done__facts li::before,
body.ye-flow .woocommerce ul.ye-done__facts li::after { content: none; display: none; }
body.ye-flow .woocommerce ul.ye-done__facts li strong { margin-top: 2px; color: var(--yf-ink); font-size: 15px; font-weight: var(--ye-w-heading); text-transform: none; }
/* The App 2's way back to the app, as the page's main button. */
body.ye-flow .woocommerce .ye-done__app .woocommerce-info { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0 0; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--yf-tint); box-shadow: none; text-align: center; }
body.ye-flow .woocommerce .ye-done__app .woocommerce-info::before { content: none; }
body.ye-flow .woocommerce .ye-done__app .woocommerce-info p { margin: 0; color: var(--yf-ink); font-size: 14.5px; }
body.ye-flow .woocommerce .ye-done__app .woocommerce-info .button { display: inline-flex; align-items: center; justify-content: center; float: none; min-width: 240px; min-height: 54px; margin: 0; padding: 8px 22px; border-radius: 14px; background: var(--yf-buy); color: #fff; font-size: 17px; font-weight: var(--ye-w-heading); }
body.ye-flow .woocommerce .ye-done__app .woocommerce-info .button:hover { background: var(--yf-buy-dark); }
.ye-done__card--plain { padding-bottom: 18px; }
body.ye-flow .woocommerce .ye-done section.woocommerce-order-details,
body.ye-flow .woocommerce .ye-done section.woocommerce-customer-details { margin: 0 0 20px; padding: 20px; border: 1px solid var(--yf-border); border-radius: 20px; background: var(--ye-surface); }

/* ----- The app's checkout: no website menu, cart or sign-in; a quiet footer ----- */
body.ye-app-pay .sc-nav-wrap,
body.ye-app-pay .sc-actions > :not(.sc-secure),
body.ye-app-pay .sc-foot__app,
body.ye-app-pay .sc-trust,
body.ye-app-pay .sc-foot__main,
body.ye-app-pay .sc-region { display: none !important; }
.sc-secure { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--ye-green-line); border-radius: 12px; background: var(--ye-green-tint); color: var(--ye-green); font-size: 14px; font-weight: var(--ye-w-bold); white-space: nowrap; }
body.ye-app-pay .sc-head__in { justify-content: space-between; }

@media (max-width: 767px) {
	body.ye-flow .single-main-page { padding-top: 14px; }
	.ye-flow-head { margin-bottom: 16px; }
	.ye-flow-head__title { font-size: 23px; }
	.ye-flow-head__text { font-size: 14.5px; }
	.ye-steps__item { font-size: 12.5px; }
	.ye-steps__dot { width: 26px; height: 26px; margin-left: 6px; font-size: 13px; }
	.ye-steps__item + .ye-steps__item::before { min-width: 10px; margin: 0 6px; }
	body.ye-flow .woocommerce table.ye-cart-table tr.ye-cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb qty qty" "thumb total total"; column-gap: 12px; padding: 12px; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-thumbnail img { width: 72px; height: 50px; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-name { align-self: start; }
	.ye-cart-item__name { font-size: 15.5px; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-subtotal { margin-top: 6px; font-size: 16px; text-align: right; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-subtotal del { display: inline; margin-left: 6px; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-remove { align-self: start; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-remove a.remove { width: 36px; padding: 0; }
	body.ye-flow .woocommerce table.ye-cart-table td.product-remove a.remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ye-cart-more__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	body.ye-flow .ye-cart-more__item { flex-direction: row; }
	body.ye-flow .ye-cart-more__image { flex: 0 0 104px; width: 104px; height: 100%; aspect-ratio: auto; }
	.ye-co__card { padding: 16px; border-radius: 18px; }
	body.ye-flow .woocommerce .ye-co .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.ye-co__filled { align-items: flex-start; }
	.ye-co__filled bdi { display: block; }
	.ye-co__dot { display: none; }
	.ye-done__card { padding: 20px 16px 18px; }
	body.ye-flow .woocommerce .ye-done__title { font-size: 21px; }
	body.ye-flow .woocommerce .ye-done__actions .ye-btn-pay,
	body.ye-flow .woocommerce .ye-done__actions .ye-btn-soft { width: 100%; min-width: 0; }
	.sc-secure { height: 36px; padding: 0 10px; font-size: 13px; }
}
@media (max-width: 380px) {
	.ye-steps__label { font-size: 12px; }
	.ye-steps__item:not(.is-current) .ye-steps__label { max-width: 4.6em; overflow: hidden; text-overflow: ellipsis; }
}
