/**
 * Custom Account Portal — frontend styles.
 * All rules are scoped under .cap-portal so the theme is never affected.
 */

.cap-portal {
	--cap-primary: #0A4A8F;
	--cap-secondary: #D98A06;
	--cap-ink: #14181F;
	--cap-muted: #5B6472;
	--cap-line: #E4E8EE;
	--cap-bg: #F6F8FB;
	--cap-card: #FFFFFF;
	--cap-radius: 12px;
	--cap-radius-sm: 8px;
	--cap-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
	--cap-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--cap-focus: 0 0 0 3px rgba(10, 74, 143, .28);
	--cap-danger: #B42318;
	--cap-success: #067647;
	--cap-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	color: var(--cap-ink);
	font-family: var(--cap-font);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.cap-portal *,
.cap-portal *::before,
.cap-portal *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ *
 * Auth (logged-out)
 * ------------------------------------------------------------------ */
.cap-auth {
	display: flex;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px) 0;
}

.cap-auth__layout {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(20px, 4vw, 48px);
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
}

.cap-auth__main {
	width: 420px;
	max-width: 100%;
	flex-shrink: 0;
}

/* Brand panel (left) */
.cap-auth__brand {
	flex: 1 1 auto;
	max-width: 560px;
	padding: 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.cap-auth__brand-logo { width: 240px; max-width: 100%; height: auto; margin: 0 auto 20px; display: block; }
.cap-auth__brand-title {
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.4;
	color: var(--cap-primary);
	margin: 0 0 16px;
	padding-bottom: 14px;
	position: relative;
	letter-spacing: -.01em;
}
.cap-auth__brand-title::after {
	content: "";
	position: absolute;
	bottom: 0; left: 50%;
	transform: translateX(-50%);
	width: 80px; height: 3px;
	border-radius: 3px;
	background: var(--cap-secondary);
}
.cap-auth__brand-text {
	font-size: 15px;
	line-height: 1.85;
	color: var(--cap-muted);
	max-width: 520px;
	margin: 0;
}

/* Logo shown inside the card only when the brand panel is hidden (mobile) */
.cap-auth__brand-mark { text-align: center; margin-bottom: 20px; }
.cap-auth__layout.has-brand .cap-auth__brand-mark { display: none; }

.cap-auth__card {
	background: var(--cap-card);
	border: 1px solid rgba(10, 74, 143, .12);
	border-radius: var(--cap-radius);
	box-shadow: 0 10px 30px rgba(10, 74, 143, .10);
	padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 26px);
	width: 100%;
	position: relative;
	overflow: hidden;
}
.cap-auth__card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--cap-primary) 0%, var(--cap-primary) 55%, var(--cap-secondary) 100%);
}

@media (max-width: 1024px) {
	.cap-auth__brand { display: none; }
	.cap-auth__layout,
	.cap-auth__main { width: 440px; max-width: 100%; }
	.cap-auth__layout.has-brand .cap-auth__brand-mark { display: block; }
}

@media (max-width: 767px) {
	.cap-auth__layout,
	.cap-auth__main { width: 100%; }
}

.cap-auth__logo {
	max-height: 52px;
	width: auto;
}

.cap-auth__logo-text {
	font-size: 20px;
	font-weight: 700;
	color: var(--cap-primary);
	letter-spacing: -.01em;
}

.cap-auth__title {
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 0 0 6px;
	color: var(--cap-ink);
}

.cap-auth__subtitle {
	color: var(--cap-muted);
	margin: 0 0 22px;
	font-size: 15px;
}

.cap-view[hidden] {
	display: none;
}

.cap-view {
	animation: cap-fade .25s ease;
}

@keyframes cap-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ *
 * Forms
 * ------------------------------------------------------------------ */
.cap-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cap-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cap-field label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cap-ink);
}

.cap-portal input[type="text"],
.cap-portal input[type="email"],
.cap-portal input[type="password"],
.cap-portal input[type="tel"] {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--cap-ink);
	background: #fff;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
	padding: 11px 13px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.cap-portal input:focus {
	outline: none;
	border-color: var(--cap-primary);
	box-shadow: var(--cap-focus);
}

.cap-field.is-invalid input {
	border-color: var(--cap-danger);
}

.cap-field.is-invalid input:focus {
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .22);
}

.cap-field__error {
	color: var(--cap-danger);
	font-size: 12.5px;
	min-height: 0;
}

.cap-field__error:empty {
	display: none;
}

.cap-password {
	position: relative;
}

.cap-password input {
	padding-right: 44px;
}

.cap-password__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 10s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6z'/%3E%3Ccircle cx='10' cy='10' r='2.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.cap-password__toggle:focus-visible {
	outline: none;
	box-shadow: var(--cap-focus);
}

.cap-password__toggle[aria-pressed="true"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 10s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6z'/%3E%3Ccircle cx='10' cy='10' r='2.5'/%3E%3Cline x1='2' y1='2' x2='18' y2='18'/%3E%3C/svg%3E");
}

.cap-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cap-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--cap-muted);
	cursor: pointer;
}

.cap-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--cap-primary);
}

/* Password strength meter */
.cap-strength {
	height: 6px;
	background: var(--cap-line);
	border-radius: 999px;
	overflow: hidden;
}

.cap-strength__bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	transition: width .25s ease, background .25s ease;
}

.cap-strength[data-level="1"] .cap-strength__bar { width: 25%; background: var(--cap-danger); }
.cap-strength[data-level="2"] .cap-strength__bar { width: 50%; background: var(--cap-secondary); }
.cap-strength[data-level="3"] .cap-strength__bar { width: 75%; background: #2E90FA; }
.cap-strength[data-level="4"] .cap-strength__bar { width: 100%; background: var(--cap-success); }

/* ------------------------------------------------------------------ *
 * Buttons & links
 * ------------------------------------------------------------------ */
.cap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 13px 18px;
	border-radius: var(--cap-radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s ease, box-shadow .15s ease, opacity .15s ease;
	width: 100%;
}

.cap-btn--inline { width: auto; }

.cap-btn--primary {
	background: var(--cap-primary);
	color: #fff;
}

.cap-btn--primary:hover { background: #083b73; }

.cap-btn--primary:focus-visible {
	outline: none;
	box-shadow: var(--cap-focus);
}

.cap-btn.is-loading {
	opacity: .75;
	cursor: progress;
	pointer-events: none;
}

.cap-btn--google {
	background: #fff;
	color: var(--cap-ink);
	border-color: var(--cap-line);
}

.cap-btn--google:hover { background: #F7F9FC; }

.cap-btn__gicon {
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.9 29.3 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.3 6.1 29.4 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.3-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 16 19 12 24 12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.3 6.1 29.4 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 10-2 13.6-5.2l-6.3-5.3C29.2 35 26.7 36 24 36c-5.3 0-9.7-3.1-11.3-7.6l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231565C0' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.1-4 5.5l6.3 5.3C39.9 36 44 30.6 44 24c0-1.3-.1-2.3-.4-3.5z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.cap-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--cap-primary);
	cursor: pointer;
	text-decoration: none;
}

.cap-link:hover { text-decoration: underline; }

.cap-link:focus-visible {
	outline: none;
	box-shadow: var(--cap-focus);
	border-radius: 4px;
}

.cap-auth__switch {
	text-align: center;
	margin: 20px 0 0;
	font-size: 14px;
	color: var(--cap-muted);
}

.cap-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--cap-muted);
	font-size: 13px;
}

.cap-divider::before,
.cap-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--cap-line);
}

.cap-form__message {
	font-size: 14px;
}

.cap-form__message.is-error { color: var(--cap-danger); }
.cap-form__message.is-success { color: var(--cap-success); }

/* ------------------------------------------------------------------ *
 * Account (logged-in)
 * ------------------------------------------------------------------ */
.cap-account {
	--cap-nav-w: 260px;
}

.cap-account__grid {
	display: grid;
	grid-template-columns: var(--cap-nav-w) 1fr;
	gap: 28px;
	align-items: start;
}

.cap-account__nav {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 10px;
	position: sticky;
	top: 20px;
}

.cap-account__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cap-account__nav li { margin: 0; }

.cap-account__nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--cap-ink);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.25;
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.cap-account__nav a:hover {
	background: var(--cap-bg);
	color: var(--cap-primary);
}

.cap-account__nav .is-active a {
	background: linear-gradient(135deg, var(--cap-primary), #1663b0);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(10, 74, 143, .22);
}

.cap-account__nav a:focus-visible {
	outline: none;
	box-shadow: var(--cap-focus);
}

/* Icon chip: keeps the icon perfectly centred with the label */
.cap-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 8px;
	background: var(--cap-bg);
	color: var(--cap-primary);
	transition: background .15s ease, color .15s ease;
}
.cap-nav__svg { width: 18px; height: 18px; display: block; }

