/*
 * Storefront additions.
 *
 * Loaded after the theme stylesheet, so these rules only fill the gaps left by
 * the WooCommerce Blocks markup the export depended on: the block-based cart and
 * checkout are rendered as classic tables here, and the 404 block is new.
 */

/* Classic cart/checkout tables use the theme's `shop_table` rules already; the
   coupon-style "actions" row only needs the alignment the block version had. */
.woocommerce-cart-form .actions .coupon {
	display: none;
}

.woocommerce-cart-form__cart-item .quantity,
.woocommerce-checkout .quantity {
	display: inline-flex;
	align-items: center;
	max-width: 130px;
}

.woocommerce-cart-form__cart-item .quantity input.qty {
	width: 60px;
	text-align: center;
}

/* Order received screen. */
.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.woocommerce-order-overview li {
	flex: 1 1 180px;
	margin: 0 0 12px;
	padding: 0 12px;
	border-right: 1px solid rgba(0, 0, 0, .08);
	font-size: 14px;
	text-transform: uppercase;
}

.woocommerce-order-overview li:last-child {
	border-right: 0;
}

.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	text-transform: none;
}

.woocommerce-customer-details address {
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 6px;
	font-style: normal;
	line-height: 1.7;
}

/* Account panels: the signed-in screens now use the `.rg-dash` design system at
   the end of this file; only the responsive order table rules below remain. */
.woocommerce-orders-table td,
.woocommerce-orders-table th {
	vertical-align: middle;
}

/* Wishlist table empty state. */
.wishlist_table .wishlist-empty {
	padding: 40px 0;
	text-align: center;
	font-weight: 600;
}

/* 404 screen. */
.error404 .not-found-title {
	margin: 0 0 10px;
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	color: #00AB55;
}

.error404 .not-found-content .searchform {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 24px 0;
}

.error404 .not-found-content .search-field {
	flex: 1 1 auto;
}

@media (max-width: 767px) {
	.woocommerce-order-overview li {
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, .08);
	}
}

/* ==========================================================================
   About us page — premium redesign (data/content/about.php).

   A self-contained navy/gold academic-publishing design system scoped to
   `.about-page`, independent of the storefront's green theme so no other page
   is affected. All content, photographs and routes are the company's own.
   ========================================================================== */
.about-page {
	/* Palette. */
	--ap-navy: #092B62;
	--ap-blue: #1557B8;
	--ap-gold: #FFC533;
	--ap-gold-600: #f0b400;
	--ap-tint: #EEF4FF;
	--ap-text: #17243B;
	--ap-muted: #64748B;
	--ap-white: #FFFFFF;
	--ap-line: rgba(9, 43, 98, .10);
	/* Shape & depth. */
	--ap-radius: 18px;
	--ap-radius-sm: 12px;
	--ap-shadow-sm: 0 6px 18px rgba(9, 43, 98, .07);
	--ap-shadow-md: 0 18px 40px rgba(9, 43, 98, .12);
	--ap-shadow-lg: 0 30px 60px rgba(9, 43, 98, .18);
	--ap-maxw: 1180px;

	font-family: 'Plus Jakarta Sans', 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ap-text);
	line-height: 1.7;
	overflow-x: hidden;
}

.about-page *,
.about-page *::before,
.about-page *::after {
	box-sizing: border-box;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page p {
	margin: 0;
}

.about-page img {
	max-width: 100%;
	height: auto;
	display: block;
}

.about-page a {
	text-decoration: none;
}

/* Layout helpers. */
.about-page .ap-container {
	width: 100%;
	max-width: var(--ap-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.about-page .ap-section {
	padding: 96px 0;
}

.about-page .ap-section--tint {
	background: var(--ap-tint);
}

.about-page .ap-section-head {
	max-width: 640px;
	margin: 0 auto 52px;
	text-align: center;
}

/* Typography. */
.about-page .ap-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ap-blue);
}

.about-page .ap-eyebrow--light {
	color: var(--ap-blue);
}

.about-page .ap-eyebrow--line::before {
	content: "";
	width: 30px;
	height: 2px;
	background: var(--ap-gold);
	border-radius: 2px;
}

.about-page .ap-heading {
	font-size: clamp(28px, 3.6vw, 40px);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -.5px;
	color: var(--ap-navy);
	margin-top: 14px;
}

.about-page .ap-heading--center {
	margin-top: 0;
}

.about-page .ap-sub {
	margin-top: 14px;
	font-size: 16.5px;
	color: var(--ap-muted);
}

.about-page .ap-lead {
	font-size: 17px;
	color: var(--ap-text);
	margin-top: 18px;
}

.about-page .ap-split__body p + p,
.about-page .ap-message__body p + p {
	margin-top: 16px;
}

.about-page .ap-split__body p:not(.ap-lead):not(.ap-eyebrow),
.about-page .ap-message__body p:not(.ap-eyebrow):not(.ap-message__sign) {
	color: var(--ap-muted);
}

/* Buttons. */
.about-page .ap-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
	will-change: transform;
}

.about-page .ap-btn svg {
	width: 18px;
	height: 18px;
	transition: transform .25s ease;
}

.about-page .ap-btn:hover {
	transform: translateY(-2px);
}

.about-page .ap-btn:hover svg {
	transform: translateX(4px);
}

.about-page .ap-btn--gold {
	background: var(--ap-gold);
	color: var(--ap-navy);
	box-shadow: 0 12px 26px rgba(255, 197, 51, .38);
}

.about-page .ap-btn--gold:hover {
	background: var(--ap-gold-600);
	color: var(--ap-navy);
}

.about-page .ap-btn--navy {
	background: var(--ap-navy);
	color: var(--ap-white);
	box-shadow: 0 12px 26px rgba(9, 43, 98, .24);
}

.about-page .ap-btn--navy:hover {
	background: var(--ap-blue);
	color: var(--ap-white);
}

/* Hero. */
.about-page .ap-hero {
	position: relative;
	background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
	padding: 84px 0 0;
}

.about-page .ap-hero-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 56px;
	align-items: center;
}

.about-page .ap-hero-title {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -1px;
	color: var(--ap-navy);
	margin-top: 18px;
}

.about-page .ap-hero-lead {
	margin-top: 22px;
	font-size: 18px;
	color: var(--ap-muted);
	max-width: 520px;
}

.about-page .ap-hero-media {
	position: relative;
	aspect-ratio: 5 / 4;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: var(--ap-shadow-lg);
	isolation: isolate;
}

.about-page .ap-hero-media__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.about-page .ap-hero-media__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(135deg, rgba(9, 43, 98, .72) 0%, rgba(21, 87, 184, .35) 100%);
}

.about-page .ap-hero-media__book {
	position: absolute;
	left: 50%;
	bottom: -6px;
	transform: translateX(-50%);
	width: 88%;
	object-fit: contain;
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35));
}

/* Floating feature panel. */
.about-page .ap-features {
	background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
	padding: 0 0 8px;
	margin-top: -60px;
}

.about-page .ap-features-panel {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--ap-white);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-md);
	padding: 34px 8px;
}

.about-page .ap-feature {
	text-align: center;
	padding: 6px 22px;
	position: relative;
}

.about-page .ap-feature + .ap-feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 58px;
	background: var(--ap-line);
}

.about-page .ap-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ap-tint);
	color: var(--ap-navy);
	margin-bottom: 14px;
}

.about-page .ap-feature__icon svg {
	width: 26px;
	height: 26px;
}

.about-page .ap-feature h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--ap-navy);
}

