body.wmad-account {
	--wmad-navy: #172b68;
	--wmad-blue: #294da8;
	--wmad-blue-hover: #1e3f92;
	--wmad-button-primary: #24499f;
	--wmad-button-primary-hover: #193b87;
	--wmad-button-primary-text: #ffffff;
	--wmad-button-secondary: #edf2ff;
	--wmad-button-secondary-hover: #dfe8fb;
	--wmad-button-secondary-text: #173a82;
	--wmad-button-secondary-border: #6a86c0;
	--wmad-active: #edf2ff;
	--wmad-canvas: #f2f5fb;
	--wmad-surface: #ffffff;
	--wmad-border: #d8e0ef;
	--wmad-field-border: #7d89a1;
	--wmad-text: #14213d;
	--wmad-muted: #526078;
	--wmad-radius: 2px;
}

/* xDiag color scheme (xdiag.org): red / white / black. Switchable in Settings.
   Red header and primary buttons/accents; secondary buttons black; content on
   white. */
body.wmad-account--scheme-xdiag {
	--wmad-navy: #e10600;
	--wmad-blue: #e10600;
	--wmad-blue-hover: #b30500;
	--wmad-button-primary: #e10600;
	--wmad-button-primary-hover: #b30500;
	--wmad-button-secondary: #0a0c10;
	--wmad-button-secondary-hover: #22252d;
	--wmad-button-secondary-text: #ffffff;
	--wmad-button-secondary-border: #0a0c10;
	--wmad-active: #fff0ef;
	--wmad-canvas: #f9fafb;
	--wmad-surface: #ffffff;
	--wmad-border: #e3e6ed;
	--wmad-field-border: #adb3c0;
	--wmad-text: #0a0c10;
	--wmad-muted: #7c8496;
	--wmad-radius: 2px;
}

body.wmad-account--scheme-xdiag .wmad-account__dashboard h1 {
	color: var(--wmad-text);
}

/* XPRO5 color scheme (xpro5): black header with red + yellow accents. Yellow
   primary buttons (black text), red line/link accents, black secondary buttons,
   white content. Switchable in Settings. */
body.wmad-account--scheme-xpro5 {
	--wmad-navy: #111111;
	--wmad-blue: #e10600;
	--wmad-blue-hover: #b30500;
	--wmad-button-primary: #f8e60c;
	--wmad-button-primary-hover: #d9c800;
	--wmad-button-primary-text: #0a0c10;
	--wmad-button-secondary: #111111;
	--wmad-button-secondary-hover: #2a2a2a;
	--wmad-button-secondary-text: #ffffff;
	--wmad-button-secondary-border: #111111;
	--wmad-active: #fefce0;
	--wmad-canvas: #f9fafb;
	--wmad-surface: #ffffff;
	--wmad-border: #e3e6ed;
	--wmad-field-border: #adb3c0;
	--wmad-text: #0a0c10;
	--wmad-muted: #7c8496;
	--wmad-radius: 2px;
}

body.wmad-account--scheme-xpro5 .wmad-account__dashboard h1 {
	color: var(--wmad-text);
}

/* Yellow accent stripe under the black header. */
body.wmad-account--scheme-xpro5 .wmad-account__header {
	box-shadow: inset 0 -3px 0 var(--wmad-button-primary);
}

/* Pro-Diag color scheme: charcoal header with orange buttons/accents. Orange
   (#ff820e) carries dark text so button labels clear WCAG AA (~8.5:1); white
   on orange would be ~2.5:1. Switchable in Settings. */
body.wmad-account--scheme-prodiag {
	--wmad-navy: #1d1c24;
	--wmad-blue: #ff820e;
	--wmad-blue-hover: #e0720a;
	--wmad-button-primary: #ff820e;
	--wmad-button-primary-hover: #e0720a;
	--wmad-button-primary-text: #1d1c24;
	--wmad-button-secondary: #1d1c24;
	--wmad-button-secondary-hover: #33313f;
	--wmad-button-secondary-text: #ffffff;
	--wmad-button-secondary-border: #1d1c24;
	--wmad-active: #fff2e6;
	--wmad-canvas: #f3f3f5;
	--wmad-surface: #ffffff;
	--wmad-border: #d1d0d5;
	--wmad-field-border: #b6b5bd;
	--wmad-text: #1d1c24;
	--wmad-muted: #6b6a73;
	--wmad-radius: 2px;
}

body.wmad-account--scheme-prodiag .wmad-account__dashboard h1 {
	color: var(--wmad-text);
}

/* Orange accent stripe under the charcoal header. */
body.wmad-account--scheme-prodiag .wmad-account__header {
	box-shadow: inset 0 -3px 0 var(--wmad-button-primary);
}

body.wmad-account {
	background: var(--wmad-canvas);
	color: var(--wmad-text);
}

body.wmad-account .entry-title,
body.wmad-account .wp-block-post-title {
	display: none;
}

body.wmad-account .entry-content {
	margin-block: 0;
}