.cap-account__nav a:hover .cap-nav__icon { background: #e6edf7; }

.cap-account__nav .is-active .cap-nav__icon {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.cap-account__content {
	min-width: 0;
}

/* ------------------------------------------------------------------ *
 * Dashboard
 * ------------------------------------------------------------------ */
.cap-dash__header { margin-bottom: 20px; }

.cap-dash__welcome {
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 0 0 4px;
}

.cap-dash__sub { color: var(--cap-muted); margin: 0; }

.cap-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.cap-stat {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 18px;
}

.cap-stat__value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: var(--cap-primary);
	letter-spacing: -.02em;
}

.cap-stat__value--status {
	font-size: 15px;
	text-transform: capitalize;
}

.cap-stat__label {
	display: block;
	margin-top: 4px;
	color: var(--cap-muted);
	font-size: 13px;
}

.cap-card {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 20px;
	margin-bottom: 20px;
}

.cap-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.cap-card__head h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.cap-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.cap-card-grid .cap-card { margin-bottom: 0; }

.cap-orders { display: flex; flex-direction: column; }

.cap-order {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto;
	gap: 12px;
	align-items: center;
	padding: 12px 6px;
	border-top: 1px solid var(--cap-line);
	color: var(--cap-ink);
	font-size: 14px;
}

.cap-order:first-child { border-top: 0; }

.cap-order__id { font-weight: 600; color: var(--cap-primary); text-decoration: none; }
.cap-order__id:hover { text-decoration: underline; }
.cap-order__date { color: var(--cap-muted); }
.cap-order__total { font-weight: 600; text-align: right; }

.cap-order__track {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border: 1px solid var(--cap-line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cap-primary);
	text-decoration: none;
	white-space: nowrap;
	transition: background .12s ease, border-color .12s ease;
}
.cap-order__track:hover { background: rgba(10, 74, 143, .06); border-color: #cfdaea; }
.cap-order__track .cap-nav__icon { width: 16px; height: 16px; flex: 0 0 16px; background: none; border-radius: 0; color: inherit; }
.cap-order__track .cap-nav__svg { width: 16px; height: 16px; }

.cap-order__pay {
	background: var(--cap-secondary);
	border-color: var(--cap-secondary);
	color: #fff;
}
.cap-order__pay .cap-nav__icon { color: #fff; opacity: 1; }
.cap-order__pay:hover { background: #c07a05; border-color: #c07a05; }

.cap-order__status,
.cap-stat__value--status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #EEF2F7;
	color: var(--cap-muted);
}

.status-completed { background: #E7F6EF; color: var(--cap-success); }
.status-processing { background: #FDF1DF; color: #B5610A; }
.status-on-hold { background: #FEF0C7; color: #93610A; }
.status-pending { background: #EEF2F7; color: var(--cap-muted); }
.status-cancelled,
.status-failed { background: #FDECEA; color: var(--cap-danger); }

.cap-address {
	font-style: normal;
	color: var(--cap-ink);
	font-size: 14px;
	line-height: 1.6;
}

.cap-muted { color: var(--cap-muted); font-size: 14px; margin: 0; }

.cap-empty { text-align: center; padding: 40px 20px; }
.cap-empty__icon { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .5; background-repeat: no-repeat; background-position: center; background-size: contain; }
.cap-empty h3 { margin: 0 0 4px; }
.cap-empty p { color: var(--cap-muted); margin: 0 0 16px; }

/* ------------------------------------------------------------------ *
 * WooCommerce endpoint restyling (orders table, forms, buttons)
 * ------------------------------------------------------------------ */
.cap-account__content .woocommerce-MyAccount-content > h2,
.cap-account__content h1 {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.01em;
	margin: 0 0 16px;
}

.cap-account__content table.woocommerce-orders-table,
.cap-account__content table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	overflow: hidden;
	background: var(--cap-card);
	font-size: 14px;
}

.cap-account__content .shop_table th {
	text-align: left;
	background: var(--cap-bg);
	color: var(--cap-muted);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: 12px 14px;
	border-bottom: 1px solid var(--cap-line);
}

.cap-account__content .shop_table td {
	padding: 14px;
	border-bottom: 1px solid var(--cap-line);
	vertical-align: middle;
}

.cap-account__content .shop_table tr:last-child td { border-bottom: 0; }

.cap-account__content .woocommerce-Button,
.cap-account__content .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--cap-primary);
	color: #fff;
	border: 0;
	border-radius: var(--cap-radius-sm);
	padding: 9px 16px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}

.cap-account__content .button:hover { background: #083b73; }

.cap-account__content .button.view { background: var(--cap-primary); color: #fff; border: 1px solid var(--cap-primary); }
.cap-account__content .button.view:hover { background: #083b73; }

/* Orders list — action buttons */
.cap-account__content .woocommerce-orders-table__cell-order-actions { white-space: normal; }
.cap-account__content .woocommerce-orders-table__cell-order-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 3px 0 3px 6px;
	padding: 7px 15px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}
.cap-account__content .button.pay { background: var(--cap-secondary); color: #fff; border: 1px solid var(--cap-secondary); }
.cap-account__content .button.pay:hover { background: #c07a05; border-color: #c07a05; }
.cap-account__content .button.track { background: #fff; color: var(--cap-primary); border: 1px solid var(--cap-line); }
.cap-account__content .button.track:hover { background: rgba(10, 74, 143, .06); border-color: #cfdaea; }
.cap-account__content .button.cancel { background: #fff; color: var(--cap-danger); border: 1px solid #f3d2ce; }
.cap-account__content .button.cancel:hover { background: #fdecea; }

/* Scope account form styling to WooCommerce/native portal rows only.
 * Do not skin nested third-party widgets (for example VU Bookshop Assistant). */
.cap-account__content .woocommerce-form-row input[type="text"],
.cap-account__content .woocommerce-form-row input[type="email"],
.cap-account__content .woocommerce-form-row input[type="password"],
.cap-account__content .woocommerce-form-row input[type="tel"],
.cap-account__content .woocommerce-form-row select,
.cap-account__content .woocommerce-form-row textarea,
.cap-account__content .form-row input[type="text"],
.cap-account__content .form-row input[type="email"],
.cap-account__content .form-row input[type="password"],
.cap-account__content .form-row input[type="tel"],
.cap-account__content .form-row select,
.cap-account__content .form-row textarea {
	width: 100%;
	font-size: 15px;
	color: var(--cap-ink);
	background: #fff;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
	padding: 11px 13px;
}

.cap-account__content .woocommerce-form-row input:focus,
.cap-account__content .woocommerce-form-row select:focus,
.cap-account__content .woocommerce-form-row textarea:focus,
.cap-account__content .form-row input:focus,
.cap-account__content .form-row select:focus,
.cap-account__content .form-row textarea:focus {
	outline: none;
	border-color: var(--cap-primary);
	box-shadow: var(--cap-focus);
}

.cap-account__content .woocommerce-form-row label,
.cap-account__content .form-row label {
	font-weight: 600;
	font-size: 13.5px;
	display: block;
	margin-bottom: 6px;
}

/* WooCommerce notices */
.cap-portal .woocommerce-message,
.cap-portal .woocommerce-error,
.cap-portal .woocommerce-info {
	border: 1px solid var(--cap-line);
	border-left-width: 4px;
	border-radius: var(--cap-radius-sm);
	background: var(--cap-card);
	padding: 12px 16px;
	margin: 0 0 16px;
	list-style: none;
	font-size: 14px;
}

.cap-portal .woocommerce-message { border-left-color: var(--cap-success); }
.cap-portal .woocommerce-error { border-left-color: var(--cap-danger); }
.cap-portal .woocommerce-info { border-left-color: var(--cap-primary); }

/* Pagination */
.cap-account__content .woocommerce-pagination ul {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}

.cap-account__content .woocommerce-pagination a,
.cap-account__content .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
	text-decoration: none;
	color: var(--cap-ink);
}

.cap-account__content .woocommerce-pagination .current {
	background: var(--cap-primary);
	color: #fff;
	border-color: var(--cap-primary);
}

/* ------------------------------------------------------------------ *
 * Mobile navigation toggle
 * ------------------------------------------------------------------ */
.cap-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
	padding: 12px 14px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 16px;
}

.cap-nav-toggle__bars {
	width: 18px; height: 2px; background: var(--cap-ink); position: relative;
}
.cap-nav-toggle__bars::before,
.cap-nav-toggle__bars::after {
	content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--cap-ink);
}
.cap-nav-toggle__bars::before { top: -6px; }
.cap-nav-toggle__bars::after { top: 6px; }

/* ------------------------------------------------------------------ *
 * Nav icons (inline SVG data URIs)
 * ------------------------------------------------------------------ */
.cap-icon--home   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l7-6 7 6v8a1 1 0 0 1-1 1h-3v-5H7v5H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.cap-icon--bag    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h12l-1 11H5z'/%3E%3Cpath d='M7 6a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.cap-icon--download { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3v9m0 0l3-3m-3 3L7 9'/%3E%3Cpath d='M4 15h12'/%3E%3C/svg%3E"); }
.cap-icon--location { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 18s6-5.3 6-10A6 6 0 0 0 4 8c0 4.7 6 10 6 10z'/%3E%3Ccircle cx='10' cy='8' r='2'/%3E%3C/svg%3E"); }
.cap-icon--search-location { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8.2' cy='8.2' r='5.7'/%3E%3Cpath d='m12.4 12.4 4.1 4.1'/%3E%3Cpath d='M8.2 11.2s2-1.8 2-3.5a2 2 0 1 0-4 0c0 1.7 2 3.5 2 3.5z'/%3E%3Ccircle cx='8.2' cy='7.7' r='.65'/%3E%3C/svg%3E"); }
.cap-icon--card   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='10' rx='2'/%3E%3Cpath d='M3 8h14'/%3E%3C/svg%3E"); }
.cap-icon--user   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='7' r='3'/%3E%3Cpath d='M4 17a6 6 0 0 1 12 0'/%3E%3C/svg%3E"); }
.cap-icon--logout { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/%3E%3Cpath d='M13 13l3-3-3-3'/%3E%3Cpath d='M16 10H8'/%3E%3C/svg%3E"); }
.cap-icon--dot    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3C/svg%3E"); }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 860px) {
	.cap-account__grid { grid-template-columns: 1fr; }
	.cap-nav-toggle { display: flex; }
	.cap-account__nav {
		position: static;
		display: none;
	}
	.cap-account__nav.is-open { display: block; }
}

@media (max-width: 600px) {
	.cap-order {
		grid-template-columns: 1fr auto;
		row-gap: 6px;
	}
	.cap-order__id { grid-column: 1; grid-row: 1; }
	.cap-order__total { grid-column: 2; grid-row: 1; justify-self: end; }
	.cap-order__date { grid-column: 1; grid-row: 2; }
	.cap-order__status { grid-column: 2; grid-row: 2; justify-self: end; }
	.cap-order__track { grid-column: 1 / -1; grid-row: 3; justify-self: start; }

	/* WooCommerce orders/downloads tables → stacked cards */
	.cap-account__content .shop_table thead { display: none; }
	.cap-account__content .shop_table,
	.cap-account__content .shop_table tbody,
	.cap-account__content .shop_table tr,
	.cap-account__content .shop_table td { display: block; width: 100%; }
	.cap-account__content .shop_table tr {
		border: 1px solid var(--cap-line);
		border-radius: var(--cap-radius);
		margin-bottom: 12px;
		padding: 6px 4px;
		background: var(--cap-card);
	}
	.cap-account__content .shop_table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		border-bottom: 1px solid var(--cap-line);
		text-align: right;
	}
	.cap-account__content .shop_table td:last-child { border-bottom: 0; }
	.cap-account__content .shop_table td::before {
		content: attr(data-title);
		font-weight: 600;
		color: var(--cap-muted);
		text-align: left;
	}
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.cap-portal *,
	.cap-view {
		animation: none !important;
		transition: none !important;
	}
}

/* Screen-reader helper */
.cap-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ================================================================== *
 * Full-page takeover shell (theme bypassed — base styles live here)
 * ================================================================== */
body.cap-app-body {
	margin: 0;
	background: #EEF2F7;
}

/* Keep takeover normalization inside the portal application only.
 * Never apply box-sizing/font rules to the entire body: the WordPress admin
 * bar, global header/search and third-party widgets can live as body siblings. */
.cap-app {
	color: #14181F;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.cap-app,
.cap-app *,
.cap-app *::before,
.cap-app *::after {
	box-sizing: border-box;
}

.cap-app__container {
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
	padding-left: clamp(16px, 4vw, 32px);
	padding-right: clamp(16px, 4vw, 32px);
	padding-top: clamp(20px, 4vw, 40px);
	padding-bottom: clamp(20px, 4vw, 40px);
}

.cap-app__main { flex: 1 0 auto; }

/* On the takeover page the auth card sits on the app background */
.cap-app-body .cap-auth { padding: clamp(20px, 5vw, 56px) 0; }

/* ------------------------------------------------------------------ *
 * Sidebar (profile card + nav)
 * ------------------------------------------------------------------ */
.cap-account__side {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cap-profile {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 20px;
	text-align: center;
}

.cap-profile__avatar {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cap-primary), #1663b0);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cap-profile__initials { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .02em; }

.cap-profile__meta { display: flex; flex-direction: column; gap: 2px; }
.cap-profile__name { font-weight: 700; font-size: 16px; }
.cap-profile__email { color: var(--cap-muted); font-size: 13px; word-break: break-word; }
.cap-profile__since { color: var(--cap-muted); font-size: 12px; margin-top: 4px; }

/* nav is no longer independently sticky (the whole side column is) */
.cap-account__nav { position: static; }

/* ------------------------------------------------------------------ *
 * Quick actions
 * ------------------------------------------------------------------ */
.cap-quick {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.cap-quick__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 12px;
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	text-decoration: none;
	color: var(--cap-ink);
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.cap-quick__item:hover {
	transform: translateY(-2px);
	box-shadow: var(--cap-shadow);
	border-color: #cfdaea;
}

.cap-quick__icon { width: 24px; height: 24px; background-repeat: no-repeat; background-position: center; background-size: contain; }

/* ------------------------------------------------------------------ *
 * Profile completeness
 * ------------------------------------------------------------------ */
.cap-complete__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cap-complete__top h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.cap-complete__pct { font-size: 22px; font-weight: 700; color: var(--cap-primary); }
.cap-progress { height: 8px; background: var(--cap-line); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.cap-progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--cap-primary), var(--cap-secondary)); border-radius: 999px; transition: width .3s ease; }

/* ------------------------------------------------------------------ *
 * Sidebar responsive
 * ------------------------------------------------------------------ */
@media (max-width: 860px) {
	.cap-account__side { position: static; }
}

/* ================================================================== *
 * v1.1 — profile tweaks, per-page section bar, support/handouts
 * ================================================================== */

/* Profile: real avatar image + small logout link */
.cap-profile__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cap-profile__avatar { overflow: hidden; }
.cap-profile__logout {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cap-primary);
	text-decoration: underline;
}
.cap-profile__logout:hover { color: #083b73; }

.cap-profile__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}
.cap-profile__action {
	font-size: 13px;
	font-weight: 600;
	color: var(--cap-primary);
	text-decoration: underline;
}
.cap-profile__action:hover { color: #083b73; }
.cap-profile__sep { color: var(--cap-line); font-weight: 400; }

/* Per-page title bar (framing for every endpoint) — distinct, professional */
.cap-section__head {
	display: flex;
	align-items: center;
	gap: 14px;
	background:
		linear-gradient(180deg, #ffffff, #fbfcfe);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 16px 20px;
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
}
.cap-section__head::before {
	content: "";
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--cap-primary), var(--cap-secondary));
}
.cap-section__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--cap-primary), #1663b0);
	box-shadow: 0 4px 10px rgba(10, 74, 143, .25);
	margin-left: 4px;
}
.cap-section__icon {
	width: 22px;
	height: 22px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	/* recolour the navy SVG icons to white for the chip */
	filter: brightness(0) invert(1);
}
.cap-section__titles { display: flex; flex-direction: column; }
.cap-section__title {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--cap-ink);
	position: relative;
	padding-bottom: 6px;
}
.cap-section__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 34px; height: 3px;
	border-radius: 3px;
	background: var(--cap-secondary);
}
.cap-section__body { min-width: 0; }

/* Customer Support */
.cap-support { display: flex; flex-direction: column; gap: 20px; }
.cap-support__contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cap-support__contact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	text-decoration: none;
	color: var(--cap-ink);
	transition: border-color .12s ease, box-shadow .12s ease;
}
.cap-support__contact:hover { border-color: #cfdaea; box-shadow: var(--cap-shadow); }
.cap-support__contact strong { display: block; font-size: 14px; }
.cap-support__contact em { font-style: normal; color: var(--cap-muted); font-size: 13px; }
.cap-support__cico { width: 26px; height: 26px; flex: 0 0 26px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.cap-support__form { margin-top: 4px; }

/* FAQ accordion */
.cap-faq { display: flex; flex-direction: column; gap: 8px; }
.cap-faq__item { border: 1px solid var(--cap-line); border-radius: var(--cap-radius-sm); overflow: hidden; }
.cap-faq__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	padding: 14px 16px;
	background: #fff;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--cap-ink);
}
.cap-faq__q:hover { background: var(--cap-bg); }
.cap-faq__q:focus-visible { outline: none; box-shadow: var(--cap-focus); }
.cap-faq__chevron {
	width: 12px; height: 12px; flex: 0 0 12px;
	border-right: 2px solid var(--cap-muted);
	border-bottom: 2px solid var(--cap-muted);
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.cap-faq__q[aria-expanded="true"] .cap-faq__chevron { transform: rotate(-135deg); }
.cap-faq__a { padding: 0 16px 14px; font-size: 14px; color: var(--cap-muted); line-height: 1.6; border-left: 3px solid var(--cap-primary); background: var(--cap-bg); }
.cap-faq__a p { margin: 10px 0 0; }
.cap-faq__a a { color: var(--cap-primary); }

/* Link lists */
.cap-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cap-linklist a { color: var(--cap-primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.cap-linklist a:hover { text-decoration: underline; }

/* Handouts (Downloads tab) */
.cap-handouts__title { font-size: 20px; font-weight: 700; color: var(--cap-primary); text-align: center; margin: 0 0 18px; letter-spacing: -.01em; }
.cap-handouts__search { max-width: 640px; margin: 0 auto 20px; }

/* Extra icons */
.cap-icon--help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M8 8a2 2 0 1 1 3 1.7c-.7.4-1 .8-1 1.6'/%3E%3Cline x1='10' y1='14' x2='10' y2='14'/%3E%3C/svg%3E"); }
.cap-icon--chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h16v11H10l-4 4v-4H5z'/%3E%3C/svg%3E"); }
.cap-icon--mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%230A4A8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='18' height='14' rx='2'/%3E%3Cpath d='M4 8l9 6 9-6'/%3E%3C/svg%3E"); }

/* ================================================================== *
 * v1.2 — WooCommerce layout normalization
 * (woocommerce-general/layout are blocked, so the plugin styles the
 *  endpoint forms, address blocks and fieldsets itself.)
 * ================================================================== */

/* Two-column blocks (e.g. billing / shipping on the Addresses page) */
.cap-account__content .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 0;
}
.cap-account__content .col2-set .col-1,
.cap-account__content .col2-set .col-2 {
	width: 100%;
	max-width: 100%;
	float: none;
	padding: 0;
}
@media (max-width: 640px) {
	.cap-account__content .col2-set { grid-template-columns: 1fr; }
}

/* Form rows: stack full-width (replaces WooCommerce's float layout) */
.cap-account__content .form-row,
.cap-account__content .woocommerce-form-row {
	display: block;
	width: 100%;
	max-width: 100%;
	float: none;
	margin: 0 0 16px;
	padding: 0;
}
.cap-account__content .form-row-first,
.cap-account__content .form-row-last,
.cap-account__content .form-row-wide {
	width: 100%;
	float: none;
}
.cap-account__content .clear { clear: both; }

/* Fieldsets (account details / password change) */
.cap-account__content fieldset {
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	padding: 18px 20px;
	margin: 22px 0 0;
	background: var(--cap-card);
}
.cap-account__content fieldset legend {
	font-weight: 700;
	font-size: 15px;
	padding: 0 8px;
	color: var(--cap-ink);
}

/* Address blocks on the Addresses page */
.cap-account__content .woocommerce-Address {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 18px 20px;
}
.cap-account__content .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.cap-account__content .woocommerce-Address-title h3 { margin: 0; font-size: 16px; font-weight: 700; }
.cap-account__content .woocommerce-Address address {
	font-style: normal;
	line-height: 1.7;
	color: var(--cap-ink);
	font-size: 14px;
}

/* "My account" addresses intro + edit link */
.cap-account__content .woocommerce-MyAccount-content > p { margin: 0 0 16px; color: var(--cap-muted); }

/* Password strength hint (WooCommerce) */
.cap-account__content .woocommerce-password-strength {
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: var(--cap-radius-sm);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}
.cap-account__content .woocommerce-password-strength.strong { background: #E7F6EF; color: var(--cap-success); }
.cap-account__content .woocommerce-password-strength.good { background: #E7F0FB; color: var(--cap-primary); }
.cap-account__content .woocommerce-password-strength.short,
.cap-account__content .woocommerce-password-strength.bad { background: #FDECEA; color: var(--cap-danger); }
.cap-account__content .woocommerce-password-hint { display: block; margin-top: 6px; color: var(--cap-muted); font-size: 13px; }

/* Required-field asterisk */
.cap-account__content .required { color: var(--cap-danger); border: 0; }

/* Order details / totals tables inherit the shop_table styling above;
   ensure the "no downloads / no orders" info sits nicely */
.cap-account__content .woocommerce-Message,
.cap-account__content .woocommerce-info {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.cap-account__content .woocommerce-Message .button,
.cap-account__content .woocommerce-info .button { margin-left: auto; }

/* ================================================================== *
 * v1.0.9 — polished account navigation, mobile tabs and order actions
 * ================================================================== */

/* Dashboard welcome block */
.cap-dash__header {
	margin-bottom: 18px;
	text-align: center;
}
.cap-dash__welcome { margin-bottom: 0; }
.cap-dash__sub {
	margin-top: 1px;
	line-height: 1.35;
}

/* Profile actions remain visually centred as one balanced control. */
.cap-profile__meta { align-items: center; }
.cap-profile__actions {
	align-self: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	margin: 12px auto 0;
	padding: 7px 13px;
	border: 1px solid rgba(10, 74, 143, .10);
	border-radius: 999px;
	background: rgba(10, 74, 143, .045);
}
.cap-profile__action {
	text-decoration: none;
	line-height: 1.2;
}
.cap-profile__action:hover { text-decoration: underline; }
.cap-profile__sep { color: rgba(10, 74, 143, .25); }

/* Refined desktop sidebar */
.cap-account { --cap-nav-w: 282px; }
.cap-account__grid { gap: 32px; }
.cap-account__side { gap: 14px; }
.cap-profile {
	position: relative;
	overflow: hidden;
	padding: 26px 20px 22px;
	border-color: rgba(10, 74, 143, .12);
	background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
	box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}
.cap-profile::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--cap-primary), var(--cap-secondary));
}
.cap-profile__avatar {
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	box-shadow: 0 0 0 5px rgba(10, 74, 143, .08);
}
.cap-profile__name {
	font-size: 17px;
	letter-spacing: -.01em;
}
.cap-profile__email {
	margin-top: 1px;
	line-height: 1.35;
}

.cap-account__nav {
	padding: 9px;
	border-color: rgba(10, 74, 143, .12);
	box-shadow: 0 10px 28px rgba(16, 24, 40, .07);
}
.cap-account__nav ul { gap: 5px; }
.cap-account__nav a {
	position: relative;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 600;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.cap-account__nav a:hover {
	transform: translateX(2px);
	border-color: rgba(10, 74, 143, .10);
	background: rgba(10, 74, 143, .045);
}
.cap-account__nav .is-active a {
	background: rgba(10, 74, 143, .09);
	color: var(--cap-primary);
	border-color: rgba(10, 74, 143, .14);
	box-shadow: inset 3px 0 0 var(--cap-primary);
}
.cap-account__nav .is-active .cap-nav__icon {
	background: var(--cap-primary);
	color: #fff;
}
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 5px;
	padding-top: 7px;
	border-top: 1px solid var(--cap-line);
}
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--cap-danger);
}
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
	background: #fdecea;
	color: var(--cap-danger);
}

/* Dashboard order rows can carry Pay and Track together. */
.cap-order__actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 7px;
	min-width: 0;
}

/* Google is the first login option, with the email form below it. */
.cap-btn--google-first { margin-top: 2px; }
.cap-divider--after-google { margin: 16px 0; }
.cap-divider--after-google span { white-space: nowrap; }

/* Always-visible, swipeable endpoint tabs replace the mobile click menu. */
@media (max-width: 860px) {
	.cap-account__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	.cap-account__side {
		position: static;
		gap: 12px;
	}
	.cap-profile {
		padding: 20px 18px 18px;
	}
	.cap-profile__avatar {
		width: 60px;
		height: 60px;
		margin-bottom: 10px;
	}
	.cap-account__nav {
		display: block !important;
		position: static;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		padding: 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scroll-snap-type: x proximity;
	}
	.cap-account__nav ul {
		width: max-content;
		min-width: 100%;
		flex-direction: row;
		gap: 6px;
	}
	.cap-account__nav li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
	.cap-account__nav a {
		min-width: 96px;
		min-height: 68px;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		padding: 8px 10px;
		text-align: center;
		font-size: 12.5px;
		line-height: 1.2;
	}
	.cap-account__nav a:hover { transform: none; }
	.cap-account__nav .is-active a {
		background: linear-gradient(135deg, var(--cap-primary), #1663b0);
		color: #fff;
		border-color: transparent;
		box-shadow: 0 5px 14px rgba(10, 74, 143, .20);
	}
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
		color: var(--cap-danger);
		border-color: #f3d2ce;
		background: #fff;
	}
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
		background: #fdecea;
		color: var(--cap-danger);
	}
}

@media (max-width: 600px) {
	.cap-dash__header { margin-bottom: 16px; }
	.cap-dash__welcome { font-size: 22px; }
	.cap-dash__sub { font-size: 13.5px; }

	.cap-order__actions {
		grid-column: 1 / -1;
		grid-row: 3;
		justify-self: stretch;
		justify-content: flex-start;
		flex-wrap: wrap;
		padding-top: 4px;
	}
	.cap-order__actions .cap-order__track {
		flex: 1 1 auto;
		justify-content: center;
	}

	.cap-account__content .woocommerce-orders-table__cell-order-actions .button {
		margin-bottom: 5px;
	}
}

@media (max-width: 380px) {
	.cap-profile__actions {
		width: 100%;
	}
	.cap-account__nav a { min-width: 88px; }
	.cap-divider--after-google span { white-space: normal; text-align: center; }
}

/* ================================================================== *
 * v1.0.10 — unified navigation, auth layout and order-action styling
 * ================================================================== */

/* Auth logo sits outside the form card, matching the desktop brand layout. */
.cap-auth__main {
	width: 420px;
	max-width: 100%;
}
.cap-auth__brand-mark {
	width: 100%;
	margin: 0 auto 18px;
	padding: 0 16px;
	text-align: center;
}
.cap-auth__logo {
	display: block;
	width: auto;
	max-width: min(220px, 72vw);
	max-height: 64px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}
.cap-auth__card { max-width: 420px; margin: 0 auto; }
.cap-auth__title {
	margin: 0 0 18px;
	text-align: center;
}
.cap-auth__subtitle {
	margin: -8px auto 22px;
	max-width: 340px;
	text-align: center;
}
.cap-btn--google-first { margin-top: 0; }
.cap-form__message-link {
	display: inline;
	font-size: inherit;
	font-weight: 700;
	text-decoration: underline;
}

/* Every endpoint uses the same geometry. Active state changes colour only. */
.cap-account__nav ul { gap: 3px; }
.cap-account__nav a,
.cap-account__nav .is-active a,
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
	position: relative;
	min-height: 48px;
	padding: 8px 11px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	transform: none;
}
.cap-account__nav a:hover,
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: rgba(10, 74, 143, .045);
	border-color: transparent;
	transform: none;
}
.cap-account__nav .is-active a {
	color: var(--cap-primary);
	background: rgba(10, 74, 143, .035);
	box-shadow: inset 3px 0 0 var(--cap-primary);
}
.cap-account__nav .cap-nav__icon,
.cap-account__nav .is-active .cap-nav__icon,
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
	width: 31px;
	height: 31px;
	flex-basis: 31px;
	border-radius: 8px;
	background: #f1f4f8;
	color: var(--cap-primary);
}
.cap-account__nav .is-active .cap-nav__icon {
	background: var(--cap-primary);
	color: #fff;
}
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 5px;
	padding-top: 7px;
	border-top: 1px solid var(--cap-line);
}
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--cap-danger); }
.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
	background: #fdecea;
	color: var(--cap-danger);
}