.about-page .ap-feature p {
	margin-top: 4px;
	font-size: 13.5px;
	color: var(--ap-muted);
}

/* Split rows (publications / why-choose / meet). */
.about-page .ap-split {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: 60px;
	align-items: center;
}

.about-page .ap-split--media {
	grid-template-columns: 1.15fr .85fr;
}

/* Publications visual. */
.about-page .ap-pub-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 380px;
}

.about-page .ap-pub-visual__blob {
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: var(--ap-tint);
}

.about-page .ap-pub-visual__book {
	position: relative;
	width: 240px;
	height: 240px;
	color: var(--ap-navy);
}

.about-page .ap-pub-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 30px;
}

.about-page .ap-pub-card {
	background: var(--ap-tint);
	border: 1px solid transparent;
	border-radius: var(--ap-radius-sm);
	padding: 24px 18px;
	transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.about-page .ap-pub-card:hover {
	transform: translateY(-6px);
	background: var(--ap-white);
	border-color: var(--ap-line);
	box-shadow: var(--ap-shadow-md);
}

.about-page .ap-pub-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--ap-white);
	color: var(--ap-blue);
	box-shadow: var(--ap-shadow-sm);
}

.about-page .ap-pub-card:hover .ap-pub-card__icon {
	background: var(--ap-navy);
	color: var(--ap-gold);
}

.about-page .ap-pub-card__icon svg {
	width: 24px;
	height: 24px;
}

.about-page .ap-pub-card h3 {
	margin-top: 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ap-navy);
}

.about-page .ap-pub-card p {
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--ap-muted);
}

/* Portraits. */
.about-page .ap-portrait img,
.about-page .ap-message__photo img {
	width: 100%;
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-md);
	object-fit: cover;
}

.about-page .ap-portrait img {
	aspect-ratio: 4 / 5;
}

.about-page .ap-portrait--tall img {
	aspect-ratio: 5 / 6;
}

/* Director's message band. */
.about-page .ap-message {
	background: var(--ap-tint);
	padding: 96px 0;
}

.about-page .ap-message__grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 60px;
	align-items: center;
}

.about-page .ap-message__body .ap-heading {
	margin-top: 14px;
}

.about-page .ap-message__body p {
	margin-top: 16px;
	color: #33415c;
}

.about-page .ap-message__sign {
	font-weight: 700;
	color: var(--ap-navy) !important;
}

.about-page .ap-message__photo {
	position: relative;
}

.about-page .ap-message__photo::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border-radius: var(--ap-radius);
	background: linear-gradient(135deg, var(--ap-blue), var(--ap-navy));
	z-index: -1;
}

.about-page .ap-message__photo img {
	aspect-ratio: 5 / 6;
}

/* Departments. */
.about-page .ap-dept-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.about-page .ap-dept {
	background: var(--ap-white);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}

.about-page .ap-dept:hover {
	transform: translateY(-8px);
	box-shadow: var(--ap-shadow-lg);
}

.about-page .ap-dept__photo {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ap-tint);
}

.about-page .ap-dept__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .5s ease;
}

.about-page .ap-dept:hover .ap-dept__photo img {
	transform: scale(1.06);
}

.about-page .ap-dept__body {
	padding: 26px 26px 30px;
}

.about-page .ap-dept__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -50px;
	margin-bottom: 14px;
	position: relative;
	border-radius: 14px;
	background: var(--ap-navy);
	color: var(--ap-gold);
	box-shadow: var(--ap-shadow-md);
	border: 3px solid var(--ap-white);
}

.about-page .ap-dept__icon svg {
	width: 24px;
	height: 24px;
}

.about-page .ap-dept__body h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--ap-navy);
}

.about-page .ap-dept__role {
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--ap-blue);
}

.about-page .ap-dept__body p:last-child {
	margin-top: 12px;
	font-size: 14.5px;
	color: var(--ap-muted);
}

/* Manuscript CTA. */
.about-page .ap-cta {
	padding: 40px 0 96px;
	background: var(--ap-tint);
}

.about-page .ap-cta__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	background: linear-gradient(120deg, var(--ap-navy) 0%, var(--ap-blue) 100%);
	border-radius: 24px;
	padding: 40px 44px;
	box-shadow: var(--ap-shadow-lg);
}

.about-page .ap-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex: 0 0 auto;
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	color: var(--ap-gold);
}

.about-page .ap-cta__icon svg {
	width: 30px;
	height: 30px;
}

.about-page .ap-cta__text {
	flex: 1 1 280px;
}

.about-page .ap-cta__text h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 800;
	color: var(--ap-white);
	letter-spacing: -.4px;
}

.about-page .ap-cta__text p {
	margin-top: 6px;
	color: rgba(255, 255, 255, .82);
}

.about-page .ap-cta .ap-btn {
	margin-top: 0;
	flex: 0 0 auto;
}

/* Scroll reveal (only active when JS adds .ap-anim-ready). */
.about-page.ap-anim-ready [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s ease, transform .7s ease;
}

.about-page.ap-anim-ready [data-reveal].ap-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.about-page.ap-anim-ready [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.about-page .ap-btn,
	.about-page .ap-dept,
	.about-page .ap-pub-card {
		transition: none;
	}
}

/* Responsive. */
@media (max-width: 1024px) {
	.about-page .ap-section,
	.about-page .ap-message {
		padding: 72px 0;
	}

	.about-page .ap-hero-grid,
	.about-page .ap-split,
	.about-page .ap-split--media,
	.about-page .ap-message__grid {
		gap: 40px;
	}
}

@media (max-width: 860px) {
	.about-page .ap-hero-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about-page .ap-hero-media {
		order: -1;
		aspect-ratio: 16 / 10;
	}

	.about-page .ap-features {
		margin-top: -40px;
	}

	.about-page .ap-features-panel {
		grid-template-columns: repeat(2, 1fr);
		gap: 26px 0;
		padding: 28px 8px;
	}

	.about-page .ap-feature + .ap-feature:nth-child(3)::before {
		display: none;
	}

	.about-page .ap-split,
	.about-page .ap-split--media,
	.about-page .ap-message__grid {
		grid-template-columns: 1fr;
	}

	.about-page .ap-portrait,
	.about-page .ap-message__photo {
		max-width: 420px;
	}

	.about-page .ap-message__photo {
		order: -1;
	}

	.about-page .ap-pub-visual {
		min-height: 300px;
	}

	.about-page .ap-dept-grid {
		grid-template-columns: 1fr;
		max-width: 460px;
		margin: 0 auto;
	}
}

@media (max-width: 560px) {
	.about-page .ap-container {
		padding: 0 18px;
	}

	.about-page .ap-section,
	.about-page .ap-message {
		padding: 56px 0;
	}

	.about-page .ap-hero {
		padding-top: 56px;
	}

	.about-page .ap-features-panel {
		grid-template-columns: 1fr;
	}

	.about-page .ap-feature + .ap-feature::before {
		display: none;
	}

	.about-page .ap-pub-cards {
		grid-template-columns: 1fr;
	}

	.about-page .ap-btn {
		width: 100%;
		justify-content: center;
	}

	.about-page .ap-cta__inner {
		padding: 30px 24px;
		text-align: center;
	}

	.about-page .ap-cta__icon {
		margin: 0 auto;
	}

	.about-page .ap-cta .ap-btn {
		width: 100%;
	}
}

/* ==========================================================================
   CONTACT PAGE — premium navy & gold (matches the About design system).
   ========================================================================== */