body.wmad-account--logged-in .wp-site-blocks > header.wp-block-template-part,
body.wmad-account--logged-in .wp-site-blocks > footer.wp-block-template-part,
body.wmad-account--logged-in #masthead,
body.wmad-account--logged-in #colophon {
	display: none !important;
}

body.wmad-account--logged-in .wp-site-blocks {
	padding: 0 !important;
}

body.wmad-account--logged-in .wp-site-blocks > main,
body.wmad-account--logged-in .wp-site-blocks > main > .wp-block-group,
body.wmad-account--logged-in .site-content,
body.wmad-account--logged-in .content-area,
body.wmad-account--logged-in .site-main,
body.wmad-account--logged-in .entry-content {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.wmad-account--logged-in .content-container.site-container {
	display: block !important;
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.wmad-account--logged-in .entry.single-entry,
body.wmad-account--logged-in .entry-content-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
}

body.wmad-account--logged-in .entry.single-entry {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.wmad-account--logged-in #secondary {
	display: none !important;
}

body.wmad-account .woocommerce {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.wmad-account--logged-in .woocommerce {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	grid-template-rows: 58px minmax(680px, 1fr);
	width: 100%;
	max-width: none;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	margin: 0;
	background: var(--wmad-canvas);
	border-top: 1px solid #3f5da8;
	overflow: hidden;
}

body.wmad-account--logged-in .woocommerce::after,
body.wmad-account--logged-in .woocommerce::before {
	display: none;
}

body.wmad-account--logged-in .woocommerce > .account-navigation-wrap {
	box-sizing: border-box;
	grid-column: 1;
	grid-row: 2;
	float: none !important;
	width: auto !important;
	min-width: 0;
	min-height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: var(--wmad-surface);
}

body.wmad-account--logged-in .woocommerce > .account-navigation-wrap .kadence-account-avatar {
	display: none;
}

body.wmad-account .wmad-account__header {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	height: 58px;
	padding: 0 16px;
	background: var(--wmad-navy);
	box-shadow: 0 3px 10px rgb(19 38 89 / 18%);
	color: #ffffff;
}

body.wmad-account .wmad-account__brand,
body.wmad-account .wmad-account__brand:hover,
body.wmad-account .wmad-account__brand:focus {
	color: #ffffff;
	font-size: 24px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
}

body.wmad-account .wmad-account__header-meta {
	display: flex;
	align-items: center;
	gap: 26px;
	min-width: 0;
	font-weight: 650;
}

body.wmad-account .wmad-account__cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #ffffff;
	text-decoration: none;
}

body.wmad-account .wmad-account__cart:hover,
body.wmad-account .wmad-account__cart:focus {
	color: #ffffff;
	background: rgb(255 255 255 / 10%);
	outline: 2px solid rgb(255 255 255 / 70%);
	outline-offset: 1px;
}

body.wmad-account .wmad-account__cart .dashicons {
	display: block;
	width: 22px;
	height: 22px;
	font-size: 22px;
	line-height: 22px;
}

body.wmad-account .wmad-account__cart-count {
	position: absolute;
	top: -3px;
	right: -5px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	min-width: 20px;
	height: 20px;
	padding: 0;
	border: 2px solid var(--wmad-navy);
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgb(7 20 58 / 28%);
	color: var(--wmad-navy);
	font-size: 9px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
	text-align: center;
}

body.wmad-account .wmad-account__cart-count--empty {
	display: none;
}

body.wmad-account .wmad-account__toast {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 74px);
	right: 18px;
	z-index: 9999;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 10px;
	width: min(360px, calc(100vw - 36px));
	min-height: 58px;
	padding: 12px 12px 12px 16px;
	border-left: 3px solid #21845a;
	border-radius: var(--wmad-radius);
	background: #ffffff;
	box-shadow: 0 12px 34px rgb(20 33 61 / 22%);
	color: var(--wmad-text);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-10px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	visibility: hidden;
}

body.wmad-account .wmad-account__toast--visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

body.wmad-account .wmad-account__toast > .dashicons {
	width: 20px;
	height: 20px;
	color: #21845a;
	font-size: 20px;
}

body.wmad-account .wmad-account__toast-message {
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

body.wmad-account .wmad-account__toast-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--wmad-radius);
	background: transparent;
	color: var(--wmad-muted);
	cursor: pointer;
}

body.wmad-account .wmad-account__toast-close:hover,
body.wmad-account .wmad-account__toast-close:focus-visible {
	background: #edf2f7;
	color: var(--wmad-text);
}

body.wmad-account .wmad-account__toast-close:focus-visible {
	outline: 2px solid var(--wmad-blue);
	outline-offset: 2px;
}

body.wmad-account .wmad-account__toast-close .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