/* Pay and Track share one blue style and fill on hover. */
.cap-order__track,
.cap-order__pay {
	background: #fff;
	border-color: var(--cap-primary);
	color: var(--cap-primary);
}
.cap-order__track .cap-nav__icon,
.cap-order__pay .cap-nav__icon { color: inherit; }
.cap-order__track:hover,
.cap-order__pay:hover {
	background: var(--cap-primary);
	border-color: var(--cap-primary);
	color: #fff;
}

@media (max-width: 1024px) {
	.cap-auth__layout.has-brand .cap-auth__brand-mark { display: block; }
}

@media (max-width: 860px) {
	.cap-account__nav a,
	.cap-account__nav .is-active a,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
		min-width: 94px;
		min-height: 68px;
		padding: 8px 10px;
		border: 1px solid transparent;
		border-radius: 8px;
		background: transparent;
		box-shadow: none;
		color: var(--cap-ink);
	}
	.cap-account__nav a:hover { background: rgba(10, 74, 143, .035); }
	.cap-account__nav .is-active a {
		color: var(--cap-primary);
		background: rgba(10, 74, 143, .025);
		box-shadow: inset 0 -3px 0 var(--cap-primary);
	}
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--cap-danger); }
}

@media (max-width: 767px) {
	.cap-auth { padding: 18px 0 28px; }
	.cap-auth__layout,
	.cap-auth__main {
		width: 100%;
		max-width: 440px;
	}
	.cap-auth__brand-mark { margin-bottom: 14px; }
	.cap-auth__card { width: 100%; max-width: 420px; }
}