.contact-page {
	--ap-navy: #092B62;
	--ap-navy-800: #0a2f68;
	--ap-blue: #1557B8;
	--ap-gold: #FFC533;
	--ap-gold-600: #f0b400;
	--ap-tint: #EEF4FF;
	--ap-text: #17243B;
	--ap-muted: #64748B;
	--ap-line: rgba(9, 43, 98, .10);
	--ap-radius: 18px;
	--ap-radius-sm: 12px;
	--ap-shadow-sm: 0 6px 20px rgba(9, 43, 98, .06);
	--ap-shadow-md: 0 18px 44px rgba(9, 43, 98, .10);
	--ap-shadow-lg: 0 30px 70px rgba(9, 43, 98, .16);
	--ap-maxw: 1180px;
	font-family: 'Plus Jakarta Sans', 'Public Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ap-text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* --- shared building blocks, scoped to the contact page --- */
.contact-page img { max-width: 100%; height: auto; display: block; }
.contact-page .ap-container { width: 100%; max-width: calc(var(--ap-maxw) + 40px); margin: 0 auto; padding: 0 20px; }
.contact-page .ap-section { padding: clamp(56px, 8vw, 110px) 0; }
.contact-page .ap-section--tight { padding: 0; }
.contact-page .ap-section--top { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 8vw, 100px); }
.contact-page .ap-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .78rem; color: var(--ap-blue); margin: 0 0 14px; }
.contact-page .ap-eyebrow--light { color: var(--ap-gold); }
.contact-page .ap-eyebrow--line { display: flex; align-items: center; gap: 14px; }
.contact-page .ap-eyebrow--line::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--ap-gold); }
.contact-page .ap-heading { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--ap-navy); margin: 0 0 8px; }
.contact-page .ap-hero-title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; color: #fff; margin: 0 0 18px; }
.contact-page .ap-hero-title span { color: var(--ap-gold); }
.contact-page .ap-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 700; font-size: .98rem; line-height: 1;
	padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.contact-page .ap-btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.contact-page .ap-btn:hover svg { transform: translateX(4px); }
.contact-page .ap-btn--gold { background: var(--ap-gold); color: #0a2452; box-shadow: 0 14px 30px rgba(255, 197, 51, .38); }
.contact-page .ap-btn--gold:hover { background: var(--ap-gold-600); color: #0a2452; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255, 197, 51, .46); }
.contact-page.ap-anim-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.contact-page.ap-anim-ready [data-reveal].ap-in { opacity: 1; transform: none; }

/* --- hero --- */
.ct-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(circle at 85% 12%, rgba(21, 87, 184, .6), transparent 45%), linear-gradient(135deg, #06214d 0%, var(--ap-navy) 55%, #0e3a7e 100%);
	padding: clamp(64px, 8vw, 104px) 0 clamp(96px, 11vw, 132px);
}
.ct-hero::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 197, 51, .18), transparent 70%); pointer-events: none; }
.ct-hero .ap-container { position: relative; z-index: 1; }
.ct-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .55); margin: 0 0 22px; }
.ct-breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ct-breadcrumb a:hover { color: var(--ap-gold); }
.ct-breadcrumb span { opacity: .5; }
.ct-breadcrumb em { font-style: normal; color: var(--ap-gold); }
.ct-hero__lead { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .82); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }

/* --- contact cards --- */
.ct-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: -84px; position: relative; z-index: 2; }
.ct-card {
	display: flex; flex-direction: column; gap: 4px;
	background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
	padding: 28px 26px; box-shadow: var(--ap-shadow-md); color: inherit; text-decoration: none;
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ct-card:hover { transform: translateY(-6px); border-color: rgba(255, 197, 51, .6); box-shadow: var(--ap-shadow-lg); }
.ct-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ap-tint); color: var(--ap-blue); margin-bottom: 14px; transition: background .28s ease, color .28s ease; }
.ct-card:hover .ct-card__icon { background: var(--ap-navy); color: var(--ap-gold); }
.ct-card__icon svg { width: 26px; height: 26px; }
.ct-card__label { font-weight: 800; color: var(--ap-navy); font-size: 1.05rem; }
.ct-card__value { color: var(--ap-muted); font-size: .95rem; line-height: 1.5; }
a.ct-card:hover .ct-card__value { color: var(--ap-blue); }

/* --- form + map grid --- */
.ct-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }

