/* =============================================================================
   Ambikly Store — storefront layer on top of the ambikly.com design system.
   Tokens (--ak-*) come from assets/css/ambikly.css. Everything here is
   prefixed .aks- or scoped to EDD's own selectors.
   ============================================================================= */

:root {
	--aks-buy: var(--ak-action);          /* purchase button fill — swap for #22C55E for a green CTA */
	--aks-buy-hover: var(--ak-action-hover);
	--aks-danger-soft: #FEE2E2;
	--aks-info-soft: #E0F2FE;
	--aks-warn-soft: #FEF3C7;
	--aks-warn-text: #B45309;
	--aks-radius-card: 16px;
}

/* ── Page scaffold ──────────────────────────────────────────────────────── */
.aks-main { min-height: 60vh; }
.aks-page { padding: 32px 24px 72px; }
.aks-page-head { background: var(--ak-bg-alt); border-bottom: 1px solid var(--ak-border); }
.aks-page-head__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 32px; }
.aks-page-head .ak-crumbs { margin: 0 0 16px; }
.aks-page-head .ak-eyebrow { margin-bottom: 12px; }
.aks-page-title { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.aks-page-lead { margin: 10px 0 0; color: var(--ak-text-muted); font-size: 1.05rem; max-width: 62ch; }
.aks-page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.aks-article { max-width: 760px; margin: 0 auto; }
.aks-muted { color: var(--ak-text-soft); font-size: 14px; }
.aks-secure-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--ak-r-full); background: #fff; border: 1px solid var(--ak-border); font-size: 13px; font-weight: 600; color: var(--ak-text-muted); }
.aks-secure-pill .ak-icon { color: var(--ak-success); }

/* header account button sits before the "Download free" CTA */
.aks-header-account { margin-right: 8px; }
.ak-mobile-nav .ak-btn + .ak-btn { margin-top: 10px; }

/* ── Panels ─────────────────────────────────────────────────────────────── */
.aks-panel { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--aks-radius-card); padding: 24px; box-shadow: 0 1px 2px rgba(28,25,23,.04); }
.aks-panel--soft { background: var(--ak-bg-alt); box-shadow: none; }
.aks-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.aks-panel__title { font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.aks-panel__title--sm { font-size: 1rem; margin-bottom: 12px; }
.aks-panel__sub { margin: 4px 0 0; color: var(--ak-text-soft); font-size: 14px; }
.aks-panel__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.aks-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: var(--ak-r-full); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--ak-bg-alt); color: var(--ak-text-soft); border: 1px solid var(--ak-border); white-space: nowrap; }
.aks-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aks-status--success { background: var(--ak-success-soft); color: var(--ak-success-text); border-color: #BBF7D0; }
.aks-status--warn { background: var(--aks-warn-soft); color: var(--aks-warn-text); border-color: #FDE68A; }
.aks-status--danger { background: var(--aks-danger-soft); color: #B91C1C; border-color: #FECACA; }
.aks-status--info { background: var(--aks-info-soft); color: #0369A1; border-color: #BAE6FD; }

/* ── Trust list ─────────────────────────────────────────────────────────── */
.aks-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aks-trust li { display: flex; gap: 12px; align-items: flex-start; }
.aks-trust__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ak-primary-50); color: var(--ak-primary-text); display: inline-flex; align-items: center; justify-content: center; }
.aks-trust strong { display: block; font-size: 14.5px; line-height: 1.3; }
.aks-trust small { display: block; font-size: 13px; color: var(--ak-text-soft); line-height: 1.45; margin-top: 2px; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.aks-empty { text-align: center; max-width: 520px; margin: 24px auto; padding: 48px 24px; background: #fff; border: 1px dashed var(--ak-border-strong); border-radius: var(--aks-radius-card); }
.aks-empty__icon { display: inline-flex; width: 60px; height: 60px; border-radius: 16px; background: var(--ak-primary-50); color: var(--ak-primary-text); align-items: center; justify-content: center; margin-bottom: 18px; }
.aks-empty__title { font-size: 1.35rem; margin: 0 0 8px; }
.aks-empty__text { color: var(--ak-text-muted); margin: 0; }
.aks-empty__actions { justify-content: center; margin-top: 22px; }

/* ── Help row ───────────────────────────────────────────────────────────── */
.aks-help { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ak-text-soft); margin: 28px 0 0; }
.aks-help--center { justify-content: center; text-align: center; }
.aks-help .ak-icon { flex: none; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.aks-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.aks-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--ak-r-full); border: 1px solid var(--ak-border); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ak-text-soft); }
.aks-steps__num { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ak-bg-alt); font-size: 12px; font-weight: 800; }
.aks-steps li.is-current { border-color: var(--ak-action); color: var(--ak-text); }
.aks-steps li.is-current .aks-steps__num { background: var(--ak-action); color: #fff; }
.aks-steps li.is-done { color: var(--ak-success-text); border-color: #BBF7D0; background: var(--ak-success-soft); }
.aks-steps li.is-done .aks-steps__num { background: var(--ak-success); color: #fff; }

/* ── Key/value list ─────────────────────────────────────────────────────── */
.aks-kv { margin: 0; display: grid; gap: 10px; }
.aks-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ak-border); }
.aks-kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.aks-kv dt { font-size: 13px; font-weight: 600; color: var(--ak-text-soft); }
.aks-kv dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; word-break: break-word; }
.aks-kv__strong { font-size: 18px !important; font-weight: 800 !important; }

/* ── Next steps list ────────────────────────────────────────────────────── */
.aks-next { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: aks-step; display: grid; gap: 12px; }
.aks-next li { position: relative; padding-left: 36px; font-size: 14px; line-height: 1.5; color: var(--ak-text-muted); }
.aks-next li::before { counter-increment: aks-step; content: counter(aks-step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ak-action); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.aks-next strong { display: block; color: var(--ak-text); }

/* ── Dark state hero (confirmation / failed) ───────────────────────────── */
.aks-hero-state { background: var(--ak-bg-deep); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.aks-hero-state::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(60% 60% at 50% 0%, rgba(249,115,22,.28), transparent 70%); pointer-events: none; }
.aks-hero-state--danger::before { background: radial-gradient(60% 60% at 50% 0%, rgba(220,38,38,.28), transparent 70%); }
.aks-hero-state--pending::before { background: radial-gradient(60% 60% at 50% 0%, rgba(245,158,11,.28), transparent 70%); }
.aks-hero-state__inner { position: relative; text-align: center; max-width: 760px; }
.aks-hero-state__icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 20px; background: rgba(22,163,74,.18); color: #4ADE80; border: 1px solid rgba(74,222,128,.35); }
.aks-hero-state--danger .aks-hero-state__icon { background: rgba(220,38,38,.18); color: #FCA5A5; border-color: rgba(252,165,165,.35); }
.aks-hero-state--pending .aks-hero-state__icon { background: rgba(245,158,11,.18); color: #FCD34D; border-color: rgba(252,211,77,.35); }
.aks-hero-state .ak-eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.aks-hero-state h1 { color: #fff; font-size: clamp(2rem, 3vw + 1rem, 3.25rem); margin: 0 0 14px; }
.aks-hero-state__lead { color: rgba(255,255,255,.78); font-size: 1.1rem; margin: 0 auto; max-width: 60ch; }
.aks-hero-state__lead strong { color: #fff; }
.aks-hero-state__actions { justify-content: center; margin-top: 28px; }

/* ── Account: sign-in ───────────────────────────────────────────────────── */
.aks-auth { display: grid; gap: 32px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; align-items: start; }
.aks-auth--single { max-width: 520px; }
@media (min-width: 900px) { .aks-auth:not(.aks-auth--single) { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 56px; } }
.aks-auth__card { padding: 32px; }
.aks-auth__foot { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ak-text-soft); margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--ak-border); }
.aks-auth__aside h2 { font-size: 1.5rem; margin-bottom: 20px; }
.aks-trust--stack { gap: 18px; }

/* ── Account: shell ─────────────────────────────────────────────────────── */
.aks-account { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .aks-account { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; } }
.aks-account__nav { position: sticky; top: 88px; }
body.admin-bar .aks-account__nav { top: 116px; }
.aks-account__nav ul { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; overflow-x: auto; background: #fff; border: 1px solid var(--ak-border); border-radius: 14px; scrollbar-width: none; }
.aks-account__nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .aks-account__nav ul { flex-direction: column; overflow: visible; padding: 8px; } }
.aks-account__nav a[role="tab"] { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ak-text-muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s var(--ak-ease), color .15s var(--ak-ease); }
.aks-account__nav a[role="tab"] .ak-icon { color: var(--ak-text-dim); flex: none; }
.aks-account__nav a[role="tab"]:hover { background: var(--ak-bg-alt); color: var(--ak-text); }
.aks-account__nav a[role="tab"].is-active { background: var(--ak-primary-50); color: var(--ak-primary-text); }
.aks-account__nav a[role="tab"].is-active .ak-icon { color: var(--ak-action); }
.aks-account__nav-foot { display: none; margin-top: 16px; padding: 0 12px; }
@media (min-width: 900px) { .aks-account__nav-foot { display: grid; gap: 6px; } }
.aks-account__nav-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ak-text-soft); padding: 4px 0; }
.aks-account__nav-foot a:hover { color: var(--ak-primary-text); }
.aks-account__panel[hidden] { display: none; }
.aks-account__panel-head { margin-bottom: 20px; }
.aks-account__panel-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.aks-account__panel-head p { margin: 0; color: var(--ak-text-soft); }

/* Overview */
.aks-stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 24px; }
@media (min-width: 720px) { .aks-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.aks-stat { display: grid; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--ak-border); border-radius: 14px; color: var(--ak-text); transition: border-color .15s var(--ak-ease), transform .15s var(--ak-ease); }
.aks-stat:hover { border-color: var(--ak-action); transform: translateY(-1px); color: var(--ak-text); }
.aks-stat__icon { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--ak-primary-50); color: var(--ak-primary-text); margin-bottom: 6px; }
.aks-stat__value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.aks-stat__label { font-size: 13px; color: var(--ak-text-soft); font-weight: 600; }
.aks-overview-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .aks-overview-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.aks-orders-list { list-style: none; margin: 0; padding: 0; }
.aks-orders-list__row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ak-border); flex-wrap: wrap; }
.aks-orders-list__main { display: grid; gap: 2px; min-width: 0; }
.aks-orders-list__num { font-weight: 700; color: var(--ak-text); }
.aks-orders-list__num:hover { color: var(--ak-primary-text); }
.aks-orders-list__items { font-size: 13.5px; color: var(--ak-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.aks-orders-list__meta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ak-text-soft); flex-wrap: wrap; }
.aks-orders-list__total { font-weight: 800; color: var(--ak-text); font-size: 15px; }
.aks-quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aks-quick a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ak-border); color: var(--ak-text); transition: border-color .15s var(--ak-ease); }
.aks-quick a:hover { border-color: var(--ak-action); color: var(--ak-text); }
.aks-quick a > .ak-icon:last-child { margin-left: auto; color: var(--ak-text-dim); flex: none; }
.aks-quick__icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--ak-primary-50); color: var(--ak-primary-text); display: inline-flex; align-items: center; justify-content: center; }
.aks-quick__copy { display: grid; min-width: 0; }
.aks-quick__copy strong { font-size: 14px; }
.aks-quick__copy small { font-size: 12.5px; color: var(--ak-text-soft); }

