/* Native EDD is the no-JavaScript layout. Guided rules require .yce-checkout. */
.yce-checkout {
	--yce-accent:#524fcc;
	--yce-ink:#1f2d38;
	--yce-muted:#66727c;
	--yce-line:#c9ced2;
	--yce-panel:#fff;
	display:grid;
	grid-template-columns:minmax(0,2fr) minmax(20rem,24.375rem);
	gap:2rem;
	align-items:start;
	width:100%;
	max-width:76rem;
	margin-inline:auto;
	container-type:inline-size;
}
.yce-checkout *, .yce-checkout *::before, .yce-checkout *::after { box-sizing:border-box; }
.yce-checkout #edd_checkout_form_wrap, .yce-checkout #edd_purchase_form, .yce-checkout #edd_purchase_form_wrap, .yce-checkout fieldset, .yce-checkout .edd-form-group, .yce-checkout .form-row { min-width:0; max-width:100%; }
.yce-checkout #edd_checkout_form_wrap { grid-column:1; grid-row:2; width:100%; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] { display:flex; flex-direction:column; width:100%; margin:0; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap { display:contents; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] #edd_checkout_login_register,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] #edd_register_fields,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] #edd_checkout_user_info { display:contents; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card[data-yce-card="email"] { order:20; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-stage-email.yce-stage-piece { order:21; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next-wrap[data-yce-stage="email"] { order:22; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card[data-yce-card="details"] { order:30; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-stage-details.yce-stage-piece { order:31; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next-wrap[data-yce-stage="details"] { order:32; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_cc_address,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > .yce-stage-details,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap > #edd_cc_address,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap > .yce-stage-details { order:30; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > .yce-card[data-yce-card="review"] { order:40; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_payment_mode_select_wrap { order:41; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_cc_fields,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > .yce-stage-review,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap > #edd_cc_fields,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap > .yce-stage-review { order:42; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #yindle-checkout-edd-reference-wrap { order:43; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_submit,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_purchase_form_wrap > #edd_purchase_submit { order:44; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > #edd_discount_code { order:60; margin:1.25rem 0 0!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] > .yce-reassurance { order:70; }