.ct-form-panel { background: #fff; border: 1px solid var(--ap-line); border-radius: 24px; padding: clamp(26px, 4vw, 46px); box-shadow: var(--ap-shadow-md); }
.ct-form-panel__note { color: var(--ap-muted); font-size: .92rem; margin: 0 0 24px; }
.ct-form { display: grid; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field label { font-weight: 700; color: var(--ap-navy); font-size: .9rem; }
.ct-field label span { color: var(--ap-gold-600); }
.ct-field input, .ct-field textarea {
	width: 100%; border: 1.5px solid #dbe4f3; border-radius: var(--ap-radius-sm);
	padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ap-text); background: #fbfcff;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ct-field textarea { resize: vertical; min-height: 150px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9aa7bd; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--ap-blue); background: #fff; box-shadow: 0 0 0 4px rgba(21, 87, 184, .12); }
.ct-form__submit { justify-self: start; margin-top: 6px; }

/* --- notices inside the form panel --- */
.contact-page .woocommerce-notices-wrapper { margin: 0 0 6px; }
.contact-page .woocommerce-message, .contact-page .woocommerce-info { background: #eafaf1; border: none; border-left: 4px solid #22a06b; color: #14532d; border-radius: 12px; padding: 14px 18px; margin: 0 0 10px; }
.contact-page .woocommerce-info { background: var(--ap-tint); border-left-color: var(--ap-blue); color: var(--ap-navy); }
.contact-page .woocommerce-error { background: #fdecec; border: none; border-left: 4px solid #e11d48; color: #7f1d1d; border-radius: 12px; padding: 14px 18px; margin: 0 0 10px; list-style: none; }
.contact-page .woocommerce-error li { list-style: none; margin: 0; }

/* --- map + locations --- */
.ct-map-panel { display: flex; flex-direction: column; gap: 22px; }
.ct-map { border-radius: 24px; overflow: hidden; box-shadow: var(--ap-shadow-md); border: 1px solid var(--ap-line); height: 360px; }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 360px; }
.ct-locations { background: var(--ap-navy); border-radius: 20px; padding: 26px 30px; color: #fff; box-shadow: var(--ap-shadow-md); }
.ct-locations h3 { color: #fff; font-weight: 800; font-size: 1.15rem; margin: 0 0 16px; }
.ct-locations ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ct-locations li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.ct-locations li:last-child { padding-bottom: 0; border-bottom: 0; }
.ct-locations__name { font-weight: 700; color: var(--ap-gold); }
.ct-locations__detail { font-size: .92rem; color: rgba(255, 255, 255, .78); }

/* --- responsive --- */
@media (max-width: 1024px) {
	.contact-page .ct-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.contact-page .ct-grid { grid-template-columns: 1fr; gap: 30px; }
	.contact-page .ct-cards { margin-top: -60px; }
}
@media (max-width: 560px) {
	.contact-page .ct-cards { grid-template-columns: 1fr; margin-top: -50px; }
	.contact-page .ct-form__submit { width: 100%; justify-content: center; }
	.contact-page .ct-map, .contact-page .ct-map iframe { height: 300px; min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
	.contact-page.ap-anim-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   Homepage slider fed by the dashboard's Sliders screen.
   templates/partials/home-slider.php
   --------------------------------------------------------------------------- */
.ricardo-slider {
	--rs-accent: #fc8200;
	--rs-ink: #ffffff;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f4f4f4;
}

.ricardo-slider-track {
	position: relative;
	display: flex;
	align-items: stretch;
	aspect-ratio: 31 / 20;
	min-height: 320px;
	transform: translateX(0);
	transition: transform .6s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.ricardo-slider-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	margin: 0;
}

/* Without JavaScript only the first slide is laid out; the rest stay hidden. */
.ricardo-slider-slide[hidden] {
	display: none;
}

.ricardo-slider-media {
	display: block;
	width: 100%;
	height: 100%;
}

.ricardo-slider-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ricardo-slider-caption {
	position: absolute;
	left: clamp(16px, 5vw, 72px);
	bottom: clamp(20px, 6vw, 76px);
	max-width: min(560px, 72%);
	z-index: 2;
	color: var(--rs-ink);
	text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.ricardo-slider-title {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 3.2vw, 2.6rem);
	font-weight: 800;
	line-height: 1.15;
}

/* The caption settles in as its slide glides into place. */
.ricardo-slider-slide.is-active .ricardo-slider-caption {
	animation: ricardo-slider-caption .75s ease both;
}

@keyframes ricardo-slider-caption {
	from { opacity: 0; transform: translateX(28px); }
	to   { opacity: 1; transform: translateX(0); }
}

.ricardo-slider-text {
	margin: 0;
	font-size: clamp(.95rem, 1.4vw, 1.15rem);
	line-height: 1.5;
}

.ricardo-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: rgba(0, 0, 0, .28);
	color: var(--rs-ink);
	font-size: 34px;
	line-height: 64px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, background .25s ease;
}

.ricardo-slider:hover .ricardo-slider-arrow,
.ricardo-slider-arrow:focus-visible {
	opacity: 1;
}

.ricardo-slider-arrow:hover { background: var(--rs-accent); }

.ricardo-slider-prev { left: 12px; }
.ricardo-slider-next { right: 12px; }

.ricardo-slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ricardo-slider-dot {
	width: 10px;
	height: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}

.ricardo-slider-dot.is-active {
	background: var(--rs-accent);
	transform: scale(1.25);
}

@media (max-width: 1024px) {
	.ricardo-slider-track { aspect-ratio: 16 / 10; }
}

@media (max-width: 778px) {
	.ricardo-slider-track { aspect-ratio: 4 / 3; min-height: 260px; }
	.ricardo-slider-arrow { opacity: 1; width: 34px; height: 48px; font-size: 26px; line-height: 48px; }
}

@media (max-width: 480px) {
	.ricardo-slider-track { aspect-ratio: 1 / 1; min-height: 220px; }
	.ricardo-slider-caption { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
	.ricardo-slider-track { transition: none; }
	.ricardo-slider-slide.is-active .ricardo-slider-caption { animation: none; }
	.ricardo-slider-arrow,
	.ricardo-slider-dot { transition: none; }
}

/* ------------------------------------------------------- digital bookstore */

.google-signin {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
	padding: 11px 16px;
	border: 1px solid #dadce0;
	border-radius: 6px;
	background: #fff;
	color: #3c4043;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .15s ease, box-shadow .15s ease;
}

.google-signin:hover,
.google-signin:focus {
	background: #f8f9fa;
	color: #3c4043;
	box-shadow: 0 1px 3px rgba(60, 64, 67, .24);
}

.google-signin svg { flex: none; }

.google-note {
	margin: 10px 0 0;
	font-size: 13px;
	color: #6b7280;
}

/* Guests see why an add-to-cart click asks for an account first. */
.cart-account-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #6b7280;
}

/* A zero-price book is claimed in one click, so the button that does it is
   labelled FREE and carries the shop's orange rather than the theme green. */
.free-claim-button {
	background-color: #fc8200 !important;
	border-color: #fc8200 !important;
	color: #fff !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.free-claim-button:hover,
.free-claim-button:focus {
	background-color: #d96f00 !important;
	border-color: #d96f00 !important;
	color: #fff !important;
}

.free-claim-button .title-cart { color: inherit; }

.price-free .amount,
.price-free .woocommerce-Price-amount bdi {
	color: #fc8200;
	font-weight: 700;
	letter-spacing: .06em;
}

.onsale.free-onsale > span { background: #fc8200 !important; }

.free-book-claim { margin: 18px 0 0; }

.free-book-claim .free-claim-button {
	display: inline-block;
	min-width: 176px;
	padding: 15px 30px;
	border-radius: 3px;
	font-size: 15px;
	text-align: center;
	text-decoration: none;
}

.mobile-btn-cart-click .free-claim-button {
	display: block;
	padding: 12px 18px;
	text-align: center;
	text-decoration: none;
}

.free-book-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #6b7280;
}

.free-book-note a { text-decoration: underline; }

/* The review notice is for guests only, so it carries the two ways into an
   account right where the rule is read. */
#review_form_wrapper .review-account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
}
#review_form_wrapper .review-account-actions .button {
	display: inline-block;
	margin: 0;
	padding: 12px 24px;
	border-radius: 4px;
	line-height: 1.2;
	text-decoration: none;
}

/* ==================================================================
   Checkout — professional two-column till.
   Left: details + payment cards + the pay button. Right: order summary,
   trust badges and a help box. The pay button turns sticky on phones so the
   CTA never leaves the screen while the form is scrolled.
   ================================================================== */

/* Headline block + the three-step progress strip above the grid. */
.co-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 0 0 26px;
}
.co-head__title {
	margin: 0 0 4px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 800;
	color: #111827;
	letter-spacing: -.01em;
}
.co-head__sub {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}
.co-steps {
	counter-reset: step;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}
.co-step {
	counter-increment: step;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #9ca3af;
}
.co-step__dot {
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	font-size: 11.5px;
	font-weight: 700;
}
.co-step__dot::before {
	content: counter(step);
}
.co-step.is-done {
	color: #2563eb;
}
.co-step.is-done .co-step__dot {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
}
.co-step.is-active {
	color: #1e40af;
}
.co-step.is-active .co-step__dot {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
	color: #2563eb;
}
.co-step + .co-step::before {
	content: "";
	width: 26px;
	height: 2px;
	margin-right: 8px;
	background: #e5e7eb;
	border-radius: 1px;
}
.co-step.is-active + .co-step::before,
.co-step.is-done + .co-step::before {
	background: #93c5fd;
}

/* The grid: form column + summary column. */
.co-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 26px;
	align-items: start;
}

/* Every panel on the page shares this card look. */
.co-card {
	background: #fff;
	border: 1px solid #e7e9f0;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 28px rgba(17, 24, 39, .05);
}
.co-card + .co-card {
	margin-top: 22px;
}
.co-card__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 16px;
	font-size: 16.5px;
	font-weight: 700;
	color: #111827;
}
.co-card__title--shield svg {
	color: #2563eb;
}
.co-card__sub {
	margin: -8px 0 14px;
	font-size: 13.5px;
	color: #6b7280;
}

/* Account rows: icon + label + value; the wallet line carries the input. */
.co-details__row {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 12px;
	font-size: 14px;
}
.co-details__ico {
	display: inline-flex;
	width: 34px;
	height: 34px;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f3f4f6;
	color: #6b7280;
	flex: none;
}
.co-details__label {
	color: #6b7280;
	min-width: 96px;
	font-size: 13.5px;
}
.co-details__value {
	font-weight: 600;
	color: #111827;
	word-break: break-word;
}
.co-details__field {
	position: relative;
	flex: 1 1 auto;
	max-width: 320px;
}
.co-details__field .input-text {
	width: 100%;
	margin: 0;
	padding: 10px 38px 10px 12px;
	border: 1.5px solid #e5e7eb;
	border-radius: 9px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
}
.co-details__field .input-text:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.co-details__edit {
	position: absolute;
	top: 50%;
	right: 11px;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

/* Light-blue guidance strip shared by both columns. */
.co-info {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	color: #1e40af;
	font-size: 13px;
	line-height: 1.55;
}
.co-info svg {
	flex: none;
	margin-top: 1px;
	color: #2563eb;
}
.co-info p {
	margin: 0;
}
.co-info a {
	color: #1d4ed8;
	font-weight: 600;
}

/* Payment methods as selectable brand cards (MTN, Airtel, M-Pesa, card).
   The radio input is visually hidden but stays focusable; the sibling
   selector paints the card, so picking a method needs no JavaScript. */
.pay-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 4px 0 20px;
}
.pay-card-cell {
	position: relative;
	display: flex;
}
/* `form.checkout` lifts this above the theme rule
   `form.checkout input[type="radio"] { display: none }`, which would
   otherwise make the radios unreachable by keyboard. */
form.checkout .pay-card-cell > input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	display: block;
	opacity: 0;
	pointer-events: none;
}
.pay-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	flex: 1 1 auto;
	padding: 14px 14px 13px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pay-card:hover {
	border-color: #c7d2fe;
}
.pay-card-cell > input:checked + .pay-card {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.pay-card-cell > input:focus-visible + .pay-card {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
/* Square checkbox, top-left, mirroring the reference deposit screen. */
.pay-card__box {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 19px;
	height: 19px;
	box-sizing: border-box;
	border: 1.5px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, border-color .15s ease;
}
.pay-card__box svg {
	width: 13px;
	height: 13px;
	opacity: 0;
}
.pay-card-cell > input:checked + .pay-card .pay-card__box {
	background: #2563eb;
	border-color: #2563eb;
}
.pay-card-cell > input:checked + .pay-card .pay-card__box svg {
	opacity: 1;
}
.pay-card__tile {
	display: block;
	line-height: 0;
}
.pay-card__tile svg {
	border-radius: 10px;
	display: block;
}
.pay-card__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}
.pay-card__note {
	font-size: 12px;
	line-height: 1.45;
	color: #6b7280;
}
.pay-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
}
.pay-badge--blue {
	background: #eff6ff;
	color: #1d4ed8;
}

/* The primary action. Sticky at the bottom of the viewport on phones so the
   customer can always see — and reach — the pay button while scrolling. */
.co-pay-sticky {
	margin-top: 6px;
}
.co-form .co-pay-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 13px 22px;
	border: none;
	border-radius: 11px;
	background: #2563eb;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
	transition: background .15s ease, box-shadow .15s ease;
	appearance: none;
	-webkit-appearance: none;
	text-transform: none;
}
.co-form .co-pay-btn:hover,
.co-form .co-pay-btn:focus {
	background: #1d4ed8;
	color: #fff;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .34);
}
.co-pay-btn svg {
	flex: none;
}
.co-pay-note {
	margin: 10px 0 0;
	text-align: center;
	font-size: 12px;
	color: #9ca3af;
}
.co-pay-note a {
	color: #6b7280;
	text-decoration: underline;
}