body.wmad-account .wmad-account__user {
	overflow: hidden;
	max-width: 240px;
	color: #f7f9ff;
	font-size: 16px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.wmad-account .wmad-account__header-logout,
body.wmad-account .wmad-account__header-logout:visited {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: 999px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

body.wmad-account .wmad-account__header-logout:hover,
body.wmad-account .wmad-account__header-logout:focus {
	color: #ffffff;
	background: rgb(255 255 255 / 12%);
	outline: 2px solid rgb(255 255 255 / 70%);
	outline-offset: 1px;
}

body.wmad-account .wmad-account__header-logout .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 18px;
}

body.wmad-account .wmad-account__menu-toggle {
	display: none;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation {
	box-sizing: border-box;
	grid-column: 1;
	grid-row: 2;
	float: none !important;
	width: auto !important;
	min-width: 0;
	min-height: 100%;
	padding: 0;
	background: var(--wmad-surface) !important;
	border-right: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__nav-group {
	margin: 0;
	padding: 20px 0 12px;
	border-bottom: 1px solid #e4e9f2;
}

body.wmad-account .wmad-account__nav-group:last-child {
	border-bottom: 0;
}

body.wmad-account .wmad-account__nav-title {
	margin: 0;
	padding: 0 16px 10px;
	color: #23469d;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation li::before {
	display: none;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	color: #2a3750;
	font-size: 14px;
	font-weight: 450;
	line-height: 1.35;
	text-decoration: none;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation a:hover,
body.wmad-account--logged-in .woocommerce-MyAccount-navigation a:focus-visible {
	background: #f5f7fc;
	color: #173a92;
}

body.wmad-account--logged-in .woocommerce-MyAccount-navigation .is-active > a,
body.wmad-account--logged-in .woocommerce-MyAccount-navigation a[aria-current="page"] {
	background: var(--wmad-active);
	color: #183f9b;
	font-weight: 650;
}

body.wmad-account--logged-in .woocommerce-MyAccount-content {
	box-sizing: border-box;
	grid-column: 2;
	grid-row: 2;
	float: none !important;
	width: auto !important;
	min-width: 0;
	min-height: calc(100% - 48px);
	margin: 24px 38px 24px 22px;
	padding: 32px 36px;
	background: var(--wmad-surface) !important;
	border: 1px solid #e7ebf2 !important;
	border-radius: var(--wmad-radius);
	box-shadow: 0 1px 4px rgb(24 43 90 / 4%);
}

body.wmad-account .wmad-account__dashboard {
	min-height: 560px;
}

body.wmad-account .wmad-account__dashboard h1 {
	margin: 0 0 34px;
	color: #0f1b35;
	font-size: 27px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0;
}

body.wmad-account .wmad-account__dashboard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

body.wmad-account .wmad-account__software {
	margin-top: 54px;
}

body.wmad-account .wmad-account__serial {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 14px 18px;
	background: #f6f8fc;
	border-left: 3px solid var(--wmad-blue);
}

body.wmad-account .wmad-account__serial p {
	margin: 0;
}

body.wmad-account .wmad-account__serial-label {
	color: var(--wmad-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

body.wmad-account .wmad-account__serial-value {
	margin-top: 5px !important;
	color: var(--wmad-text);
	font-family: Consolas, "Courier New", monospace;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0;
}

body.wmad-account .wmad-account__test-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #fcecec;
	color: #c0332e;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

body.wmad-account .wmad-account__dashboard h1 .wmad-account__test-badge {
	margin-left: 10px;
}

body.wmad-account .wmad-account__test-banner {
	margin: 8px 0 0 !important;
}

body.wmad-account .wmad-account__subscription {
	text-align: right;
}

body.wmad-account .wmad-account__subscription-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 5px 0 0;
	color: var(--wmad-muted);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

body.wmad-account .wmad-account__subscription-status::before {
	width: 8px;
	height: 8px;
	background: #737e95;
	border-radius: 50%;
	content: "";
	flex: 0 0 8px;
}

body.wmad-account .wmad-account__subscription-status--active {
	color: #197044;
}

body.wmad-account .wmad-account__subscription-status--active::before {
	background: #238a57;
}

body.wmad-account .wmad-account__subscription-status--expired {
	color: #a33a3a;
}

body.wmad-account .wmad-account__subscription-status--expired::before {
	background: #c34b4b;
}

body.wmad-account .wmad-account__subscriptions {
	margin-top: 28px;
}

body.wmad-account .wmad-account__subscriptions-list {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

body.wmad-account .wmad-account__subscription-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	padding: 12px 16px;
	border: 1px solid #e2e4ea;
	border-left: 3px solid #737e95;
	border-radius: 8px;
	background: #fff;
}

body.wmad-account .wmad-account__subscription-item--active {
	border-left-color: #238a57;
}

body.wmad-account .wmad-account__subscription-item--expired {
	border-left-color: #c34b4b;
}

body.wmad-account .wmad-account__subscription-software {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
}

body.wmad-account .wmad-account__subscription-serial {
	font-family: Consolas, Monaco, monospace;
	color: #50575e;
}

body.wmad-account .wmad-account__software h2 {
	margin: 24px 0 8px;
	color: var(--wmad-text);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0;
}

body.wmad-account .wmad-account__software-empty {
	margin: 0;
	padding: 18px 0;
	border-top: 1px solid var(--wmad-border);
	color: var(--wmad-muted);
}

body.wmad-account .wmad-account__product-list {
	border-top: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__product {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) minmax(80px, auto) 22px auto;
	align-items: center;
	gap: 6px 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__product--expandable {
	cursor: pointer;
}

body.wmad-account .wmad-account__product--expandable:hover {
	background: #fafbfc;
}

body.wmad-account .wmad-account__product-image {
	display: block;
	width: 44px;
	height: 44px;
	background: #f6f8fc;
}

body.wmad-account .wmad-account__product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

body.wmad-account .wmad-account__product-content {
	min-width: 0;
}

body.wmad-account .wmad-account__product-content h3 {
	margin: 0;
	color: var(--wmad-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

body.wmad-account .wmad-account__product-content p {
	display: -webkit-box;
	overflow: hidden;
	margin: 1px 0 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	color: var(--wmad-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

body.wmad-account .wmad-account__product-price {
	color: var(--wmad-text);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

body.wmad-account .wmad-account__product-action .wmad-account__button {
	min-width: 108px;
}

body.wmad-account .wmad-account__product-action form {
	margin: 0;
}

/* Plain in-row brands dropdown: chevron column + collapsible panel. */
body.wmad-account .wmad-account__product-chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

body.wmad-account .wmad-account__product-chevron--empty {
	cursor: default;
}

body.wmad-account .wmad-account__product-chevron::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #646970;
	border-bottom: 2px solid #646970;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s ease;
}

body.wmad-account .wmad-account__product-chevron--empty::before {
	content: none;
}

body.wmad-account .wmad-account__product.is-open .wmad-account__product-chevron::before {
	transform: translateY(1px) rotate(-135deg);
}

body.wmad-account .wmad-account__product-chevron:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--wmad-blue);
	outline-offset: 2px;
}

body.wmad-account .wmad-account__brands-panel {
	display: none;
	grid-column: 1 / -1;
	overflow-x: auto;
	margin: 4px 0 6px;
	border: 1px solid #e2e4ea;
	border-radius: 6px;
	background: #fafafb;
	cursor: auto;
}

body.wmad-account .wmad-account__product.is-open .wmad-account__brands-panel {
	display: block;
}

body.wmad-account .wmad-account__brands-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--wmad-text);
}

body.wmad-account .wmad-account__brands-table td {
	padding: 7px 14px;
	border-bottom: 1px solid #eceef1;
	font-size: 13px;
	line-height: 1.35;
}

body.wmad-account .wmad-account__brands-table tr:last-child td {
	border-bottom: 0;
}

body.wmad-account .wmad-account__brand-category td {
	padding-top: 12px;
	padding-bottom: 7px;
	background: #f0f1f3;
	color: #50575e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

body.wmad-account .wmad-account__brand-name {
	font-weight: 650;
}

body.wmad-account .wmad-account__brand-version,
body.wmad-account .wmad-account__brand-date,
body.wmad-account .wmad-account__brand-duration {
	color: var(--wmad-muted);
	white-space: nowrap;
}

body.wmad-account .wmad-account__button.wmad-account__button--loading {
	position: relative;
	color: transparent !important;
	opacity: 0.82;
	pointer-events: none;
}

body.wmad-account .wmad-account__button--loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgb(255 255 255 / 42%);
	border-top-color: #ffffff;
	border-radius: 50%;
	background: transparent;
	content: "" !important;
	animation: wmad-account-button-loader 650ms linear infinite;
}

@keyframes wmad-account-button-loader {
	to {
		transform: rotate(360deg);
	}
}

body.wmad-account .woocommerce .wmad-account__product-action a.added_to_cart {
	display: none !important;
}

body.wmad-account .wmad-account__button,
body.wmad-account .woocommerce a.button,
body.wmad-account .woocommerce button.button,
body.wmad-account .woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 40px;
	padding: 9px 18px;
	border: 1px solid var(--wmad-button-primary) !important;
	border-radius: var(--wmad-radius);
	background: var(--wmad-button-primary) !important;
	box-shadow: none;
	color: var(--wmad-button-primary-text) !important;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: none;
	text-decoration: none;
	text-transform: none !important;
	white-space: nowrap;
}

body.wmad-account button:not(:disabled),
body.wmad-account input[type="button"]:not(:disabled),
body.wmad-account input[type="reset"]:not(:disabled),
body.wmad-account input[type="submit"]:not(:disabled) {
	cursor: pointer;
}

body.wmad-account button:disabled,
body.wmad-account input[type="button"]:disabled,
body.wmad-account input[type="reset"]:disabled,
body.wmad-account input[type="submit"]:disabled,
body.wmad-account .button.disabled,
body.wmad-account .button[aria-disabled="true"] {
	cursor: not-allowed;
}

body.wmad-account .wmad-account__button:hover,
body.wmad-account .wmad-account__button:focus-visible,
body.wmad-account .woocommerce a.button:hover,
body.wmad-account .woocommerce button.button:hover,
body.wmad-account .woocommerce input.button:hover {
	border-color: var(--wmad-button-primary-hover) !important;
	background: var(--wmad-button-primary-hover) !important;
	color: var(--wmad-button-primary-text) !important;
}

body.wmad-account .woocommerce .wmad-account__button.wmad-account__button--loading,
body.wmad-account .woocommerce .wmad-account__button.wmad-account__button--loading:hover,
body.wmad-account .woocommerce .wmad-account__button.wmad-account__button--loading:focus-visible {
	color: transparent !important;
}

body.wmad-account .wmad-account__button:focus-visible,
body.wmad-account .woocommerce a:focus-visible,
body.wmad-account .woocommerce button:focus-visible,
body.wmad-account .woocommerce input:focus-visible,
body.wmad-account .woocommerce textarea:focus-visible,
body.wmad-account .woocommerce select:focus-visible {
	outline: 2px solid var(--wmad-blue);
	outline-offset: 2px;
}

body.wmad-account .wmad-account__button--secondary {
	border-color: var(--wmad-button-secondary-border) !important;
	background: var(--wmad-button-secondary) !important;
	color: var(--wmad-button-secondary-text) !important;
}

body.wmad-account .wmad-account__button--secondary:hover,
body.wmad-account .wmad-account__button--secondary:focus-visible {
	border-color: var(--wmad-button-secondary-border) !important;
	background: var(--wmad-button-secondary-hover) !important;
	color: var(--wmad-button-secondary-text) !important;
}

body.wmad-account .woocommerce input.input-text,
body.wmad-account .woocommerce textarea,
body.wmad-account .woocommerce select {
	box-sizing: border-box;
	min-height: 42px;
	border: 1px solid var(--wmad-field-border);
	border-color: var(--wmad-field-border) !important;
	border-radius: var(--wmad-radius);
	background: #ffffff !important;
	color: var(--wmad-text) !important;
}

body.wmad-account .woocommerce textarea {
	min-height: 120px;
}

body.wmad-account .woocommerce ::placeholder {
	color: var(--wmad-muted);
	opacity: 1;
}

body.wmad-account .woocommerce table.shop_table {
	border-color: var(--wmad-border);
	border-radius: var(--wmad-radius);
}

body.wmad-account .woocommerce .woocommerce-message,
body.wmad-account .woocommerce .woocommerce-info,
body.wmad-account .woocommerce .woocommerce-error {
	border-radius: var(--wmad-radius);
}

/* Retained native WooCommerce endpoints (orders, downloads, addresses, payments,
   order details): give their default markup the same table/column/heading
   treatment as the plugin's own pages. */
body.wmad-account .wmad-account__endpoint-heading {
	margin: 0 0 24px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--wmad-border);
	color: var(--wmad-text);
	font-size: 27px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0;
}

body.wmad-account .woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
}

body.wmad-account .woocommerce table.shop_table th,
body.wmad-account .woocommerce table.shop_table td {
	padding: 11px 12px;
	border: 0;
	border-bottom: 1px solid var(--wmad-border);
	color: var(--wmad-text);
	line-height: 1.35;
	text-align: left;
	vertical-align: middle;
}

body.wmad-account .woocommerce table.shop_table thead th {
	background: #eef2fc;
	color: var(--wmad-muted);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

body.wmad-account .woocommerce table.shop_table tbody tr:nth-child(even) td {
	background: #f8fafd;
}

body.wmad-account .woocommerce table.shop_table tfoot th,
body.wmad-account .woocommerce table.shop_table tfoot td {
	font-weight: 700;
}

body.wmad-account .woocommerce .woocommerce-pagination {
	margin-top: 20px;
	text-align: left;
}

body.wmad-account .woocommerce .woocommerce-pagination ul {
	display: inline-flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
}

body.wmad-account .woocommerce .woocommerce-pagination ul li {
	margin: 0;
	border: 0;
}

body.wmad-account .woocommerce .woocommerce-pagination a.page-numbers,
body.wmad-account .woocommerce .woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wmad-border);
	border-radius: var(--wmad-radius);
	background: #ffffff;
	color: var(--wmad-text);
	text-decoration: none;
}

body.wmad-account .woocommerce .woocommerce-pagination .page-numbers.current {
	border-color: #9db4e2;
	background: var(--wmad-active);
	color: #183f9b;
	font-weight: 700;
}

body.wmad-account .woocommerce .col2-set,
body.wmad-account .woocommerce-Addresses.u-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 0;
}

body.wmad-account .woocommerce .col2-set .col-1,
body.wmad-account .woocommerce .col2-set .col-2,
body.wmad-account .woocommerce-Addresses .u-column1,
body.wmad-account .woocommerce-Addresses .u-column2,
body.wmad-account .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.wmad-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 10px;
}

body.wmad-account .woocommerce-Address-title h2,
body.wmad-account .woocommerce-Address-title h3 {
	margin: 0;
	color: var(--wmad-text);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
}

body.wmad-account .woocommerce-Address address {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--wmad-border);
	border-radius: var(--wmad-radius);
	background: #f9fbfe;
	color: var(--wmad-text);
	font-style: normal;
	line-height: 1.6;
}

