/* ============================================================
   Retailored App CSS
   Full-screen app interface for WooCommerce My Account
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


.select-resize-ghost, .select2-container .select2-choice, .select2-container .select2-selection, input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea{
	box-shadow: none!important;
	background-color: var(--bg-input) !important;
}

input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=text]:focus, select:focus, textarea:focus {
	box-shadow: none!important;
	background-color: var(--bg-input) !important;
	color: var(--text-primary) !important;
}

body.retailored-app {
	font-family: var(--font-family);
	background: var(--bg-main);
	color: var(--text-primary);
	font-size: var(--text-base);
	line-height: 1.5;
	overflow-x: hidden;
}

body {
	scroll-behavior: smooth;
}

/* ── Design Tokens ────────────────────────────────────────── */
:root {
	/* ── Layout ─────────────────────────────────────────────── */
	--sidebar-width: 260px;
	--mobile-header-h: 60px;

	/* ── Sidebar ────────────────────────────────────────────── */
	--sidebar-bg: #1C1D25;
	--sidebar-text: #ffffff;
	--sidebar-muted: rgba(255,255,255,0.55);
	--sidebar-active-bg: #ffffff;
	--sidebar-active-text: #1C1D25;
	--sidebar-hover-bg: rgba(255,255,255,0.08);

	/* ── Colors ─────────────────────────────────────────────── */
	--color-primary: #1C1D25;
	--color-primary-hover: #2d2e3a;
	--color-green: #059669;
	--color-green-dark: #065F46;
	--color-green-light: #D1FAE5;
	--color-blue: #2563EB;
	--color-blue-dark: #1D4ED8;
	--color-blue-light: #DBEAFE;
	--color-purple: #7C3AED;
	--color-purple-dark: #6D28D9;
	--color-purple-light: #F3E8FF;
	--color-orange: #D97706;
	--color-orange-dark: #92400E;
	--color-orange-light: #FEF3C7;
	--color-red: #DC2626;
	--color-red-dark: #991B1B;
	--color-red-light: #FEE2E2;
	--color-cyan: #0E7490;
	--color-cyan-light: #CFFAFE;
	--color-indigo: #4338CA;
	--color-indigo-light: #E0E7FF;

	/* ── Surfaces ───────────────────────────────────────────── */
	--bg-main: #F0F2F5;
	--bg-card: #ffffff;
	--bg-subtle: #F9FAFB;
	--bg-hover: #F3F4F6;
	--bg-input: #ffffff;
	--bg-overlay: rgba(0,0,0,0.5);

	/* ── Text ───────────────────────────────────────────────── */
	--text-primary: #1C1D25;
	--text-secondary: #5A5E7A;
	--text-muted: #8B8FA8;
	--text-inverted: #ffffff;

	/* ── Borders ────────────────────────────────────────────── */
	--border-color: #E8E9EF;
	--border-light: #F3F4F6;
	--border-input: #D1D5DB;

	/* ── Shadows ────────────────────────────────────────────── */
	--shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 8px rgba(0,0,0,0.04);
	--shadow-hover: 0 4px 12px rgba(28,29,37,0.12);
	--shadow-modal: 0 8px 32px rgba(0,0,0,0.18);
	--shadow-focus: 0 0 0 3px rgba(28,29,37,0.06);

	/* ── Typography ─────────────────────────────────────────── */
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--text-2xl: 24px;
	--text-xl: 18px;
	--text-lg: 16px;
	--text-base: 14px;
	--text-sm: 13px;
	--text-xs: 12px;
	--text-2xs: 11px;
	--weight-normal: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;

	/* ── Spacing (4px grid) ─────────────────────────────────── */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 20px;
	--sp-6: 24px;
	--sp-8: 32px;
	--sp-10: 40px;
	--sp-12: 48px;

	/* ── Border Radius ──────────────────────────────────────── */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 10px;
	--radius-xl: 14px;
	--radius-pill: 20px;
	--radius-full: 50%;

	/* ── Button Heights ─────────────────────────────────────── */
	--btn-h-lg: 44px;
	--btn-h-md: 36px;
	--btn-h-sm: 28px;

	/* ── Input Height ───────────────────────────────────────── */
	--input-h: 42px;

	/* ── Z-Index Scale ──────────────────────────────────────── */
	--z-base: 1;
	--z-dropdown: 100;
	--z-sticky: 200;
	--z-overlay: 300;
	--z-modal: 400;
	--z-popup: 500;
	--z-toast: 600;
	--z-lightbox: 700;

	/* ── Backward compat aliases ────────────────────────────── */
	--accent: var(--color-primary);
	--accent-green: var(--color-green);
	--accent-blue: var(--color-blue);
	--accent-purple: var(--color-purple);
	--accent-orange: var(--color-orange);
	--main-bg: var(--bg-main);
	--card-bg: var(--bg-card);
	--card-radius: var(--radius-xl);
	--card-shadow: var(--shadow-card);
	--border: var(--border-color);

	/* ── Transition ─────────────────────────────────────────── */
	--transition-fast: 0.15s ease;
	--transition-base: 0.2s ease;
}

/* ── Dark Mode ───────────────────────────────────────────── */
[data-theme="dark"] {
	--sidebar-bg: #111218;
	--sidebar-active-bg: rgba(255,255,255,0.12);
	--sidebar-active-text: #ffffff;
	--sidebar-hover-bg: rgba(255,255,255,0.06);

	--color-primary: #E4E5E9;
	--color-primary-hover: #ffffff;

	--bg-main: #16171D;
	--bg-card: #1E1F27;
	--bg-subtle: #23242E;
	--bg-hover: #2A2B36;
	--bg-input: #282933;
	--bg-overlay: rgba(0,0,0,0.65);

	--text-primary: #E4E5E9;
	--text-secondary: #9B9DB5;
	--text-muted: #6B6D84;
	--text-inverted: #1C1D25;

	--border-color: #2E2F3A;
	--border-light: #23242E;
	--border-input: #444552;

	--shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 1px 8px rgba(0,0,0,0.15);
	--shadow-hover: 0 4px 12px rgba(0,0,0,0.3);
	--shadow-modal: 0 8px 32px rgba(0,0,0,0.5);
	--shadow-focus: 0 0 0 3px rgba(255,255,255,0.08);
}

/* ── Dark mode overrides for status badge readability ────── */
[data-theme="dark"] .status-badge {
	filter: brightness(0.85) saturate(1.2);
}

[data-theme="dark"] .app-login-form-wrap {
	background: var(--bg-card);
}

[data-theme="dark"] .app-login-form-inner input[type="text"],
[data-theme="dark"] .app-login-form-inner input[type="email"],
[data-theme="dark"] .app-login-form-inner input[type="password"],
[data-theme="dark"] .app-login-form-inner select {
	background: var(--bg-input);
	color: var(--text-primary);
	border-color: var(--border-input);
}

[data-theme="dark"] .login-tab-btn {
	color: var(--text-muted);
}
[data-theme="dark"] .login-tabs {
	background: var(--bg-subtle);
}
[data-theme="dark"] .login-tab-btn.active {
	background: var(--bg-card);
	color: var(--text-primary);
}