/* ================================================================== *
 * v1.0.11 — tighter auth cards and precision-aligned account navigation
 * ================================================================== */

/* Empty AJAX status containers must not reserve a full flex-row gap. */
.cap-form__message:empty {
	display: none;
}

/* Keep post-form actions visible without leaving a large empty card footer. */
.cap-auth__card {
	padding-bottom: 18px;
}
.cap-auth__switch {
	margin-top: 14px;
}

/* Compact legal acknowledgement immediately above registration CTA. */
.cap-form__consent {
	margin: -2px 2px -1px;
	color: var(--cap-muted);
	font-size: 11.5px;
	line-height: 1.5;
	text-align: center;
}
.cap-form__consent a {
	color: var(--cap-primary);
	font-weight: 600;
	text-decoration: none;
}
.cap-form__consent a:hover {
	text-decoration: underline;
}

/* Desktop endpoint rows use a true icon/label grid for optical alignment. */
@media (min-width: 861px) {
	.cap-account__nav a,
	.cap-account__nav .is-active a,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
		display: grid;
		grid-template-columns: 35px minmax(0, 1fr);
		align-items: center;
		column-gap: 12px;
		min-height: 52px;
		padding: 8px 12px;
	}
	.cap-account__nav .cap-nav__icon,
	.cap-account__nav .is-active .cap-nav__icon,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
		width: 35px;
		height: 35px;
		flex-basis: 35px;
		align-self: center;
	}
	.cap-account__nav .cap-nav__svg {
		width: 18px;
		height: 18px;
	}
	.cap-account__nav .cap-nav__label {
		display: block;
		min-width: 0;
		line-height: 1.3;
		transform: translateY(.25px);
	}
}

@media (max-width: 767px) {
	.cap-auth__card {
		padding-bottom: 16px;
	}
	.cap-auth__switch {
		margin-top: 12px;
	}
	.cap-form__consent {
		font-size: 11px;
		line-height: 1.45;
	}
}

/* ================================================================== *
 * v1.0.12 — responsive account navigation orientation
 * ================================================================== */

/* Large screens: icon and endpoint title sit on one clean horizontal line. */
@media (min-width: 861px) {
	.cap-account__nav a,
	.cap-account__nav .is-active a,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		min-height: 52px;
		padding: 8px 12px;
		text-align: left;
	}

	.cap-account__nav .cap-nav__icon,
	.cap-account__nav .is-active .cap-nav__icon,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
		width: 35px;
		height: 35px;
		flex: 0 0 35px;
		margin: 0;
	}

	.cap-account__nav .cap-nav__label {
		display: block;
		min-width: 0;
		margin: 0;
		line-height: 1.25;
		transform: none;
	}
}

/* Small screens: icon stays above the endpoint title inside every tab. */
@media (max-width: 860px) {
	.cap-account__nav a,
	.cap-account__nav .is-active a,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-width: 94px;
		min-height: 72px;
		padding: 8px 10px;
		text-align: center;
	}

	.cap-account__nav .cap-nav__icon,
	.cap-account__nav .is-active .cap-nav__icon,
	.cap-account__nav .woocommerce-MyAccount-navigation-link--customer-logout .cap-nav__icon {
		width: 32px;
		height: 32px;
		flex: 0 0 32px;
		margin: 0;
	}

	.cap-account__nav .cap-nav__label {
		display: block;
		width: 100%;
		margin: 0;
		font-size: 12.5px;
		line-height: 1.15;
		text-align: center;
		white-space: normal;
		transform: none;
	}
}