/* ── Order history (block) ──────────────────────────────────────────────── */
.aks-orders .edd-blocks__orders-grid { display: grid !important; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .aks-orders .edd-blocks__orders-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .aks-orders .edd-blocks__orders-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.aks-orders .edd-blocks-orders__order { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--aks-radius-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s var(--ak-ease), box-shadow .15s var(--ak-ease); }
.aks-orders .edd-blocks-orders__order:hover { border-color: var(--ak-border-strong); box-shadow: var(--ak-shadow); }
.aks-orders .edd-blocks-orders__order-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.aks-orders .edd-blocks-orders__order-id { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.aks-orders .edd-blocks-orders__order-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--ak-r-full); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--ak-bg-alt); color: var(--ak-text-soft); border: 1px solid var(--ak-border); }
.aks-orders .edd-blocks-orders__order-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aks-orders .edd-blocks-orders__order-status.complete { background: var(--ak-success-soft); color: var(--ak-success-text); border-color: #BBF7D0; }
.aks-orders .edd-blocks-orders__order-status.pending, .aks-orders .edd-blocks-orders__order-status.processing, .aks-orders .edd-blocks-orders__order-status.partially_refunded { background: var(--aks-warn-soft); color: var(--aks-warn-text); border-color: #FDE68A; }
.aks-orders .edd-blocks-orders__order-status.failed, .aks-orders .edd-blocks-orders__order-status.refunded, .aks-orders .edd-blocks-orders__order-status.abandoned, .aks-orders .edd-blocks-orders__order-status.revoked { background: var(--aks-danger-soft); color: #B91C1C; border-color: #FECACA; }
.aks-orders .edd-blocks-orders__order-data { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.aks-orders .edd-blocks-orders__order-date { font-size: 13.5px; color: var(--ak-text-soft); }
.aks-orders .edd-blocks-orders__order-amount { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.aks-orders .edd-blocks-orders__order-details { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ak-border); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.aks-orders .edd-blocks-orders__order-details a { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.aks-orders .edd-blocks-orders__order-details a::after { content: "→"; transition: transform .15s var(--ak-ease); }
.aks-orders .edd-blocks-orders__order-details a:hover::after { transform: translateX(2px); }
.aks-orders .edd-blocks-orders__order-details .edd_invoice { font-size: 14px; }
.aks-orders .edd-blocks-orders__pagination { margin-top: 24px; }
.aks-orders > p { text-align: center; color: var(--ak-text-soft); }

/* ── Receipt / confirmation (block) ─────────────────────────────────────── */
.aks-receipt { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .aks-receipt--has-rail { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
.aks-receipt__doc { padding: 32px; }
@media (min-width: 720px) { .aks-receipt__doc { padding: 40px; } }
.aks-receipt__rail { display: grid; gap: 20px; position: sticky; top: 96px; }
.aks-rail-card__actions { display: grid; gap: 8px; margin-top: 18px; }
.aks-rail-card__actions .ak-btn { width: 100%; }
.aks-rail-help { padding: 4px 4px 0; }
.aks-rail-help h3 { font-size: 1rem; margin-bottom: 12px; }
.aks-rail-help__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }

.aks-confirmation { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .aks-confirmation { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.aks-confirmation__doc { padding: 28px; }
@media (min-width: 720px) { .aks-confirmation__doc { padding: 36px; } }
.aks-confirmation__rail { display: grid; gap: 20px; }
.aks-confirmation__rail .ak-btn { justify-self: start; }

/* Receipt block rows */
.aks-edd .edd-blocks__receipt h3, .aks-edd .edd-blocks__confirmation h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ak-text-soft); margin: 28px 0 12px; }
.aks-edd .edd-blocks__receipt > h3:first-child, .aks-edd .edd-blocks__confirmation > h3:first-child { margin-top: 0; }
.aks-edd .edd-blocks-receipt__totals { border: 1px solid var(--ak-border); border-radius: 12px; overflow: hidden; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--ak-border); font-size: 14.5px; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row:first-child { border-top: 0; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-header { background: var(--ak-bg-alt); font-weight: 700; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-label { color: var(--ak-text-soft); font-weight: 600; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value { font-weight: 600; text-align: right; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row.aks-row-total { background: var(--ak-primary-50); font-weight: 800; font-size: 16px; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row.aks-row-total .edd-blocks__row-label { color: var(--ak-text); }
.aks-edd .edd_receipt_payment_status { text-transform: capitalize; }
.aks-edd .edd_receipt_payment_status.complete { color: var(--ak-success-text); }
.aks-edd .edd_receipt_payment_status.pending, .aks-edd .edd_receipt_payment_status.processing { color: var(--aks-warn-text); }
.aks-edd .edd_receipt_payment_status.failed, .aks-edd .edd_receipt_payment_status.refunded { color: var(--ak-danger); }
.aks-edd .edd-blocks-receipt__items { display: grid; gap: 12px; }
.aks-edd .edd-blocks-receipt__row-item.edd-blocks-receipt__item { display: flex; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--ak-border); border-radius: 12px; background: #fff; }
.aks-edd .edd-blocks-receipt__item-details { min-width: 0; flex: 1; }
.aks-edd .edd-blocks-receipt__item-details > .edd-blocks__row-label { font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
.aks-edd .edd-blocks-receipt__item-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.aks-edd .edd_purchase_receipt_product_notes { font-size: 13.5px; color: var(--ak-text-soft); }
.aks-edd .edd_purchase_receipt_files, .aks-edd .edd_bundled_product_files { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aks-edd .edd_download_file_link, .aks-edd .edd-order-item__file-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: var(--ak-r-full); background: var(--ak-text); color: #fff; font-size: 13.5px; font-weight: 600; transition: background .15s var(--ak-ease), transform .15s var(--ak-ease); }
.aks-edd .edd_download_file_link::before, .aks-edd .edd-order-item__file-link::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.aks-edd .edd_download_file_link:hover, .aks-edd .edd-order-item__file-link:hover { background: var(--ak-action); color: #fff; transform: translateY(-1px); }
.aks-edd .edd_bundled_product { margin-top: 10px; }
.aks-edd .edd_bundled_product_name { font-weight: 600; font-size: 14px; }
.aks-edd .edd-blocks-receipt__item-sku, .aks-edd .edd-blocks-receipt__item-quantity { font-size: 13px; color: var(--ak-text-soft); margin-top: 6px; }
.aks-edd .edd-blocks__confirmation-details { margin-top: 20px; }
.aks-edd .edd-blocks__confirmation-details a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.aks-edd .edd-blocks__confirmation-details a::after { content: "→"; }
/* License keys inside receipts (Software Licensing) */
.aks-edd .edd_sl_license_key, .aks-edd .edd-sl-license-key, .aks-edd .edd_purchase_receipt_license_key, .aks-edd input.edd_sl_license_key { font-family: var(--ak-font-mono); font-size: 13px; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); border-radius: 8px; padding: 8px 10px; width: 100%; max-width: 100%; color: var(--ak-text); }

/* ── Failed page ────────────────────────────────────────────────────────── */
.aks-failed { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .aks-failed { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
.aks-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aks-reasons li { display: flex; gap: 14px; padding: 14px; border-radius: 12px; background: var(--ak-bg-alt); }
.aks-reasons__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--ak-border); color: var(--ak-primary-text); display: inline-flex; align-items: center; justify-content: center; }
.aks-reasons strong { display: block; font-size: 14.5px; }
.aks-reasons small { display: block; font-size: 13.5px; color: var(--ak-text-soft); margin-top: 2px; line-height: 1.45; }
.aks-failed .aks-panel--soft .ak-btn { margin: 4px 0 16px; }

/* =============================================================================
   EDD element overrides (tables, forms, alerts) — scoped to .aks-edd
   ============================================================================= */
.aks-edd { font-size: 15px; }
.aks-edd table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ak-border); border-radius: 12px; overflow: hidden; background: #fff; margin: 0 0 20px; font-size: 14.5px; }
.aks-edd table th, .aks-edd table td { padding: 14px 16px; text-align: left; vertical-align: top; border: 0; border-top: 1px solid var(--ak-border); }
.aks-edd table thead th { background: var(--ak-bg-alt); border-top: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-text-soft); }
.aks-edd table tbody tr:hover td { background: #FCFCFB; }
.aks-edd table a { font-weight: 600; }
.aks-edd td.edd_purchase_id { font-weight: 700; white-space: nowrap; }
.aks-edd td.edd_purchase_amount, .aks-edd span.edd_purchase_amount { font-weight: 700; white-space: nowrap; }
.aks-edd td.edd_purchase_date { color: var(--ak-text-soft); white-space: nowrap; }
.aks-edd .edd_purchase_status, .aks-edd .edd_subscription_status, .aks-edd .edd_sl_license_status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--ak-r-full); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); color: var(--ak-text-soft); }
.aks-edd .edd_purchase_status::before, .aks-edd .edd_subscription_status::before, .aks-edd .edd_sl_license_status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.aks-edd .edd_purchase_status.complete, .aks-edd .edd_sl_license_status.edd-sl-active, .aks-edd .edd_subscription_status.edd-sub-active, .aks-edd .edd_subscription_status.active { background: var(--ak-success-soft); color: var(--ak-success-text); border-color: #BBF7D0; }
.aks-edd .edd_purchase_status.pending, .aks-edd .edd_purchase_status.processing, .aks-edd .edd_sl_license_status.edd-sl-inactive, .aks-edd .edd_subscription_status.trialling { background: var(--aks-warn-soft); color: var(--aks-warn-text); border-color: #FDE68A; }
.aks-edd .edd_purchase_status.failed, .aks-edd .edd_purchase_status.refunded, .aks-edd .edd_purchase_status.abandoned, .aks-edd .edd_sl_license_status.edd-sl-expired, .aks-edd .edd_sl_license_status.edd-sl-disabled, .aks-edd .edd_subscription_status.cancelled, .aks-edd .edd_subscription_status.expired, .aks-edd .edd_subscription_status.failing { background: var(--aks-danger-soft); color: #B91C1C; border-color: #FECACA; }

/* Download history */
.aks-edd .edd_download_file { margin: 4px 6px 4px 0; display: inline-block; }
.aks-edd td.edd_download_download_name { font-weight: 600; }

/* License keys table */
.aks-edd #edd_sl_license_keys td.edd_sl_item { width: 40%; }
.aks-edd .edd_sl_item_name { font-weight: 700; margin-bottom: 8px; display: block; }
.aks-edd .edd-sl-child-licenses { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--ak-border); display: grid; gap: 10px; }
.aks-edd .edd_sl_item_expiration, .aks-edd .edd_sl_limit_label, .aks-edd .edd_sl_status_label, .aks-edd .edd_sl_expires_label { color: var(--ak-text-soft); }
.aks-edd td.edd_sl_details { line-height: 1.9; }
.aks-edd .edd_sl_no_management, .aks-edd .edd_sl_no_upgrades { color: var(--ak-text-dim); font-size: 13px; }
.aks-edd .edd_sl_purchase_number { font-size: 13px; }
.aks-edd .edd-sl-manage-license-header { font-size: 1.15rem; margin: 20px 0 8px; }
.aks-edd .edd-sl-manage-license-details { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ak-text-soft); font-size: 14px; margin-bottom: 16px; }
.aks-edd .edd-sl-manage-license-details code { font-size: 13px; }
.aks-edd .edd_sl_form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px; border: 1px dashed var(--ak-border-strong); border-radius: 12px; background: var(--ak-bg-alt); }
.aks-edd .edd_sl_form label { font-weight: 600; font-size: 14px; }
.aks-edd .edd_sl_form input[type="text"] { flex: 1 1 240px; }
.aks-edd .edd_sl_license_key_wrap { position: relative; }
.aks-key { display: flex; gap: 6px; align-items: stretch; }
.aks-key input { flex: 1; }
.aks-key__copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ak-border-strong); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ak-text-muted); cursor: pointer; }
.aks-key__copy:hover { border-color: var(--ak-action); color: var(--ak-primary-text); }
.aks-key__copy.is-copied { border-color: var(--ak-success); color: var(--ak-success-text); }

/* Subscriptions */
.aks-edd .edd_subscription_name { font-weight: 700; }
.aks-edd .edd_subscription_billing_cycle { color: var(--ak-text-soft); font-size: 13.5px; }
.aks-edd .edd_subscription_cancel, .aks-edd .edd-subscription-reactivate, .aks-edd .edd_subscription_renew, .aks-edd .edd_subscription_invoice { font-size: 14px; }
.aks-edd .edd_subscription_cancel { color: var(--ak-danger); }

/* Forms (profile editor, login, address) */
.aks-edd form fieldset { border: 1px solid var(--ak-border); border-radius: 12px; padding: 20px 20px 8px; margin: 0 0 18px; background: #fff; min-width: 0; }
.aks-edd form legend { font-weight: 700; font-size: 1rem; padding: 0 8px; margin-left: -8px; letter-spacing: -.01em; }
.aks-edd form fieldset > p { margin: 0 0 14px; }
.aks-edd form fieldset > p:has(> .edd-input), .aks-edd form fieldset > p:has(> .edd-select) { display: grid; gap: 6px; }
.aks-edd form label, .aks-edd .edd-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); }
.aks-edd .edd-description { font-size: 12.5px; color: var(--ak-text-dim); }
.aks-edd input.edd-input, .aks-edd input[type="text"], .aks-edd input[type="email"], .aks-edd input[type="password"], .aks-edd input[type="url"], .aks-edd select.edd-select, .aks-edd select, .aks-edd textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--ak-border-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--ak-text); transition: border-color .15s var(--ak-ease), box-shadow .15s var(--ak-ease); }
.aks-edd input:focus, .aks-edd select:focus, .aks-edd textarea:focus { outline: none; border-color: var(--ak-action); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.aks-edd input[type="checkbox"], .aks-edd input[type="radio"] { width: 16px; height: 16px; accent-color: var(--ak-action); }
.aks-edd input[type="submit"], .aks-edd button[type="submit"], .aks-edd .edd-submit, .aks-edd .button-primary, .aks-edd a.button, .aks-edd .edd_sl_form input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--ak-r-full); font: inherit; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; background: var(--ak-action); color: #fff; box-shadow: var(--ak-shadow-brand); transition: transform .15s var(--ak-ease), background .15s var(--ak-ease); width: auto; text-decoration: none; }
.aks-edd input[type="submit"]:hover, .aks-edd button[type="submit"]:hover, .aks-edd .edd-submit:hover, .aks-edd .button-primary:hover, .aks-edd a.button:hover { background: var(--ak-action-hover); color: #fff; transform: translateY(-1px); }
.aks-edd a.button.edd-manage-license-back, .aks-edd .edd-button-secondary { background: #fff; color: var(--ak-text); border-color: var(--ak-border-strong); box-shadow: none; }
.aks-edd a.button.edd-manage-license-back:hover { background: var(--ak-bg-alt); color: var(--ak-text); }
.aks-edd #edd_profile_submit_fieldset { border: 0; padding: 0; background: transparent; }
.aks-edd .edd-profile-emails { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.aks-edd .edd-profile-email { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: var(--ak-bg-alt); font-size: 14px; }
.aks-edd .edd-profile-email .actions a { font-size: 13px; margin-left: 10px; }
.aks-edd .edd-profile-email .actions .delete { color: var(--ak-danger); }
.aks-edd #edd_login_form fieldset { border: 0; padding: 0; margin: 0; }
.aks-edd #edd_login_form legend { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; padding: 0; }
.aks-edd #edd_login_form p { margin: 0 0 14px; display: grid; gap: 6px; }
.aks-edd #edd_login_form .edd-login-remember { display: flex; align-items: center; gap: 8px; }
.aks-edd #edd_login_form .edd-login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ak-text-muted); margin: 0; }
.aks-edd #edd_login_form .edd-login-submit { margin: 6px 0 0; }
.aks-edd #edd_login_form .edd-login-submit input[type="submit"] { width: 100%; }
.aks-edd #edd_login_form .edd-lost-password { display: block; text-align: center; font-size: 13.5px; margin-top: 14px; }

/* Alerts */
.aks-edd .edd-alert, .aks-edd .edd_errors, .aks-edd .edd_success, .aks-edd .edd-account-verified { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin: 0 0 16px; border: 1px solid var(--ak-border); background: var(--ak-bg-alt); }
.aks-edd .edd-alert-success, .aks-edd .edd_success { background: var(--ak-success-soft); border-color: #BBF7D0; color: var(--ak-success-text); }
.aks-edd .edd-alert-error, .aks-edd .edd_errors { background: var(--aks-danger-soft); border-color: #FECACA; color: #B91C1C; }
.aks-edd .edd-alert-warn { background: var(--aks-warn-soft); border-color: #FDE68A; color: var(--aks-warn-text); }
.aks-edd .edd-alert-info { background: var(--aks-info-soft); border-color: #BAE6FD; color: #0369A1; }
.aks-edd p.edd-no-purchases, .aks-edd .edd-no-downloads { text-align: center; padding: 40px 20px; border: 1px dashed var(--ak-border-strong); border-radius: 12px; color: var(--ak-text-soft); }

/* Pagination */
.aks-edd .edd-pagination, .aks-edd .edd_pagination, .aks-edd .navigation, .aks-orders .edd-blocks-orders__pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.aks-edd .edd-pagination a, .aks-edd .edd-pagination span, .aks-edd .edd_pagination a, .aks-edd .edd_pagination span, .aks-edd .navigation a, .aks-edd .navigation span, .aks-orders .edd-blocks-orders__pagination a, .aks-orders .edd-blocks-orders__pagination span { display: inline-flex; min-width: 36px; height: 36px; padding: 0 12px; align-items: center; justify-content: center; border-radius: var(--ak-r-full); border: 1px solid var(--ak-border); font-size: 14px; font-weight: 600; color: var(--ak-text-muted); }
.aks-edd .edd-pagination .current, .aks-edd .edd_pagination .current, .aks-orders .edd-blocks-orders__pagination .current { background: var(--ak-text); color: #fff; border-color: var(--ak-text); }

/* =============================================================================
   CHECKOUT — bare page, single card + guarantee rail
   ============================================================================= */
body.aks-bare { background: var(--ak-bg-alt); }
.aks-main--checkout { min-height: 100vh; display: flex; align-items: flex-start; }
.aks-co-wrap { max-width: 984px; padding-top: clamp(28px, 6vh, 64px); padding-bottom: 64px; }

/* Progress */
.aks-progress { margin-bottom: 26px; }
.aks-progress__labels { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 15px; color: var(--ak-primary-text); margin-bottom: 6px; }
.aks-progress__pct { font-size: 17px; }
.aks-progress__track { height: 18px; border-radius: var(--ak-r-full); background: #E7E5E0; overflow: visible; position: relative; }
.aks-progress__fill { position: relative; height: 100%; border-radius: var(--ak-r-full); background: var(--ak-action); }
.aks-progress__fill i { position: absolute; right: 0; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ak-action); transform: translate(45%, -50%); box-sizing: border-box; box-shadow: 0 2px 6px rgba(28,25,23,.18); }

/* Two columns */
.aks-co { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .aks-co { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; } }
.aks-co__card { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px -18px rgba(28,25,23,.18), 0 1px 3px rgba(28,25,23,.05); padding: 28px; }
@media (max-width: 480px) { .aks-co__card { padding: 20px 16px; } }
.aks-co__terms { text-align: center; font-size: 13.5px; color: var(--ak-text-soft); margin: 18px 0 0; }
.aks-co__terms a { text-decoration: underline; text-underline-offset: 2px; }

/* EDD wrapper → flex column so hooked title, cart, form and notice can be ordered */
.aks-co__card #edd_checkout_form_wrap.wp-block-edd-checkout { display: flex; flex-direction: column; gap: 0; }
.aks-co__title { order: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ak-border); }
.aks-co__card #edd_checkout_cart_form { order: 1; }
.aks-co__card #edd_purchase_form { order: 2; }
.aks-co__card #edd_checkout_form_wrap > p:first-child { order: 3; margin: 18px 0 0; font-size: 13px; color: var(--ak-text-dim); text-align: center; }
.aks-co__card #edd_checkout_form_wrap > p:first-child strong { font-weight: 600; color: var(--ak-text-soft); }

/* Cart box */
.aks-co__card #edd_checkout_cart { display: flex !important; flex-direction: column; border: 1px solid var(--ak-border-strong); border-radius: 8px; background: #fff; }
.aks-co__card .edd-blocks-cart__row-header { display: none !important; }
.aks-co__card .edd-blocks-cart__items { border-bottom: 0 !important; }
.aks-co__card .edd-blocks-cart__row { padding: 16px 20px !important; gap: 12px !important; border-top: 1px solid var(--ak-border); flex-wrap: nowrap !important; align-items: flex-start !important; }
.aks-co__card .edd-blocks-cart__items .edd-blocks-cart__row:first-child { border-top: 0; }
.aks-co__card .edd-blocks-cart__row > div:last-of-type:not(:first-of-type) { flex: 0 0 auto !important; }
.aks-co__card .edd_cart_item_name { display: block !important; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.aks-co__card .edd_checkout_cart_item_title { gap: 12px !important; }
.aks-co__card .edd_cart_item_image img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--ak-border); }
.aks-co__card .edd_cart_item_name p, .aks-co__card .edd_cart_item_name .eddr-cart-item-notice, .aks-co__card .edd_cart_item_name .edd_sl_upgrade_details, .aks-co__card .edd_cart_item_name .edd-sl-renewal-details { margin: 3px 0 0; font-size: 13px; font-style: italic; color: var(--ak-text-soft); font-weight: 400; line-height: 1.4; }
.aks-co__card .edd_cart_item_name .edd_cart_actions { display: inline-flex !important; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; font-style: normal; color: var(--ak-text-soft); }
.aks-co__card .edd_cart_item_name .edd_cart_actions label { font-weight: 600; }
.aks-co__card .edd_cart_item_name .edd_cart_actions input.edd-item-quantity { width: 3.5rem !important; padding: 4px 6px; border: 1px solid var(--ak-border-strong); border-radius: 6px; font: inherit; text-align: center; }
.aks-co__card .edd_cart_item_price, .aks-co__card .edd_cart_fee_amount { display: flex !important; align-items: center; justify-content: flex-end; gap: 10px !important; font-size: 17px; font-weight: 700; white-space: nowrap; padding-top: 2px; }
.aks-co__card .edd_cart_item_price .edd_cart_actions { display: inline-flex; }
.aks-co__card .edd-blocks-cart__action-remove { width: 18px !important; height: 18px !important; border-radius: 50%; border: 1px solid var(--ak-border-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/9px no-repeat !important; opacity: .7 !important; transition: opacity .15s, border-color .15s; }
.aks-co__card .edd-blocks-cart__action-remove:hover { opacity: 1 !important; border-color: var(--ak-danger); }
/* Fees (e.g. order bumps) */
.aks-co__card .edd_cart_fee { font-size: 15px; }
.aks-co__card .edd_cart_fee_label { flex: 1 1 auto; font-weight: 500; }
/* Subtotal / tax rows */
.aks-co__card .edd_cart_subtotal_row, .aks-co__card .edd_cart_tax_row { font-size: 14.5px; color: var(--ak-text-muted); justify-content: space-between; }
.aks-co__card .edd_cart_subtotal, .aks-co__card .edd_cart_tax { display: flex; justify-content: space-between; width: 100%; }
/* Discount row */
.aks-co__card .edd_cart_discount_row { padding: 12px 20px !important; }
.aks-co__card .edd_cart_discount { width: 100%; }
.aks-co__card .edd_discount.aks-discount { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; width: 100%; font-size: 15px; font-weight: 600; }
.aks-co__card .aks-discount__label { flex: 1 1 auto; min-width: 0; }
.aks-co__card .aks-discount__amount { color: var(--ak-danger); font-weight: 700; font-size: 16px; white-space: nowrap; }
.aks-co__card .aks-discount__remove { flex: none; width: 18px !important; height: 18px !important; border-radius: 50%; border: 1px solid var(--ak-border-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='2.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/9px no-repeat !important; opacity: .7 !important; }
.aks-co__card .aks-discount__remove:hover { opacity: 1 !important; border-color: var(--ak-danger); }
/* Footer row: total stays in the box, discount field is relocated below by JS */
.aks-co__card .edd-blocks-cart__row-footer.edd_cart_footer_row { justify-content: space-between; padding: 16px 20px !important; }
.aks-co__card .edd-blocks-cart__row-footer.edd_cart_footer_row > div:only-child { flex-grow: 1; }
.aks-co__card .edd_cart_total { display: flex !important; justify-content: space-between; align-items: baseline; width: 100%; flex: 1 1 100% !important; font-size: 17px; font-weight: 700; text-align: left !important; }
.aks-co__card .edd_cart_total .edd_cart_amount { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.aks-co__card .edd_cart_total .js-pp-edd-cart-total-amount:empty::after { content: "…"; color: var(--ak-text-dim); }
.aks-co__card .edd-blocks-cart__row-buttons { justify-content: flex-end; padding: 10px 20px !important; }
.aks-co__card .edd-blocks-cart__row-buttons .edd-submit { padding: 8px 14px; font-size: 13px; }

/* Coupon toggle + field */
.aks-co__card #edd_discount_code { margin: 18px 0 0; text-align: left; }
.aks-co__card #edd_discount_code.aks-moved { order: 1; margin: 22px 0 0; }
.aks-co__card #edd_checkout_cart #edd_discount_code { order: 10; padding: 0 20px 16px; }
.aks-co__card #edd_show_discount .edd_discount_link { background: none !important; border: 0 !important; padding: 0 !important; margin: 0; font: inherit; font-size: 16px; font-weight: 500; color: var(--ak-primary-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transform: none !important; }
.aks-co__card #edd_show_discount .edd_discount_link:hover { color: var(--ak-action-hover); }
.aks-co__card #edd-discount-code-wrap { display: none; }
.aks-co__card .edd-discount-code-field-wrap { display: flex; gap: 8px; align-items: stretch; max-width: 420px; }
.aks-co__card #edd-discount { flex: 1; padding: 11px 14px; border: 1px solid var(--ak-border-strong); border-radius: 8px; font: inherit; font-size: 15px; }
.aks-co__card #edd-discount:focus { outline: none; border-color: var(--ak-action); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.aks-co__card .edd-apply-discount { padding: 0 18px; border-radius: 8px; border: 1px solid var(--ak-text); background: var(--ak-text); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.aks-co__card .edd-apply-discount:hover { background: #000; }
.aks-co__card #edd-discount-error-wrap { display: block; margin-top: 8px; font-size: 13.5px; color: #B91C1C; }
.aks-co__card #edd-discount-error-wrap[style*="none"] { display: none !important; }
.aks-co__card .edd-discount-loader { display: inline-block; margin: 8px 0 0; }

/* Purchase form */
.aks-co__card #edd_purchase_form { margin-top: 22px; }
.aks-co__card #edd_purchase_form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.aks-co__card #edd_purchase_form .edd-blocks-form { border: 0 !important; padding: 0 !important; }
.aks-co__card #edd_purchase_form legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.aks-co__card .edd-blocks__checkout-user { margin-bottom: 20px; }
.aks-co__card #edd_checkout_user_info { display: grid; gap: 14px; margin-bottom: 20px; }
.aks-co__card #edd_checkout_user_info .edd-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); margin-bottom: 6px; }
.aks-co__card #edd_checkout_user_info .edd-input { width: 100%; padding: 11px 14px !important; border: 1px solid var(--ak-border-strong); border-radius: 8px; font: inherit; font-size: 15px; }
.aks-co__card #edd_checkout_user_info .edd-description { font-size: 12.5px; color: var(--ak-text-dim); margin: 4px 0 0; }
.aks-co__card #edd_terms_agreement { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--ak-border); border-radius: 8px; background: var(--ak-bg-alt); font-size: 14px; }
.aks-co__card #edd_terms_agreement .edd-terms { max-height: 220px; overflow: auto; font-size: 13px; color: var(--ak-text-muted); margin-bottom: 10px; }
.aks-co__card #edd_terms_agreement label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.aks-co__card #edd_terms_agreement input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ak-action); }
.aks-co__card #edd_terms_agreement .edd_terms_links { font-size: 13px; }
.aks-co__card #edd_final_total_wrap { display: none; }
.aks-co__card #edd_purchase_submit { display: grid; gap: 16px; justify-items: center; }
.aks-co__card .aks-buy-btn, .aks-co__card #edd-purchase-button { display: block; width: 100%; padding: 16px 24px; border: 0; border-radius: 8px; background: var(--aks-buy); color: #fff; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(249,115,22,.55); transition: background .15s var(--ak-ease), transform .15s var(--ak-ease); text-align: center; }
.aks-co__card .aks-buy-btn:hover, .aks-co__card #edd-purchase-button:hover { background: var(--aks-buy-hover); transform: translateY(-1px); }
.aks-co__card .aks-buy-btn:disabled, .aks-co__card #edd-purchase-button:disabled { opacity: .7; cursor: progress; transform: none; }
.aks-co__card #edd_purchase_submit .edd-loading-ajax { justify-self: center; }
.aks-co__card .edd-payment-icons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0; }
.aks-co__card .edd-payment-icons .payment-icon { display: block; height: 26px; width: auto; border: 1px solid var(--ak-border); border-radius: 4px; padding: 2px 4px; background: #fff; box-sizing: content-box; }
.aks-co__card .edd_errors, .aks-co__card .edd-alert { width: 100%; padding: 12px 14px; border-radius: 8px; font-size: 14px; background: var(--aks-danger-soft); border: 1px solid #FECACA; color: #B91C1C; margin: 0 0 12px; }
.aks-co__card .edd-cancel { margin: 0; font-size: 13px; }

/* Guarantee rail */
.aks-co__rail { padding-top: 2px; }
.aks-guarantee { display: grid; gap: 14px; justify-items: start; }
.aks-badge-seal { width: 120px; height: 120px; color: var(--ak-action); filter: drop-shadow(0 6px 14px rgba(249,115,22,.25)); }
.aks-guarantee__title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; margin: 6px 0 0; }
.aks-guarantee__text { font-size: 15px; line-height: 1.55; color: var(--ak-text-muted); margin: 0; }
.aks-guarantee__sig { margin-top: 6px; min-height: 48px; display: flex; align-items: flex-end; }
.aks-guarantee__sig img { max-height: 64px; width: auto; }
.aks-guarantee__sig-text { font-family: 'Caveat', 'Segoe Script', cursive; font-size: 40px; line-height: 1; color: var(--ak-text); }
.aks-founder { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.aks-founder__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 1px solid var(--ak-border); background: #fff; }
.aks-founder__photo img, .aks-founder__photo svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.aks-founder__copy strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.aks-founder__copy small { display: block; font-size: 14px; color: var(--ak-text-muted); line-height: 1.4; margin-top: 2px; }

/* ── Print (receipt) ────────────────────────────────────────────────────── */
@media print {
	.ak-header, .ak-footer, .aks-page-head__actions, .aks-receipt__rail, .aks-help, .skip-link, #wpadminbar { display: none !important; }
	.aks-page-head { background: none; border: 0; }
	.aks-receipt { grid-template-columns: 1fr !important; }
	.aks-receipt__doc { border: 0; box-shadow: none; padding: 0; }
	.aks-edd .edd_download_file_link { background: none; color: #000; border: 1px solid #000; }
}

/* ── Specificity guards against edd.css button colour classes (.blue/.gray…) ── */
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button,
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button:visited,
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button:focus { color: #fff; background: var(--aks-buy); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(249,115,22,.55); padding: 16px 24px; margin: 0; }
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button:hover,
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button.active { color: #fff; background: var(--aks-buy-hover); border-color: transparent; background-image: none; }
.aks-co__card #edd_purchase_submit #edd-purchase-button.edd-submit.button.edd-ajax-loading { padding-right: 24px; }
.aks-edd .edd-submit.button, .aks-edd .edd-submit.button.blue, .aks-edd .edd-submit.button.gray, .aks-edd .edd-submit.button.green, .aks-edd .edd-submit.button.dark-gray, .aks-edd .edd-submit.button.orange, .aks-edd .edd-submit.button.red, .aks-edd .edd-submit.button.purple, .aks-edd .edd-submit.button.yellow, .aks-edd .edd-submit.button.white,
.aks-edd .edd-submit.button:visited, .aks-edd .edd-submit.button:focus { color: #fff; background: var(--ak-action); border-color: transparent; padding: 12px 22px; margin: 0; }
.aks-edd .edd-submit.button:hover, .aks-edd .edd-submit.button.blue:hover { color: #fff; background: var(--ak-action-hover); border-color: transparent; }
.aks-edd a.button.edd-manage-license-back.edd-submit, .aks-edd a.button.edd-manage-license-back.edd-submit.blue, .aks-edd a.button.edd-manage-license-back.edd-submit.gray { background: #fff; color: var(--ak-text); border-color: var(--ak-border-strong); }

/* Profile editor: two-column field grid */
.aks-edd #edd_profile_personal_fieldset, .aks-edd #edd_profile_address_fieldset, .aks-edd #edd_profile_password_fieldset { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) {
	.aks-edd #edd_profile_personal_fieldset, .aks-edd #edd_profile_address_fieldset, .aks-edd #edd_profile_password_fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aks-edd #edd_profile_display_name_wrap, .aks-edd #edd_profile_primary_email_wrap, .aks-edd #edd_profile_emails_wrap, .aks-edd #edd_profile_billing_address_line_1_wrap, .aks-edd #edd_profile_billing_address_line_2_wrap { grid-column: 1 / -1; }
}
.aks-edd form fieldset > p:has(> .edd-input) label, .aks-edd form fieldset > p:has(> .edd-select) label { order: -1; }
/* License key field (Software Licensing ships its own borderless style) */
.aks-edd .aks-key input.edd_sl_license_key, .aks-edd input.edd_sl_license_key[readonly] { font-family: var(--ak-font-mono); font-size: 13px; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); border-radius: 8px; padding: 9px 12px; color: var(--ak-text); box-shadow: none; }
.aks-orders-list__main { flex: 1 1 220px; }
.aks-hero-state--neutral::before { background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.12), transparent 70%); }
.aks-hero-state--neutral .aks-hero-state__icon { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
/* Stray text nodes (an em dash) EDD prints before "Complete Purchase" */
.aks-orders .edd-blocks-orders__order-details { font-size: 0; }
.aks-orders .edd-blocks-orders__order-details > * { font-size: 14px; }
/* Strip edd.css's grey boxes around the discount toggle/field */
.aks-co__card #edd_checkout_form_wrap #edd_show_discount, .aks-co__card #edd_checkout_form_wrap #edd-discount-code-wrap, .aks-co__card #edd_checkout_form_wrap .edd-cart-adjustment { background: transparent; border: 0; padding: 0; color: inherit; }
.aks-co__card #edd_checkout_form_wrap #edd-discount-code-wrap { margin-top: 4px; }
@media (max-width: 480px) { .aks-co__card .edd-payment-icons .payment-icon { height: 22px; } }
/* Mobile: the account link lives in the sheet; keep the header to logo + CTA + toggle like ambikly.com */
@media (max-width: 1023px) { .aks-header-account { display: none !important; } }
/* Grid children must be allowed to shrink below their content width (tab strip, tables) */
.aks-account > *, .aks-overview-grid > *, .aks-receipt > *, .aks-confirmation > *, .aks-failed > *, .aks-auth > *, .aks-co > * { min-width: 0; }
.aks-edd { overflow-x: auto; }
/* EDD prefixes the discount markup with a bare "Discount:" text node */
.aks-co__card .edd_cart_discount { font-size: 0; }
.aks-co__card .edd_cart_discount .aks-discount { font-size: 15px; }
.aks-co__card .edd_cart_discount, .aks-co__card .aks-discount__label { text-align: left; }
.aks-co__card #edd_checkout_cart .edd_discount.aks-discount { margin-left: 0 !important; }

/* ── Round 2 polish ─────────────────────────────────────────────────────── */

/* Checkout: guaranteed breathing room around the coupon field and the buy button */
.aks-co__card #edd_checkout_form_wrap > #edd_purchase_form { margin-top: 24px !important; }
.aks-co__card #edd_discount_code.aks-moved { margin: 22px 0 0 !important; }
.aks-co__card #edd_checkout_form_wrap #edd-discount-code-wrap { margin: 0; }
.aks-co__card #edd_checkout_form_wrap #edd-discount-code-wrap[style*="block"] { padding: 14px 16px; border: 1px solid var(--ak-border) !important; border-radius: 8px; background: var(--ak-bg-alt) !important; }
.aks-co__card .edd-discount-code-field-wrap { max-width: none; }
.aks-co__card #edd-discount { background: #fff; }
.aks-co__card .edd-apply-discount { min-width: 92px; }
.aks-co__brand { display: flex; justify-content: center; margin: 0 auto 28px; }
.aks-co__brand svg { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--ak-shadow-brand); }

/* Recent orders: meta column always on the right */
.aks-orders-list__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.aks-orders-list__meta { justify-content: flex-end; text-align: right; }
@media (max-width: 480px) { .aks-orders-list__row { grid-template-columns: 1fr; } .aks-orders-list__meta { justify-content: flex-start; text-align: left; } }

/* Sub-views (manage license, upgrades, subscription update/transactions) */
.aks-subview { padding: 28px; max-width: 880px; }
.aks-subview > p:first-child { margin: 0 0 18px; text-align: left !important; }
.aks-subview > a:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.aks-subview h3, .aks-subview h5.edd-sl-manage-license-header { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.aks-subview h3 em { font-style: normal; color: var(--ak-primary-text); }
.aks-subview .edd-sl-manage-license-details { margin: 0 0 18px; }
.aks-subview table { margin-top: 4px; }
.aks-subview .edd_sl_form > div { display: contents; }
.aks-subview .edd_sl_form > div > span { flex-basis: 100%; font-size: 14px; color: var(--ak-text-muted); }
.aks-subview #edd-recurring-form { margin-top: 18px; padding: 20px; border: 1px solid var(--ak-border); border-radius: 12px; background: var(--ak-bg-alt); }
.aks-subview #edd-recurring-form #edd_checkout_form_wrap:empty { display: none; }
.aks-subview .edd-recurring-subscription-transactions td.edd_purchase_amount, .aks-subview .edd-recurring-subscription-transactions td:nth-child(2) { font-weight: 700; }
.aks-edd .edd_sl_show_key img { width: 18px; height: auto; display: inline-block; vertical-align: middle; opacity: .7; }
.aks-edd .view-key-wrapper { display: inline-flex; align-items: center; gap: 8px; }
.aks-edd td.edd_sl_license_status { text-transform: capitalize; }

/* Subscription status tones (markup has no modifier class; JS adds .aks-tone-*) */
.aks-edd .edd_subscription_status.aks-tone-success { background: var(--ak-success-soft); color: var(--ak-success-text); border-color: #BBF7D0; }
.aks-edd .edd_subscription_status.aks-tone-warn { background: var(--aks-warn-soft); color: var(--aks-warn-text); border-color: #FDE68A; }
.aks-edd .edd_subscription_status.aks-tone-danger { background: var(--aks-danger-soft); color: #B91C1C; border-color: #FECACA; }
.aks-edd td.edd_subscription_actions, .aks-edd .edd_subscription_actions a { white-space: nowrap; }

/* EDD block login form (receipt/order pages when signed out) */
.aks-receipt--narrow { max-width: 560px; margin: 0 auto; }
.aks-receipt--narrow .aks-receipt__doc { padding: 32px; }
.aks-receipt--narrow > .aks-receipt__doc > p:first-child { font-weight: 600; margin: 0 0 16px; }
.aks-edd .edd-blocks-form__login { display: grid; gap: 14px; border: 0 !important; padding: 0 !important; }
.aks-edd .edd-blocks-form__group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); margin-bottom: 6px; }
.aks-edd .edd-blocks-form__group-remember .edd-blocks-form__control { display: flex; align-items: center; gap: 8px; }
.aks-edd .edd-blocks-form__group-remember label { margin: 0; font-weight: 500; }
.aks-edd .edd-blocks-form__group-submit .edd-submit { width: 100%; }
.aks-edd .edd-blocks-form__group-lost-password { text-align: center; font-size: 13.5px; margin: 0; }
.aks-edd .edd-required-indicator { color: var(--ak-danger); margin-left: 2px; }

/* Generic pages (invoice billing form, policies) */
.aks-article.aks-panel { padding: 32px; }
@media (min-width: 720px) { .aks-article.aks-panel { padding: 40px; } }
.aks-article h2 { font-size: 1.35rem; margin-top: 1.4em; }
.aks-article .edd-invoices-form, .aks-article form { display: grid; gap: 4px; }
.aks-post-list { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.aks-page--404 { padding-top: 56px; padding-bottom: 96px; }

/* Pending receipt helper */
.aks-rail-help--pending { padding: 18px; border: 1px solid #FDE68A; background: var(--aks-warn-soft); border-radius: 12px; }
.aks-rail-help--pending h3 { color: var(--aks-warn-text); }
.aks-rail-help--pending p { font-size: 14px; color: var(--ak-text-muted); margin: 0 0 12px; }

/* Download history status text */
.aks-edd td.edd_download_download_files { color: var(--ak-text-soft); font-size: 14px; }
/* EDD Invoices billing-details form */
.aks-edd #edd-invoices { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
@media (min-width: 640px) { .aks-edd #edd-invoices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aks-edd .edd-invoices-div__company, .aks-edd .edd-invoices-div__name, .aks-edd .edd-invoices-div__address1, .aks-edd .edd-invoices-div__address2, .aks-edd .edd-invoices-div__vat, .aks-edd .edd-invoices-div__notes, .aks-edd .edd-invoices-div__generate { grid-column: 1 / -1; } }
.aks-edd .edd-invoices-div { display: grid !important; gap: 6px; margin: 0 !important; }
.aks-edd .edd-invoices-div label { flex: none !important; }
.aks-edd #edd-invoices textarea { min-height: 96px; resize: vertical; }
.aks-edd .edd-invoices-div__generate { margin-top: 8px !important; }
.aks-edd .edd-invoices-generate-invoice-button { width: auto; justify-self: start; }

/* Responsive tables: JS copies each <th> into data-label, then rows stack as cards on small screens */
@media (max-width: 760px) {
	.aks-edd table.aks-responsive, .aks-edd table.aks-responsive tbody, .aks-edd table.aks-responsive tr, .aks-edd table.aks-responsive td { display: block; width: 100%; }
	.aks-edd table.aks-responsive thead { display: none; }
	.aks-edd table.aks-responsive tr { padding: 10px 16px 14px; border-top: 1px solid var(--ak-border); }
	.aks-edd table.aks-responsive tbody tr:first-child, .aks-edd table.aks-responsive > tr:first-of-type { border-top: 0; }
	.aks-edd table.aks-responsive td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 7px 0; border: 0; text-align: right; }
	.aks-edd table.aks-responsive td::before { content: attr(data-label); flex: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-text-soft); text-align: left; padding-top: 3px; }
	.aks-edd table.aks-responsive td[data-label=""]::before, .aks-edd table.aks-responsive td.aks-td-wide::before { display: none; }
	.aks-edd table.aks-responsive td.aks-td-wide { display: block; text-align: left; }
	.aks-edd table.aks-responsive td.aks-td-empty { display: none; }
	.aks-edd table.aks-responsive tbody tr:hover td { background: transparent; }
	.aks-edd table.aks-responsive.edd_sl_table td { display: block; text-align: left; }
	.aks-edd table.aks-responsive.edd_sl_table td::before { display: block; margin-bottom: 6px; }
	.aks-edd table.aks-responsive.edd_sl_table td.aks-td-wide::before { display: none; }
	.aks-edd table.aks-responsive.edd_sl_table td + td { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--ak-border); }
	.aks-edd table.aks-responsive.edd_sl_table td .edd_sl_item_name { margin-bottom: 8px; }
	.aks-edd table.aks-responsive td .edd_download_file { display: block; margin: 4px 0; }
	.aks-edd .aks-key { width: 100%; }
}
.aks-account__nav ul { scroll-padding: 8px; }
/* Receipt rows: never let a long value (license key input) widen the row */
.aks-edd .edd-blocks__row > * { min-width: 0; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row { flex-wrap: wrap; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value { flex: 1 1 auto; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value input, .aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value code { display: inline-block; max-width: 100%; width: auto; overflow-wrap: anywhere; word-break: break-all; }
.aks-edd .edd_download_file_link, .aks-edd .edd-order-item__file-link { white-space: nowrap; }
@media (max-width: 600px) {
	.aks-edd .edd-blocks-receipt__row-item.edd-blocks-receipt__item { flex-direction: column; gap: 10px; }
	.aks-edd .edd-blocks-receipt__item-price { align-self: flex-end; }
	.aks-edd .edd-blocks-receipt__row-item.edd-blocks-receipt__item { align-items: stretch; text-align: left; }
	.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value:has(input), .aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value:has(code) { flex-basis: 100%; text-align: left !important; }
	.aks-receipt__doc, .aks-confirmation__doc { padding: 20px 16px; }
}
@media (max-width: 600px) { .aks-subview { padding: 18px 16px; } .aks-panel { padding: 18px 16px; } .aks-auth__card { padding: 24px 18px; } .aks-page-head__inner { padding-top: 28px; padding-bottom: 24px; } }

/* Coupon field + Apply: same height, same radius, brand button (beats edd.css .edd-submit and core .wp-block-button__link) */
.aks-co__card #edd_checkout_form_wrap .edd-discount-code-field-wrap { display: flex; align-items: stretch; gap: 10px; }
.aks-co__card #edd_checkout_form_wrap #edd-discount.edd-input { height: 48px; padding: 0 16px; font-size: 15px; border-radius: 8px; border: 1px solid var(--ak-border-strong); background: #fff; margin: 0; box-shadow: none; }
.aks-co__card #edd_checkout_form_wrap #edd-discount.edd-input::placeholder { color: var(--ak-text-dim); }
.aks-co__card #edd_checkout_form_wrap input.edd-apply-discount.edd-submit,
.aks-co__card #edd_checkout_form_wrap input.edd-apply-discount.edd-submit.wp-block-button__link { height: 48px; min-width: 112px; padding: 0 22px; margin: 0; border: 0; border-radius: 8px; background: var(--ak-action); color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0; box-shadow: 0 6px 16px -8px rgba(249,115,22,.55); cursor: pointer; transition: background .15s var(--ak-ease), transform .15s var(--ak-ease); }
.aks-co__card #edd_checkout_form_wrap input.edd-apply-discount.edd-submit:hover,
.aks-co__card #edd_checkout_form_wrap input.edd-apply-discount.edd-submit:focus-visible { background: var(--ak-action-hover); color: #fff; transform: translateY(-1px); outline: none; }
.aks-co__card #edd_checkout_form_wrap #edd-discount-code-wrap[style*="block"] { padding: 16px; }
.aks-co__card #edd_checkout_form_wrap #edd-discount-error-wrap { margin-top: 10px; }
.aks-co__card #edd_checkout_form_wrap .edd-discount-loader { margin: 10px 0 0; }
@media (max-width: 480px) {
	.aks-co__card #edd_checkout_form_wrap .edd-discount-code-field-wrap { flex-wrap: wrap; }
	.aks-co__card #edd_checkout_form_wrap #edd-discount.edd-input { flex: 1 1 100%; }
	.aks-co__card #edd_checkout_form_wrap input.edd-apply-discount.edd-submit { flex: 1 1 100%; }
}
/* No-JS fallback: coupon block stays inside the cart box, full width under the total */
.aks-co__card .edd-blocks-cart__row-footer.edd_cart_footer_row { flex-wrap: wrap !important; }
.aks-co__card #edd_checkout_cart #edd_discount_code { flex: 1 1 100%; order: 10; margin: 12px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ak-border); text-align: left; }
/* Purchase-history details cell: hide EDD's bare "—" text node, align badge + link */
.aks-edd td.edd_purchase_details { font-size: 0; }
.aks-edd td.edd_purchase_details > * { font-size: 14.5px; vertical-align: middle; }
.aks-edd td.edd_purchase_details > a { margin-left: 10px; }
.aks-edd td.edd_purchase_details > .edd_purchase_status { font-size: 11.5px; }
.aks-edd td.edd_purchase_details > .edd_purchase_status + a { margin-left: 8px; }
.aks-edd table th.edd_purchase_id, .aks-edd table td.edd_purchase_id { width: 1%; }

/* =============================================================================
   Account redesign — identity bar, nav counts, product cards, billing
   ============================================================================= */
.aks-idbar { background: #fff; border-bottom: 1px solid var(--ak-border); }
.aks-idbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.aks-idbar__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.aks-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ak-primary-soft); color: var(--ak-primary-text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.aks-idbar__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.aks-idbar__meta { margin: 3px 0 0; font-size: 13.5px; color: var(--ak-text-soft); display: flex; flex-wrap: wrap; gap: 6px; }
.aks-idbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.aks-main--account .aks-page { padding-top: 28px; }
.aks-account__nav { top: 84px; }
.aks-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--ak-r-full); background: var(--ak-bg-alt); border: 1px solid var(--ak-border); color: var(--ak-text-soft); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.aks-account__nav a[role="tab"].is-active .aks-count { background: #fff; border-color: #FED7AA; color: var(--ak-primary-text); }
@media (max-width: 899px) { .aks-count { margin-left: 4px; } }
.aks-account__help { display: none; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); }
@media (min-width: 900px) { .aks-account__help { display: block; } }
.aks-account__help strong { display: block; font-size: 14px; margin-bottom: 4px; }
.aks-account__help p { margin: 0 0 10px; font-size: 13px; color: var(--ak-text-soft); }
.aks-account__help a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); padding: 4px 0; }
.aks-account__help a:hover { color: var(--ak-primary-text); }
.aks-account__help a + a { margin-left: 0; display: flex; }
.aks-account__panel-head { margin-bottom: 22px; }

.aks-alerts { display: grid; gap: 10px; margin-bottom: 24px; }
.aks-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid; }
.aks-alert p { margin: 0; flex: 1 1 auto; font-size: 14.5px; font-weight: 500; }
.aks-alert__icon { flex: none; display: inline-flex; }
.aks-alert--warn { background: var(--aks-warn-soft); border-color: #FDE68A; color: #78350F; }
.aks-alert--warn .aks-alert__icon { color: var(--aks-warn-text); }
.aks-alert--danger { background: var(--aks-danger-soft); border-color: #FECACA; color: #7F1D1D; }
.aks-alert--danger .aks-alert__icon { color: #B91C1C; }
.aks-alert .ak-btn { flex: none; }
@media (max-width: 600px) { .aks-alert { flex-wrap: wrap; } .aks-alert .ak-btn { width: 100%; } }

.aks-block { margin-bottom: 28px; }
.aks-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.aks-block__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.aks-block__sub { margin: 3px 0 0; font-size: 14px; color: var(--ak-text-soft); }
.aks-panel.aks-block { margin-bottom: 0; }

.aks-products { display: grid; gap: 14px; }
.aks-product { background: #fff; border: 1px solid var(--ak-border); border-radius: var(--aks-radius-card); padding: 20px 22px; display: grid; gap: 14px; transition: border-color .15s var(--ak-ease), box-shadow .15s var(--ak-ease); }
.aks-product:hover { border-color: var(--ak-border-strong); box-shadow: var(--ak-shadow); }
.aks-product--inactive { background: #FDFCFB; }
.aks-product__head { display: flex; align-items: center; gap: 14px; }
.aks-product__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ak-primary-50); color: var(--ak-primary-text); display: inline-flex; align-items: center; justify-content: center; }
.aks-product--inactive .aks-product__icon { background: var(--ak-bg-alt); color: var(--ak-text-dim); }
.aks-product__title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aks-product__title h4 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.aks-product__key { display: grid; gap: 6px; }
.aks-product__key label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-text-soft); }
.aks-product__key .aks-key { max-width: 520px; }
.aks-product__key input.edd_sl_license_key { font-family: var(--ak-font-mono); font-size: 13.5px; letter-spacing: .02em; }
.aks-product__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ak-text-muted); }
.aks-product__facts > div { display: flex; align-items: center; gap: 8px; }
.aks-product__facts dt { display: inline-flex; color: var(--ak-text-dim); }
.aks-product__facts dd { margin: 0; }
.aks-product__facts a { font-weight: 600; }
.aks-product__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.aks-product__note { font-size: 13.5px; color: var(--ak-text-soft); margin-right: 4px; }
@media (max-width: 600px) { .aks-product { padding: 16px; } .aks-product__head { flex-wrap: wrap; } .aks-product__actions .ak-btn { flex: 1 1 auto; } }

.aks-orders-list__date { display: block; font-size: 12.5px; color: var(--ak-text-dim); margin-top: 2px; }
.aks-orders-list__meta { flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 480px) { .aks-orders-list__meta { flex-direction: row; align-items: center; } }

.aks-billing { display: grid; gap: 0; border: 1px solid var(--ak-border); border-radius: 12px; background: #fff; overflow: hidden; }
.aks-billing__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--ak-border); font-size: 14px; }
.aks-billing__row:first-child { border-top: 0; }
.aks-billing__row span:first-child { color: var(--ak-text-soft); font-weight: 600; font-size: 13px; }
.aks-billing__row strong { font-weight: 700; text-align: right; }
.aks-billing__row strong small { font-weight: 500; color: var(--ak-text-soft); }
.aks-billing__note { margin: 12px 0 0; font-size: 13px; color: var(--ak-text-soft); line-height: 1.5; }
.aks-billing__none { display: flex; gap: 8px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ak-success-soft); color: var(--ak-success-text); font-size: 14px; font-weight: 500; }
.aks-billing__links { display: grid; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ak-border); }
.aks-billing__links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); padding: 4px 0; }
.aks-billing__links a:hover { color: var(--ak-primary-text); }
@media (max-width: 600px) { .aks-idbar__meta { flex-direction: column; gap: 2px; } .aks-idbar__dot { display: none; } .aks-idbar__actions .ak-btn { flex: 1 1 auto; } .aks-idbar__actions { width: 100%; } }

/* ── Breakpoint audit fixes ─────────────────────────────────────────────── */
/* Header at 1024–1199px: nav + CTA + account button need every pixel */
.ak-header-nav a, .ak-header-nav button.ak-nav-link { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
	.aks-header-account span { display: none; }
	.aks-header-account { padding: 10px 11px; margin-right: 6px; }
	.aks-header-account .ak-icon { width: 16px; height: 16px; }
	.ak-header-nav a, .ak-header-nav button.ak-nav-link { padding: 7px 9px; font-size: 14px; }
	.ak-header-row { gap: 12px; }
}
/* Receipt totals on narrow phones: the license-key input must never set the row's width */
.aks-edd .edd-blocks__receipt, .aks-edd .edd-blocks__confirmation, .aks-edd .edd-blocks-receipt__totals, .aks-edd .edd-blocks-receipt__items { min-width: 0; max-width: 100%; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value input { min-width: 0; width: 100%; box-sizing: border-box; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value:has(input) { flex-basis: 100%; text-align: left; }
.aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value:has(input) input { width: auto; max-width: 100%; }
@media (max-width: 600px) { .aks-edd .edd-blocks-receipt__totals .edd-blocks__row-value:has(input) input { width: 100%; } }
.aks-billing__row span:first-child { white-space: nowrap; }
/* License key printed as a <span> on receipts: allow it to break instead of widening the card */
.aks-edd span.edd_sl_license_key, .aks-edd code.edd_sl_license_key { display: inline-block; width: auto; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; line-height: 1.4; }
.aks-edd .edd-blocks-receipt__row-item--license-key { flex-wrap: wrap; }
.aks-edd .edd-blocks-receipt__row-item--license-key .edd-blocks__row-sublabel { font-weight: 600; }
@media (max-width: 600px) { .aks-edd .edd-blocks-receipt__row-item--license-key .edd-blocks__row-value { flex-basis: 100%; text-align: left; } }
/* Checkout below 900px: guarantee block becomes a centred card under the checkout */
@media (max-width: 899px) {
	.aks-co__rail { max-width: 560px; margin: 8px auto 0; }
	.aks-guarantee { justify-items: center; text-align: center; padding: 26px 22px; background: #fff; border: 1px solid var(--ak-border); border-radius: 14px; }
	.aks-guarantee__sig { justify-content: center; }
	.aks-founder { justify-content: center; text-align: left; }
}

/* ── License sub-views (theme overrides of SL templates) ─────────────────── */
.aks-subview__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.aks-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ak-text-muted); }
.aks-back:hover { color: var(--ak-primary-text); }
.aks-subview__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ak-text-soft); }
.aks-subview__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.aks-lic-head { display: grid; gap: 14px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--ak-border); }
.aks-lic-head .aks-subview__title { margin: 0; font-size: 1.15rem; }
.aks-sites { margin-bottom: 22px; }
.aks-sites__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.aks-sites__head h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-text-soft); }
.aks-sites__count { font-size: 13px; color: var(--ak-text-soft); font-weight: 600; }
.aks-sites__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ak-border); border-radius: 12px; overflow: hidden; background: #fff; }
.aks-sites__list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--ak-border); }
.aks-sites__list li:first-child { border-top: 0; }
.aks-sites__icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--ak-primary-50); color: var(--ak-primary-text); display: inline-flex; align-items: center; justify-content: center; }
.aks-sites__url { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ak-text); overflow-wrap: anywhere; }
.aks-sites__url:hover { color: var(--ak-primary-text); }
.aks-sites__remove { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--ak-r-full); border: 1px solid var(--ak-border); font-size: 13px; font-weight: 600; color: var(--ak-text-muted); }
.aks-sites__remove:hover { border-color: var(--ak-danger); color: var(--ak-danger); }
.aks-sites__empty { margin: 0; padding: 18px; border: 1px dashed var(--ak-border-strong); border-radius: 12px; color: var(--ak-text-soft); font-size: 14px; }
.aks-addsite { padding: 18px; border-radius: 12px; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); }
.aks-addsite > label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.aks-addsite__hint { margin: 0 0 12px; font-size: 13px; color: var(--ak-text-soft); }
.aks-addsite__row { display: flex; gap: 10px; align-items: stretch; }
.aks-addsite__row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; }
.aks-addsite__row .ak-btn { flex: none; }
@media (max-width: 520px) { .aks-addsite__row { flex-direction: column; } .aks-sites__list li { flex-wrap: wrap; } .aks-sites__remove { margin-left: 44px; } }
.aks-product__actions:not(:has(*)) { display: none; }