[data-theme="dark"] .reg-step__num {
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .app-badge {
	background: #E4E5E9;
	color: #1C1D25;
}

[data-theme="dark"] .app-orders-table tr:hover td {
	background: var(--bg-hover);
}

[data-theme="dark"] img {
	opacity: 0.92;
}

/* ── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: var(--radius-md);
	background: rgba(255,255,255,0.06);
	color: var(--sidebar-muted);
	cursor: pointer;
	transition: background var(--transition-fast), color var(--transition-fast);
	flex-shrink: 0;
}
.theme-toggle:hover {
	background: var(--sidebar-hover-bg);
	color: var(--sidebar-text);
}
.theme-toggle svg {
	width: 16px;
	height: 16px;
}
.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ── Skeleton Loading ────────────────────────────────────── */
.skeleton {
	position: relative;
	overflow: hidden;
	background: var(--bg-hover);
	border-radius: var(--radius-md);
	color: transparent !important;
	pointer-events: none;
	user-select: none;
}
.skeleton * { visibility: hidden; }
.skeleton::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	animation: skeletonShimmer 1.5s infinite;
}
[data-theme="dark"] .skeleton::after {
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
@keyframes skeletonShimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}
.skeleton-line {
	height: 14px;
	border-radius: var(--radius-sm);
	background: var(--bg-hover);
	margin-bottom: var(--sp-2);
}
.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }
.skeleton-circle {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-full);
	background: var(--bg-hover);
}

/* ── Pagination ──────────────────────────────────────────── */
.rt-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: var(--sp-6) 0 var(--sp-2);
}
.rt-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-card);
	color: var(--text-secondary);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	cursor: pointer;
	transition: all var(--transition-fast);
	text-decoration: none;
}
.rt-pagination__btn:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
	border-color: var(--border-input);
}
.rt-pagination__btn.is-active {
	background: var(--color-primary);
	color: var(--text-inverted);
	border-color: var(--color-primary);
}
.rt-pagination__btn:disabled,
.rt-pagination__btn.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.rt-pagination__btn svg {
	width: 16px;
	height: 16px;
}
.rt-pagination__info {
	font-size: var(--text-xs);
	color: var(--text-muted);
	padding: 0 var(--sp-2);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.app-login-page {
	display: flex;
	min-height: 100vh;
	position: relative;
}
.theme-toggle--login {
	position: absolute;
	top: var(--sp-4);
	right: var(--sp-4);
	z-index: var(--z-dropdown);
	border-color: var(--border-color);
	color: var(--text-muted);
}
.theme-toggle--login:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

/* Left brand panel */
.app-login-brand {
	flex: 0 0 42%;
	background: var(--sidebar-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	position: relative;
	overflow: hidden;
}

.app-login-brand::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.08) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.06) 0%, transparent 60%),
		radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
}

.app-login-brand::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 60px 60px;
}

.login-brand-inner {
	position: relative;
	text-align: center;
	color: #fff;
	max-width: 320px;
}

.login-logo {
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #fff;
	margin-bottom: 16px;
}

.login-tagline {
	font-size: 15px;
	color: rgba(255,255,255,0.5);
	letter-spacing: 0.04em;
	line-height: 1.6;
}

/* Right form panel */
.app-login-form-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: var(--bg-card);
	overflow-y: auto;
}

.app-login-form-inner {
	width: 100%;
	max-width: 440px;
}

/* Override WooCommerce login styles inside our login page */
.app-login-form-inner .account-container {
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.app-login-form-inner #customer_login {
	display: block !important;
}

.app-login-form-inner .col2-set.row {
	margin: 0 !important;
}

.app-login-form-inner h2 {
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	margin-bottom: var(--sp-8);
	letter-spacing: -0.01em;
}

.app-login-form-inner .woocommerce-form-row {
	margin-bottom: 18px;
}

.app-login-form-inner label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.app-login-form-inner label .required {
	color: var(--color-red);
}

.app-login-form-inner input[type="text"],
.app-login-form-inner input[type="email"],
.app-login-form-inner input[type="password"],
.app-login-form-inner select {
	width: 100%;
	height: var(--input-h);
	padding: 0 var(--sp-4);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	font-family: inherit;
	color: var(--text-primary);
	background: var(--bg-input);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.app-login-form-inner select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

/* Password field: eye toggle inside input, on the left */
.app-login-form-inner .woocommerce-form-row.password-input,
.app-login-form-inner .form-row.password-input,
.woocommerce-form-row.password-input,
.password-input {
	position: relative;
}

.app-login-form-inner .password-input input[type="password"],
.app-login-form-inner .password-input input[type="text"],
.password-input input[type="password"],
.password-input input[type="text"] {
	padding-right: 44px !important;
}

.show-password-input {
    position: absolute !important;
    right: 14px;
    bottom: 4px;
    height: auto;
    width: 22px;
    padding: 0;
    margin: 0;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0;
    color: transparent;
    overflow: hidden;
}

.show-password-input::after {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center;
}

.show-password-input.display-password::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.app-login-form-inner input:focus,
.app-login-form-inner select:focus {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-focus);
}

.app-login-form-inner input.reg-field--error {
	border-color: var(--color-red);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.app-login-form-inner .woocommerce-form-row {
	display: block;
	margin-bottom: 0;
}

.app-login-form-inner .form-row:not(.woocommerce-form-row) {
	display: flex;
	align-items: center;
	gap: 12px;
}

.app-login-form-inner .woocommerce-button,
.app-login-form-inner button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	height: var(--btn-h-lg);
	padding: 0 var(--sp-6);
	background: var(--color-primary);
	color: var(--text-inverted);
	border: none;
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	font-family: inherit;
	cursor: pointer;
	transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
	text-decoration: none;
}

.app-login-form-inner .woocommerce-button:hover,
.app-login-form-inner button[type="submit"]:hover {
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-hover);
}

.app-login-form-inner .woocommerce-button:active,
.app-login-form-inner button[type="submit"]:active {
	transform: translateY(1px);
}

.app-login-form-inner .woocommerce-LostPassword {
	margin-top: 16px;
	text-align: center;
}

.app-login-form-inner .woocommerce-LostPassword a {
	font-size: 13px;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.app-login-form-inner .woocommerce-LostPassword a:hover {
	color: var(--accent);
}

/* Register section */
.app-login-form-inner .account-register-inner {
	margin-top: 0;
	padding-top: 0;
}

/* Tabs: Login / Register */
.login-tabs {
	display: flex;
	gap: 0;
	margin-bottom: var(--sp-8);
	background: var(--bg-hover);
	border-radius: var(--radius-lg);
	padding: var(--sp-1);
}

.login-tab-btn {
	flex: 1;
	padding: 10px var(--sp-4);
	margin-bottom: 0;
	background: none;
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--text-muted);
	cursor: pointer;
	transition: all var(--transition-base);
}

.login-tab-btn.active {
	color: var(--text-primary);
	background: var(--bg-card);
	box-shadow: var(--shadow-card);
}

.login-tab-btn:hover:not(.active) {
	color: var(--text-secondary);
}

/* WC notices in login page */
.app-login-form-inner .woocommerce-error,
.app-login-form-inner .woocommerce-message,
.app-login-form-inner .woocommerce-info {
	list-style: none;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 13px;
}

.app-login-form-inner .woocommerce-error {
	background: var(--color-red-light);
	color: var(--color-red-dark);
	border: 1px solid #FECACA;
}

.app-login-form-inner .woocommerce-message {
	background: var(--color-green-light);
	color: var(--color-green-dark);
	border: 1px solid #BBF7D0;
}