/* Order summary column. */
.co-sum__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}
.co-sum__title svg {
	color: #2563eb;
}
.co-sum__items {
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}
.co-sum-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #f1f2f7;
}
.co-sum-item__thumb {
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 9px;
	overflow: hidden;
	background: #f3f4f6;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.co-sum-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.co-sum-item__thumb svg {
	width: 34px;
	height: 34px;
}
.co-sum-item__body {
	flex: 1 1 auto;
	min-width: 0;
}
.co-sum-item__name {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
}
.co-sum-item__meta {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: #9ca3af;
}
.co-sum-item__price {
	flex: none;
	font-size: 13.5px;
	font-weight: 700;
	color: #dc2626;
}
.co-sum__totals {
	margin: 8px 0 14px;
}
.co-sum-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	font-size: 13.5px;
	color: #374151;
}
.co-sum-row dt {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}
.co-sum-row dt svg {
	color: #9ca3af;
}
.co-sum-row dd {
	margin: 0;
	font-weight: 600;
}
.co-sum-row__free {
	color: #059669;
}
.co-sum__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 11px;
	background: #2563eb;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}
.co-sum__total strong {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.co-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.co-trust li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	justify-content: center;
	padding: 7px 8px;
	border: 1px solid #e7e9f0;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
}
.co-trust svg {
	color: #2563eb;
}
.co-help {
	margin: 14px 0 0;
	padding: 13px 14px;
	border-radius: 10px;
	background: #eff6ff;
}
.co-help__title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: #1e40af;
}
.co-help__line {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: #1e40af;
}
.co-help__line a {
	color: #1d4ed8;
}

/* Two columns become one: the form stays first, the summary follows, and the
   pay button sticks to the bottom of the viewport while scrolling. */
@media (max-width: 991px) {
	.co-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.co-col-side {
		margin-top: 22px;
	}
}
@media (max-width: 768px) {
	.co-head {
		margin-bottom: 20px;
	}
	.co-head__title {
		font-size: 25px;
	}
	.co-steps {
		order: 2;
		flex-basis: 100%;
	}
	.co-card {
		padding: 16px 14px;
		border-radius: 12px;
	}
	.co-details__label {
		display: none;
	}
	.co-details__row--input {
		flex-wrap: wrap;
	}
	.co-details__field {
		max-width: none;
		flex-basis: 100%;
	}
	/* The sticky CTA: always visible at the bottom edge while the form is
	   taller than the screen, with a soft fade so cards slide under it. */
	.co-pay-sticky {
		position: sticky;
		bottom: 12px;
		z-index: 40;
		margin: 14px -6px 0;
		padding: 10px 6px 6px;
		background: linear-gradient(to top, rgba(255, 255, 255, .96) 62%, rgba(255, 255, 255, 0));
		border-radius: 12px;
	}
	.co-form .co-pay-btn {
		min-height: 54px;
		font-size: 16.5px;
	}
	.co-pay-note {
		margin-top: 8px;
	}
}
@media (max-width: 560px) {
	.pay-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
	.pay-card {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
		padding: 12px;
	}
	.pay-card__tile {
		flex: none;
	}
	.pay-card__name {
		flex: 1 1 auto;
	}
	.pay-card__note {
		flex-basis: 100%;
	}
	.co-sum-item__thumb {
		width: 40px;
		height: 40px;
	}
}

/* Receipt of a pending PayTrust payment: the hosted page and the status check. */
.order-pay-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 18px 0 6px;
}

.order-pay-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.order-pay-hint {
	margin: 0 0 24px;
	font-size: 13px;
	color: #6b7280;
}

.book-read-cta {
	margin: 24px 0 0;
	padding: 18px 20px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fbfbfb;
}

.book-read-cta p {
	margin: 0 0 12px;
	font-size: 14px;
	color: #555;
}

.read-online-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.read-online-button:hover,
.read-online-button:focus {
	background: #333;
	color: #fff;
}