/* ── Sticky header fix ─────────────────────────────────────────────────────
   ambikly.css sets overflow-x:hidden on <body>, which turns body into the
   scroll container for position:sticky. Body never scrolls itself, so the
   header never sticks — and for toolbar users `top:32px` is measured from
   body's own top (already below the toolbar), pushing the header down 32px
   over the content. overflow-x:clip clips the same way without creating a
   scroll container, so sticky measures against the viewport again. */
body.aks { overflow-x: clip; }
/* Mobile sheet: the account link is a full ghost button, not a list row */
.ak-mobile-nav a.ak-btn.ak-btn--ghost { display: flex; justify-content: center; margin-top: 10px; padding: 13px 24px; border: 1px solid var(--ak-border-strong); border-radius: var(--ak-r-full); background: var(--ak-bg); color: var(--ak-text); font-size: 15px; }
.ak-mobile-nav a.ak-btn.ak-btn--ghost:hover { background: var(--ak-bg-alt); }

/* ── Sign-in ───────────────────────────────────────────────────────────── */
.aks-page-head--slim .aks-page-head__inner { padding-top: 28px; padding-bottom: 24px; }
.aks-auth { align-items: stretch; }
.aks-auth__card { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.aks-login__head { margin-bottom: 22px; }
.aks-login__head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.aks-login__head p { margin: 0; color: var(--ak-text-soft); font-size: 15px; }
.aks-login__form { display: grid; gap: 16px; }
.aks-field { display: grid; gap: 6px; }
.aks-field label { font-size: 13.5px; font-weight: 600; color: var(--ak-text-muted); }
.aks-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.aks-field__link { font-size: 13px; font-weight: 600; }
.aks-edd .aks-field input.edd-input { height: 48px; padding: 0 14px; border-radius: 10px; }
.aks-password { position: relative; }
.aks-edd .aks-password input.edd-input { padding-right: 70px; }
.aks-password__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: var(--ak-bg-alt); color: var(--ak-text-muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.aks-password__toggle:hover { color: var(--ak-primary-text); }
.aks-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ak-text-muted); cursor: pointer; }
.aks-edd .aks-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ak-action); }
.aks-edd .aks-login__submit { width: 100%; height: 52px; font-size: 16px; margin-top: 4px; }
.aks-login__foot { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--ak-border); font-size: 13px; color: var(--ak-text-soft); line-height: 1.5; }
.aks-login__foot .ak-icon { flex: none; margin-top: 3px; }
.aks-auth__aside { padding: 8px 0; }
.aks-auth__aside .ak-eyebrow { margin-bottom: 14px; }
.aks-auth__aside h2 { font-size: 1.5rem; margin-bottom: 22px; max-width: 18ch; }
.aks-auth__new { margin-top: 26px; padding: 20px; border-radius: 14px; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); }
.aks-auth__new strong { display: block; font-size: 15px; margin-bottom: 4px; }
.aks-auth__new p { margin: 0 0 14px; font-size: 14px; color: var(--ak-text-soft); }
.aks-edd .aks-login .edd_errors { margin-bottom: 18px; }
@media (max-width: 899px) { .aks-auth__aside { order: 2; } .aks-auth__card { padding: 26px 20px; } }