body.wmad-account:not(.wmad-account--logged-in) .woocommerce {
	max-width: 760px;
	margin: 36px auto;
	padding: 32px;
	background: #ffffff;
	border: 1px solid var(--wmad-border);
	border-radius: var(--wmad-radius);
}

body.wmad-account:not(.wmad-account--logged-in) .woocommerce h2 {
	font-size: 24px;
	letter-spacing: 0;
}

body.wmad-account:not(.wmad-account--logged-in) .wmad-signup-inquiry,
body.wmad-account:not(.wmad-account--logged-in) .wmad-password-request {
	margin-top: 38px;
	padding-top: 30px;
	border-top: 1px solid var(--wmad-border);
}

/* Focused "Lost your password?" view: show only the request form. */
body.wmad-account--password-request .woocommerce-form-login,
body.wmad-account--password-request .woocommerce-form-login-toggle,
body.wmad-account--password-request .woocommerce-LostPassword,
body.wmad-account--password-request .wmad-signup-inquiry {
	display: none;
}

body.wmad-account--password-request .wmad-password-request {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

body.wmad-account .wmad-password-request__back,
body.wmad-account .wmad-password-request__standard {
	margin-top: 14px;
	font-size: 13px;
}

body.wmad-account .wmad-password-request__standard {
	color: var(--wmad-muted);
}

body.wmad-account--password-managed .woocommerce-EditAccountForm fieldset:has(#password_current) {
	display: none;
}

body.wmad-account .wmad-account__profile-header {
	max-width: 860px;
	margin: 0 0 30px;
}

body.wmad-account .wmad-account__profile-header h1 {
	margin: 0;
	color: var(--wmad-text);
	font-size: 27px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0;
}

body.wmad-account .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 28px;
	width: 100%;
	max-width: 860px;
	margin: 0;
}