.rd-library {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.rd-library-item {
	display: flex;
	gap: 16px;
	padding: 14px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
}

.rd-library-cover {
	flex: none;
	width: 92px;
}

.rd-library-cover img {
	display: block;
	width: 92px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.rd-library-meta {
	min-width: 0;
}

.rd-library-meta h3 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
}

.rd-library-sub {
	margin: 0 0 10px;
	font-size: 13px;
	color: #6b7280;
}

.rd-library-order {
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.rd-library .read-online-button {
	padding: 9px 16px;
	font-size: 14px;
}

/* An owned title whose file has not been uploaded yet: listed, not yet readable. */
.rd-library-coming {
	display: inline-block;
	padding: 8px 12px;
	border: 1px dashed #d8b45a;
	border-radius: 4px;
	background: #fdf6e3;
	font-size: 13px;
	line-height: 1.4;
	color: #7a5d12;
}

.rd-empty {
	margin: 22px 0 0;
	padding: 20px;
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	color: #6b7280;
}

@media (max-width: 520px) {
	.rd-library { grid-template-columns: 1fr; }
	.rd-library-item { flex-direction: column; }
	.rd-library-cover,
	.rd-library-cover img { width: 100%; max-width: 160px; }
}

/* ==========================================================================
   Account screens — sign in, sign up, password reset and the signup code.

   A self-contained card scoped to `.rg-auth`, loaded after the theme so the
   WooCommerce form rules cannot reach it. The gradient panel is decorative and
   drops away below 900px, where the form takes the full width.
   ========================================================================== */
.rg-auth {
	--rg-ink: #151a33;
	--rg-body: #5b6178;
	--rg-muted: #9aa0b4;
	--rg-line: #e4e6f2;
	--rg-soft: #f5f6fc;
	--rg-accent: #4650e6;
	--rg-accent-dark: #3a43cf;
	--rg-navy: #141a33;

	padding: 34px 0 56px;
	color: var(--rg-body);
	font-size: 15px;
}

.rg-auth *,
.rg-auth *::before,
.rg-auth *::after {
	box-sizing: border-box;
}

.rg-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.rg-auth-notices {
	max-width: 1060px;
	margin: 0 auto 18px;
}

/* ------------------------------------------------------------------ card */
.rg-auth-card {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	max-width: 1060px;
	margin: 0 auto;
	background: #fff;
	border-radius: 26px;
	border: 1px solid rgba(20, 26, 60, .06);
	box-shadow: 0 30px 70px rgba(17, 21, 52, .10);
	overflow: hidden;
}

/* --------------------------------------------------------- intro panel */
.rg-auth-intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	padding: 46px 42px 38px;
	color: #fff;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 58%),
		linear-gradient(158deg, #5658f2 0%, #4a4ff0 46%, #7a5ff6 100%);
	border-radius: 22px;
	margin: 14px;
}

.rg-auth-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

.rg-auth-intro-copy h2 {
	margin: 0 0 14px;
	font-size: 31px;
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
}

.rg-auth-lead {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .82);
	max-width: 34ch;
}

.rg-auth-art {
	display: block;
	width: 100%;
	height: auto;
	margin: 6px 0 2px;
}

.rg-auth-points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .92);
}

.rg-auth-points li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.rg-auth-tick {
	display: inline-grid;
	place-items: center;
	width: 19px;
	height: 19px;
	flex: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

/* ---------------------------------------------------------- form panel */
.rg-auth-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 52px 54px;
}

.rg-auth-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 28px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--rg-ink);
}

.rg-auth-mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(150deg, #5658f2, #7a5ff6);
	box-shadow: 0 8px 18px rgba(70, 80, 230, .34);
}

.rg-auth .rg-auth-title {
	margin: 0 0 8px;
	font-size: 27px;
	line-height: 1.22;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--rg-ink);
}

.rg-auth .rg-auth-sub {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rg-body);
}

.rg-auth .rg-auth-sub strong {
	color: var(--rg-ink);
	font-weight: 600;
}

/* Tabs */
.rg-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 24px;
	background: var(--rg-soft);
	border-radius: 13px;
}

.rg-auth .rg-auth-tab {
	display: block;
	padding: 10px 8px;
	border-radius: 10px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	color: #6b7185;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.rg-auth .rg-auth-tab:hover {
	color: var(--rg-ink);
}

.rg-auth .rg-auth-tab.is-active {
	background: #fff;
	color: var(--rg-ink);
	box-shadow: 0 1px 4px rgba(20, 26, 60, .14);
}

/* Panels: both stay open without JavaScript, the tab set only hides one once
   the script has marked the card. */
.rg-auth-panel {
	display: block;
}

.rg-auth-card--js .rg-auth-panel {
	display: none;
}

.rg-auth-card--js .rg-auth-panel.is-active {
	display: block;
}

/* Fields */
.rg-auth .rg-auth-form {
	display: grid;
	gap: 14px;
}

.rg-auth .rg-field {
	display: block;
	margin: 0;
}

.rg-auth .rg-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.rg-auth .rg-input {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 52px;
	padding: 0 6px 0 15px;
	background: #fbfbfe;
	border: 1px solid var(--rg-line);
	border-radius: 12px;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.rg-auth .rg-input:focus-within {
	background: #fff;
	border-color: var(--rg-accent);
	box-shadow: 0 0 0 4px rgba(70, 80, 230, .13);
}

.rg-auth .rg-input-icon {
	flex: none;
	color: var(--rg-muted);
}

.rg-auth .rg-input:focus-within .rg-input-icon {
	color: var(--rg-accent);
}

.rg-auth .rg-input input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--rg-ink);
	outline: none;
}

.rg-auth .rg-input input::placeholder {
	color: #a3a8bb;
	opacity: 1;
}

.rg-auth .rg-eye {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--rg-muted);
	cursor: pointer;
	box-shadow: none;
}

.rg-auth .rg-eye:hover,
.rg-auth .rg-eye.is-on {
	color: var(--rg-accent);
}

/* Remember / forgot row */
.rg-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 4px;
	font-size: 13px;
}

.rg-auth .rg-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	font-size: 13px;
	color: var(--rg-body);
	cursor: pointer;
}

.rg-auth .rg-check input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--rg-accent);
}

.rg-auth .rg-link {
	color: var(--rg-accent);
	font-weight: 600;
	text-decoration: none;
}

.rg-auth .rg-link:hover {
	text-decoration: underline;
}

.rg-auth .rg-link-btn {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--rg-accent);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.rg-auth .rg-submit {
	display: block;
	width: 100%;
	height: 52px;
	margin-top: 8px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--rg-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(70, 80, 230, .26);
	transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.rg-auth .rg-submit:hover {
	background: var(--rg-accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 16px 28px rgba(70, 80, 230, .3);
}

.rg-auth .rg-submit:active {
	transform: none;
	box-shadow: 0 8px 16px rgba(70, 80, 230, .24);
}

.rg-auth .rg-submit--dark {
	background: var(--rg-navy);
	box-shadow: 0 12px 24px rgba(20, 26, 51, .24);
}

.rg-auth .rg-submit--dark:hover {
	background: #1d2547;
	box-shadow: 0 16px 28px rgba(20, 26, 51, .28);
}

.rg-auth-hint {
	margin: 2px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: #8b90a3;
}

/* Divider + Google */
.rg-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0 16px;
	font-size: 12.5px;
	color: var(--rg-muted);
}

.rg-auth-divider::before,
.rg-auth-divider::after {
	content: "";
	height: 1px;
	flex: 1 1 auto;
	background: var(--rg-line);
}

.rg-auth-social {
	display: block;
}

.rg-auth .google-signin {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--rg-line);
	border-radius: 12px;
	background: #fff;
	color: var(--rg-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .16s ease;
}

.rg-auth .google-signin:hover {
	border-color: #c9cdf6;
	box-shadow: 0 8px 20px rgba(20, 26, 60, .08);
	transform: translateY(-1px);
}

.rg-auth .rg-auth-alt {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13.5px;
	color: var(--rg-body);
}

.rg-auth .rg-auth-alt a {
	color: var(--rg-accent);
	font-weight: 600;
	text-decoration: none;
}

.rg-auth .rg-auth-alt a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------- code screen */
.rg-auth--verify {
	display: flex;
	justify-content: center;
	padding: 46px 0 64px;
}

.rg-verify-card {
	width: 100%;
	max-width: 528px;
	padding: 42px 44px 34px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 24px;
	box-shadow: 0 28px 64px rgba(17, 21, 52, .10);
	text-align: center;
}

.rg-verify-mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 20px;
	border-radius: 16px;
	background: #eef0fe;
	color: var(--rg-accent);
}

