/*
 * MiniQame Account panel.
 * Scope: everything lives under .mqa (or a body class), so nothing leaks to the rest of the site.
 * Font and brand colour come from the theme (--wd-text-font, --wd-primary-color) with safe fallbacks.
 * Logical properties are used so the layout is correct in RTL and LTR.
 */

/* ---------- tokens ---------- */
.mqa {
	--mqa-primary: var(--wd-primary-color, #f01919);
	--mqa-primary-dark: #cc1010;
	--mqa-primary-soft: rgba(240, 25, 25, 0.08);
	--mqa-ink: #0a0a0a;
	--mqa-text: var(--wd-text-color, #070707);
	--mqa-muted: #6b7280;
	--mqa-line: #e8e8ee;
	--mqa-bg: #f5f5f8;
	--mqa-card: #fff;
	--mqa-radius: 16px;
	--mqa-radius-sm: 12px;
	--mqa-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 10px 28px rgba(10, 10, 10, 0.05);
	--mqa-ok: #0d8a4b;
	--mqa-ok-bg: #e6f6ee;
	--mqa-info: #1a5fd0;
	--mqa-info-bg: #e8f0fd;
	--mqa-warn: #a15c07;
	--mqa-warn-bg: #fdf1dc;
	--mqa-bad: #c42121;
	--mqa-bad-bg: #fdeaea;
	--mqa-purple: #6d28d9;
	--mqa-purple-bg: #f0e9fd;
	--mqa-muted-bg: #efeff3;

	font-family: var(--wd-text-font, inherit);
	font-size: 15px;
	line-height: 1.75;
	color: var(--mqa-text);
	text-align: start;
}

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

.mqa h1,
.mqa h2,
.mqa h3,
.mqa p {
	margin: 0;
}

.mqa h1,
.mqa h2,
.mqa h3 {
	font-family: var(--wd-title-font, inherit);
	color: var(--mqa-ink);
	line-height: 1.4;
}

.mqa a {
	text-decoration: none;
}

.mqa .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.mqa-icon {
	flex: none;
	display: block;
}

/* The theme's black page-title bar repeats the panel heading. */
.mqa-hide-title .page-title,
.mqa-hide-title .wd-page-title {
	display: none !important;
}

/* ---------- shell ---------- */
.mqa .mqa-shell,
.mqa.mqa-shell {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin-block: 28px 56px;
}

.mqa .mqa-side {
	position: sticky;
	top: 96px;
	overflow: hidden;
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius);
	box-shadow: var(--mqa-shadow);
}

.mqa .mqa-profile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 18px;
	color: #fff;
	background: linear-gradient(135deg, #0a0a0a 0%, #1f1f27 100%);
}

.mqa .mqa-profile__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mqa .mqa-profile__name {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mqa .mqa-profile__mail {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: end;
}

.mqa .mqa-avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--mqa-avatar-size, 52px);
	height: var(--mqa-avatar-size, 52px);
	border-radius: 50%;
	font-size: calc(var(--mqa-avatar-size, 52px) * 0.42);
	font-weight: 700;
	color: #fff;
	background: hsl(var(--mqa-hue, 0), 72%, 46%);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.mqa .mqa-avatar__img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

/* ---------- nav ---------- */
.mqa .mqa-nav ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 10px;
	list-style: none;
}

.mqa .mqa-nav li {
	margin: 0;
}

.mqa .mqa-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: var(--mqa-radius-sm);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--mqa-text);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.mqa .mqa-nav a:hover,
.mqa .mqa-nav a:focus-visible {
	background: var(--mqa-bg);
	color: var(--mqa-ink);
}

.mqa .mqa-nav .is-active a {
	background: var(--mqa-primary-soft);
	color: var(--mqa-primary);
}

.mqa .mqa-nav .is-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--mqa-line);
}

.mqa .mqa-nav .is-logout a {
	color: var(--mqa-bad);
}