.yce-checkout .yce-guide { order:10; display:flex; flex-direction:column; align-items:flex-start; gap:1rem; margin:0 0 1.5rem; }
.yce-checkout > .yce-guide { grid-column:1 / -1; grid-row:1; width:100%; }
.yce-checkout .yce-intro { margin:0; color:var(--yce-muted); font-size:1rem; line-height:1.65; }
.yce-checkout .yce-progress { display:flex; width:100%; margin:0; padding:0; list-style:none; }
.yce-checkout .yce-progress > li { position:relative; flex:1 1 0; min-width:0; margin:0; padding:0; }
.yce-checkout .yce-progress > li:not(:last-child)::after { content:""; position:absolute; z-index:0; top:1.125rem; left:calc(50% + 1.125rem); right:calc(-50% + 1.125rem); height:1px; background:var(--yce-line); }
.yce-checkout .yce-progress > li[data-yce-status="complete"]::after { background:var(--yce-accent); }
.yce-checkout .yce-progress__step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:.5rem; width:100%; min-height:4rem; padding:0 .35rem; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; color:var(--yce-muted)!important; font:inherit; font-size:.78rem; line-height:1.3; text-align:center; cursor:pointer; }
.yce-checkout .yce-progress__number { display:grid; place-items:center; width:2.25rem; height:2.25rem; border:1px solid var(--yce-line); border-radius:50%; background:var(--yce-panel); color:var(--yce-muted); font-weight:700; }
.yce-checkout .yce-progress > li[data-yce-status="current"] .yce-progress__step,
.yce-checkout .yce-progress > li[data-yce-status="complete"] .yce-progress__step { color:var(--yce-ink)!important; font-weight:700; }
.yce-checkout .yce-progress > li[data-yce-status="current"] .yce-progress__number { border-color:var(--yce-accent); background:var(--yce-accent); color:#fff; }
.yce-checkout .yce-progress > li[data-yce-status="complete"] .yce-progress__number { border-color:var(--yce-accent); color:var(--yce-accent); }

.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card { position:relative; display:flex; align-items:stretch; width:100%; min-height:4.25rem; margin:.875rem 0 0!important; border:1px solid var(--yce-line)!important; border-radius:0!important; background:var(--yce-panel); box-shadow:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card[hidden] { display:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card[data-yce-card="email"] { margin-top:0!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-card[data-yce-status="current"] { margin-bottom:0!important; border-color:var(--yce-accent)!important; border-bottom-color:transparent!important; }
.yce-checkout .yce-card__toggle { display:grid; grid-template-columns:2.25rem minmax(0,1fr) 1.5rem; align-items:center; gap:.875rem; width:100%; min-width:0; padding:1rem 1.25rem; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; color:var(--yce-ink)!important; font:inherit; text-align:left; cursor:pointer; }
.yce-checkout .yce-card__number { display:grid; place-items:center; width:2.25rem; height:2.25rem; border:1px solid var(--yce-line); border-radius:50%; color:var(--yce-muted); font-size:.875rem; font-weight:700; }
.yce-checkout .yce-card[data-yce-status="current"] .yce-card__number { border-color:var(--yce-accent); background:var(--yce-accent); color:#fff; }
.yce-checkout .yce-card[data-yce-status="complete"] .yce-card__number { border-color:var(--yce-accent); color:var(--yce-accent); }
.yce-checkout .yce-card__content { display:block; min-width:0; }
.yce-checkout .yce-card__title { display:block; font-size:1rem; font-weight:700; line-height:1.35; }
.yce-checkout .yce-card__summary { display:block; margin-top:.2rem; overflow:hidden; color:var(--yce-muted); font-size:.875rem; font-weight:400; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.yce-checkout .yce-card__chevron { color:var(--yce-muted); font-size:1.3rem; line-height:1; transform:rotate(-90deg); transition:transform .16s ease; }
.yce-checkout .yce-card[data-yce-status="current"] .yce-card__chevron { transform:rotate(0); }
.yce-checkout .yce-card__change { align-self:center; margin-right:1.25rem; padding:.25rem 0; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; color:var(--yce-accent)!important; font:inherit; font-size:.85rem; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
.yce-checkout .yce-card:not([data-yce-status="complete"]) .yce-card__change { display:none; }
.yce-checkout .yce-card[data-yce-status="complete"] .yce-card__chevron { display:none; }

.yce-checkout #edd_purchase_form[data-yce-ready="true"] fieldset { margin:0!important; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] fieldset > legend { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-stage-piece { width:100%; margin:0!important; padding:.45rem 1.5rem!important; border-inline:1px solid var(--yce-accent)!important; border-radius:0!important; background:var(--yce-panel)!important; box-shadow:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-stage-first { padding-top:1rem!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-stage-last { padding-bottom:1rem!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next-wrap { width:100%; margin:0 0 .875rem!important; padding:.5rem 1.5rem 1.5rem!important; border:0 solid var(--yce-accent)!important; border-width:0 1px 1px!important; border-radius:0!important; background:var(--yce-panel)!important; box-shadow:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next-wrap[hidden] { display:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next { min-height:3rem; margin-top:1rem; padding:.75rem 1.4rem!important; border-radius:3px!important; white-space:normal; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.yce-checkout #edd_purchase_form[data-yce-ready="true"] select,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] textarea { width:100%!important; max-width:100%!important; min-height:3.125rem; padding:.75rem .875rem!important; border:1px solid #aeb5ba!important; border-radius:0!important; background:#fff!important; box-shadow:none!important; color:var(--yce-ink)!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] label { color:var(--yce-ink); font-weight:650; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .edd-description { margin:.25rem 0 .5rem; color:var(--yce-muted); font-size:.84rem; line-height:1.45; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] #edd-purchase-button,
.yce-checkout #edd_purchase_form[data-yce-ready="true"] .yce-next { min-height:3.125rem; border:1px solid var(--yce-accent)!important; border-radius:3px!important; background:var(--yce-accent)!important; color:#fff!important; box-shadow:none!important; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"] #edd-purchase-button { width:100%; }
.yce-checkout .yce-show-all, .yce-checkout .yce-summary-toggle { padding:.25rem 0; border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; color:var(--yce-accent)!important; font:inherit; font-size:.875rem; cursor:pointer; text-decoration:underline; text-underline-offset:.25em; }
.yce-checkout > .yce-summary-toggle { display:none; }
.yce-checkout .yce-reassurance { margin:1rem 0 0; color:var(--yce-muted); font-size:.875rem; line-height:1.5; }
.yce-checkout .yce-field-error { display:block; margin-top:.35rem; color:#a31621; font-size:.875rem; }
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="email"] .yce-stage-details,
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="email"] .yce-stage-review,
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="details"] .yce-stage-email,
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="details"] .yce-stage-review,
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="review"] .yce-stage-email,
.yce-checkout #edd_purchase_form[data-yce-ready="true"]:not([data-yce-show-all="true"])[data-yce-active="review"] .yce-stage-details { display:none!important; }
.yce-checkout :focus-visible { outline:3px solid var(--yce-accent)!important; outline-offset:3px; }
.yce-checkout[data-yce-preset="neutral"] { --yce-accent:#263238; --yce-panel:#fff; }

.yce-checkout #edd_checkout_cart_form { grid-column:2; grid-row:2; position:sticky; top:1.5rem; width:100%; min-width:0; margin:0; padding:1.5rem; border:1px solid var(--yce-line)!important; border-radius:0!important; background:var(--yce-panel); box-shadow:none!important; }
.yce-checkout .yce-order-summary__title { margin:0 0 1rem; color:var(--yce-ink); font-size:1.2rem; line-height:1.3; }
.yce-checkout #edd_checkout_cart { width:100%!important; max-width:100%!important; margin:0!important; table-layout:auto!important; border:0!important; }
.yce-checkout #edd_checkout_cart thead { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
.yce-checkout #edd_checkout_cart tbody, .yce-checkout #edd_checkout_cart tfoot { display:block; width:100%; }
.yce-checkout #edd_checkout_cart tr.edd_cart_item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.35rem 1rem; width:100%; padding:.75rem 0; border-bottom:1px solid var(--yce-line); }
.yce-checkout #edd_checkout_cart tr.edd_cart_item td { display:block; width:auto!important; min-width:0; padding:0!important; border:0!important; text-align:left; overflow-wrap:anywhere; }
.yce-checkout #edd_checkout_cart tr.edd_cart_item td.edd_cart_item_price { text-align:right; white-space:nowrap; }
.yce-checkout #edd_checkout_cart tr.edd_cart_item td.edd_cart_actions { grid-column:1 / -1; font-size:.82rem; }
.yce-checkout #edd_checkout_cart tfoot tr { display:block; width:100%; }
.yce-checkout #edd_checkout_cart tfoot th { display:flex; justify-content:space-between; gap:1rem; width:100%; padding:.55rem 0!important; border:0!important; text-align:left; }
.yce-checkout #edd_checkout_cart tfoot tr:last-child th { margin-top:.35rem; padding-top:.9rem!important; border-top:1px solid var(--yce-line)!important; font-size:1.05rem; }

/* EDD 3.7 installs the Checkout block by default. These rules flatten only its
   known presentation wrappers; EDD keeps ownership of every form control. */
.yce-checkout.wp-block-edd-checkout { display:grid; grid-template-columns:minmax(0,2fr) minmax(20rem,24.375rem); gap:2rem; }
.yce-checkout--block > .edd-blocks__purchase-form { grid-column:1; grid-row:2; min-width:0; }
.yce-checkout--block > .edd-blocks__cart { grid-column:2; grid-row:2; position:sticky; top:1.5rem; min-width:0; }
.yce-checkout--block > .edd-blocks__logged-in { grid-column:1 / -1; grid-row:2; }
.yce-checkout--block.edd-blocks__checkout--logged-in > .edd-blocks__purchase-form,
.yce-checkout--block.edd-blocks__checkout--logged-in > .edd-blocks__cart { grid-row:3; }
.yce-checkout--block #edd_checkout_cart_form,
.yce-checkout--block-inner #edd_checkout_cart_form { position:static; top:auto; }
.yce-checkout--block #edd_purchase_form[data-yce-ready="true"] .edd-blocks__user-details,
.yce-checkout--block #edd_purchase_form[data-yce-ready="true"] .edd-blocks__checkout-user,
.yce-checkout--block #edd_purchase_form[data-yce-ready="true"] .edd-checkout-block__personal-info,
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] .edd-blocks__user-details,
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] .edd-blocks__checkout-user,
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] .edd-checkout-block__personal-info { display:contents; }
.yce-checkout--block #edd_purchase_form[data-yce-ready="true"] .yce-stage-review.yce-stage-piece,
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] .yce-stage-review.yce-stage-piece { order:42; }
.yce-checkout--block #edd_purchase_form[data-yce-ready="true"] .yce-stage-review.yce-stage-last,
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] .yce-stage-review.yce-stage-last { border-bottom:1px solid var(--yce-accent)!important; padding-bottom:1.5rem!important; }
.yce-checkout--block #edd_checkout_cart,
.yce-checkout--block-inner #edd_checkout_cart { display:block; }
.yce-checkout--block .edd-blocks-cart__row,
.yce-checkout--block-inner .edd-blocks-cart__row { display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:.35rem 1rem; width:100%; padding:.75rem 0!important; border-bottom:1px solid var(--yce-line); }
.yce-checkout--block .edd-blocks-cart__row > :last-child,
.yce-checkout--block-inner .edd-blocks-cart__row > :last-child { min-width:0; text-align:right; }
.yce-checkout--block .edd-blocks-cart__row-header,
.yce-checkout--block-inner .edd-blocks-cart__row-header { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; }
.yce-checkout--block .edd-blocks-cart__row-footer,
.yce-checkout--block-inner .edd-blocks-cart__row-footer { display:flex!important; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; }
.yce-checkout--block .edd-blocks-cart__row-footer:last-child,
.yce-checkout--block-inner .edd-blocks-cart__row-footer:last-child { padding-top:1rem!important; border-top:1px solid var(--yce-line); border-bottom:0; }