.rg-auth .rg-verify-title {
	margin: 0 0 10px;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--rg-ink);
}

.rg-auth .rg-verify-sub {
	margin: 0 0 28px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rg-body);
}

.rg-auth .rg-verify-sub strong {
	color: var(--rg-ink);
	font-weight: 600;
	word-break: break-word;
}

.rg-auth .rg-otp {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 26px;
}

.rg-auth .rg-otp-box {
	width: 56px;
	height: 66px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--rg-line) !important;
	border-radius: 13px;
	background: #fbfbfe !important;
	box-shadow: none;
	text-align: center;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--rg-ink);
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.rg-auth .rg-otp-box:focus {
	background: #fff !important;
	border-color: var(--rg-accent) !important;
	box-shadow: 0 0 0 4px rgba(70, 80, 230, .13);
}

.rg-auth .rg-otp-box.is-filled {
	border-color: #c9cdf6 !important;
}

.rg-auth .rg-verify-form {
	display: block;
}

.rg-auth .rg-verify-resend {
	margin: 18px 0 0;
}

.rg-auth .rg-verify-resend p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--rg-body);
}

.rg-auth .rg-verify-alt {
	margin: 16px 0 0;
	font-size: 13px;
	color: #8b90a3;
}

.rg-auth .rg-verify-alt a {
	color: var(--rg-accent);
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------------------------------------------ responsive */
/* The storefront theme pins an action bar to the bottom of the viewport below
   1200px. Leave room under the card so it never covers the buttons. */
@media (max-width: 1199px) {
	.rg-auth-page .rg-auth {
		padding-bottom: 86px;
	}
}

@media (max-width: 900px) {
	.rg-auth-intro {
		display: none;
	}

	.rg-auth-card {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.rg-auth-body {
		padding: 40px 34px 44px;
	}
}

@media (max-width: 600px) {
	.rg-auth {
		padding: 18px 0 40px;
	}

	.rg-auth-card {
		border-radius: 20px;
	}

	.rg-auth-body {
		padding: 30px 22px 34px;
	}

	.rg-auth .rg-auth-title,
	.rg-auth .rg-verify-title {
		font-size: 23px;
	}

	.rg-auth .rg-field-row {
		grid-template-columns: 1fr;
	}

	.rg-auth-row {
		flex-wrap: wrap;
	}

	.rg-verify-card {
		padding: 30px 20px 26px;
		border-radius: 20px;
	}

	.rg-auth .rg-otp {
		gap: 6px;
	}

	.rg-auth .rg-otp-box {
		width: 44px;
		height: 54px;
		font-size: 21px;
		border-radius: 11px;
	}
}

/* ==========================================================================
   Account dashboard — the signed-in "My account" screens.

   A self-contained layout scoped to `.rg-dash`, loaded after the theme so the
   WooCommerce account markup cannot reach it: a sidebar (navigation plus the
   customer card) and a column of rounded cards — greeting, four stat tiles,
   the library preview and the recent-orders table. Shares the palette and
   shape language of `.rg-auth` above.
   ========================================================================== */
.rg-dash {
	--rg-ink: #151a33;
	--rg-body: #5b6178;
	--rg-muted: #9aa0b4;
	--rg-line: #e4e6f2;
	--rg-soft: #f5f6fc;
	--rg-accent: #4650e6;
	--rg-accent-dark: #3a43cf;

	display: grid;
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	padding: 10px 0 56px;
	color: var(--rg-body);
	font-size: 15px;
}

.rg-dash *,
.rg-dash *::before,
.rg-dash *::after {
	box-sizing: border-box;
}

/* Generic link colour; the pill buttons opt out via :not() so their own
   (white-on-accent) colour always wins. */
.rg-dash a:not(.rg-dash-btn) {
	color: var(--rg-accent);
}

/* --------------------------------------------------------------- sidebar */
.rg-dash-side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.rg-dash-nav {
	display: grid;
	gap: 4px;
	padding: 10px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(17, 21, 52, .05);
}

.rg-dash-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	color: var(--rg-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background .16s ease, color .16s ease;
}

.rg-dash-nav-link:hover {
	background: var(--rg-soft);
	color: var(--rg-ink);
}

.rg-dash-nav-link.is-active {
	background: var(--rg-soft);
	color: var(--rg-ink);
}

.rg-dash-nav-ico {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 10px;
	background: #eef0f6;
	color: var(--rg-muted);
	font-size: 16px;
	transition: background .16s ease, color .16s ease;
}

.rg-dash-nav-link:hover .rg-dash-nav-ico {
	color: var(--rg-accent);
}

.rg-dash-nav-link.is-active .rg-dash-nav-ico {
	background: linear-gradient(150deg, #5658f2, #7a5ff6);
	color: #fff;
	box-shadow: 0 6px 14px rgba(70, 80, 230, .32);
}

/* Customer card pinned under the navigation. */
.rg-dash-user {
	display: grid;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(17, 21, 52, .05);
}

.rg-dash-user-id {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.rg-dash-avatar {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(150deg, #5658f2, #7a5ff6);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.rg-dash-user-copy {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.rg-dash-user-copy strong {
	color: var(--rg-ink);
	font-size: 14px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rg-dash-user-copy span {
	color: var(--rg-muted);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rg-dash-user-actions {
	display: flex;
	gap: 8px;
}

.rg-dash-user-actions a {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--rg-soft);
	color: var(--rg-body);
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

.rg-dash-user-actions a:hover {
	background: #eef0fe;
	color: var(--rg-accent);
	transform: translateY(-1px);
}

.rg-dash-user-actions svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* ----------------------------------------------------------- main column */
.rg-dash-main {
	display: grid;
	gap: 22px;
	min-width: 0;
}

/* Greeting row. */
.rg-dash-hello {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(17, 21, 52, .05);
}

.rg-dash-hello h2 {
	margin: 0 0 6px;
	font-size: 25px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--rg-ink);
}

.rg-dash-hello p {
	margin: 0;
	max-width: 62ch;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rg-body);
}

.rg-dash-hello p a,
.rg-dash-hello-alt a,
.rg-dash-empty a {
	color: var(--rg-accent);
	font-weight: 600;
	text-decoration: none;
}

.rg-dash-hello p a:hover,
.rg-dash-hello-alt a:hover,
.rg-dash-empty a:hover {
	text-decoration: underline;
}

.rg-dash-hello-alt {
	margin: -8px 0 0;
	font-size: 13px;
	color: var(--rg-muted);
}

/* Stat tiles. */
.rg-dash-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.rg-dash-stat {
	display: grid;
	gap: 7px;
	padding: 18px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 16px;
	box-shadow: 0 12px 30px rgba(17, 21, 52, .05);
	text-decoration: none;
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.rg-dash-stat:hover {
	transform: translateY(-2px);
	border-color: #c9cdf6;
	box-shadow: 0 18px 38px rgba(17, 21, 52, .09);
}

.rg-dash-stat-ico {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #eef0fe;
	color: var(--rg-accent);
}

.rg-dash-stat-ico svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.rg-dash-stat-num {
	font-size: 23px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--rg-ink);
}

.rg-dash-stat-label {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--rg-muted);
}

/* Cards. */
.rg-dash-card {
	padding: 22px 24px;
	background: #fff;
	border: 1px solid rgba(20, 26, 60, .06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(17, 21, 52, .05);
}

.rg-dash-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.rg-dash-card-head h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--rg-ink);
}

.rg-dash-link {
	flex: none;
	color: var(--rg-accent);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.rg-dash-link:hover {
	text-decoration: underline;
}

.rg-dash-card-intro {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rg-body);
}

.rg-dash-card-intro .rg-dash-pill {
	margin-left: 4px;
	vertical-align: 1px;
}

.rg-dash-empty {
	margin: 0;
	padding: 26px 22px;
	border: 1px dashed var(--rg-line);
	border-radius: 12px;
	font-size: 14px;
	color: var(--rg-body);
}

/* Status pills. */
.rg-dash-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: #f1f2f8;
	color: var(--rg-body);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.rg-dash-pill--completed { background: #e3f6ec; color: #0d8a4d; }
.rg-dash-pill--pending { background: #fdf3e0; color: #b26a00; }
.rg-dash-pill--processing,
.rg-dash-pill--on-hold { background: #e8effd; color: #2f5fd8; }
.rg-dash-pill--failed,
.rg-dash-pill--cancelled,
.rg-dash-pill--refunded { background: #fde9e9; color: #c23b3b; }

/* Buttons. */
.rg-dash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--rg-line);
	border-radius: 10px;
	background: #fff;
	color: var(--rg-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.rg-dash-btn:hover {
	border-color: #c9cdf6;
	box-shadow: 0 8px 18px rgba(20, 26, 60, .08);
	color: var(--rg-accent);
}

.rg-dash-btn--pay {
	border-color: transparent;
	background: var(--rg-accent);
	color: #fff;
	box-shadow: 0 8px 18px rgba(70, 80, 230, .26);
}

.rg-dash-btn--pay:hover {
	background: var(--rg-accent-dark);
	color: #fff;
	box-shadow: 0 10px 22px rgba(70, 80, 230, .3);
}

.rg-dash-btn--primary {
	padding: 12px 24px;
	font-size: 14.5px;
}

/* Tables. */
.rg-dash-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.rg-dash-table th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--rg-line);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
	color: var(--rg-muted);
	white-space: nowrap;
}

.rg-dash-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #eef0f6;
	font-size: 14px;
	line-height: 1.5;
	vertical-align: middle;
	color: var(--rg-body);
}

.rg-dash-table tbody tr:last-child td,
.rg-dash-table tbody tr:last-child th {
	border-bottom: 0;
}

.rg-dash-table td a:not(.rg-dash-btn) {
	color: var(--rg-ink);
	font-weight: 600;
	text-decoration: none;
}

.rg-dash-table td a:not(.rg-dash-btn):hover {
	color: var(--rg-accent);
}

.rg-dash-table td .rg-dash-btn + .rg-dash-btn {
	margin-left: 6px;
}

.rg-dash-table--lines tfoot th {
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--rg-muted);
	text-transform: none;
	letter-spacing: 0;
}

.rg-dash-table--lines tfoot td {
	padding: 10px 12px;
	font-weight: 600;
	color: var(--rg-ink);
}

.rg-dash-table--lines tfoot tr:last-child th,
.rg-dash-table--lines tfoot tr:last-child td {
	border-top: 1px solid var(--rg-line);
}

/* Forms (address + account details). */
.rg-dash-form {
	display: grid;
	gap: 20px;
}

.rg-dash-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.rg-dash-field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.rg-dash-field > span {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rg-ink);
}

.rg-dash-req {
	color: #c23b3b;
	font-style: normal;
}

.rg-dash-field input,
.rg-dash-field select {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--rg-line);
	border-radius: 10px;
	background: #fbfbfe;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--rg-ink);
	outline: none;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.rg-dash-field select {
	padding-right: 34px;
}

.rg-dash-field input:focus,
.rg-dash-field select:focus {
	background: #fff;
	border-color: var(--rg-accent);
	box-shadow: 0 0 0 4px rgba(70, 80, 230, .13);
}

.rg-dash-field input[readonly] {
	background: var(--rg-soft);
	color: var(--rg-muted);
}

.rg-dash-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: grid;
	gap: 14px;
}

.rg-dash-fieldset legend {
	padding: 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rg-muted);
}