/* ================================================================== *
 * v1.0.13 — theme-proof navigation orientation
 * ================================================================== */

/*
 * Some themes apply display:block to WooCommerce account links after the
 * plugin stylesheet. Direct-child selectors plus !important keep desktop
 * icon/title rows horizontal without changing the mobile tab layout.
 */
@media (min-width: 861px) {
	.cap-portal .cap-account__nav > ul > li > a,
	.cap-app-body .cap-account__nav > ul > li > a {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 12px !important;
		width: 100% !important;
		text-align: left !important;
	}

	.cap-portal .cap-account__nav > ul > li > a > .cap-nav__icon,
	.cap-app-body .cap-account__nav > ul > li > a > .cap-nav__icon {
		display: inline-flex !important;
		position: static !important;
		float: none !important;
		width: 35px !important;
		height: 35px !important;
		flex: 0 0 35px !important;
		margin: 0 !important;
	}

	.cap-portal .cap-account__nav > ul > li > a > .cap-nav__label,
	.cap-app-body .cap-account__nav > ul > li > a > .cap-nav__label {
		display: block !important;
		position: static !important;
		float: none !important;
		width: auto !important;
		min-width: 0 !important;
		flex: 1 1 auto !important;
		margin: 0 !important;
		white-space: nowrap !important;
		text-align: left !important;
	}
}

@media (max-width: 860px) {
	.cap-portal .cap-account__nav > ul > li > a,
	.cap-app-body .cap-account__nav > ul > li > a {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 6px !important;
		text-align: center !important;
	}

	.cap-portal .cap-account__nav > ul > li > a > .cap-nav__icon,
	.cap-app-body .cap-account__nav > ul > li > a > .cap-nav__icon {
		display: inline-flex !important;
		position: static !important;
		float: none !important;
		margin: 0 !important;
	}

	.cap-portal .cap-account__nav > ul > li > a > .cap-nav__label,
	.cap-app-body .cap-account__nav > ul > li > a > .cap-nav__label {
		display: block !important;
		position: static !important;
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		white-space: normal !important;
		text-align: center !important;
	}
}

/* ================================================================== *
 * v1.0.16 — subtle overlay scroll hints and full first-tab visibility
 * ================================================================== */

/* Direction controls are a mobile-only affordance. */
.cap-account__nav-arrow { display: none; }

@media (max-width: 860px) {
	/*
	 * Let profile, the sticky navigation shell and endpoint content share the
	 * same grid. The shell therefore remains sticky for the full page length.
	 */
	.cap-portal .cap-account__side,
	.cap-app-body .cap-account__side {
		display: contents !important;
	}

	/*
	 * The supplied VU header is 61px at this breakpoint. JavaScript replaces
	 * this fallback with the live bottom edge of #vuHeader/.vu-header, including
	 * the WordPress admin-bar offset, so the rail never sits behind the header.
	 */
	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: var(--cap-mobile-nav-top, 61px) !important;
		z-index: 9990;
		align-self: start;
		width: 100vw;
		max-width: 100vw;
		margin: 0 0 0 calc(50% - 50vw);
		background: rgba(255, 255, 255, .985);
		border-top: 1px solid rgba(10, 74, 143, .10);
		border-bottom: 1px solid rgba(10, 74, 143, .13);
		box-shadow: 0 6px 16px rgba(16, 24, 40, .09);
		isolation: isolate;
	}

	/* The scrollable rail itself is intentionally edge-to-edge, not a card. */
	.cap-portal .cap-account__nav-shell .cap-account__nav,
	.cap-app-body .cap-account__nav-shell .cap-account__nav {
		position: static !important;
		display: block !important;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 7px 5px;
		scroll-padding-inline: 5px;
		overflow-x: auto;
		overflow-y: hidden;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.cap-account__nav-shell .cap-account__nav::-webkit-scrollbar {
		display: none;
	}

	/*
	 * Tiny overlay hints: they reserve no horizontal room, so the first tab
	 * (Dashboard) remains fully visible. The visual arrow is deliberately small
	 * while the transparent button keeps a reasonable touch target.
	 */
	.cap-account__nav-arrow {
		position: absolute !important;
		top: 50%;
		bottom: auto;
		z-index: 4;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 24px !important;
		height: 28px !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		color: rgba(10, 74, 143, .62);
		cursor: pointer;
		transform: translateY(-50%);
		transition: opacity .16s ease, visibility .16s ease, color .16s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.cap-account__nav-arrow--prev { left: 1px; }
	.cap-account__nav-arrow--next { right: 1px; }

	.cap-account__nav-arrow svg {
		display: block;
		width: 10px;
		height: 10px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.15;
		stroke-linecap: round;
		stroke-linejoin: round;
		filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff);
	}

	.cap-account__nav-arrow:hover,
	.cap-account__nav-arrow:focus-visible {
		color: var(--cap-secondary);
		outline: none;
	}

	.cap-account__nav-arrow.is-disabled,
	.cap-account__nav-arrow:disabled {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.cap-account__nav-shell:not(.is-scrollable) .cap-account__nav-arrow {
		display: none;
	}
}

@media (max-width: 767px) {
	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		top: var(--cap-mobile-nav-top, 59px) !important;
	}
}

@media (max-width: 400px) {
	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		top: var(--cap-mobile-nav-top, 55px) !important;
	}
}


/* ================================================================== *
 * v1.0.17 — visible mobile hints + independently sticky desktop menu
 * ================================================================== */

@media (max-width: 860px) {
	/*
	 * Compact floating controls: the button remains easy to tap, while the
	 * bordered circular face is large enough to read without reserving any
	 * horizontal room or hiding the first Dashboard tab.
	 */
	.cap-portal .cap-account__nav-arrow,
	.cap-app-body .cap-account__nav-arrow {
		width: 30px !important;
		height: 34px !important;
		border: 1px solid rgba(10, 74, 143, .24) !important;
		border-radius: 999px !important;
		background: rgba(255, 255, 255, .96) !important;
		box-shadow: 0 3px 9px rgba(15, 35, 60, .18), 0 0 0 2px rgba(255, 255, 255, .72) !important;
		color: #0A4A8F;
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
	}

	.cap-portal .cap-account__nav-arrow--prev,
	.cap-app-body .cap-account__nav-arrow--prev { left: 3px; }

	.cap-portal .cap-account__nav-arrow--next,
	.cap-app-body .cap-account__nav-arrow--next { right: 3px; }

	.cap-portal .cap-account__nav-arrow svg,
	.cap-app-body .cap-account__nav-arrow svg {
		width: 14px;
		height: 14px;
		stroke-width: 2.35;
		filter: none;
	}

	.cap-portal .cap-account__nav-arrow:hover,
	.cap-portal .cap-account__nav-arrow:focus-visible,
	.cap-app-body .cap-account__nav-arrow:hover,
	.cap-app-body .cap-account__nav-arrow:focus-visible {
		background: #fff !important;
		border-color: rgba(10, 74, 143, .42) !important;
		box-shadow: 0 4px 12px rgba(15, 35, 60, .23), 0 0 0 2px rgba(255, 255, 255, .78) !important;
	}
}

@media (min-width: 861px) {
	/*
	 * The sidebar itself stretches to the height of the main content but does
	 * not stick. This lets the profile card scroll away while the menu below it
	 * remains constrained by the complete account page rather than by its own
	 * short natural height.
	 */
	.cap-portal .cap-account__side,
	.cap-app-body .cap-account__side {
		position: relative !important;
		top: auto !important;
		align-self: stretch !important;
		height: auto !important;
	}

	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		position: -webkit-sticky !important;
		position: sticky !important;
		top: calc(var(--cap-desktop-nav-top, 69px) + 12px) !important;
		z-index: 80;
		max-height: calc(100vh - var(--cap-desktop-nav-top, 69px) - 24px);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(10, 74, 143, .28) transparent;
	}

	.cap-portal .cap-account__nav-shell::-webkit-scrollbar,
	.cap-app-body .cap-account__nav-shell::-webkit-scrollbar {
		width: 5px;
	}

	.cap-portal .cap-account__nav-shell::-webkit-scrollbar-thumb,
	.cap-app-body .cap-account__nav-shell::-webkit-scrollbar-thumb {
		background: rgba(10, 74, 143, .24);
		border-radius: 999px;
	}

	.cap-portal .cap-account__nav-shell::-webkit-scrollbar-track,
	.cap-app-body .cap-account__nav-shell::-webkit-scrollbar-track {
		background: transparent;
	}
}

/* ================================================================== *
 * v1.0.18 — fully custom WooCommerce account endpoints
 * ================================================================== */
.cap-endpoint { min-width: 0; }

/* Orders */
.cap-order-list {
	display: grid;
	gap: 14px;
}
.cap-order-card {
	background: var(--cap-card);
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	box-shadow: var(--cap-shadow-sm);
	padding: 18px 20px;
}
.cap-order-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cap-line);
}
.cap-order-card__eyebrow,
.cap-order-hero__eyebrow {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cap-muted);
}
.cap-order-card__number {
	font-size: 19px;
	font-weight: 750;
	letter-spacing: -.02em;
	color: var(--cap-primary);
	text-decoration: none;
}
.cap-order-card__number:hover { text-decoration: underline; }
.cap-order-card__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 15px 0 4px;
}
.cap-order-card__meta-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.cap-order-card__meta-item span {
	font-size: 12px;
	color: var(--cap-muted);
}
.cap-order-card__meta-item strong {
	font-size: 14px;
	font-weight: 650;
	color: var(--cap-ink);
	word-break: break-word;
}
.cap-order-card__meta-item--total { text-align: right; }
.cap-order-card__actions,
.cap-order-page-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.cap-order-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 14px;
	border: 1px solid var(--cap-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--cap-primary);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.cap-order-action:hover,
.cap-order-action:focus-visible {
	background: var(--cap-primary);
	border-color: var(--cap-primary);
	color: #fff;
	transform: translateY(-1px);
}
.cap-order-action--cancel,
.cap-order-action--delete {
	border-color: #e9c3be;
	color: var(--cap-danger);
}
.cap-order-action--cancel:hover,
.cap-order-action--cancel:focus-visible,
.cap-order-action--delete:hover,
.cap-order-action--delete:focus-visible {
	background: var(--cap-danger);
	border-color: var(--cap-danger);
	color: #fff;
}
.cap-order-action--back {
	margin-right: auto;
	border-color: var(--cap-line);
	color: var(--cap-ink);
}
.cap-pager {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}
.cap-pager__link {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid var(--cap-line);
	border-radius: 999px;
	background: #fff;
	color: var(--cap-primary);
	font-size: 13px;
	font-weight: 650;
	text-decoration: none;
}
.cap-pager__link:last-child { justify-self: end; }
.cap-pager__link:hover { border-color: var(--cap-primary); }
.cap-pager__count { font-size: 13px; color: var(--cap-muted); }