/* ── Registration step indicator ────────────────────────────── */
.reg-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 32px;
	padding: 0 8px;
}

.reg-step {
	display: flex;
	align-items: center;
	gap: 8px;
}

.reg-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	background: var(--bg-hover);
	color: var(--text-muted);
	transition: all 0.25s;
	flex-shrink: 0;
}

.reg-step__label {
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	color: var(--text-muted);
	transition: color 0.25s;
	white-space: nowrap;
}

.reg-step.is-active .reg-step__num {
	background: var(--color-primary);
	color: var(--text-inverted);
}

.reg-step.is-active .reg-step__label {
	color: var(--color-primary);
	font-weight: 600;
}

.reg-step.is-done .reg-step__num {
	background: var(--accent-green);
	color: #fff;
}

.reg-step.is-done .reg-step__num::after {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center/contain;
}

.reg-step.is-done .reg-step__label {
	color: var(--accent-green);
}

.reg-step__line {
	flex: 1;
	height: 2px;
	background: var(--border-color);
	margin: 0 var(--sp-2);
	min-width: 20px;
	transition: background 0.25s;
}

.reg-step__line.is-done {
	background: var(--accent-green);
}

/* ── Registration panels ────────────────────────────────────── */
.reg-panel {
	animation: regFadeIn 0.25s ease;
}

@keyframes regFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.reg-section-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 20px;
}

.reg-section-title--sub {
	font-size: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

/* ── Role cards ─────────────────────────────────────────────── */
.reg-role-cards {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.reg-role-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 14px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	position: relative;
}

.reg-role-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.reg-role-card:hover {
	border-color: var(--border-input);
	background: var(--bg-subtle);
}

.reg-role-card.is-selected {
	border-color: var(--color-primary);
	background: var(--bg-subtle);
	box-shadow: var(--shadow-focus);
}

.reg-role-card__icon {
	width: 36px;
	height: 36px;
	color: var(--text-muted);
	transition: color 0.2s;
}

.reg-role-card.is-selected .reg-role-card__icon {
	color: var(--accent);
}

.reg-role-card__icon svg {
	width: 100%;
	height: 100%;
}

.reg-role-card__text strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 4px;
}

.reg-role-card__text span {
	display: block;
	font-size: 11px;
	color: var(--text-muted);
	line-height: 1.4;
}

/* ── Registration fields ────────────────────────────────────── */
.reg-field {
	margin-bottom: 0;
}

.reg-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.reg-field .required {
	color: var(--color-red);
}

.reg-field-row {
	display: flex;
	gap: 12px;
}

.reg-field-row .reg-field {
	flex: 1;
}

.reg-field-row .reg-field--small {
	flex: 0 0 100px;
}

.app-login-form-inner select[multiple] {
	height: auto !important;
	min-height: 140px;
	padding: 8px;
	border-radius: 10px;
	overflow-y: auto;
	appearance: auto;
	-webkit-appearance: listbox;
	background-image: none;
}

.app-login-form-inner select[multiple] option {
	padding: 6px 8px;
	border-radius: 4px;
	margin-bottom: 1px;
}

.app-login-form-inner select[multiple] option:checked {
	background: #1C1D25 linear-gradient(0deg, #1C1D25 0%, #1C1D25 100%);
	color: #fff;
}

.reg-field-hint {
	display: block;
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 6px;
}

/* Country checkbox list */
.reg-search-wrap {
	position: relative;
	margin-bottom: 8px;
}
.reg-search-wrap svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}
.reg-country-search {
	width: 100%;
	height: var(--input-h, 48px);
	padding: 0 var(--sp-4) 0 36px !important;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	font-size: var(--text-sm);
	color: var(--text-primary);
	background: var(--bg-input);
	outline: none;
}
.reg-country-search:focus {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-focus);
}
.reg-country-list {
	max-height: 220px;
	overflow-y: auto;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	background: var(--bg-input);
	padding: 4px;
}
.reg-country-item {
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: var(--radius-md, 6px);
	cursor: pointer;
	font-size: var(--text-sm);
	color: var(--text-secondary);
	transition: background 0.15s;
	margin: 0 !important;
	font-weight: 400 !important;
}
.reg-country-item:hover {
	background: var(--bg-hover);
}
.reg-country-item input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--color-primary);
	margin: 0;
}
.reg-country-item.is-hidden {
	display: none !important;
}

.reg-hint {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin-bottom: var(--sp-4);
	padding: var(--sp-3) var(--sp-4);
	background: var(--bg-subtle);
	border-radius: var(--radius-lg);
}

/* ── Invite-code verification status ────────────────────────── */
.reg-invite-status {
	font-size: var(--text-sm);
	margin-top: var(--sp-2);
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--radius-md, 6px);
	font-weight: 500;
}
.reg-invite-status.is-pending { color: var(--text-muted); background: var(--bg-subtle); }
.reg-invite-status.is-success { color: #0a7a3b; background: #e6f6ec; }
.reg-invite-status.is-error   { color: #b3261e; background: #fce8e6; }

/* ── Toggle button groups ───────────────────────────────────── */
.reg-toggle-group {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.reg-toggle-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1.5px solid var(--border);
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.reg-toggle-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.reg-toggle-btn:hover {
	border-color: var(--border-input);
}

.reg-toggle-btn.is-active {
	border-color: var(--color-primary);
	background: var(--bg-subtle);
	color: var(--text-primary);
	font-weight: var(--weight-semibold);
}

/* ── Info box (partner) ──────────────────────────────────────── */
.reg-info-box {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-5);
	background: var(--color-blue-light);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-blue-light);
	margin-bottom: var(--sp-5);
}

.reg-info-box svg {
	flex-shrink: 0;
	color: var(--accent-blue);
	margin-top: 1px;
}

.reg-info-box strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 4px;
}

.reg-info-box p {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
	margin: 0;
}

/* ── Navigation buttons ─────────────────────────────────────── */
.reg-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.btn-reg-next {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	height: var(--btn-h-lg);
	padding: 0 var(--sp-6);
	background: var(--color-primary);
	color: var(--text-inverted);
	border: none;
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	font-family: inherit;
	cursor: pointer;
	transition: all var(--transition-base);
}

.btn-reg-next:hover {
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-hover);
}

.btn-reg-back {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	height: var(--btn-h-lg);
	padding: 0 var(--sp-5);
	background: none;
	color: var(--text-muted);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	font-weight: var(--weight-medium);
	font-family: inherit;
	cursor: pointer;
	transition: all var(--transition-base);
}

.btn-reg-back:hover {
	border-color: var(--border-input);
	color: var(--text-primary);
}

/* Mobile login adjustments */
@media (max-width: 768px) {
	.app-login-page { flex-direction: column; }
	.app-login-brand {
		flex: 0 0 auto;
		padding: 40px 24px;
	}
	.login-logo { font-size: 24px; }
	.app-login-form-wrap { padding: 32px 20px; }
	.reg-role-cards { flex-direction: column; }
	.reg-role-card { flex-direction: row; text-align: left; padding: 14px 16px; }
	.reg-field-row { flex-direction: column; gap: 0; }
	.reg-steps { gap: 0; }
	.reg-step__label { font-size: 11px; }
}

/* ============================================================
   APP SHELL
   ============================================================ */

.app-shell {
	display: flex;
	min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.app-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: var(--sidebar-width);
	height: 100vh;
	background: var(--sidebar-bg);
	display: flex;
	flex-direction: column;
	z-index: calc(var(--z-overlay) + 1);
	overflow: hidden;
}