/* The library cards keep their own `.rd-*` styles; inside a dashboard card the
   top margin only has to clear the card heading. */
.rg-dash .rd-library {
	margin-top: 6px;
}

/* ------------------------------------------------------------ responsive */
/* The storefront theme pins an action bar to the bottom of the viewport below
   1200px. Leave room under the cards so it never covers the buttons. */
@media (max-width: 1199px) {
	.rg-dash {
		padding-bottom: 86px;
	}
}

@media (max-width: 991px) {
	.rg-dash {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.rg-dash-side {
		position: static;
	}

	.rg-dash-nav {
		display: flex;
		overflow-x: auto;
		gap: 6px;
		padding: 8px;
		scrollbar-width: thin;
	}

	.rg-dash-nav-link {
		flex: none;
	}

	.rg-dash-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rg-dash-user-copy span {
		white-space: normal;
	}
}

@media (max-width: 640px) {
	.rg-dash {
		padding-top: 4px;
	}

	.rg-dash-hello {
		padding: 18px 18px 20px;
	}

	.rg-dash-hello h2 {
		font-size: 21px;
	}

	.rg-dash-stats {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.rg-dash-stat {
		grid-template-columns: 40px minmax(0, 1fr);
		grid-template-areas: "ico num" "ico label";
		align-items: center;
		column-gap: 14px;
	}

	.rg-dash-stat-ico { grid-area: ico; }
	.rg-dash-stat-num { grid-area: num; }
	.rg-dash-stat-label { grid-area: label; }

	.rg-dash-card {
		padding: 18px 16px;
	}

	.rg-dash-fields {
		grid-template-columns: 1fr;
	}

	/* Order tables stack one row per order; the header column is re-created
	   from the data-title attribute. */
	.rg-dash-table thead {
		display: none;
	}

	.rg-dash-table tbody tr,
	.rg-dash-table--lines tfoot tr {
		display: block;
		padding: 8px 0;
		border-bottom: 1px solid #eef0f6;
	}

	.rg-dash-table tbody tr:last-child {
		border-bottom: 0;
	}

	.rg-dash-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 14px;
		padding: 7px 0;
		border-bottom: 0;
		text-align: right;
	}

	.rg-dash-table tbody td::before {
		content: attr(data-title);
		flex: none;
		font-size: 12px;
		font-weight: 600;
		color: var(--rg-muted);
		text-align: left;
	}

	.rg-dash-table--lines tfoot th,
	.rg-dash-table--lines tfoot td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 7px 0;
		border-bottom: 0;
		text-align: right;
	}

	.rg-dash-table--lines tfoot th {
		font-size: 12px;
		font-weight: 600;
		color: var(--rg-muted);
		text-align: left;
	}

	.rg-dash-table td .rg-dash-btn + .rg-dash-btn {
		margin-left: 8px;
	}
}
