/* ============================================================================
   Checkout & My-Account UX (Task D) — presentational only.
   Brand-aligned with style.css: --gkt-accent (#8d27a5), .gkt-btn system.
   Enqueued ONLY on Woo checkout / cart / account pages (see inc/checkout-ux.php).
   Revert: delete this file + remove its enqueue (the require line in functions.php).
   ============================================================================ */

:root {
	--gkt-accent: #8d27a5;
	--gkt-accent-soft: #f3e8f6;
	--gkt-ink: #1c1c24;
	--gkt-muted: #6b6b76;
	--gkt-ok: #1d8a4a;
}

/* Buttons — reuse the lesson-template look so the whole funnel feels one piece.
   Namespaced under our own wrappers so we never restyle Woo's own buttons. */
.gkt-co-handoff .gkt-btn,
.gkt-account .gkt-btn {
	display: inline-block; padding: 12px 22px; border: 1.5px solid #d9d9e0;
	border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1;
	text-decoration: none; background: #fff; color: var(--gkt-ink) !important;
	cursor: pointer; transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.gkt-co-handoff .gkt-btn:hover,
.gkt-account .gkt-btn:hover { border-color: var(--gkt-accent); color: var(--gkt-accent) !important; }
.gkt-co-handoff .gkt-btn--solid,
.gkt-account .gkt-btn--solid {
	background: var(--gkt-accent); border-color: var(--gkt-accent); color: #fff !important;
}
.gkt-co-handoff .gkt-btn--solid:hover,
.gkt-account .gkt-btn--solid:hover { opacity: .92; color: #fff !important; }

/* ── 1. Checkout "what's included" summary ───────────────────────────────── */
.gkt-co-summary {
	max-width: 720px; margin: 0 auto 22px; background: #fff;
	border: 1.5px solid var(--gkt-accent); border-radius: 12px; padding: 20px 24px;
	box-shadow: 0 3px 14px rgba(34, 26, 58, .07);
}
.gkt-co-summary__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.gkt-co-summary__price { font-family: Georgia, serif; font-size: 28px; color: var(--gkt-ink); }
.gkt-co-summary__price small { font-size: 14px; color: var(--gkt-muted); font-family: -apple-system, sans-serif; }
.gkt-co-summary__sub { font-size: 13.5px; color: var(--gkt-muted); }
.gkt-co-summary__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.gkt-co-summary__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: #4c4365; }
.gkt-co-summary__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gkt-ok); font-weight: 700; }

/* ── 2. Checkout trust strip + secure note ───────────────────────────────── */
.gkt-co-trust { margin-top: 14px; text-align: center; }
.gkt-co-trust__row {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
	font-size: 14px; color: var(--gkt-muted);
}
.gkt-co-trust__row b { color: var(--gkt-ink); font-variant-numeric: tabular-nums; }
.gkt-co-trust__stars { color: #f0b429; letter-spacing: 2px; }
.gkt-co-trust__secure {
	margin: 10px auto 0; max-width: 46ch; font-size: 12.5px; color: var(--gkt-muted); line-height: 1.5;
}

/* ── 3. Free-Algebra upsell note ─────────────────────────────────────────── */
.gkt-co-free {
	max-width: 720px; margin: 0 auto 16px; padding: 12px 16px; text-align: center;
	background: var(--gkt-accent-soft); border-radius: 10px; font-size: 14px; color: #4c4365;
}
.gkt-co-free a { color: var(--gkt-accent); font-weight: 700; text-decoration: none; }
.gkt-co-free a:hover { text-decoration: underline; }

/* ── 3b. Coupon prominence (class codes) ─────────────────────────────────── */
/* WooCommerce hides the coupon form behind a JS toggle; reveal it so class
   students can always see where to enter their code. Reversible: delete block. */
.woocommerce form.checkout_coupon { display: block !important; margin: 0 auto 18px; max-width: 720px; }
.woocommerce-form-coupon-toggle { display: none; }

/* ── 4. Order-received hand-off ──────────────────────────────────────────── */
.gkt-co-handoff {
	max-width: 640px; margin: 0 auto 26px; text-align: center; background: #fffdf6;
	border: 2px solid #221a3a; border-radius: 12px; padding: 28px 26px;
	box-shadow: 6px 6px 0 rgba(141, 39, 165, .18);
}
.gkt-co-handoff__title { font-family: Georgia, serif; font-size: 24px; margin: 0 0 6px; color: var(--gkt-ink); }
.gkt-co-handoff__sub { font-size: 15px; color: #4c4365; margin: 0 0 18px; }
.gkt-co-handoff__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }

/* ── My-Account student home ─────────────────────────────────────────────── */
.gkt-account { max-width: 760px; }
.gkt-account__welcome h2 { font-family: Georgia, serif; font-size: 26px; margin: 0 0 4px; }
.gkt-account__welcome p { color: var(--gkt-muted); margin: 0 0 22px; }

.gkt-account__courses { display: grid; gap: 14px; margin-bottom: 24px; }
.gkt-account-card {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	background: #fff; border: 1.5px solid #ded5c2; border-radius: 14px; padding: 22px 24px;
	box-shadow: 0 3px 14px rgba(34, 26, 58, .07);
}
.gkt-account-card__label {
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #46b8b0; font-weight: 700;
}
.gkt-account-card__body { flex: 1 1 260px; }
.gkt-account-card__body h3 { font-family: Georgia, serif; font-size: 20px; margin: 4px 0 10px; }
.gkt-account-card__progress {
	height: 8px; background: #efeaf3; border-radius: 999px; overflow: hidden; max-width: 320px; margin-bottom: 4px;
}
.gkt-account-card__progress span { display: block; height: 100%; background: var(--gkt-accent); border-radius: 999px; }
.gkt-account-card small { color: var(--gkt-muted); font-size: 12.5px; }

.gkt-account__empty {
	background: #fffdf6; border: 1.5px dashed var(--gkt-accent); border-radius: 12px;
	padding: 26px; text-align: center; margin-bottom: 24px;
}
.gkt-account__empty p { margin: 0 0 14px; color: #4c4365; }
.gkt-account__empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.gkt-account__links {
	display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; border-top: 1px solid #e8e2d4;
	font-size: 14.5px;
}
.gkt-account__links a { color: var(--gkt-accent); text-decoration: none; font-weight: 600; }
.gkt-account__links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.gkt-co-summary__list { grid-template-columns: 1fr; }
	.gkt-co-handoff__actions .gkt-btn,
	.gkt-account__empty-actions .gkt-btn { width: 100%; }
	.gkt-account-card { flex-direction: column; align-items: stretch; text-align: left; }
	.gkt-account-card .gkt-btn { text-align: center; }
}