.app-sidebar::-webkit-scrollbar { display: none; }

/* Logo */
.app-sidebar__logo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 24px 20px;
	flex-shrink: 0;
}

.app-sidebar__logo a {
	text-decoration: none;
}

.logo-text {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--sidebar-text);
}

/* User */
.app-sidebar__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 16px 24px;
	flex-shrink: 0;
}

.user-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid rgba(255,255,255,0.15);
}

.user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.user-name {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--sidebar-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-role {
	font-size: 11px;
	color: var(--sidebar-muted);
	margin-top: 2px;
}

.user-company {
	font-size: 11px;
	font-weight: 600;
	color: var(--sidebar-muted);
	opacity: .7;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Navigation ───────────────────────────────────────────── */
.app-sidebar__nav {
	flex: 1;
	padding: 0 12px;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,.15) transparent;
}
.app-sidebar__nav::-webkit-scrollbar {
	width: 4px;
}
.app-sidebar__nav::-webkit-scrollbar-track {
	background: transparent;
}
.app-sidebar__nav::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,.15);
	border-radius: 4px;
}

/* WooCommerce outputs a <ul> */
.app-sidebar__nav ul.woocommerce-MyAccount-navigation-link {
	display: none; /* hide default WC wrapper if present */
}

.app-sidebar__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.app-sidebar__nav li {
	margin-bottom: 2px;
}

.app-sidebar__nav li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--sidebar-muted);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	position: relative;
}

.app-sidebar__nav li a:hover {
	background: var(--sidebar-hover-bg);
	color: var(--sidebar-text);
}

.app-sidebar__nav li.is-active > a,
.app-sidebar__nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active > a {
	background: var(--sidebar-active-bg);
	color: var(--sidebar-active-text);
	font-weight: 600;
}

/* Nav icons via CSS + data */
.app-sidebar__nav li a::before {
	content: '';
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.7;
}

li.is-active a::before { opacity: 1; }

/* Icon SVGs as data URIs – each nav item */
.nav-item--dashboard a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
.nav-item--dashboard.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.nav-item--wishlist a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E");
}
.nav-item--wishlist.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%231C1D25' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 00-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 000-7.78z'/%3E%3C/svg%3E");
}

/* Wishlist item count badge */
.nav-wishlist-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 6px;
	background: #FFF;
	color: #1C1D25;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	border-radius: 9px;
	vertical-align: middle;
}
.nav-item--wishlist.is-active .nav-wishlist-count {
	background: #1C1D25;
	color: #fff;
}

.nav-item--quotes a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}
.nav-item--quotes.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

.nav-item--orders a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Cpath d='M9 12h6M9 16h4'/%3E%3C/svg%3E");
}
.nav-item--orders.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Cpath d='M9 12h6M9 16h4'/%3E%3C/svg%3E");
}

/* Shipments: delivery truck icon */
.nav-item--shipments a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpath d='M16 8h4l3 3v5h-7V8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}
.nav-item--shipments.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpath d='M16 8h4l3 3v5h-7V8z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E");
}

.nav-item--warehouse a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v2'/%3E%3Cpath d='M12 12v4M10 14h4'/%3E%3C/svg%3E");
}
.nav-item--warehouse.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v2'/%3E%3Cpath d='M12 12v4M10 14h4'/%3E%3C/svg%3E");
}

.nav-item--contacts a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
}
.nav-item--contacts.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
}

.nav-item--campaigns a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 00-2.91-.09z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 012-3.95A12.88 12.88 0 0122 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 01-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
}
.nav-item--campaigns.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 00-2.91-.09z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 012-3.95A12.88 12.88 0 0122 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 01-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
}

.nav-item--app-calendar a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.nav-item--app-calendar.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

/* Edit my info: user silhouette + pencil overlaid top-right */
.nav-item--edit-account a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='7' r='4'/%3E%3Cpath d='M11.5 15H7a4 4 0 00-4 4v2'/%3E%3Cpath d='M21.4 16.6a1 1 0 00-3-3l-4 4a2 2 0 00-.5.9l-.8 2.9a.5.5 0 00.6.6l2.9-.8a2 2 0 00.9-.5z'/%3E%3C/svg%3E");
}
.nav-item--edit-account.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='7' r='4'/%3E%3Cpath d='M11.5 15H7a4 4 0 00-4 4v2'/%3E%3Cpath d='M21.4 16.6a1 1 0 00-3-3l-4 4a2 2 0 00-.5.9l-.8 2.9a.5.5 0 00.6.6l2.9-.8a2 2 0 00.9-.5z'/%3E%3C/svg%3E");
}

/* Analytics: bar chart icon */
.nav-item--analytics a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V10'/%3E%3Cpath d='M18 20V4'/%3E%3Cpath d='M6 20v-4'/%3E%3C/svg%3E");
}
.nav-item--analytics.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V10'/%3E%3Cpath d='M18 20V4'/%3E%3Cpath d='M6 20v-4'/%3E%3C/svg%3E");
}

/* Finance: dollar sign icon */
.nav-item--finance a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6'/%3E%3C/svg%3E");
}
.nav-item--finance.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'/%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6'/%3E%3C/svg%3E");
}

/* Store: storefront icon */
.nav-item--store a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
.nav-item--store.is-active a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231C1D25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.app-sidebar__nav > ul {
	display: flex;
	flex-direction: column;
}

/* ── Collapsible nav group ───────────────────────────────── */
.nav-group {
	margin-top: 4px;
	border-top: 1px solid rgba(255,255,255,.08);
	padding-top: 4px;
}

.nav-group__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 14px;
	border: none;
	border-radius: 10px;
	background: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--sidebar-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.nav-group__toggle:hover {
	background: var(--sidebar-hover-bg);
	color: var(--sidebar-text);
}