.mqa .mqa-nav .is-logout a:hover {
	background: var(--mqa-bad-bg);
	color: var(--mqa-bad);
}

/* ---------- main column ---------- */
.mqa .mqa-main {
	min-width: 0;
}

.mqa .mqa-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.mqa .mqa-head__title {
	font-size: 24px;
	font-weight: 800;
}

.mqa .mqa-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--mqa-primary);
	transition: color 0.18s ease;
}

.mqa .mqa-link:hover {
	color: var(--mqa-primary-dark);
}

/* ---------- cards / buttons / badges ---------- */
.mqa .mqa-card {
	padding: 20px;
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius);
	box-shadow: var(--mqa-shadow);
}

.mqa .mqa-card--flush {
	padding: 0;
	overflow: hidden;
}

.mqa .mqa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: 600 14px/1 var(--wd-text-font, inherit);
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mqa .mqa-btn:active {
	transform: translateY(1px);
}

.mqa .mqa-btn--sm {
	min-height: 38px;
	padding: 0 18px;
	font-size: 13px;
}

.mqa .mqa-btn--block {
	width: 100%;
}

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

.mqa .mqa-btn--primary:hover,
.mqa .mqa-btn--primary:focus-visible {
	background: var(--mqa-primary-dark);
	color: #fff;
}

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

.mqa .mqa-btn--outline:hover,
.mqa .mqa-btn--outline:focus-visible {
	border-color: var(--mqa-ink);
	color: var(--mqa-ink);
}

.mqa .mqa-btn--danger {
	background: #fff;
	border-color: rgba(196, 33, 33, 0.35);
	color: var(--mqa-bad);
}

.mqa .mqa-btn--danger:hover,
.mqa .mqa-btn--danger:focus-visible {
	background: var(--mqa-bad-bg);
	border-color: var(--mqa-bad);
	color: var(--mqa-bad);
}

.mqa .mqa-btn--light {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.mqa .mqa-btn--light:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.mqa .mqa-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	background: var(--mqa-muted-bg);
	color: var(--mqa-muted);
}

.mqa .mqa-badge--ok {
	background: var(--mqa-ok-bg);
	color: var(--mqa-ok);
}

.mqa .mqa-badge--info {
	background: var(--mqa-info-bg);
	color: var(--mqa-info);
}

.mqa .mqa-badge--warn {
	background: var(--mqa-warn-bg);
	color: var(--mqa-warn);
}

.mqa .mqa-badge--bad {
	background: var(--mqa-bad-bg);
	color: var(--mqa-bad);
}

.mqa .mqa-badge--purple {
	background: var(--mqa-purple-bg);
	color: var(--mqa-purple);
}

.mqa .mqa-chip {
	display: inline-flex;
	padding: 1px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
}

/* ---------- dashboard ---------- */
.mqa .mqa-dashboard {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mqa .mqa-hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 26px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(120deg, #0a0a0a 0%, #1e1e26 100%);
	border-radius: var(--mqa-radius);
}

.mqa .mqa-hero::after {
	content: '';
	position: absolute;
	inset-block-start: -70px;
	inset-inline-end: -50px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--mqa-primary) 0%, transparent 68%);
	opacity: 0.38;
	pointer-events: none;
}

.mqa .mqa-hero > * {
	position: relative;
	z-index: 1;
}

.mqa .mqa-hero__text {
	flex: 1 1 260px;
	min-width: 0;
}

.mqa .mqa-hero__title {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
}

.mqa .mqa-hero__sub {
	margin-top: 4px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.mqa .mqa-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mqa .mqa-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
	gap: 16px;
}

.mqa .mqa-stat {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: 'icon label' 'value value';
	align-items: center;
	min-width: 0;
	column-gap: 12px;
	row-gap: 10px;
	padding: 16px;
	color: var(--mqa-text);
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius);
	box-shadow: var(--mqa-shadow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.mqa a.mqa-stat:hover {
	transform: translateY(-2px);
	border-color: var(--mqa-primary);
	color: var(--mqa-text);
}

.mqa .mqa-stat__icon {
	grid-area: icon;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
}

.mqa .mqa-stat__label {
	grid-area: label;
	font-size: 13px;
	color: var(--mqa-muted);
}

.mqa .mqa-stat__value {
	grid-area: value;
	min-width: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mqa-ink);
}