/* The safe inner-block case has Cart, Personal Info and Payment Info as direct
   form children. Nested Columns deliberately retain EDD's native layout. */
.yce-checkout.wp-block-edd-checkout.yce-checkout--block-inner { display:grid; grid-template-columns:1fr; }
.yce-checkout--block-inner > #edd_purchase_form { grid-row:2; }
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] { display:grid; grid-template-columns:minmax(0,2fr) minmax(20rem,24.375rem); column-gap:2rem; align-items:start; }
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] > :not(.edd-blocks__cart):not(.yce-summary-toggle) { grid-column:1; }
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] > .edd-blocks__cart { grid-column:2; grid-row:1 / span 100; position:sticky; top:1.5rem; min-width:0; }
.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] > .yce-summary-toggle { display:none; grid-column:2; }

@media (max-width:1024px) {
	.yce-checkout { display:flex; flex-direction:column; gap:1rem; }
	.yce-checkout.wp-block-edd-checkout,
	.yce-checkout.wp-block-edd-checkout.yce-checkout--block-inner { display:flex; flex-direction:column; gap:1rem; }
	.yce-checkout > .yce-guide { order:0; margin-bottom:.5rem; }
	.yce-checkout > .yce-summary-toggle { display:inline-block; align-self:flex-start; order:1; }
	.yce-checkout #edd_checkout_cart_form { position:static; order:2; margin:0; }
	.yce-checkout #edd_checkout_form_wrap { order:3; }
	.yce-checkout:not(.yce-summary-open) #edd_checkout_cart_form { display:none; }
	.yce-checkout .yce-progress__step { font-size:.72rem; }
	.yce-checkout .yce-card__toggle { padding:1rem; }
	.yce-checkout .yce-card__change { margin-right:1rem; }
	.yce-checkout--block > .edd-blocks__logged-in { order:1; }
	.yce-checkout--block > .edd-blocks__cart { position:static; order:2; }
	.yce-checkout--block > .edd-blocks__purchase-form { order:3; }
	.yce-checkout--block:not(.yce-summary-open) > .edd-blocks__cart { display:none; }
	.yce-checkout--block-inner > #edd_purchase_form { order:1; }
	.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] { display:flex; flex-direction:column; gap:0; }
	.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] > .yce-summary-toggle { display:inline-block; align-self:flex-start; order:0; }
	.yce-checkout--block-inner #edd_purchase_form[data-yce-ready="true"] > .edd-blocks__cart { position:static; order:1; }
	.yce-checkout--block-inner:not(.yce-summary-open) #edd_purchase_form[data-yce-ready="true"] > .edd-blocks__cart { display:none; }
}
@container (max-width:44rem) {
	.yce-checkout #edd_checkout_form_wrap, .yce-checkout #edd_checkout_cart_form { width:100%; max-width:100%; }
	.yce-checkout #edd_checkout_cart { font-size:.92em; }
}
@media (prefers-reduced-motion:reduce) { .yce-checkout * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