.nav-group__label {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-group__label::before {
	content: '';
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.nav-group__chevron {
	flex-shrink: 0;
	opacity: 0.5;
	transition: transform 0.2s;
}

.nav-group.is-open .nav-group__chevron {
	transform: rotate(180deg);
}

.nav-group__list {
	display: none;
	padding-left: 16px;
}

.nav-group.is-open .nav-group__list {
	display: block;
}

/* Sidebar bottom: logout + notice pinned above fold */
.app-sidebar__bottom {
	flex-shrink: 0;
	padding: 0 14px 16px;
}

/* ── Sidebar logout link ─────────────────────────────────── */
.app-sidebar__logout {
	padding: 0 2px 12px;
}
.app-sidebar__logout a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--sidebar-muted);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.app-sidebar__logout a::before {
	content: '';
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
	opacity: 0.5;
}
.app-sidebar__logout a:hover {
	background: var(--sidebar-hover-bg);
	color: var(--sidebar-text);
}

/* ── Sidebar feedback notice ─────────────────────────────── */
.app-sidebar__notice {
	display: flex;
	gap: 8px;
	margin: 8px 2px;
	padding: 10px 12px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 8px;
}
.app-sidebar__notice svg {
	flex-shrink: 0;
	color: rgba(255,255,255,.4);
	margin-top: 1px;
}
.app-sidebar__notice p {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	color: rgba(255,255,255,.45);
}
.app-sidebar__notice a {
	color: rgba(255,255,255,.65);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.app-sidebar__notice a:hover {
	color: #fff;
}

/* ── Nav Notifications ────────────────────────────────────── */
.nav-notifications {
	position: relative;
	padding: 0 12px 6px;
}

.nav-notifications__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 12px;
	border: none;
	border-radius: 8px;
	background: rgba(255,255,255,0.06);
	color: var(--sidebar-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
	text-align: left;
}

.nav-notifications__btn:hover {
	background: var(--sidebar-hover-bg);
}

.nav-notifications__btn svg {
	flex-shrink: 0;
	opacity: 0.85;
}

.nav-notifications__label {
	flex: 1;
}

.nav-notifications__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--color-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Popup — uses existing rt-popup-overlay / rt-popup-dialog pattern */
.nav-notifications__card {
	max-height: 70vh;
	overflow-y: auto;
}

.nav-notifications__list {
	list-style: none;
	margin: 0;
	padding: 8px;
}

.nav-notifications__list:empty::after {
	content: 'No unread messages';
	display: block;
	padding: 24px 16px;
	text-align: center;
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.nav-notifications__list li {
	position: relative;
}

.nav-notifications__list li a {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-3);
	padding-right: 36px; /* room for the dismiss X */
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--text-primary);
	font-size: var(--text-sm);
	transition: background var(--transition-fast);
}

.nav-notifications__list li a:hover {
	background: var(--bg-hover);
}

.nav-notifications__item-dismiss {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	border: none;
	aspect-ratio: 1/1;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
	margin: 0!important;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.nav-notifications__list li:hover .nav-notifications__item-dismiss,
.nav-notifications__item-dismiss:focus-visible {
	opacity: 1;
}
.nav-notifications__item-dismiss:hover {
	background: rgba(0,0,0,.08);
	color: var(--text-primary);
}
.nav-notifications__item-dismiss:disabled {
	opacity: .4;
	cursor: default;
}
@media (hover: none) {
	/* Mobile / touch: keep the X always visible — no hover to reveal it. */
	.nav-notifications__item-dismiss { opacity: .7; }
}

.nav-notifications__item-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	background: var(--bg-hover);
	color: var(--text-muted);
	margin-top: 2px;
}

.nav-notifications__item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-notifications__item-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nav-notifications__item-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--text-primary);
}

.nav-notifications__item-count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--color-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.nav-notifications__item-preview {
	font-size: var(--text-xs);
	color: var(--text-muted);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-notifications__item-author {
	font-weight: var(--weight-semibold);
	color: var(--text-secondary);
}

.nav-notifications__item-time {
	font-size: var(--text-2xs);
	color: var(--text-muted);
}

.nav-notifications__item-icon--status {
	background: var(--color-blue-light);
	color: var(--color-blue);
}

.nav-notifications__item-status {
	margin-top: 2px;
}

.nav-notifications__item-status .status-badge {
	font-size: 11px;
	padding: 2px 8px;
}

/* ── Content Wrap ─────────────────────────────────────────── */
.app-content-wrap {
	margin-left: var(--sidebar-width);
	flex: 1;
	min-width: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.app-main {
	flex: 1;
	padding: 32px;
	max-width: 1650px;
	width: 100%;
	min-width: 0;
}

/* WooCommerce account content wrapper */
.app-main .woocommerce-MyAccount-content {
	all: unset;
	display: block;
}

/* ── Mobile Header ────────────────────────────────────────── */
.app-mobile-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	height: var(--mobile-header-h);
	padding: 0 16px;
	background: var(--sidebar-bg);
	position: sticky;
	top: 0;
	z-index: var(--z-dropdown);
}

.app-menu-toggle {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 6px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-mobile-logo {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #fff;
}

.app-mobile-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
}

.app-mobile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.app-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--bg-overlay);
	z-index: var(--z-overlay);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.app-dashboard {
	display: grid;
	grid-template-columns: 1fr 340px;
	grid-template-rows: auto auto auto;
	gap: 24px;
}

/* Dashboard header – uses shared .app-page__header */
.app-dashboard > .app-page__header {
	grid-column: 1 / -1;
}

/* ── Active Orders ────────────────────────────────────────── */
.app-card {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	padding: var(--sp-6);
}

/* Generic page content inside app-card */
.app-page-content {
	font-size: var(--text-base);
	line-height: 1.7;
	color: var(--text-secondary);
}
.app-page-content h1,
.app-page-content h2,
.app-page-content h3,
.app-page-content h4 {
	color: var(--text-primary);
	margin: 1.5em 0 0.5em;
}
.app-page-content h1:first-child,
.app-page-content h2:first-child,
.app-page-content h3:first-child {
	margin-top: 0;
}
.app-page-content p {
	margin: 0 0 1em;
}
.app-page-content a {
	color: var(--accent);
}
.app-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
}
.app-page-content ul,
.app-page-content ol {
	padding-left: 1.5em;
	margin: 0 0 1em;
}
.app-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
}
.app-page-content th,
.app-page-content td {
	padding: 8px 12px;
	border: 1px solid var(--border-color);
	text-align: left;
}
.app-page-content th {
	background: var(--bg-subtle);
	font-weight: 600;
}

.app-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
}

.app-card__title {
	font-size: var(--text-2xs);
	font-weight: var(--weight-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.app-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #1C1D25;
	color: #ffffff;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
}

/* Orders table */
.app-orders-table {
	width: 100%;
	border-collapse: collapse;
}

.app-orders-table th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding: 0 24px 12px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.app-orders-table td {
	padding: 14px 24px;
	font-size: 13px;
	color: var(--accent);
	border-bottom: 1px solid var(--border);
	vertical-align: middle;
}

.app-orders-table tr:last-child td {
	border-bottom: none;
}

.app-orders-table tr:hover td {
	background: var(--bg-subtle);
}

.order-number {
	font-weight: 700;
}


.order-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.order-link a:hover { color: var(--accent); }

/* Status badges */
.status-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--sp-1) var(--sp-3);
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	white-space: nowrap;
}

/* ── WC Order statuses ──────────────────────────── */
.status-pending-payment { background: var(--color-orange-light); color: var(--color-orange-dark); }
.status-pending         { background: var(--color-orange-light); color: var(--color-orange-dark); }
.status-on-hold         { background: var(--color-orange-light); color: var(--color-orange-dark); }
.status-processing      { background: var(--color-blue-light); color: var(--color-blue-dark); }
.status-completed       { background: var(--color-green-light); color: var(--color-green-dark); }
.status-cancelled       { background: var(--color-red-light); color: var(--color-red-dark); }
.status-refunded        { background: var(--color-red-light); color: var(--color-red-dark); }
.status-failed          { background: var(--color-red-light); color: var(--color-red-dark); }
.status-draft           { background: var(--bg-hover); color: var(--text-muted); }

/* ── Custom production statuses (Orders + Quotes) ── */
.status-sampling        { background: var(--color-purple-light); color: var(--color-purple-dark); }
.status-in-design       { background: var(--color-blue-light); color: var(--color-blue-dark); }
.status-in-transport    { background: var(--color-indigo-light); color: var(--color-indigo); }
.status-preparing       { background: var(--color-orange-light); color: var(--color-orange-dark); }
.status-dispatched      { background: var(--color-green-light); color: var(--color-green-dark); }
.status-received        { background: var(--color-cyan-light); color: var(--color-cyan); }
.status-rt-draft        { background: var(--bg-hover); color: var(--text-muted); }