/* A price is longer than a counter: slightly smaller type, and the currency may wrap under the amount. */
.mqa .mqa-stat__value .woocommerce-Price-amount {
	display: inline-block;
	font-size: 19px;
	white-space: nowrap;
}

.mqa .mqa-stat__value .woocommerce-Price-currencySymbol {
	margin-inline-start: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mqa-muted);
}

.mqa .mqa-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

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

.mqa .mqa-card__head h2 {
	font-size: 16px;
	font-weight: 800;
}

.mqa .mqa-last {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.mqa .mqa-last__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.mqa .mqa-last__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--mqa-ink);
}

.mqa .mqa-last__file,
.mqa .mqa-last__time {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--mqa-muted);
}

.mqa .mqa-meta {
	display: grid;
	gap: 6px;
	width: 100%;
	margin: 0;
}

.mqa .mqa-meta > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13.5px;
}

.mqa .mqa-meta dt {
	color: var(--mqa-muted);
}

.mqa .mqa-meta dd {
	margin: 0;
	font-weight: 700;
	color: var(--mqa-ink);
}

.mqa .mqa-quick__title {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 800;
}

.mqa .mqa-quick__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.mqa .mqa-quick__grid a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mqa-text);
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius-sm);
	transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.mqa .mqa-quick__grid a:hover {
	color: var(--mqa-primary);
	border-color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
}

/* ---------- empty state ---------- */
.mqa .mqa-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 44px 20px;
	text-align: center;
}

.mqa .mqa-empty h2 {
	font-size: 18px;
	font-weight: 800;
}

.mqa .mqa-empty p {
	color: var(--mqa-muted);
}

.mqa .mqa-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
}

.mqa .mqa-empty--sm {
	align-items: flex-start;
	padding: 4px 0 0;
	text-align: start;
}

/* ---------- tables (orders, licenses) ---------- */
.mqa .mqa-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	text-align: start;
	background: transparent;
}

.mqa .mqa-table th,
.mqa .mqa-table td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--mqa-line);
	text-align: start;
	vertical-align: middle;
	font-size: 14px;
	background: transparent;
}

.mqa .mqa-table thead th {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--mqa-muted);
	background: var(--mqa-bg);
	white-space: nowrap;
}

.mqa .mqa-table tbody tr:last-child th,
.mqa .mqa-table tbody tr:last-child td {
	border-bottom: 0;
}

.mqa .mqa-table tbody tr {
	transition: background-color 0.15s ease;
}

.mqa .mqa-table tbody tr:hover {
	background: #fafafc;
}

.mqa .mqa-order-link {
	font-weight: 800;
	color: var(--mqa-ink);
}

.mqa .mqa-order-link:hover {
	color: var(--mqa-primary);
}

.mqa .mqa-sub-link {
	display: block;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--mqa-muted);
}

.mqa .mqa-table__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.mqa .mqa-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.mqa .mqa-pager__info {
	font-size: 13.5px;
	color: var(--mqa-muted);
}

/* ---------- downloads ---------- */
.mqa .mqa-dl-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mqa .mqa-dl {
	padding: 0;
	overflow: hidden;
}

.mqa .mqa-dl__head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--mqa-line);
}

.mqa .mqa-dl__thumb {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
	border-radius: 14px;
}

.mqa .mqa-dl__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mqa .mqa-dl__title {
	flex: 1 1 auto;
	min-width: 0;
}

.mqa .mqa-dl__title h2 {
	font-size: 16px;
	font-weight: 800;
}

.mqa .mqa-dl__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	color: var(--mqa-muted);
}