/* Single order */
.cap-order-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px;
	margin-bottom: 14px;
	border: 1px solid rgba(10, 74, 143, .14);
	border-radius: var(--cap-radius);
	background: linear-gradient(135deg, rgba(10, 74, 143, .07), rgba(217, 138, 6, .05));
}
.cap-order-hero h2 {
	margin: 0;
	font-size: 25px;
	line-height: 1.15;
	color: var(--cap-primary);
}
.cap-order-hero p { margin: 5px 0 0; color: var(--cap-muted); font-size: 13px; }
.cap-order-hero__status { flex: 0 0 auto; }
.cap-order-page-actions { margin: 0 0 18px; }
.cap-order-details-card { padding-bottom: 0; overflow: hidden; }
.cap-order-items { border-top: 1px solid var(--cap-line); }
.cap-order-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(100px, auto);
	align-items: start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cap-line);
}
.cap-order-item__name {
	display: inline-block;
	font-size: 14px;
	font-weight: 650;
	color: var(--cap-ink);
	text-decoration: none;
}
a.cap-order-item__name:hover { color: var(--cap-primary); text-decoration: underline; }
.cap-order-item__meta,
.cap-order-item__meta p,
.cap-order-item__meta ul { margin: 5px 0 0; padding: 0; list-style: none; color: var(--cap-muted); font-size: 12.5px; }
.cap-order-item__qty { color: var(--cap-muted); font-size: 13px; }
.cap-order-item__total { text-align: right; font-size: 14px; }
.cap-order-totals {
	max-width: 430px;
	margin-left: auto;
	padding: 12px 0 18px;
}
.cap-order-total-row {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 7px 0;
	font-size: 13.5px;
}
.cap-order-total-row span { color: var(--cap-muted); }
.cap-order-total-row:last-child {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--cap-line);
	font-size: 15px;
}
.cap-order-notes { display: grid; gap: 10px; }
.cap-order-note {
	padding: 12px 14px;
	border-left: 3px solid var(--cap-primary);
	border-radius: 0 var(--cap-radius-sm) var(--cap-radius-sm) 0;
	background: var(--cap-bg);
}
.cap-order-note time { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 650; color: var(--cap-muted); }
.cap-order-note p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.cap-detail-list { margin: 0; }
.cap-detail-list > div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--cap-line);
}
.cap-detail-list > div:last-child { border-bottom: 0; }
.cap-detail-list dt { color: var(--cap-muted); font-size: 12.5px; }
.cap-detail-list dd { margin: 0; font-size: 13.5px; font-weight: 600; word-break: break-word; }

/* Account details and shipping address */
.cap-account-form { display: grid; gap: 16px; }
.cap-form-card {
	padding: 20px;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	background: var(--cap-card);
	box-shadow: var(--cap-shadow-sm);
}
.cap-form-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 15px;
	margin-bottom: 17px;
	border-bottom: 1px solid var(--cap-line);
}
.cap-form-card__head h3 { margin: 0; font-size: 16px; font-weight: 750; color: var(--cap-ink); }
.cap-form-card__head p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--cap-muted); }
.cap-field-grid {
	display: grid;
	gap: 0 16px;
}
.cap-field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cap-field-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--cap-muted);
}
.cap-form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 2px;
}
.cap-form-actions--start { justify-content: flex-start; margin-top: 16px; }
.cap-address-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}
.cap-account__content .cap-address-fields .form-row,
.cap-account__content .cap-address-fields .woocommerce-form-row {
	grid-column: 1 / -1;
}
.cap-account__content .cap-address-fields .cap-address-field--half { grid-column: span 1; }
.cap-account__content .select2-container { width: 100% !important; }
.cap-account__content .select2-container .select2-selection--single {
	height: 44px;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
}
.cap-account__content .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 13px; }
.cap-account__content .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.cap-address-overview { max-width: 680px; }
.cap-empty--compact { padding: 22px 10px 6px; }

/* Payment methods */
.cap-payment-list { display: grid; gap: 12px; }
.cap-payment-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	background: #fff;
	box-shadow: var(--cap-shadow-sm);
}
.cap-payment-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(10, 74, 143, .08);
	color: var(--cap-primary);
}
.cap-payment-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-payment-card__main strong { font-size: 14px; }
.cap-payment-card__main p { margin: 4px 0 0; color: var(--cap-muted); font-size: 12.5px; }
.cap-payment-card__default {
	display: inline-flex;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e7f6ef;
	color: var(--cap-success);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.cap-payment-card__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.cap-mini-action {
	display: inline-flex;
	padding: 6px 10px;
	border: 1px solid var(--cap-line);
	border-radius: 999px;
	color: var(--cap-primary);
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}
.cap-mini-action:hover { border-color: var(--cap-primary); background: rgba(10, 74, 143, .05); }
.cap-mini-action--delete { color: var(--cap-danger); border-color: #e9c3be; }
.cap-gateway-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cap-gateway {
	padding: 0;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius-sm);
	background: #fff;
	overflow: hidden;
}
.cap-gateway__choice {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 14px 15px;
	cursor: pointer;
}
.cap-gateway__choice input { width: auto !important; margin: 0; accent-color: var(--cap-primary); }
.cap-gateway__label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 650; }
.cap-gateway__label img { max-height: 28px; width: auto; }
.cap-gateway__box { padding: 14px 15px; border-top: 1px solid var(--cap-line); background: var(--cap-bg); }
.cap-gateway__box p:last-child { margin-bottom: 0; }

/* Direct reset-password endpoints use the same self-contained auth shell. */
.cap-auth--single .cap-auth__card { max-width: 520px; margin-inline: auto; }
.cap-auth--single .cap-auth__main { min-width: 0; }

@media (max-width: 680px) {
	.cap-order-card { padding: 15px; }
	.cap-order-card__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.cap-order-card__meta-item--total { text-align: left; }
	.cap-order-card__actions { justify-content: flex-start; }
	.cap-order-action { flex: 1 1 auto; }
	.cap-pager { grid-template-columns: 1fr 1fr; }
	.cap-pager__count { grid-column: 1 / -1; grid-row: 1; text-align: center; }
	.cap-pager__link { grid-row: 2; }
	.cap-order-hero { align-items: flex-start; padding: 16px; }
	.cap-order-hero h2 { font-size: 21px; }
	.cap-order-item { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
	.cap-order-item__qty { grid-column: 1; }
	.cap-order-item__total { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	.cap-order-totals { max-width: none; }
	.cap-detail-list > div { grid-template-columns: 1fr; gap: 3px; }
	.cap-field-grid--two,
	.cap-address-fields { grid-template-columns: 1fr; }
	.cap-account__content .cap-address-fields .cap-address-field--half { grid-column: 1 / -1; }
	.cap-form-card { padding: 16px; }
	.cap-form-actions { justify-content: stretch; }
	.cap-form-actions .cap-btn { width: 100%; }
	.cap-payment-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
	.cap-payment-card__actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }
}
.cap-auth-confirmation { text-align: center; }
.cap-auth-confirmation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #e7f6ef;
	color: var(--cap-success);
	font-size: 25px;
	font-weight: 800;
}


/* ================================================================== *
 * v1.0.23 — viewport-aware AJAX navigation and scroll restoration
 * ================================================================== */
.cap-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.cap-account__content {
	position: relative;
	transition: opacity .18s ease;
}

.cap-account__content.is-cap-ajax-loading {
	min-height: 220px;
	pointer-events: none;
}

.cap-account__content.is-cap-ajax-loading::before {
	content: "";
	position: absolute;
	inset: -4px;
	z-index: 90;
	border-radius: var(--cap-radius);
	background: rgba(244, 247, 251, .72);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
}

.cap-account__content.is-cap-ajax-loading::after {
	content: "";
	position: fixed;
	top: var(--cap-ajax-loader-y, 50vh);
	left: var(--cap-ajax-loader-x, 50vw);
	z-index: 10020;
	box-sizing: border-box;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(10, 74, 143, .20);
	border-top-color: var(--cap-primary);
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	outline: 8px solid rgba(255, 255, 255, .88);
	box-shadow: 0 10px 30px rgba(16, 35, 60, .22);
	animation: cap-ajax-spin .7s linear infinite;
}

@keyframes cap-ajax-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.cap-account__content { transition: none; }
	.cap-account__content.is-cap-ajax-loading::after { animation-duration: 1.4s; }
}

/* ================================================================== *
 * v1.0.28 — unified dashboard order card, status chart and order updates
 * ================================================================== */