/* ── Quote-only statuses ────────────────────────── */
.status-approved        { background: var(--color-green-light); color: var(--color-green-dark); }
.status-rejected        { background: var(--color-red-light); color: var(--color-red-dark); }
.status-converted       { background: var(--color-purple-light); color: var(--color-purple-dark); }

/* ── Wishlist ─────────────────────────────────────────────── */
.app-wishlist {
	grid-column: 2;
	grid-row: 2;
}

.app-wishlist-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px 28px;
	text-align: center;
}

.app-wishlist-empty__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
	opacity: 0.2;
}

.app-wishlist-empty h3 {
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 8px;
}

.app-wishlist-empty p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 20px;
}

/* ── Wishlist product grid ─────────────────────────────────── */
.app-wishlist-products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.app-wishlist-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.app-wishlist-product__img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-hover);
}
.app-wishlist-product__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.app-wishlist-product__title {
	font-size: 12px;
	font-weight: 500;
	color: var(--text);
	line-height: 1.4;
	text-align: center;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.app-wishlist-product:hover .app-wishlist-product__img {
	opacity: 0.85;
}

/* ── Card header link ─────────────────────────────────────── */
.app-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
}
.app-card__link:hover { color: var(--accent); }

/* ── Shared Button System ─────────────────────────────────── */
.app-btn,
.rt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	height: var(--btn-h-md);
	padding: 0 var(--sp-5);
	background: var(--color-primary);
	color: var(--text-inverted);
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-fast);
	white-space: nowrap;
}

.app-btn:hover, .rt-btn:hover {
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-hover);
	color: var(--text-inverted);
}

.app-btn svg, .rt-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
}

/* Large button variant */
.rt-btn--lg {
	height: var(--btn-h-lg);
	padding: 0 var(--sp-6);
	font-size: var(--text-base);
	border-radius: var(--radius-lg);
}

/* Small button variant */
.rt-btn--sm {
	height: var(--btn-h-sm);
	padding: 0 var(--sp-3);
	font-size: var(--text-xs);
	border-radius: var(--radius-sm);
}

/* Ghost/outline button */
.rt-btn--ghost {
	background: transparent;
	color: var(--text-secondary);
	border: 1.5px solid var(--border-color);
}
.rt-btn--ghost:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
	border-color: var(--border-input);
	box-shadow: none;
}

/* Success button */
.rt-btn--green {
	background: var(--color-green);
	color: #fff;
}
.rt-btn--green:hover {
	background: var(--color-green-dark);
	color: #fff;
}

/* Danger button */
.rt-btn--red {
	background: var(--color-red);
	color: #fff;
}
.rt-btn--red:hover {
	background: var(--color-red-dark);
	color: #fff;
}

/* Disabled state */
.app-btn:disabled, .rt-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Statistics ───────────────────────────────────────────── */
.app-stats {
	grid-column: 1 / -1;
}

.app-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.app-stat-card {
	padding: 28px 24px;
	border-right: 1px solid var(--border);
	text-align: center;
}

.app-stat-card:last-child { border-right: none; }

.app-stat-card__icon {
	width: 44px;
	height: 44px;
	margin: 0 auto 14px;
	opacity: 0.5;
	color: var(--text-muted);
}
.app-stat-card__icon svg [stroke] {
	stroke: currentColor;
}

.app-stat-card__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 8px;
}

.app-stat-card__value {
	font-size: 12px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}
.app-stat-card__value--big {
	font-size: 28px;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
	gap: 4px;
	align-items: baseline;
}
.app-stat-card__value--big .stat-unit {
	font-size: 12px;
	font-weight: 400;
	color: var(--text-muted);
}
.app-stat-card__sub {
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 4px;
}

.stat-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent-green);
	display: inline-block;
}

.stat-arrow {
	color: var(--text-muted);
	font-size: 14px;
}

/* ── Latest Shipments ─────────────────────────────────────── */
.app-shipments {
	grid-column: 1 / -1;
}

/* ── Placeholder for coming-soon endpoints ────────────────── */
.app-section-placeholder {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: var(--sp-12) var(--sp-8);
	text-align: center;
	color: var(--text-muted);
}

.app-section-placeholder h2 {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	margin-bottom: var(--sp-2);
}

/* ============================================================
   APP PAGES (shared: header, icon, coming-soon)
   ============================================================ */

.app-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.app-page__navigation {
	margin-bottom: 12px;
}

.app-page__header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 4px;
	flex-wrap: wrap;
}

.app-page__header .app-page__actions {
	flex-wrap: wrap;
}

.app-page__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-lg);
	background: var(--bg-card);
	box-shadow: var(--shadow-card);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.app-page__icon svg {
	width: 22px;
	height: 22px;
	stroke: var(--text-primary);
}

.app-page__title {
	font-size: var(--text-2xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	letter-spacing: -0.01em;
	margin: 0;
}

.app-page__subtitle {
	font-size: 13px;
	color: var(--text-muted);
	margin: 4px 0 0;
}

/* ── Coming Soon card ─────────────────────────────────────── */
.app-coming-soon {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 64px var(--sp-8);
	text-align: center;
	min-height: 320px;
}

.coming-soon__icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	opacity: 0.15;
}

.app-coming-soon h2 {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	margin-bottom: var(--sp-3);
}

.app-coming-soon p {
	font-size: var(--text-base);
	color: var(--text-muted);
	line-height: 1.7;
	max-width: 420px;
}

/* ── WooCommerce Notices inside app ───────────────────────── */
.app-main .woocommerce-message,
.app-main .woocommerce-error,
.app-main .woocommerce-info {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	list-style: none;
	font-size: 13px;
}

/* ── Shared form input base ───────────────────────────────── */
.form-input,
.app-main input[type="text"],
.app-main input[type="email"],
.app-main input[type="password"],
.app-main input[type="tel"],
.app-main input[type="number"],
.app-main input[type="date"],
.app-main input[type="url"],
.app-main select,
.app-main textarea {
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-md);
	height: var(--input-h);
	padding: 0 var(--sp-8);
	margin: 0;
	font-family: inherit;
	font-size: var(--text-base);
	color: var(--text-primary);
	background: var(--bg-input);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
	outline: none;
}
.form-input:focus,
.app-main input:not([type="checkbox"]):not([type="radio"]):focus,
.app-main select:focus,
.app-main textarea:focus {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-focus);
}
.app-main textarea,
textarea.form-input {
	height: auto;
	padding: var(--sp-3) var(--sp-4);
}
select.form-input {
	appearance: auto;
	-webkit-appearance: auto;
}

/* ── WooCommerce generic form overrides ───────────────────── */
.app-main .woocommerce input[type="text"],
.app-main .woocommerce input[type="email"],
.app-main .woocommerce input[type="password"],
.app-main .woocommerce textarea {
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-md);
	height: var(--input-h);
	padding: 0 var(--sp-4);
	font-family: inherit;
	font-size: var(--text-base);
	color: var(--text-primary);
	background: var(--bg-input);
}

.app-main .woocommerce textarea {
	height: auto;
	padding: var(--sp-3) var(--sp-4);
}

.app-main .woocommerce button[type="submit"],
.app-main .woocommerce input[type="submit"] {
	background: var(--color-primary);
	color: var(--text-inverted);
	border: none;
	border-radius: var(--radius-md);
	height: var(--btn-h-md);
	padding: 0 var(--sp-6);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	font-family: inherit;
	cursor: pointer;
	transition: background var(--transition-base), box-shadow var(--transition-base);
}