.mqa .mqa-files {
	margin: 0;
	padding: 10px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mqa .mqa-file {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 14px;
	background: var(--mqa-bg);
	border-radius: var(--mqa-radius-sm);
}

.mqa .mqa-file__icon {
	flex: none;
	display: inline-flex;
	color: var(--mqa-muted);
}

.mqa .mqa-file__info {
	flex: 1 1 auto;
	min-width: 0;
}

.mqa .mqa-file__name {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--mqa-ink);
}

.mqa .mqa-file__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--mqa-muted);
}

/* ---------- licenses ---------- */
.mqa .mqa-key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.mqa .mqa-key code {
	padding: 4px 10px;
	font-size: 13px;
	color: var(--mqa-ink);
	background: var(--mqa-bg);
	border: 1px dashed #cfcfd9;
	border-radius: 8px;
	word-break: break-all;
}

/* With JS the key is masked until revealed; without JS it stays visible (the page must still be usable). */
.mqa-js .mqa-key .mqa-key__plain {
	display: none;
}

.mqa-js .mqa-key.is-revealed .mqa-key__plain {
	display: inline-block;
}

.mqa-js .mqa-key.is-revealed .mqa-key__mask {
	display: none;
}

.mqa .mqa-key:not(.is-revealed) .mqa-icon--eye-off,
.mqa .mqa-key.is-revealed .mqa-icon--eye {
	display: none;
}

.mqa .mqa-key .mqa-icon--check {
	display: none;
}

.mqa .mqa-key .is-copied .mqa-icon--copy {
	display: none;
}

.mqa .mqa-key .is-copied .mqa-icon--check {
	display: block;
	color: var(--mqa-ok);
}

.mqa .mqa-icon-btn,
.mqa .mqa-pass__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: var(--mqa-muted);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.mqa .mqa-icon-btn:hover,
.mqa .mqa-pass__toggle:hover {
	color: var(--mqa-ink);
	background: var(--mqa-bg);
}

/* ---------- support ---------- */
.mqa .mqa-support {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mqa .mqa-support__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.mqa .mqa-support__stat {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
	color: var(--mqa-muted);
}

.mqa .mqa-support__num {
	font-size: 22px;
	font-weight: 800;
	color: var(--mqa-ink);
}

.mqa .mqa-support__bar .mqa-btn {
	margin-inline-start: auto;
}

.mqa .mqa-portal {
	min-height: 200px;
	overflow: hidden;
}

/* ---------- forms ---------- */
.mqa .mqa-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 18px;
}

.mqa .mqa-form__grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mqa .mqa-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
}

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

.mqa .mqa-req {
	color: var(--mqa-primary);
}

.mqa .mqa-hint {
	font-size: 12.5px;
	color: var(--mqa-muted);
}

.mqa .mqa-input,
.mqa input.mqa-input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font: 400 14.5px/1 var(--wd-text-font, inherit);
	color: var(--mqa-ink);
	background: #fff;
	border: 1.5px solid #dcdce6;
	border-radius: var(--mqa-radius-sm);
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mqa .mqa-input:focus,
.mqa input.mqa-input:focus {
	outline: 0;
	border-color: var(--mqa-primary);
	box-shadow: 0 0 0 4px var(--mqa-primary-soft);
}

/* WooCommerce's general stylesheet frames login/register forms with a border and padding; the card already does. */
/* Specificity is deliberately higher than WooCommerce's ".woocommerce form.login" so load order does not matter. */
.mqa form.mqa-form.woocommerce-form-login,
.mqa form.mqa-form.woocommerce-form-register {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-align: start;
}

.mqa form.mqa-form.woocommerce-EditAccountForm {
	margin: 0;
	padding: 22px;
	text-align: start;
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius);
	box-shadow: var(--mqa-shadow);
}

.mqa .mqa-pass {
	position: relative;
	display: block;
}

/* Edge/IE and WooCommerce's own script (span.show-password-input) add a second reveal button; ours replaces them. */
.mqa .mqa-pass input::-ms-reveal,
.mqa .mqa-pass input::-ms-clear {
	display: none;
}