.status-awaiting-shipment { background: #eaf2ff; color: #1557a0; }
.status-shipped { background: #fff0df; color: #b85b08; }
.status-returned { background: #f5ecff; color: #7a3db8; }
.status-refunded { background: #eef2f7; color: #596579; }

.cap-card__head--divider {
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(31, 45, 61, .09);
}

/* Latest order: one compact order row plus a focused update block. */
.cap-dashboard-latest { padding: 20px; }
.cap-dashboard-order-row {
	display: grid;
	grid-template-columns: auto minmax(110px, 1fr) auto auto minmax(190px, auto);
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.cap-dashboard-order-row .cap-order__date { min-width: 0; font-size: 13px; }
.cap-dashboard-order-row .cap-order__total { white-space: nowrap; }
.cap-dashboard-order-row__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
	flex-wrap: wrap;
}
.cap-dashboard-order-row__actions .cap-order__track {
	padding: 6px 10px;
	font-size: 12px;
}

.cap-order-update-panel {
	margin-top: 15px;
	padding: 13px 15px;
	border: 1px solid rgba(10, 74, 143, .12);
	border-radius: 10px;
	background: rgba(10, 74, 143, .045);
}
.cap-order-update-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}
.cap-order-update-panel__head strong {
	color: var(--cap-primary);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .035em;
	text-transform: uppercase;
}
.cap-order-update-panel p {
	margin: 0;
	color: var(--cap-ink);
	font-size: 13px;
	line-height: 1.55;
}
.cap-order-update-panel small,
.cap-order-insight__update small {
	display: block;
	margin-top: 5px;
	color: var(--cap-muted);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1.4;
}
.cap-order-update-panel--list { margin-top: 12px; }
.cap-order-update-panel--list p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.cap-order-update__live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
	padding: 3px 7px;
	border: 1px solid rgba(5, 150, 105, .2);
	border-radius: 999px;
	background: rgba(5, 150, 105, .08);
	color: #047857;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.2;
	text-transform: uppercase;
}
.cap-order-update__live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

/* Total orders and live status distribution. */
.cap-dashboard-insights {
	display: grid;
	grid-template-columns: minmax(190px, .72fr) minmax(0, 1.75fr);
	gap: 20px;
	margin-bottom: 20px;
}
.cap-dashboard-insights > .cap-card { margin-bottom: 0; }
.cap-total-orders-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	text-align: center;
	background: linear-gradient(155deg, #fff 0%, rgba(10, 74, 143, .055) 100%);
}
.cap-total-orders-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 13px;
	border-radius: 13px;
	background: var(--cap-primary);
	color: #fff;
	box-shadow: 0 8px 18px rgba(10, 74, 143, .2);
}
.cap-total-orders-card__icon .cap-nav__svg { width: 22px; height: 22px; }
.cap-total-orders-card__value {
	display: block;
	color: var(--cap-primary);
	font-size: clamp(42px, 5vw, 58px);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1;
}
.cap-total-orders-card > strong { margin-top: 8px; font-size: 16px; }
.cap-total-orders-card > p { max-width: 190px; margin: 5px 0 0; color: var(--cap-muted); font-size: 12.5px; line-height: 1.45; }

.cap-order-chart-card__body {
	display: grid;
	grid-template-columns: auto minmax(180px, 1fr);
	align-items: center;
	gap: clamp(22px, 4vw, 40px);
	min-height: 194px;
}
.cap-order-donut {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(156px, 19vw, 190px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--cap-order-chart);
	box-shadow: inset 0 0 0 1px rgba(31, 45, 61, .04), 0 10px 26px rgba(31, 45, 61, .08);
}
.cap-order-donut::after {
	content: "";
	position: absolute;
	inset: 25%;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(31, 45, 61, .06);
}
.cap-order-donut__center {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.cap-order-donut__center strong { color: var(--cap-primary); font-size: 28px; line-height: 1; letter-spacing: -.035em; }
.cap-order-donut__center span { margin-top: 4px; color: var(--cap-muted); font-size: 11px; font-weight: 650; }
.cap-order-chart-legend { display: grid; gap: 8px; min-width: 0; }
.cap-order-chart-legend__item {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(31, 45, 61, .065);
}
.cap-order-chart-legend__item:last-child { border-bottom: 0; }
.cap-order-chart-legend__dot { width: 9px; height: 9px; border-radius: 50%; }
.cap-order-chart-legend__label { min-width: 0; color: var(--cap-ink); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-order-chart-legend__item strong { color: var(--cap-primary); font-size: 13px; }

.cap-dashboard-bottom-grid { margin-bottom: 0; }
.cap-account-completeness { margin-top: 16px; }
.cap-account-completeness > div:first-child {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
	color: var(--cap-muted);
	font-size: 12px;
}
.cap-account-completeness strong { color: var(--cap-primary); }
.cap-account-completeness .cap-progress { margin-bottom: 0; height: 7px; }

/* Full orders list: only the useful order update, no courier/meta clutter. */
.cap-order-card .cap-order-update-panel { border-radius: 9px; }

/* Single order: detailed update + courier information belongs here. */
.cap-order-insight { padding: 20px; }
.cap-order-insight__update {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(10, 74, 143, .12);
	border-radius: 10px;
	background: rgba(10, 74, 143, .045);
}
.cap-order-update__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--cap-primary);
	color: #fff;
}
.cap-order-update__icon .cap-nav__svg { width: 18px; height: 18px; }
.cap-order-insight__update > div { min-width: 0; }
.cap-order-insight__update strong { display: block; margin-bottom: 3px; color: var(--cap-primary); font-size: 12px; text-transform: uppercase; letter-spacing: .035em; }
.cap-order-insight__update p { margin: 0; color: var(--cap-ink); font-size: 13.5px; line-height: 1.58; }
.cap-tracking-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.cap-tracking-meta > div {
	min-width: 0;
	padding: 11px 13px;
	border: 1px solid var(--cap-line);
	border-radius: 9px;
	background: #fff;
}
.cap-tracking-meta span { display: block; margin-bottom: 3px; color: var(--cap-muted); font-size: 11px; font-weight: 600; }
.cap-tracking-meta strong { color: var(--cap-ink); font-size: 13px; word-break: break-all; }
.cap-copy-button {
	appearance: none;
	margin-left: 7px;
	padding: 3px 7px;
	border: 0;
	border-radius: 5px;
	background: rgba(10, 74, 143, .09);
	color: var(--cap-primary);
	font: inherit;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.35;
	cursor: pointer;
	vertical-align: middle;
}
.cap-copy-button:hover,
.cap-copy-button.is-copied { background: var(--cap-primary); color: #fff; }
.cap-order-insight__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}

@media (max-width: 1050px) {
	.cap-dashboard-order-row {
		grid-template-columns: auto minmax(90px, 1fr) auto auto;
	}
	.cap-dashboard-order-row__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
		padding-top: 2px;
	}
}

@media (max-width: 760px) {
	.cap-dashboard-insights { grid-template-columns: 1fr; }
	.cap-total-orders-card { min-height: 190px; }
	.cap-order-chart-card__body { grid-template-columns: 1fr; justify-items: center; }
	.cap-order-chart-legend { width: 100%; }
}

@media (max-width: 600px) {
	.cap-dashboard-latest { padding: 16px; }
	.cap-dashboard-order-row {
		grid-template-columns: minmax(0, 1fr) auto;
		row-gap: 7px;
	}
	.cap-dashboard-order-row .cap-order__id { grid-column: 1; grid-row: 1; }
	.cap-dashboard-order-row .cap-order__total { grid-column: 2; grid-row: 1; justify-self: end; }
	.cap-dashboard-order-row .cap-order__date { grid-column: 1; grid-row: 2; }
	.cap-dashboard-order-row .cap-order__status { grid-column: 2; grid-row: 2; justify-self: end; }
	.cap-dashboard-order-row__actions { grid-column: 1 / -1; grid-row: 3; width: 100%; }
	.cap-dashboard-order-row__actions .cap-order__track { flex: 1 1 auto; justify-content: center; }
	.cap-order-update-panel { padding: 12px; }
	.cap-order-chart-card__body { gap: 20px; }
	.cap-order-donut { width: 164px; }
	.cap-tracking-meta { grid-template-columns: 1fr; }
	.cap-order-insight { padding: 16px; }
	.cap-order-insight__actions { justify-content: stretch; }
	.cap-order-insight__actions .cap-order-action { width: 100%; }
}


/* ================================================================== *
 * v1.0.29 — order-history summary and completed-order tracking layout
 * ================================================================== */
.cap-order-history-card {
	padding: 20px;
	margin-bottom: 20px;
}
.cap-order-history-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
.cap-order-history-stat {
	position: relative;
	min-width: 0;
	padding: 14px 15px 13px 18px;
	border: 1px solid rgba(31, 45, 61, .08);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.cap-order-history-stat::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--cap-primary);
}
.cap-order-history-stat--books::before { background: #d98a06; }
.cap-order-history-stat--completed::before { background: #10b981; }
.cap-order-history-stat--progress::before { background: #3b82f6; }
.cap-order-history-stat--payment::before { background: #f0b429; }
.cap-order-history-stat--closed::before { background: #94a3b8; }
.cap-order-history-stat span {
	display: block;
	color: var(--cap-muted);
	font-size: 11.5px;
	font-weight: 650;
	line-height: 1.35;
}
.cap-order-history-stat strong {
	display: block;
	margin-top: 5px;
	color: var(--cap-ink);
	font-size: clamp(22px, 2.5vw, 30px);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1;
}

.cap-completed-tracking-card { padding: 20px; }
.cap-completed-tracking-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.cap-completed-tracking-row {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--cap-line);
	border-radius: 9px;
	background: #fff;
}
.cap-completed-tracking-row > span {
	display: block;
	margin-bottom: 4px;
	color: var(--cap-muted);
	font-size: 11px;
	font-weight: 650;
}
.cap-completed-tracking-row > div {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}
.cap-completed-tracking-row strong {
	min-width: 0;
	color: var(--cap-ink);
	font-size: 13px;
	word-break: break-word;
}
.cap-external-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	border: 1px solid rgba(10, 74, 143, .18);
	border-radius: 7px;
	background: rgba(10, 74, 143, .055);
	color: var(--cap-primary);
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cap-external-icon:hover {
	border-color: var(--cap-primary);
	background: var(--cap-primary);
	color: #fff;
}

@media (max-width: 760px) {
	.cap-order-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.cap-order-history-card,
	.cap-completed-tracking-card { padding: 16px; }
	.cap-order-history-stat { padding: 12px 11px 11px 14px; }
	.cap-order-history-stat strong { font-size: 23px; }
	.cap-completed-tracking-list { grid-template-columns: 1fr; }
}

/* ================================================================== *
 * v1.0.33 — resilient AJAX recovery + mobile sticky-state polish
 * ================================================================== */

@media (max-width: 860px) {
	/* No permanent elevation: the shadow appears only once the rail is pinned. */
	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		box-shadow: none !important;
		transition: box-shadow .18s ease, border-color .18s ease;
	}

	.cap-portal .cap-account__nav-shell.is-cap-stuck,
	.cap-app-body .cap-account__nav-shell.is-cap-stuck {
		box-shadow: 0 5px 12px rgba(16, 35, 60, .075) !important;
		border-bottom-color: rgba(10, 74, 143, .16);
	}
}

.cap-ajax-recovery[hidden] {
	display: none !important;
}

.cap-ajax-recovery {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 20px;
	font-family: inherit;
	opacity: 0;
	transition: opacity .16s ease;
}

.cap-ajax-recovery.is-visible {
	opacity: 1;
}

.cap-ajax-recovery__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 23, 43, .34);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.cap-ajax-recovery__card {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, 430px);
	padding: 24px;
	border: 1px solid rgba(10, 74, 143, .14);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 22px 55px rgba(8, 23, 43, .24);
	text-align: center;
	transform: translateY(8px) scale(.985);
	transition: transform .18s ease;
}

.cap-ajax-recovery.is-visible .cap-ajax-recovery__card {
	transform: translateY(0) scale(1);
}

.cap-ajax-recovery__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #fff5e8;
	color: #b85b08;
}

.cap-ajax-recovery.is-session-expired .cap-ajax-recovery__icon {
	background: #eaf2ff;
	color: var(--cap-primary, #0A4A8F);
}

.cap-ajax-recovery__icon svg {
	width: 25px;
	height: 25px;
}

.cap-ajax-recovery__title {
	margin: 0 0 8px;
	color: #172033;
	font-size: clamp(20px, 4vw, 24px);
	font-weight: 750;
	line-height: 1.25;
}

.cap-ajax-recovery__text {
	margin: 0;
	color: #5B6472;
	font-size: 14px;
	line-height: 1.6;
}

.cap-ajax-recovery__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 20px;
}

.cap-ajax-recovery__actions [hidden] {
	display: none !important;
}