.app-main .woocommerce button[type="submit"]:hover,
.app-main .woocommerce input[type="submit"]:hover {
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-hover);
}

/* ============================================================
   THANK YOU / ORDER RECEIVED
   ============================================================ */

.app-page__icon--success {
	background: var(--color-green-light);
}
.app-page__icon--success svg {
	stroke: var(--color-green);
}

/* ── Thank-you page ──────────────────────────────────────── */

.app-thankyou-wrap {
	max-width: 820px;
}

/* Hide Flatsome's row/col grid — our template doesn't use it,
   but just in case any WC action injects one. */
.app-thankyou-wrap .woocommerce-order.row {
	display: contents;
}
.app-thankyou-wrap .woocommerce-order.row > [class*="col"] {
	width: 100%;
	max-width: 100%;
	flex: none;
	padding: 0;
}

/* Hide the is-well wrapper Flatsome adds */
.app-thankyou-wrap .is-well {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
}

/* ── Overview strip ──────────────────────────────────────── */
.rt-thankyou-overview {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--sp-6);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--border-color);
	border-radius: var(--radius-xl);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.rt-thankyou-overview li {
	background: var(--bg-card);
	padding: var(--sp-4) var(--sp-5);
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}
.rt-thankyou-overview__label {
	font-size: var(--text-xs);
	color: var(--text-muted);
	font-weight: var(--weight-medium);
}
.rt-thankyou-overview__value {
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
}

/* ── Body (order details + addresses) ────────────────────── */
.rt-thankyou-body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}

/* Order details & customer details cards */
.app-thankyou-wrap .woocommerce-order-details,
.app-thankyou-wrap .woocommerce-customer-details {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: var(--sp-6);
}
.app-thankyou-wrap .woocommerce-order-details__title,
.app-thankyou-wrap .woocommerce-column__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	margin: 0 0 var(--sp-4);
	padding: 0;
}

/* Tables */
.app-thankyou-wrap table {
	width: 100%;
	border-collapse: collapse;
}
.app-thankyou-wrap table th,
.app-thankyou-wrap table td {
	padding: var(--sp-3) var(--sp-4);
	font-size: var(--text-sm);
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-color);
	text-align: left;
}
.app-thankyou-wrap table thead th {
	font-size: var(--text-2xs);
	font-weight: var(--weight-bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	padding-bottom: var(--sp-3);
}
.app-thankyou-wrap table tfoot th {
	font-weight: var(--weight-semibold);
}
.app-thankyou-wrap table tfoot tr:last-child th,
.app-thankyou-wrap table tfoot tr:last-child td {
	font-weight: var(--weight-bold);
	font-size: var(--text-base);
	border-bottom: none;
}
.app-thankyou-wrap table a {
	color: var(--text-primary);
	text-decoration: none;
}
.app-thankyou-wrap table a:hover {
	color: var(--color-blue);
}

/* Customer details / addresses */
.app-thankyou-wrap .woocommerce-customer-details .woocommerce-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-6);
}
.app-thankyou-wrap .woocommerce-customer-details address {
	font-style: normal;
	color: var(--text-secondary);
	line-height: 1.7;
	padding: 0;
	border: none;
	background: none;
}

/* ── Failed state ────────────────────────────────────────── */
.rt-thankyou-failed {
	background: var(--bg-card);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-card);
	padding: var(--sp-6);
}
.rt-thankyou-failed .woocommerce-notice--error {
	background: var(--color-red-light, #fef2f2);
	color: var(--color-red-dark, #991b1b);
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius-lg);
	margin: 0 0 var(--sp-4);
	border: none;
}
.rt-thankyou-failed__actions {
	display: flex;
	gap: var(--sp-3);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
	.rt-thankyou-overview {
		grid-template-columns: 1fr 1fr;
	}
	.app-thankyou-wrap .woocommerce-customer-details .woocommerce-columns {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
	.app-dashboard {
		grid-template-columns: 1fr;
	}
	.app-wishlist {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (max-width: 900px) {
	.app-sidebar {
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}
	.app-sidebar.is-open {
		transform: translateX(0);
	}
	.app-overlay.is-visible {
		display: block;
	}
	.app-mobile-header {
		display: flex;
	}
	.app-content-wrap {
		margin-left: 0;
	}
	.app-main {
		padding: 20px 16px;
	}
}

/* Fix product-thumbnails column to a constant width so each row aligns
   regardless of how many thumbs it contains; the trailing arrow column
   then sits in the same place on every row. Applies at every viewport. */
.app-orders-table .col-includes {
	width: 200px;
	min-width: 200px;
}
.app-orders-table .order-link {
	width: 40px;
	min-width: 40px;
	text-align: right;
}

/* Always let the table scroll horizontally when it doesn't fit its container,
   instead of getting clipped by .app-card { overflow: hidden }. On wide
   desktops where the table fits, no scrollbar appears. */
.app-orders-table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}
.app-orders-table th,
.app-orders-table td {
	white-space: nowrap;
}

@media (max-width: 640px) {
	.app-stats__grid {
		grid-template-columns: 1fr;
	}
	.app-stat-card {
		border-right: none;
		border-bottom: 1px solid var(--border);
	}
	.app-stat-card:last-child { border-bottom: none; }

	.app-orders-table th,
	.app-orders-table td {
		padding: 12px 16px;
	}

	/* Hide less critical columns on mobile */
	.app-orders-table .col-products { display: none; }
}

@media (max-width: 480px) {
	.app-main {
		padding: 16px 12px;
	}
	.app-page__header .app-page__actions {
		width: 100%;
		margin-left: 0;
	}
	.app-page__header .app-page__actions .btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Cart Page
 * ═══════════════════════════════════════════════════════════════════════════ */

.rt-cart {
	display: flex;
	gap: var(--sp-6);
	margin: 0 auto;
}

.rt-cart__main {
	flex: 1;
	min-width: 0;
}

.rt-cart__sidebar {
	width: 400px;
	flex-shrink: 0;
}

/* ── Cart items ──────────────────────────────────────────────────────────── */
.rt-cart-items__title {
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	margin: 0 0 var(--sp-4) 0;
}

.rt-cart-items {
	background: var(--bg-card);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-xl);
	overflow: hidden;
}

.rt-cart-item {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4);
	border-bottom: 1px solid var(--border-light);
}

.rt-cart-item:last-child {
	border-bottom: none;
}

.rt-cart-item__img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--border-light);
}

.rt-cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rt-cart-item__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.rt-cart-item__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-3);
}

.rt-cart-item__name {
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

.rt-cart-item__name a {
	color: var(--text-primary);
	text-decoration: none;
}

.rt-cart-item__name a:hover {
	color: var(--color-primary-hover);
}

/* ── Remove button ───────────────────────────────────────────────────────── */
.rt-remove-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-full);
	color: var(--text-muted);
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

.rt-remove-btn:hover {
	color: var(--color-red);
	background: var(--color-red-light);
}

/* ── Bottom row: price, qty, subtotal ────────────────────────────────────── */
.rt-cart-item__bottom {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
}

.rt-cart-item__price {
	font-size: var(--text-sm);
	color: var(--text-secondary);
	white-space: nowrap;
}

.rt-cart-item__subtotal {
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	white-space: nowrap;
	margin-left: auto;
}