.mqa .mqa-pass .show-password-input {
	display: none !important;
}

.mqa .mqa-pass .password-input {
	display: block;
	width: 100%;
}

.mqa .mqa-pass .mqa-input {
	padding-inline-end: 46px;
}

.mqa .mqa-pass__toggle {
	position: absolute;
	inset-block-start: 7px;
	inset-inline-end: 8px;
}

.mqa .mqa-pass__toggle .mqa-icon--eye-off,
.mqa .mqa-pass__toggle.is-on .mqa-icon--eye {
	display: none;
}

.mqa .mqa-pass__toggle.is-on .mqa-icon--eye-off {
	display: block;
}

.mqa .mqa-fieldset {
	margin: 8px 0 18px;
	padding: 16px 18px 6px;
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius-sm);
}

.mqa .mqa-fieldset legend {
	padding: 0 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--mqa-ink);
}

.mqa .mqa-fieldset .mqa-hint {
	margin-bottom: 12px;
}

.mqa .mqa-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.mqa .mqa-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 13.5px;
}

.mqa .mqa-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
}

.mqa .mqa-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mqa-primary);
}

/* ---------- login / register ---------- */
.mqa.mqa-auth {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	max-width: 980px;
	margin: 32px auto 56px;
	overflow: hidden;
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: 22px;
	box-shadow: var(--mqa-shadow);
}

.mqa .mqa-auth__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 44px 40px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(140deg, #0a0a0a 0%, #1f1f28 100%);
}

.mqa .mqa-auth__brand::after {
	content: '';
	position: absolute;
	inset-block-end: -80px;
	inset-inline-start: -60px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--mqa-primary) 0%, transparent 68%);
	opacity: 0.4;
	pointer-events: none;
}

.mqa .mqa-auth__brand > * {
	position: relative;
	z-index: 1;
}

.mqa .mqa-auth__logo {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--mqa-primary);
	border-radius: 999px;
}

.mqa .mqa-auth__brand h2 {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
}