.cap-ajax-recovery__actions .cap-btn {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 11px 15px;
	font-size: 14px;
}

.cap-ajax-recovery__actions .cap-btn--secondary {
	border-color: rgba(10, 74, 143, .28);
	background: #fff;
	color: var(--cap-primary, #0A4A8F);
}

.cap-ajax-recovery__actions .cap-btn--secondary:hover,
.cap-ajax-recovery__actions .cap-btn--secondary:focus-visible {
	border-color: var(--cap-primary, #0A4A8F);
	background: #f4f8fc;
	box-shadow: 0 0 0 3px rgba(10, 74, 143, .12);
	outline: none;
}

@media (max-width: 480px) {
	.cap-ajax-recovery {
		align-items: flex-end;
		padding: 12px;
	}

	.cap-ajax-recovery__card {
		width: 100%;
		padding: 21px 18px 18px;
		border-radius: 15px;
	}

	.cap-ajax-recovery__actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cap-ajax-recovery,
	.cap-ajax-recovery__card,
	.cap-portal .cap-account__nav-shell,
	.cap-app-body .cap-account__nav-shell {
		transition: none !important;
	}
}

/* ================================================================== *
 * v1.0.34 — CheckoutWC Field Editor synced Shipping Address form
 * ================================================================== */
.cap-account__content .cap-address-fields .cap-address-field--full {
	grid-column: 1 / -1;
}
.cap-account__content .cap-address-fields .cap-address-field--half {
	grid-column: span 1;
}
.cap-js .cap-account__content .cap-address-field--is-hidden {
	display: none !important;
}
.cap-account__content .cfw-field-editor-hide-optional .optional {
	display: none !important;
}
.cap-account__content .cap-address-fields .description {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--cap-muted);
}
.cap-account__content .cap-address-fields .form-row.validate-required label,
.cap-account__content .cap-address-fields .woocommerce-form-row.validate-required label {
	font-weight: 650;
}
.cap-account__content .cap-address-fields input[type="checkbox"] {
	width: auto;
	min-height: 0;
	margin-right: 8px;
	accent-color: var(--cap-primary);
}
.cap-add-optional {
	display: none;
	grid-column: 1 / -1;
	justify-self: start;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cap-primary);
	font: inherit;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
}
.cap-js .cap-add-optional { display: inline-flex; }
.cap-add-optional span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(10, 74, 143, .3);
	border-radius: 50%;
	font-size: 15px;
	line-height: 1;
}
.cap-add-optional:hover { text-decoration: underline; }
.cap-add-optional:focus-visible {
	outline: none;
	box-shadow: var(--cap-focus);
	border-radius: 4px;
}
.cap-address-fields--additional .form-row:last-child,
.cap-address-fields--additional .woocommerce-form-row:last-child {
	margin-bottom: 0;
}
@media (max-width: 680px) {
	.cap-account__content .cap-address-fields .cap-address-field--half,
	.cap-account__content .cap-address-fields .cap-address-field--full {
		grid-column: 1 / -1;
	}
}

/* ================================================================== *
 * v1.0.35 — Profile hub and required-field completion
 * ================================================================== */
.cap-profile-hub {
	display: grid;
	gap: 18px;
}
.cap-profile-hub > .cap-account-form {
	min-width: 0;
}
.cap-profile-section {
	scroll-margin-top: calc(var(--cap-mobile-nav-top, 0px) + 88px);
}
.cap-form-actions--section {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--cap-line);
}
.cap-account__content .cap-address-fields .form-row label,
.cap-account__content .cap-address-fields .woocommerce-form-row label,
.cap-account__content .cap-address-fields .form-row.validate-required label,
.cap-account__content .cap-address-fields .woocommerce-form-row.validate-required label {
	font-weight: 600 !important;
}
.cap-account__content .cap-address-fields .optional,
.cap-account__content .cap-address-fields .required {
	font-weight: 600;
}
@media (max-width: 680px) {
	.cap-profile-hub { gap: 14px; }
	.cap-form-actions--section { margin-top: 14px; padding-top: 14px; }
}

/* ================================================================== *
 * v1.0.37 — Collapsible Account Details hub and sign-in method states
 * ================================================================== */
.cap-profile-panel {
	min-width: 0;
	border: 1px solid var(--cap-line);
	border-radius: var(--cap-radius);
	background: var(--cap-card);
	box-shadow: var(--cap-shadow-sm);
	overflow: clip;
	scroll-margin-top: calc(var(--cap-mobile-nav-top, 0px) + 88px);
}
.cap-profile-panel[open] {
	border-color: rgba(10, 74, 143, .24);
	box-shadow: 0 9px 26px rgba(10, 45, 82, .09);
}
.cap-profile-panel > summary {
	list-style: none;
}
.cap-profile-panel > summary::-webkit-details-marker {
	display: none;
}
.cap-profile-panel__summary {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 13px;
	min-height: 78px;
	padding: 16px 18px;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background .18s ease;
}
.cap-profile-panel__summary:hover {
	background: rgba(10, 74, 143, .025);
}
.cap-profile-panel__summary:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 3px rgba(10, 74, 143, .16);
}
.cap-profile-panel__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(10, 74, 143, .08);
	color: var(--cap-primary);
	flex: 0 0 auto;
}
.cap-profile-panel__icon svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: currentColor;
}
.cap-profile-panel__copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.cap-profile-panel__copy strong {
	font-size: 15.5px;
	font-weight: 750;
	line-height: 1.3;
	color: var(--cap-ink);
}
.cap-profile-panel__copy small {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--cap-muted);
}
.cap-profile-panel__chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid rgba(10, 74, 143, .55);
	border-bottom: 2px solid rgba(10, 74, 143, .55);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}
.cap-profile-panel[open] > .cap-profile-panel__summary .cap-profile-panel__chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}
.cap-profile-panel__body {
	padding: 19px 20px 20px;
	border-top: 1px solid var(--cap-line);
	background: linear-gradient(180deg, rgba(247, 250, 253, .62), #fff 46px);
}
.cap-profile-panel__body .cap-form-actions--section {
	margin-bottom: 0;
}
.cap-access-badges {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: wrap;
}
.cap-access-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 8px;
	border: 1px solid rgba(10, 74, 143, .18);
	border-radius: 999px;
	background: rgba(10, 74, 143, .06);
	color: var(--cap-primary);
	font-size: 10.5px;
	font-weight: 750;
	line-height: 1;
	white-space: nowrap;
}
.cap-access-badge--google {
	border-color: rgba(66, 133, 244, .22);
	background: rgba(66, 133, 244, .08);
	color: #285fbd;
}
.cap-access-status {
	margin-bottom: 17px;
	padding: 13px 14px;
	border: 1px solid rgba(10, 74, 143, .13);
	border-left: 3px solid var(--cap-primary);
	border-radius: 9px;
	background: rgba(10, 74, 143, .035);
}
.cap-access-status--google {
	border-left-color: #4285f4;
	background: rgba(66, 133, 244, .045);
}
.cap-access-status--both {
	border-left-color: #2b8a61;
	background: rgba(43, 138, 97, .045);
}
.cap-access-status strong {
	display: block;
	margin: 0 0 4px;
	font-size: 13.5px;
	font-weight: 750;
	color: var(--cap-ink);
}
.cap-access-status p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--cap-muted);
}
.cap-input--readonly,
.cap-account__content input.cap-input--readonly {
	background: #f3f6f9 !important;
	color: #66717d !important;
	cursor: not-allowed;
}
@media (max-width: 680px) {
	.cap-profile-panel__summary {
		grid-template-columns: 38px minmax(0, 1fr) 16px;
		gap: 11px;
		min-height: 72px;
		padding: 14px;
	}
	.cap-profile-panel__icon {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}
	.cap-profile-panel__icon svg {
		width: 19px;
		height: 19px;
	}
	.cap-access-badges {
		display: none;
	}
	.cap-profile-panel__copy strong { font-size: 14.5px; }
	.cap-profile-panel__copy small { font-size: 11.8px; }
	.cap-profile-panel__body { padding: 16px 14px 17px; }
}

/* v1.0.45 — Removed legacy VU header-search takeover repair.
 * Global/header search UI is owned entirely by the site header plugin/theme. */

/* v1.0.41 — Customer Support: embedded VU Bookshop AI + direct contacts only */
.cap-support__ai-card{
	width:100%;
	min-width:0;
	max-width:none;
	margin:0;
	padding:0;
	background:transparent;
	border:0;
	border-radius:0;
	box-shadow:none;
	overflow:visible;
}
.cap-support__ai-card .asa-chat--account{
	display:block;
	width:100%;
	margin:0;
	max-width:none;
}
/* The embedded assistant owns its visual skin. Portal card/form rules must not
 * leak into its panel, messages, controls, tables, or textarea. */
.cap-support__ai-card .asa-chat--account .asa-panel{
	width:100%;
	max-width:none;
}
.cap-support__ai-unavailable{
	display:flex;
	align-items:flex-start;
	gap:13px;
	padding:20px;
}
.cap-support__ai-unavailable strong{display:block;font-size:15px;color:var(--cap-ink)}
.cap-support__ai-unavailable p{margin:4px 0 0;color:var(--cap-muted);font-size:13.5px;line-height:1.55}
.cap-support__ai-unavailable-icon{
	width:38px;height:38px;flex:0 0 38px;border-radius:11px;
	background:var(--cap-primary);
	position:relative;
}
.cap-support__ai-unavailable-icon::before{
	content:"AI";position:absolute;inset:0;display:grid;place-items:center;
	color:#fff;font-size:12px;font-weight:800;
}
.cap-support__contacts{grid-template-columns:repeat(2,minmax(0,1fr))}
.cap-support__contact{min-height:76px}
.cap-support__contact--whatsapp:hover,.cap-support__contact--email:hover{
	transform:translateY(-1px);
}
@media(max-width:640px){
	.cap-support{gap:14px}
	.cap-support__contacts{grid-template-columns:1fr;gap:10px}
	.cap-support__contact{min-height:68px;padding:14px}
	.cap-support__ai-card{border-radius:0}
}
/* Keep inline auth actions and password toggles visually lightweight. */
.cap-portal button.cap-link,
.cap-portal button.cap-link:is(:hover, :focus, :active) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  min-height: 0;
  color: var(--cap-primary) !important;
  transform: none !important;
}
.cap-portal button.cap-link:active { color: #083d77 !important; }
.cap-portal .cap-password__toggle,
.cap-portal .cap-password__toggle:is(:hover, :focus, :active) {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
}
.cap-portal :is(button.cap-link, .cap-password__toggle):focus:not(:focus-visible) {
  outline: none !important;
}
.cap-portal :is(button.cap-link, .cap-password__toggle):focus-visible {
  outline: 2px solid var(--cap-primary) !important;
  outline-offset: 2px;
}