/* ── Quantity — matching size splitter style ──────────────────────────────── */
.rt-cart-item__qty .ux-quantity,
.rt-cart-item__qty .quantity {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 32px;
}

.rt-cart-item__qty .ux-quantity__button,
.rt-cart-item__qty .minus,
.rt-cart-item__qty .plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 100%;
	border: none !important;
	border-radius: 0 !important;
	background: var(--bg-subtle) !important;
	color: var(--text-secondary) !important;
	font-size: var(--text-base);
	cursor: pointer;
	transition: all var(--transition-fast);
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1;
	min-height: 0 !important;
}

.rt-cart-item__qty .ux-quantity__button:hover,
.rt-cart-item__qty .minus:hover,
.rt-cart-item__qty .plus:hover {
	background: var(--bg-hover) !important;
	color: var(--color-primary) !important;
}

.rt-cart-item__qty .qty {
	width: 48px;
	height: 100%;
	border: none !important;
	border-left: 1px solid var(--border-color) !important;
	border-right: 1px solid var(--border-color) !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	background: var(--bg-card) !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield;
	min-height: 0 !important;
}

.rt-cart-item__qty .qty::-webkit-inner-spin-button,
.rt-cart-item__qty .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rt-cart-item__qty .qty:focus {
	outline: none;
	box-shadow: none !important;
}

.rt-qty-fixed {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-md);
	height: 32px;
	min-width: 48px;
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
	background: var(--bg-card);
	padding: 0 var(--sp-2);
}

/* ── Cart actions ────────────────────────────────────────────────────────── */
.rt-cart-actions {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}

/* ── Cart totals sidebar ─────────────────────────────────────────────────── */
.rt-cart__sidebar .cart_totals {
	background: var(--bg-card);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-xl);
	padding: var(--sp-6);
}

.rt-cart__sidebar .cart_totals h2 {
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	margin: 0 0 var(--sp-5) 0;
}

/* ── Cart totals rows ────────────────────────────────────────────────────── */
.rt-cart-totals {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.rt-cart-totals__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-2) 0;
	border-bottom: 1px solid var(--border-light);
}

.rt-cart-totals__label {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--text-secondary);
}

.rt-cart-totals__value {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--text-primary);
	text-align: right;
}

/* ── Total row ───────────────────────────────────────────────────────────── */
.rt-cart-totals__total {
	border-bottom: none;
	border-top: 1.5px solid var(--border-color);
	padding-top: var(--sp-4);
	margin-top: var(--sp-2);
}

.rt-cart-totals__total .rt-cart-totals__label {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	color: var(--text-primary);
}

.rt-cart-totals__total .rt-cart-totals__value {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

.rt-cart-totals__total .rt-cart-totals__value small {
	display: block;
	font-size: var(--text-xs);
	font-weight: var(--weight-normal);
	color: var(--text-muted);
	margin-top: 2px;
}

/* ── Shipping section in cart sidebar ────────────────────────────────────── */
.rt-cart__sidebar .rt-shipping-section {
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--border-light);
}

.rt-cart__sidebar .rt-shipping-heading {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	margin-bottom: var(--sp-3);
}

.rt-cart__sidebar .rt-shipping-methods {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.rt-cart__sidebar .rt-shipping-method {
	padding: var(--sp-3);
	margin: 0 !important;
	border: 1.5px solid var(--border-light);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	cursor: pointer;
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.rt-cart__sidebar .rt-shipping-method:hover {
	background: var(--bg-hover);
}

.rt-cart__sidebar .rt-shipping-method::before {
	display: none;
}

.rt-cart__sidebar .rt-shipping-method:has(input:checked) {
	border-color: var(--color-primary);
	background: var(--bg-subtle);
}

.rt-cart__sidebar .rt-shipping-method input[type="radio"] {
	accent-color: var(--color-primary);
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
}

.rt-cart__sidebar .rt-shipping-method__label {
	font-size: var(--text-sm);
	color: var(--text-primary);
	cursor: pointer;
	margin: 0;
	flex: 1;
}

.rt-cart__sidebar .rt-shipping-method__label .woocommerce-Price-amount {
	margin-left: auto;
	font-weight: var(--weight-semibold);
}

/* ── Shipping destination + calculator ───────────────────────────────────── */
.rt-cart__sidebar .woocommerce-shipping-destination {
	font-size: var(--text-xs);
	color: var(--text-muted);
	margin-top: var(--sp-2);
}

.rt-cart__sidebar .shipping-calculator-button {
	font-size: var(--text-xs);
	color: var(--color-primary);
	text-decoration: underline;
}

.rt-cart__sidebar .shipping-calculator-form label {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--text-secondary);
	display: block;
	margin-bottom: 4px;
}

.rt-cart__sidebar .shipping-calculator-form .input-text,
.rt-cart__sidebar .shipping-calculator-form select {
	width: 100%;
	height: var(--input-h);
	padding: 0 var(--sp-3);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	color: var(--text-primary);
	background: var(--bg-card);
	margin-bottom: var(--sp-3);
}

.rt-cart__sidebar .shipping-calculator-form .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--btn-h-sm);
	padding: 0 var(--sp-4);
	background: var(--color-primary);
	color: var(--text-inverted);
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	cursor: pointer;
}

/* ── Recurring totals section ─────────────────────────────────────────────── */
.rt-recurring-section {
	margin-top: var(--sp-4);
	padding-top: var(--sp-4);
	border-top: 1.5px solid var(--border-color);
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.rt-recurring-heading {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
}

.rt-recurring-renewal {
	padding-top: var(--sp-1);
}

.rt-recurring-renewal small {
	font-size: var(--text-xs);
	color: var(--text-muted);
}

/* ── Proceed to checkout ─────────────────────────────────────────────────── */
.rt-cart__sidebar .wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--btn-h-lg);
	background: var(--color-primary);
	color: var(--text-inverted) !important;
	border: none;
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--transition-fast), box-shadow var(--transition-fast);
	margin-top: var(--sp-5);
}

.rt-cart__sidebar .wc-proceed-to-checkout .checkout-button:hover {
	background: var(--color-primary-hover);
	box-shadow: var(--shadow-hover);
}

/* ── Coupon ───────────────────────────────────────────────────────────────── */
.rt-cart-coupon {
	background: var(--bg-card);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-xl);
	padding: var(--sp-5);
	margin-top: var(--sp-4);
}

.rt-cart-coupon__title {
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	margin: 0 0 var(--sp-3) 0;
}

.rt-cart-coupon__row {
	display: flex;
	gap: var(--sp-2);
}

.rt-cart-coupon__input {
	flex: 1;
	height: var(--input-h);
	padding: 0 var(--sp-3);
	border: 1.5px solid var(--border-color);
	border-radius: var(--radius-lg);
	font-size: var(--text-base);
	color: var(--text-primary);
	background: var(--bg-card);
}

.rt-cart-coupon__input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: var(--shadow-focus);
}

/* ── Recurring totals ────────────────────────────────────────────────────── */
.rt-cart__sidebar .recurring-totals th {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-primary);
	padding-top: var(--sp-4);
	border-top: 1.5px solid var(--border-color);
}

.rt-cart__sidebar .first-payment-date small {
	font-size: var(--text-xs);
	color: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.rt-cart {
		flex-direction: column;
		padding: var(--sp-4);
	}

	.rt-cart__sidebar {
		width: 100%;
	}

	.rt-cart-item__img {
		width: 60px;
		height: 60px;
	}
}