.mqa .mqa-auth__brand p {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.mqa .mqa-auth__points {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.mqa .mqa-auth__points li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.mqa .mqa-auth__points .mqa-icon {
	padding: 3px;
	color: #fff;
	background: var(--mqa-primary);
	border-radius: 50%;
}

.mqa .mqa-auth__panel {
	padding: 40px;
}

.mqa .mqa-auth__heading {
	margin-bottom: 18px;
	font-size: 22px;
	font-weight: 800;
}

.mqa .mqa-tabs {
	display: none;
	gap: 4px;
	margin-bottom: 26px;
	padding: 4px;
	background: var(--mqa-bg);
	border-radius: 999px;
}

.mqa-js .mqa .mqa-tabs {
	display: flex;
}

.mqa .mqa-tabs__btn {
	flex: 1;
	min-height: 42px;
	padding: 0 16px;
	font: 700 14px/1 var(--wd-text-font, inherit);
	color: var(--mqa-muted);
	text-transform: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mqa .mqa-tabs__btn[aria-selected='true'] {
	color: var(--mqa-primary);
	background: #fff;
	box-shadow: 0 1px 4px rgba(10, 10, 10, 0.1);
}

/* Without JS both forms are stacked; with JS only the active one shows and the tab bar replaces the headings. */
.mqa .mqa-auth__section + .mqa-auth__section {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--mqa-line);
}

.mqa-js .mqa .mqa-auth__section {
	display: none;
}

.mqa-js .mqa .mqa-auth__section.is-active {
	display: block;
}

.mqa-js .mqa .mqa-auth__section + .mqa-auth__section {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.mqa-js .mqa .mqa-auth__heading {
	display: none;
}

/* Lost / reset password */
.mqa.mqa-auth--single {
	display: block;
	max-width: 480px;
}

.mqa .mqa-auth__card {
	padding: 34px;
}

.mqa .mqa-auth__title {
	margin-bottom: 14px;
	font-size: 21px;
	font-weight: 800;
}

.mqa .mqa-auth--single .woocommerce-ResetPassword p {
	margin-bottom: 14px;
}

.mqa .mqa-auth--single label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mqa-ink);
}

.mqa .mqa-auth--single input[type='text'],
.mqa .mqa-auth--single input[type='email'],
.mqa .mqa-auth--single input[type='password'] {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font: 400 14.5px/1 var(--wd-text-font, inherit);
	border: 1.5px solid #dcdce6;
	border-radius: var(--mqa-radius-sm);
	background: #fff;
	box-shadow: none;
}

.mqa .mqa-auth--single input:focus {
	outline: 0;
	border-color: var(--mqa-primary);
	box-shadow: 0 0 0 4px var(--mqa-primary-soft);
}

.mqa .mqa-auth--single button[type='submit'] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 0 24px;
	font: 600 14px/1 var(--wd-text-font, inherit);
	color: #fff;
	text-transform: none;
	background: var(--mqa-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.mqa .mqa-auth--single button[type='submit']:hover {
	background: var(--mqa-primary-dark);
}

/* ---------- WooCommerce core screens rendered inside the shell (view-order, addresses, payment methods) ---------- */
.mqa .mqa-main .woocommerce-notices-wrapper,
.mqa .mqa-main .woocommerce-message,
.mqa .mqa-main .woocommerce-info,
.mqa .mqa-main .woocommerce-error {
	margin-bottom: 16px;
	border-radius: var(--mqa-radius-sm);
}

.mqa .mqa-main .woocommerce-order-details,
.mqa .mqa-main .woocommerce-customer-details,
.mqa .mqa-main .woocommerce-Addresses,
.mqa .mqa-main .woocommerce-MyAccount-paymentMethods,
.mqa .mqa-main > .woocommerce-order-downloads {
	margin-bottom: 18px;
	padding: 20px;
	background: var(--mqa-card);
	border: 1px solid var(--mqa-line);
	border-radius: var(--mqa-radius);
	box-shadow: var(--mqa-shadow);
}

.mqa .mqa-main .woocommerce-order-details__title,
.mqa .mqa-main .woocommerce-column__title,
.mqa .mqa-main .woocommerce-order-downloads__title {
	margin-bottom: 12px;
	font-size: 17px;
	font-weight: 800;
}

.mqa .mqa-main table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.mqa .mqa-main table.shop_table th,
.mqa .mqa-main table.shop_table td {
	padding: 12px 10px;
	border: 0;
	border-bottom: 1px solid var(--mqa-line);
	text-align: start;
	font-size: 14px;
}

.mqa .mqa-main .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.mqa .mqa-main .woocommerce-Addresses::before,
.mqa .mqa-main .woocommerce-Addresses::after {
	display: none;
}

.mqa .mqa-main .woocommerce-Address {
	float: none;
	width: auto;
}

.mqa .mqa-main .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.mqa .mqa-main .woocommerce-Address-title h2,
.mqa .mqa-main .woocommerce-Address-title h3 {
	font-size: 16px;
	font-weight: 800;
}

.mqa .mqa-main .woocommerce-Address address {
	font-style: normal;
	line-height: 2;
}

.mqa .mqa-main .woocommerce-address-fields .form-row,
.mqa .mqa-main .woocommerce-EditAccountForm .form-row {
	margin-bottom: 14px;
}

.mqa .mqa-main .woocommerce-address-fields label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mqa-ink);
}

.mqa .mqa-main .woocommerce-address-fields input.input-text,
.mqa .mqa-main .woocommerce-address-fields select,
.mqa .mqa-main .woocommerce-address-fields textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 16px;
	border: 1.5px solid #dcdce6;
	border-radius: var(--mqa-radius-sm);
	background: #fff;
	box-shadow: none;
}