body.wmad-account .woocommerce-EditAccountForm .form-row {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.wmad-account .woocommerce-EditAccountForm .form-row-wide,
body.wmad-account .woocommerce-EditAccountForm > p:last-of-type,
body.wmad-account .woocommerce-EditAccountForm > fieldset,
body.wmad-account .woocommerce-EditAccountForm > .clear {
	grid-column: 1 / -1;
}

body.wmad-account .woocommerce-EditAccountForm > .clear {
	display: none;
}

body.wmad-account .woocommerce-EditAccountForm label {
	display: block;
	margin: 0 0 8px;
	color: #344159;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

body.wmad-account .woocommerce-EditAccountForm label .required {
	color: #b42318;
}

body.wmad-account .woocommerce-EditAccountForm input.input-text {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	font-size: 14px;
	line-height: 1.4;
}

body.wmad-account .woocommerce-EditAccountForm em {
	display: block;
	margin-top: 7px;
	color: var(--wmad-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.45;
}

body.wmad-account .woocommerce-EditAccountForm > p:last-of-type {
	margin-top: 4px;
}

body.wmad-account .woocommerce-EditAccountForm > p:last-of-type .button {
	min-width: 124px;
}

body.wmad-account .wmad-account__view-header {
	margin: 0;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__view-header h1 {
	margin: 0;
	color: var(--wmad-text);
	font-size: 27px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0;
}

body.wmad-account .wmad-account__device-form {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__device-form > label,
body.wmad-account .wmad-account__download-selector > label,
body.wmad-account .wmad-account__buy-selector > label {
	flex: 0 0 106px;
	margin: 0;
	color: #344159;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

body.wmad-account .wmad-account__device-form-controls,
body.wmad-account .wmad-account__download-selector-controls,
body.wmad-account .wmad-account__buy-selector-controls {
	display: flex;
	align-items: stretch;
	min-width: 0;
}

body.wmad-account .wmad-account__device-form-controls input.input-text {
	width: 240px;
	min-height: 44px;
	padding: 9px 12px;
	border-right: 0;
	border-radius: var(--wmad-radius) 0 0 var(--wmad-radius);
	font-size: 14px;
}

body.wmad-account .wmad-account__device-form-controls .wmad-account__button {
	min-width: 68px;
	border-radius: 0 var(--wmad-radius) var(--wmad-radius) 0;
}

body.wmad-account .wmad-account__devices-empty,
body.wmad-account .wmad-account__downloads-empty,
body.wmad-account .wmad-account__buy-software-empty {
	margin: 0;
	padding: 22px 0;
	color: var(--wmad-muted);
}

body.wmad-account .wmad-account__downloads-empty a,
body.wmad-account .wmad-account__buy-software-empty a {
	margin-left: 6px;
	color: var(--wmad-blue);
	font-weight: 700;
}

body.wmad-account .wmad-account__devices-table-wrap {
	width: 100%;
	overflow-x: auto;
}

body.wmad-account .wmad-account__devices-table {
	width: 100%;
	margin: 14px 0 0;
	border-collapse: collapse;
	font-size: 14px;
}

body.wmad-account .wmad-account__devices-table th,
body.wmad-account .wmad-account__devices-table td {
	padding: 11px 10px;
	border: 0;
	border-bottom: 1px solid var(--wmad-border);
	background: transparent;
	color: var(--wmad-text);
	line-height: 1.35;
	text-align: left;
	vertical-align: middle;
}

body.wmad-account .wmad-account__devices-table th {
	color: var(--wmad-muted);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

body.wmad-account .wmad-account__devices-table th:last-child,
body.wmad-account .wmad-account__devices-table td:last-child {
	width: 44px;
	text-align: right;
}

body.wmad-account .wmad-account__device-serial {
	font-family: Consolas, "Courier New", monospace;
	font-weight: 650;
}

body.wmad-account .wmad-account__icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #2360a8;
	cursor: pointer;
	text-decoration: none;
}

body.wmad-account .wmad-account__icon-button:hover,
body.wmad-account .wmad-account__icon-button:focus-visible {
	background: #edf2f8;
	color: #153d78;
}

body.wmad-account .wmad-account__icon-button .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

body.wmad-account .wmad-account__download-selector,
body.wmad-account .wmad-account__buy-selector {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 22px 0;
	border-bottom: 1px solid var(--wmad-border);
}

body.wmad-account .wmad-account__download-selector-controls select,
body.wmad-account .wmad-account__buy-selector-controls select {
	width: min(440px, 60vw);
	min-height: 44px;
	padding: 8px 34px 8px 12px;
	border-radius: var(--wmad-radius) 0 0 var(--wmad-radius);
}

body.wmad-account .wmad-account__download-selector-controls .wmad-account__button,
body.wmad-account .wmad-account__buy-selector-controls .wmad-account__button {
	border-radius: 0 var(--wmad-radius) var(--wmad-radius) 0;
}

body.wmad-account .wmad-account__software.wmad-account__software--buy {
	margin-top: 28px;
}

body.wmad-account .wmad-account__software.wmad-account__software--buy h2 {
	margin-top: 0;
}

body.wmad-account .wmad-account__downloads-table-wrap {
	width: 100%;
	margin-top: 18px;
	overflow-x: auto;
}

body.wmad-account .wmad-account__downloads-table {
	width: 100%;
	min-width: 880px;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
}

body.wmad-account .wmad-account__downloads-table th,
body.wmad-account .wmad-account__downloads-table td {
	padding: 11px 12px;
	border: 0;
	border-bottom: 1px solid var(--wmad-border);
	color: var(--wmad-text);
	line-height: 1.35;
	text-align: left;
	vertical-align: middle;
}

body.wmad-account .wmad-account__downloads-table thead th {
	background: #eef2fc;
	color: var(--wmad-muted);
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

body.wmad-account .wmad-account__downloads-category th {
	padding-block: 9px;
	border-bottom-color: var(--wmad-blue);
	background: var(--wmad-blue);
	color: #ffffff;
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
}

body.wmad-account .wmad-account__downloads-entry:nth-child(even) td {
	background: #f1f5ff;
}

body.wmad-account .wmad-account__download-name {
	width: 42%;
	font-weight: 600;
}

body.wmad-account .wmad-account__downloads-table select {
	width: 100%;
	min-width: 130px;
	min-height: 36px;
	margin: 0;
	padding: 6px 30px 6px 10px;
	border: 1px solid var(--wmad-field-border);
	border-radius: var(--wmad-radius);
	background-color: #ffffff;
	color: var(--wmad-text);
	font-size: 13px;
}

body.wmad-account .wmad-account__download-action {
	width: 118px;
	text-align: right;
}

body.wmad-account .wmad-account__download-action .wmad-account__button {
	width: 108px;
	min-height: 36px;
	padding: 8px 12px;
}

body.wmad-account .wmad-account__button--disabled,
body.wmad-account .wmad-account__button--disabled:hover,
body.wmad-account .wmad-account__button--disabled:focus-visible {
	border-color: #cbd3df !important;
	background: #e6eaf0 !important;
	color: #596477 !important;
	cursor: not-allowed;
}

@media (max-width: 899px) {
	body.wmad-account--logged-in .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 56px auto auto minmax(520px, 1fr);
		overflow: visible;
	}

	body.wmad-account .wmad-account__header {
		grid-column: 1;
		height: 56px;
		padding-inline: 14px;
	}

	body.wmad-account .wmad-account__brand {
		font-size: 21px;
	}

	body.wmad-account .wmad-account__header-meta {
		gap: 12px;
	}

	body.wmad-account .wmad-account__user {
		max-width: 130px;
		font-size: 14px;
	}

	body.wmad-account .wmad-account__menu-toggle {
		grid-column: 1;
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		min-height: 46px;
		padding: 10px 16px;
		border: 0;
		border-bottom: 1px solid var(--wmad-border);
		border-radius: 0;
		background: #ffffff;
		color: #183f9b;
		font-size: 14px;
		font-weight: 700;
		text-align: left;
	}

	body.wmad-account .wmad-account__menu-toggle .dashicons {
		width: 18px;
		height: 18px;
		font-size: 18px;
	}

	body.wmad-account--logged-in .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
		border-right: 0;
		border-bottom: 1px solid var(--wmad-border);
	}

	body.wmad-account--logged-in .woocommerce > .account-navigation-wrap {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
	}

	.wmad-account--js body.wmad-account--logged-in .woocommerce-MyAccount-navigation:not(.wmad-account__navigation--open) {
		display: none;
	}

	body.wmad-account .wmad-account__nav-group {
		padding-top: 16px;
	}

	body.wmad-account--logged-in .woocommerce-MyAccount-content {
		grid-column: 1;
		grid-row: auto;
		min-height: 520px;
		margin: 14px;
		padding: 24px 20px;
	}

	body.wmad-account .woocommerce .col2-set,
	body.wmad-account .woocommerce-Addresses.u-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	body.wmad-account .wmad-account__dashboard {
		min-height: 440px;
	}

	body.wmad-account .wmad-account__dashboard h1 {
		margin-bottom: 26px;
		font-size: 24px;
	}

	body.wmad-account .wmad-account__dashboard-actions {
		align-items: stretch;
		gap: 10px;
	}

	body.wmad-account .wmad-account__dashboard-actions .wmad-account__button {
		flex: 1 1 100%;
		width: 100%;
	}

	body.wmad-account .wmad-account__profile-header {
		margin-bottom: 24px;
	}

	body.wmad-account .wmad-account__profile-header h1 {
		font-size: 24px;
	}

	body.wmad-account .woocommerce-EditAccountForm {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	body.wmad-account .woocommerce-EditAccountForm .form-row,
	body.wmad-account .woocommerce-EditAccountForm .form-row-wide,
	body.wmad-account .woocommerce-EditAccountForm > p:last-of-type {
		grid-column: 1;
	}

	body.wmad-account .woocommerce-EditAccountForm > p:last-of-type .button {
		width: 100%;
	}

	body.wmad-account .wmad-account__software {
		margin-top: 40px;
	}

	body.wmad-account .wmad-account__product {
		grid-template-columns: 56px minmax(0, 1fr) 22px;
		gap: 8px 12px;
	}

	body.wmad-account .wmad-account__product-image {
		grid-column: 1;
		grid-row: 1 / span 3;
		width: 56px;
		height: 56px;
		align-self: start;
	}

	body.wmad-account .wmad-account__product-content {
		grid-column: 2;
		grid-row: 1;
	}

	body.wmad-account .wmad-account__product-chevron {
		grid-column: 3;
		grid-row: 1;
		align-self: start;
	}

	body.wmad-account .wmad-account__product-price {
		grid-column: 2 / span 2;
		grid-row: 2;
	}

	body.wmad-account .wmad-account__product-action {
		grid-column: 2 / span 2;
		grid-row: 3;
	}

	body.wmad-account .wmad-account__product-action .wmad-account__button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	body.wmad-account:not(.wmad-account--logged-in) .woocommerce {
		margin: 16px;
		padding: 22px 18px;
	}

	body.wmad-account .wmad-account__cart {
		display: none;
	}

	body.wmad-account .wmad-account__header-logout {
		padding: 7px;
		border-radius: 50%;
	}

	body.wmad-account .wmad-account__header-logout-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

@media (max-width: 680px) {
	body.wmad-account .wmad-account__view-header h1 {
		font-size: 24px;
	}

	body.wmad-account .wmad-account__device-form,
	body.wmad-account .wmad-account__download-selector,
	body.wmad-account .wmad-account__buy-selector {
		align-items: stretch;
		flex-direction: column;
		gap: 9px;
	}

	body.wmad-account .wmad-account__device-form > label,
	body.wmad-account .wmad-account__download-selector > label,
	body.wmad-account .wmad-account__buy-selector > label {
		flex-basis: auto;
	}

	body.wmad-account .wmad-account__device-form-controls input.input-text,
	body.wmad-account .wmad-account__download-selector-controls select,
	body.wmad-account .wmad-account__buy-selector-controls select {
		width: 100%;
		min-width: 0;
	}

	body.wmad-account .wmad-account__devices-table {
		min-width: 760px;
	}

	body.wmad-account .wmad-account__serial {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	body.wmad-account .wmad-account__subscription {
		text-align: left;
	}

	body.wmad-account .wmad-account__downloads-table-wrap {
		margin-inline: -2px;
		padding-bottom: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.wmad-account *,
	body.wmad-account *::before,
	body.wmad-account *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