/* =============================================================================
   Account tables — one system for Orders, Downloads, Subscriptions, All Access,
   transactions and license sites
   ============================================================================= */
.aks-edd table.aks-table { border: 1px solid var(--ak-border); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(28,25,23,.04); }
.aks-edd table.aks-table thead th { padding: 12px 18px; background: var(--ak-bg-alt); font-size: 11px; letter-spacing: .09em; color: var(--ak-text-soft); border-bottom: 1px solid var(--ak-border); }
.aks-edd table.aks-table td { padding: 16px 18px; vertical-align: middle; border-top: 1px solid var(--ak-border); }
.aks-edd table.aks-table tbody tr:first-child td { border-top: 0; }
.aks-edd table.aks-table tbody tr:hover td { background: #FCFCFB; }
.aks-table__primary { display: block; font-weight: 700; color: var(--ak-text); line-height: 1.3; }
a.aks-table__primary:hover { color: var(--ak-primary-text); }
.aks-table__secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; color: var(--ak-text-soft); font-weight: 500; }
.aks-table__amount { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aks-table__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.aks-table__actions .ak-btn--sm { padding: 7px 12px; font-size: 13px; box-shadow: none; }
.aks-table__actions .ak-btn--sm .ak-icon { width: 13px; height: 13px; }
.aks-btn--danger:hover { border-color: var(--ak-danger) !important; color: var(--ak-danger) !important; background: #fff !important; }
.aks-edd table.aks-table .aks-col-total, .aks-edd table.aks-table .aks-col-actions { text-align: right; }
.aks-edd table.aks-table th.aks-col-total { text-align: right; }
.aks-edd table.aks-table .aks-col-order { white-space: nowrap; width: 1%; }
.aks-edd table.aks-table .aks-col-status { width: 1%; white-space: nowrap; }
.aks-edd table.aks-table .aks-col-actions { width: 1%; white-space: nowrap; }
.aks-edd table.aks-table--downloads .aks-col-files .aks-table__actions { justify-content: flex-start; }
.aks-edd table.aks-table--downloads .aks-col-files { text-align: left; }
.aks-version { font-family: var(--ak-font-mono); font-size: 12px; color: var(--ak-text-dim); }
.aks-edd .ak-pill--cat { margin: 0; }
/* All Access passes table gets the same treatment */
.aks-edd .edd_all_access_pass_name { font-weight: 700; }
.aks-edd .edd_all_access_pass_status { display: inline-flex; padding: 3px 9px; border-radius: var(--ak-r-full); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--ak-bg-alt); border: 1px solid var(--ak-border); color: var(--ak-text-soft); }
/* Stacked rows on phones */
@media (max-width: 760px) {
	.aks-edd table.aks-table.aks-responsive tr { padding: 14px 16px 16px; }
	.aks-edd table.aks-table.aks-responsive td { padding: 6px 0; border-top: 0; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-actions { display: block; padding-top: 12px; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-actions .aks-table__actions { justify-content: flex-start; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-actions .ak-btn { flex: 1 1 auto; justify-content: center; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-order, .aks-edd table.aks-table.aks-responsive td.aks-col-product, .aks-edd table.aks-table.aks-responsive td.aks-col-plan, .aks-edd table.aks-table.aks-responsive td.aks-col-items { display: block; text-align: left; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-order::before, .aks-edd table.aks-table.aks-responsive td.aks-col-product::before, .aks-edd table.aks-table.aks-responsive td.aks-col-plan::before, .aks-edd table.aks-table.aks-responsive td.aks-col-items::before { display: block; margin-bottom: 4px; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-files { display: block; text-align: left; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-files::before { display: block; margin-bottom: 6px; }
	.aks-edd table.aks-table.aks-responsive .aks-table__secondary { justify-content: flex-start; }
	.aks-edd table.aks-table.aks-responsive td:not(.aks-col-actions) .aks-table__secondary { justify-content: flex-end; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-order .aks-table__secondary, .aks-edd table.aks-table.aks-responsive td.aks-col-product .aks-table__secondary, .aks-edd table.aks-table.aks-responsive td.aks-col-plan .aks-table__secondary, .aks-edd table.aks-table.aks-responsive td.aks-col-items .aks-table__secondary { justify-content: flex-start; }
}
@media (min-width: 761px) { .aks-edd table.aks-table .aks-table__actions { flex-wrap: nowrap; } .aks-edd table.aks-table .aks-col-items { min-width: 180px; } }
@media (max-width: 760px) {
	.aks-edd table.aks-table.aks-responsive td { width: auto !important; white-space: normal !important; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-actions::before { display: none; }
	.aks-edd table.aks-table.aks-responsive td.aks-col-total { padding-top: 10px; }
}

/* ── Checkout loading state: no separate spinner under the button; the
      button itself shows "Please wait…" with an inline spinner until the
      FastSpring popup takes over (its own overlay) or is closed. ───────── */
.aks-co__card #edd_purchase_submit > .edd-loading-ajax.edd-loading { display: none !important; }
.aks-co__card #edd_purchase_submit:has(> .edd-loading-ajax) #edd-purchase-button.edd-submit.button {
	background-color: var(--aks-buy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9' stroke-opacity='.3'/%3E%3Cpath d='M21 12a9 9 0 0 0-9-9'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: calc(50% - 5.5em) center;
	opacity: .92;
	cursor: progress;
	transform: none;
}