.mqa .mqa-main .woocommerce-address-fields button.button,
.mqa .mqa-main .woocommerce-Address-title a.edit,
.mqa .mqa-main .woocommerce-MyAccount-paymentMethods .button,
.mqa .mqa-main .order-again .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 20px;
	font: 600 13.5px/1 var(--wd-text-font, inherit);
	color: #fff;
	text-transform: none;
	background: var(--mqa-primary);
	border: 0;
	border-radius: 999px;
}

.mqa .mqa-main .woocommerce-Address-title a.edit {
	color: var(--mqa-primary);
	background: var(--mqa-primary-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.mqa .mqa-shell,
	.mqa.mqa-shell {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-block: 16px 36px;
	}

	.mqa .mqa-side {
		position: static;
		border-radius: 14px;
	}

	.mqa .mqa-profile {
		padding: 14px 16px;
	}

	.mqa .mqa-avatar {
		--mqa-avatar-size: 40px !important;
	}

	/* The sidebar becomes a horizontally scrollable pill bar. */
	.mqa .mqa-nav ul {
		flex-direction: row;
		gap: 6px;
		padding: 10px 12px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.mqa .mqa-nav ul::-webkit-scrollbar {
		display: none;
	}

	.mqa .mqa-nav li {
		flex: none;
		scroll-snap-align: center;
	}

	.mqa .mqa-nav a {
		gap: 8px;
		padding: 9px 16px;
		white-space: nowrap;
		background: var(--mqa-bg);
		border-radius: 999px;
	}

	.mqa .mqa-nav .is-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	.mqa .mqa-nav .is-logout a {
		background: var(--mqa-bad-bg);
	}

	.mqa .mqa-hero {
		padding: 20px;
	}

	/* The profile bar right above already shows the avatar. */
	.mqa .mqa-hero .mqa-avatar {
		display: none;
	}

	.mqa .mqa-hero__title,
	.mqa .mqa-head__title {
		font-size: 21px;
	}

	.mqa.mqa-auth {
		grid-template-columns: minmax(0, 1fr);
		margin-block: 16px 36px;
	}

	.mqa .mqa-auth__brand {
		padding: 26px 24px;
	}

	.mqa .mqa-auth__points {
		display: none;
	}

	.mqa .mqa-auth__panel {
		padding: 26px 22px;
	}
}

@media (max-width: 767px) {
	.mqa .mqa-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.mqa .mqa-stat {
		padding: 14px;
	}

	.mqa .mqa-form__grid,
	.mqa .mqa-form__grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.mqa .mqa-dl__head {
		flex-wrap: wrap;
	}

	.mqa .mqa-file {
		flex-wrap: wrap;
	}

	.mqa .mqa-file .mqa-btn {
		width: 100%;
	}

	/* Tables turn into stacked cards. */
	.mqa .mqa-table,
	.mqa .mqa-table tbody,
	.mqa .mqa-table tr,
	.mqa .mqa-table th,
	.mqa .mqa-table td {
		display: block;
		width: 100%;
	}

	.mqa .mqa-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.mqa .mqa-table tbody tr {
		padding: 8px 0;
		border-bottom: 8px solid var(--mqa-bg);
	}

	.mqa .mqa-table tbody tr:last-child {
		border-bottom: 0;
	}

	.mqa .mqa-table th,
	.mqa .mqa-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 16px;
		border-bottom: 0;
	}

	.mqa .mqa-table td[data-label]::before,
	.mqa .mqa-table th[data-label]::before {
		content: attr(data-label);
		flex: none;
		font-size: 12.5px;
		font-weight: 600;
		color: var(--mqa-muted);
	}

	.mqa .mqa-table__actions {
		justify-content: stretch;
		padding-top: 12px;
	}

	.mqa .mqa-table__actions .mqa-btn {
		flex: 1 1 auto;
	}

	.mqa .mqa-support__bar .mqa-btn {
		width: 100%;
		margin-inline-start: 0;
	}

	.mqa .mqa-auth__card {
		padding: 24px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mqa *,
	.mqa *::before,
	.mqa *::after {
		transition: none !important;
	}
}
