/*
 * Elettro AMD - Tabella prodotti
 *
 * Consumes the theme tokens on :root (with standalone fallbacks):
 * --eamd-ink, --eamd-muted, --eamd-line, --eamd-surface, --eamd-surface-2,
 * --eamd-accent, --eamd-accent-hover, --eamd-on-accent, --eamd-radius, --eamd-font,
 * --eamd-mono. Optional: --eamd-field-border, --eamd-header-h, --eamd-z-bar, --eamd-z-toast.
 */

.eamd-pt,
.eamd-pt-toasts {
	--pt-ink: var(--eamd-ink, #0e1b2e);
	--pt-muted: var(--eamd-muted, #5a6678);
	--pt-line: var(--eamd-line, #dde2ea);
	--pt-surface: var(--eamd-surface, #ffffff);
	--pt-surface-2: var(--eamd-surface-2, #f3f5f8);
	--pt-accent: var(--eamd-accent, #d90f1e);
	--pt-on-accent: var(--eamd-on-accent, #ffffff);
	--pt-radius: var(--eamd-radius, 4px);
	--pt-font: var(--eamd-font, system-ui, -apple-system, "Segoe UI", sans-serif);
	--pt-mono: var(--eamd-mono, ui-monospace, "SF Mono", Menlo, monospace);
	/* Form control borders need 3:1 against the surface they sit on. */
	--pt-control-line: var(--eamd-field-border, #838c9a);
	--pt-accent-hover: var(--eamd-accent-hover, #b80d19);
	--pt-accent-tint: #fcf1f2;
	--pt-mark: #f9d6d9;
	--pt-shadow: 0 8px 24px rgba(14, 27, 46, 0.14);
}

@supports (color: color-mix(in srgb, red, blue)) {
	.eamd-pt,
	.eamd-pt-toasts {
		--pt-control-line: var(--eamd-field-border, color-mix(in srgb, var(--pt-muted) 75%, var(--pt-surface)));
		--pt-accent-hover: var(--eamd-accent-hover, color-mix(in srgb, var(--pt-accent) 86%, #000));
		--pt-accent-tint: color-mix(in srgb, var(--pt-accent) 5%, var(--pt-surface));
		--pt-mark: color-mix(in srgb, var(--pt-accent) 16%, var(--pt-surface));
		--pt-shadow: 0 8px 24px color-mix(in srgb, var(--pt-ink) 14%, transparent);
	}
}

.eamd-pt {
	display: block;
	width: 100%;
	scroll-margin-top: calc(var(--eamd-header-h, 72px) + 16px);
	box-sizing: border-box;
	color: var(--pt-ink);
	font-family: var(--pt-font);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.eamd-pt *,
.eamd-pt *::before,
.eamd-pt *::after,
.eamd-pt-toasts *,
.eamd-pt-toasts *::before,
.eamd-pt-toasts *::after {
	box-sizing: border-box;
}

.eamd-pt [hidden],
.eamd-pt-toasts [hidden] {
	display: none !important;
}

.eamd-pt .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Focus (every control) ---------- */

.eamd-pt a:focus-visible,
.eamd-pt button:focus-visible,
.eamd-pt input:focus-visible,
.eamd-pt select:focus-visible,
.eamd-pt [tabindex]:focus-visible,
.eamd-pt-toasts a:focus-visible,
.eamd-pt-toasts button:focus-visible {
	outline: 2px solid var(--pt-accent);
	outline-offset: 2px;
}

.eamd-pt .eamd-pt__summary:focus {
	outline: none;
}

/* ---------- Toolbar ---------- */

.eamd-pt .eamd-pt__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 12px;
	padding: 16px;
	background: var(--pt-surface-2);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
}

.eamd-pt .eamd-pt__field {
	display: flex;
	flex: 1 1 170px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
}

.eamd-pt .eamd-pt__field--search {
	flex: 2 1 260px;
}

.eamd-pt .eamd-pt__field--per {
	flex: 0 1 110px;
}

.eamd-pt .eamd-pt__field--actions {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: flex-end;
	gap: 8px;
}

.eamd-pt .eamd-pt__field label {
	margin: 0;
	color: var(--pt-ink);
	font-family: var(--pt-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.eamd-pt .eamd-pt__select {
	position: relative;
	display: block;
}

.eamd-pt .eamd-pt__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	margin-top: -6px;
	border-right: 2px solid var(--pt-muted);
	border-bottom: 2px solid var(--pt-muted);
	transform: rotate(45deg);
	pointer-events: none;
}

.eamd-pt .eamd-pt__field input.eamd-pt__control[type],
.eamd-pt .eamd-pt__field select.eamd-pt__control {
	display: block;
	width: 100%;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 12px;
	color: var(--pt-ink);
	background: var(--pt-surface);
	border: 1px solid var(--pt-control-line);
	border-radius: var(--pt-radius);
	box-shadow: none;
	font-family: var(--pt-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	-webkit-appearance: none;
	appearance: none;
}

.eamd-pt .eamd-pt__field select.eamd-pt__control {
	padding-right: 36px;
	text-overflow: ellipsis;
	cursor: pointer;
}

.eamd-pt .eamd-pt__field input.eamd-pt__control[type]:hover,
.eamd-pt .eamd-pt__field select.eamd-pt__control:hover,
.eamd-pt .eamd-pt__field input.eamd-pt__control[type]:focus,
.eamd-pt .eamd-pt__field select.eamd-pt__control:focus {
	color: var(--pt-ink);
	background: var(--pt-surface);
	border-color: var(--pt-muted);
	box-shadow: none;
}

.eamd-pt .eamd-pt__field input.eamd-pt__control[type]::placeholder {
	color: var(--pt-muted);
	opacity: 1;
}

/* ---------- Buttons ---------- */

.eamd-pt .eamd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: var(--pt-radius);
	box-shadow: none;
	font-family: var(--pt-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
	-webkit-appearance: none;
	appearance: none;
}

.eamd-pt .eamd-btn--primary,
.eamd-pt .eamd-btn--primary:visited {
	color: var(--pt-on-accent);
	background: var(--pt-accent);
	border-color: var(--pt-accent);
}

.eamd-pt .eamd-btn--primary:hover,
.eamd-pt .eamd-btn--primary:focus,
.eamd-pt .eamd-btn--primary:active {
	color: var(--pt-on-accent);
	background: var(--pt-accent-hover);
	border-color: var(--pt-accent-hover);
}

.eamd-pt .eamd-btn--ghost,
.eamd-pt .eamd-btn--ghost:visited {
	color: var(--pt-ink);
	background: var(--pt-surface);
	border-color: var(--pt-control-line);
}

.eamd-pt .eamd-btn--ghost:hover,
.eamd-pt .eamd-btn--ghost:focus,
.eamd-pt .eamd-btn--ghost:active {
	color: var(--pt-ink);
	background: var(--pt-surface-2);
	border-color: var(--pt-muted);
}

.eamd-pt .eamd-btn:active:not(:disabled),
.eamd-pt .eamd-qty__btn:active:not([aria-disabled="true"]):not(:disabled),
.eamd-pt .eamd-pt__page:active {
	transform: translateY(1px);
}

.eamd-pt .eamd-btn:disabled,
.eamd-pt .eamd-btn:disabled:hover {
	color: var(--pt-muted);
	background: var(--pt-surface-2);
	border-color: var(--pt-line);
	cursor: not-allowed;
}

.eamd-pt .eamd-btn.is-pending,
.eamd-pt .eamd-btn.is-pending:disabled {
	color: var(--pt-on-accent);
	background: var(--pt-accent);
	border-color: var(--pt-accent);
	cursor: progress;
	opacity: 0.7;
}

.eamd-pt .eamd-btn.is-done,
.eamd-pt .eamd-btn.is-done:hover {
	color: var(--pt-surface);
	background: var(--pt-ink);
	border-color: var(--pt-ink);
}

.eamd-pt .eamd-pt__add {
	min-width: 96px;
}

/* ---------- Summary line ---------- */

.eamd-pt .eamd-pt__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px;
}

.eamd-pt .eamd-pt__summary {
	margin: 0;
	color: var(--pt-muted);
	font-size: 14px;
	font-weight: 500;
}

.eamd-pt .eamd-pt__selectall {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--pt-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.eamd-pt input.eamd-pt__check[type] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--pt-accent);
	cursor: pointer;
}

.eamd-pt input.eamd-pt__check[type]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

/* ---------- Table ---------- */

.eamd-pt .eamd-pt__tablewrap {
	background: var(--pt-surface);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
}

/* "clip" keeps the rounded corners without creating a scroll container (which would break the sticky header). */
@supports (overflow: clip) {
	.eamd-pt .eamd-pt__tablewrap {
		overflow: clip;
	}
}

.eamd-pt table.eamd-pt__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	font-size: 14px;
	table-layout: auto;
}

.eamd-pt .eamd-pt__table th,
.eamd-pt .eamd-pt__table td {
	padding: 10px 12px;
	color: var(--pt-ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--pt-line);
	font-family: var(--pt-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
}

.eamd-pt .eamd-pt__table thead th {
	padding-top: 9px;
	padding-bottom: 9px;
	color: var(--pt-muted);
	background: var(--pt-surface-2);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.eamd-pt .eamd-pt__table tbody tr:last-child > td,
.eamd-pt .eamd-pt__table tbody tr:last-child > th {
	border-bottom: 0;
}

.eamd-pt .eamd-pt__table tbody tr:hover > td,
.eamd-pt .eamd-pt__table tbody tr:hover > th {
	background: var(--pt-surface-2);
}

.eamd-pt .eamd-pt__table tbody tr.is-selected > td,
.eamd-pt .eamd-pt__table tbody tr.is-selected > th {
	background: var(--pt-accent-tint);
}

.eamd-pt .eamd-pt__table tbody tr.is-selected > td:first-child {
	box-shadow: inset 3px 0 0 var(--pt-accent);
}

.eamd-pt .eamd-pt__table tbody tr.is-added > td,
.eamd-pt .eamd-pt__table tbody tr.is-added > th {
	background: var(--pt-surface-2);
}

.eamd-pt .eamd-pt__table .eamd-col-select {
	width: 44px;
	padding-right: 0;
}

.eamd-pt .eamd-pt__table .eamd-col-sku {
	min-width: 112px;
	max-width: 200px;
	overflow-wrap: anywhere;
}

.eamd-pt .eamd-pt__table th.eamd-col-title {
	font-weight: 400;
}

.eamd-pt .eamd-pt__table th.eamd-col-price,
.eamd-pt .eamd-pt__table td.eamd-col-price {
	width: 168px;
	text-align: right;
}

.eamd-pt .eamd-pt__table .eamd-col-qty {
	width: 136px;
}

.eamd-pt .eamd-pt__table .eamd-col-action {
	min-width: 124px;
}

.eamd-pt .eamd-pt__sku {
	color: var(--pt-ink);
	font-family: var(--pt-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.eamd-pt .eamd-pt__link {
	color: var(--pt-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--pt-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.eamd-pt .eamd-pt__link:hover {
	color: var(--pt-ink);
	text-decoration-color: var(--pt-ink);
}

.eamd-pt .eamd-pt__maker {
	display: block;
	margin-top: 2px;
	color: var(--pt-muted);
	font-size: 12.5px;
	line-height: 1.3;
}

.eamd-pt .eamd-pt__price,
.eamd-pt .eamd-pt__price .amount {
	color: var(--pt-ink);
	font-family: var(--pt-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	white-space: nowrap;
}

.eamd-pt .eamd-pt__price del {
	color: var(--pt-muted);
	font-weight: 400;
}

.eamd-pt .eamd-pt__price ins {
	text-decoration: none;
}

.eamd-pt .eamd-pt__price .woocommerce-price-suffix {
	display: block;
	color: var(--pt-muted);
	font-family: var(--pt-font);
	font-size: 11.5px;
	font-weight: 400;
	white-space: normal;
}

.eamd-pt .eamd-pt__ask {
	display: block;
	color: var(--pt-ink);
	font-weight: 500;
}

.eamd-pt .eamd-pt__textlink {
	color: var(--pt-ink);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eamd-pt .eamd-pt__textlink:hover {
	color: var(--pt-ink);
	text-decoration-thickness: 2px;
}

.eamd-pt .eamd-pt__textlink--small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 400;
}

/* ---------- Sortable headers ---------- */

.eamd-pt .eamd-pt__sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.eamd-pt .eamd-pt__table thead th .eamd-pt__sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 2px 0;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: var(--pt-radius);
	box-shadow: none;
	font: inherit;
	font-weight: 500;
	line-height: 1.3;
	text-align: inherit;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.eamd-pt .eamd-pt__table thead th .eamd-pt__sort:hover,
.eamd-pt .eamd-pt__table thead th .eamd-pt__sort:focus,
.eamd-pt .eamd-pt__table thead th .eamd-pt__sort:active {
	color: var(--pt-ink);
	background: transparent;
	border: 0;
	box-shadow: none;
}

.eamd-pt .eamd-pt__table thead th[aria-sort] .eamd-pt__sort {
	color: var(--pt-ink);
}

.eamd-pt .eamd-pt__ic {
	display: none;
	flex: none;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.eamd-pt .eamd-pt__table thead th:not([aria-sort]) .eamd-pt__ic--none,
.eamd-pt .eamd-pt__table thead th[aria-sort="ascending"] .eamd-pt__ic--asc,
.eamd-pt .eamd-pt__table thead th[aria-sort="descending"] .eamd-pt__ic--desc {
	display: inline-block;
}

/* ---------- Search field: "/" hint ---------- */

.eamd-pt .eamd-pt__searchbox {
	position: relative;
	display: block;
}

.eamd-pt .eamd-pt__field input.eamd-pt__control[type="search"] {
	padding-right: 40px;
}

.eamd-pt .eamd-pt__kbd {
	position: absolute;
	top: 50%;
	right: 10px;
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	color: var(--pt-muted);
	background: var(--pt-surface-2);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	font-family: var(--pt-mono);
	font-size: 12px;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

/* Only while the field is empty (no native clear button) and not focused. */
.eamd-pt .eamd-pt__field input.eamd-pt__control[type="search"]:placeholder-shown:not(:focus) + .eamd-pt__kbd {
	display: inline-flex;
}

@media (hover: none) {
	.eamd-pt .eamd-pt__field input.eamd-pt__control[type="search"]:placeholder-shown:not(:focus) + .eamd-pt__kbd {
		display: none;
	}
}

/* ---------- Keyword highlight ---------- */

.eamd-pt .eamd-pt__mark {
	padding: 0 1px;
	color: inherit;
	background: var(--pt-mark);
	border-radius: 2px;
	font-weight: inherit;
}

/* ---------- Line total and quantity discount ---------- */

.eamd-pt .eamd-pt__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2px 6px;
	margin-top: 2px;
	color: var(--pt-muted);
	font-size: 12.5px;
	line-height: 1.3;
}

.eamd-pt .eamd-pt__line-sum {
	color: var(--pt-ink);
	font-family: var(--pt-mono);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.eamd-pt .eamd-pt__badge {
	padding: 0 6px;
	color: var(--pt-ink);
	background: var(--pt-accent-tint);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	font-family: var(--pt-mono);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
	white-space: nowrap;
}

.eamd-pt .eamd-pt__quote {
	min-width: 96px;
}

/* ---------- Quantity stepper ---------- */

.eamd-pt .eamd-qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	background: var(--pt-surface);
	border: 1px solid var(--pt-control-line);
	border-radius: var(--pt-radius);
}

.eamd-pt .eamd-qty__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	margin: 0;
	padding: 0;
	color: var(--pt-ink);
	background: transparent;
	border: 0;
	box-shadow: none;
	font-family: var(--pt-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.12s ease, transform 0.06s ease;
}

.eamd-pt .eamd-qty__btn:first-child {
	border-radius: calc(var(--pt-radius) - 1px) 0 0 calc(var(--pt-radius) - 1px);
}

.eamd-pt .eamd-qty__btn:last-child {
	border-radius: 0 calc(var(--pt-radius) - 1px) calc(var(--pt-radius) - 1px) 0;
}

.eamd-pt .eamd-qty__btn:hover,
.eamd-pt .eamd-qty__btn:focus,
.eamd-pt .eamd-qty__btn:active {
	color: var(--pt-ink);
	background: var(--pt-surface-2);
	border: 0;
	box-shadow: none;
}

.eamd-pt .eamd-qty__btn[aria-disabled="true"],
.eamd-pt .eamd-qty__btn[aria-disabled="true"]:hover,
.eamd-pt .eamd-qty__btn:disabled {
	color: var(--pt-muted);
	background: transparent;
	cursor: not-allowed;
	opacity: 0.55;
}

.eamd-pt input.eamd-qty__input[type] {
	flex: none;
	width: 46px;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	color: var(--pt-ink);
	background: transparent;
	border: 0;
	border-right: 1px solid var(--pt-line);
	border-left: 1px solid var(--pt-line);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--pt-mono);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-align: center;
	-moz-appearance: textfield;
	-webkit-appearance: textfield;
	appearance: textfield;
}

.eamd-pt input.eamd-qty__input[type]::-webkit-outer-spin-button,
.eamd-pt input.eamd-qty__input[type]::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.eamd-pt .eamd-qty input.eamd-qty__input[type]:focus {
	color: var(--pt-ink);
	background: var(--pt-surface-2);
	border-color: var(--pt-line);
	box-shadow: none;
}

.eamd-pt input.eamd-qty__input[type]:disabled {
	color: var(--pt-muted);
	background: var(--pt-surface-2);
}

/* ---------- Loading skeleton ---------- */

.eamd-pt .eamd-skel {
	display: block;
	height: 12px;
	background: var(--pt-line);
	border-radius: var(--pt-radius);
	animation: eamd-pt-pulse 1.2s ease-in-out infinite;
}

.eamd-pt .eamd-skel--sm {
	height: 10px;
	margin-top: 6px;
}

.eamd-pt .eamd-skel--box {
	width: 20px;
	height: 20px;
}

.eamd-pt .eamd-skel--control {
	height: 40px;
}

.eamd-pt .eamd-pt__table td.eamd-col-price .eamd-skel {
	margin-left: auto;
}

.eamd-pt [aria-busy="true"] .eamd-pt__pager-wrap {
	opacity: 0.5;
	pointer-events: none;
}

@keyframes eamd-pt-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.45;
	}
}

/* ---------- Empty / error ---------- */

.eamd-pt .eamd-pt__state {
	padding: 32px 16px;
	text-align: center;
	background: var(--pt-surface);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
}

.eamd-pt .eamd-pt__state-title {
	margin: 0 0 6px;
	color: var(--pt-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.eamd-pt .eamd-pt__state-text {
	max-width: 54ch;
	margin: 0 auto 16px;
	color: var(--pt-muted);
}

.eamd-pt .eamd-pt__state-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	margin: 0;
}

/* ---------- Pagination ---------- */

.eamd-pt .eamd-pt__pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 0;
}

.eamd-pt .eamd-pt__pageinfo {
	margin: 0;
	color: var(--pt-muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.eamd-pt .eamd-pt__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eamd-pt .eamd-pt__pages li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eamd-pt .eamd-pt__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	color: var(--pt-ink);
	background: var(--pt-surface);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	font-size: 14px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: background-color 0.12s ease, transform 0.06s ease;
}

.eamd-pt a.eamd-pt__page:hover {
	color: var(--pt-ink);
	background: var(--pt-surface-2);
	border-color: var(--pt-control-line);
}

.eamd-pt .eamd-pt__page.is-current {
	color: var(--pt-surface);
	background: var(--pt-ink);
	border-color: var(--pt-ink);
}

.eamd-pt .eamd-pt__page.is-disabled {
	color: var(--pt-muted);
	background: var(--pt-surface-2);
	cursor: not-allowed;
}

.eamd-pt .eamd-pt__gap {
	min-width: 24px;
	color: var(--pt-muted);
	text-align: center;
}

/* ---------- Bulk bar ---------- */

.eamd-pt .eamd-pt__bulk {
	position: fixed;
	bottom: 16px;
	left: 50%;
	z-index: var(--eamd-z-bar, 9990);
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 24px);
	padding: 10px 12px 10px 16px;
	background: var(--pt-surface);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	box-shadow: var(--pt-shadow);
	transform: translateX(-50%);
	animation: eamd-pt-rise 0.18s ease-out;
}

.eamd-pt .eamd-pt__bulk-count {
	margin-right: 4px;
	color: var(--pt-ink);
	font-weight: 500;
	white-space: nowrap;
}

@keyframes eamd-pt-rise {
	from {
		opacity: 0;
		transform: translate(-50%, 8px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* ---------- Toasts ---------- */

.eamd-pt-toasts {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: var(--eamd-z-toast, 9999);
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: max-content;
	max-width: min(380px, calc(100vw - 32px));
	color: var(--pt-ink);
	font-family: var(--pt-font);
	font-size: 14px;
	line-height: 1.4;
	pointer-events: none;
}

.eamd-pt-toasts.has-bulk {
	bottom: 84px;
}

.eamd-pt-toasts .eamd-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 16px;
	color: var(--pt-surface);
	background: var(--pt-ink);
	border: 1px solid var(--pt-ink);
	border-radius: var(--pt-radius);
	box-shadow: var(--pt-shadow);
	pointer-events: auto;
	animation: eamd-pt-toast-in 0.18s ease-out;
}

.eamd-pt-toasts .eamd-toast--error {
	border-left: 3px solid var(--pt-accent);
}

.eamd-pt-toasts .eamd-toast__text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.eamd-pt-toasts .eamd-toast__link,
.eamd-pt-toasts .eamd-toast__link:visited,
.eamd-pt-toasts .eamd-toast__link:hover,
.eamd-pt-toasts .eamd-toast__link:focus {
	flex: none;
	color: var(--pt-surface);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.eamd-pt-toasts .eamd-toast__close {
	flex: none;
	margin: 0;
	padding: 4px 8px;
	color: var(--pt-surface);
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--pt-radius);
	box-shadow: none;
	font-family: var(--pt-font);
	font-size: 13px;
	cursor: pointer;
	opacity: 0.85;
}

.eamd-pt-toasts .eamd-toast__close:hover,
.eamd-pt-toasts .eamd-toast__close:focus,
.eamd-pt-toasts .eamd-toast__close:active {
	color: var(--pt-surface);
	background: transparent;
	border-color: var(--pt-surface);
	box-shadow: none;
	opacity: 1;
}

.eamd-pt-toasts .eamd-toast a:focus-visible,
.eamd-pt-toasts .eamd-toast button:focus-visible {
	outline-color: var(--pt-surface);
}

@keyframes eamd-pt-toast-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Sticky header (desktop) ---------- */

@media (min-width: 760px) {
	.eamd-pt .eamd-pt__table thead th {
		position: sticky;
		top: calc(var(--eamd-header-h, 72px) + var(--wp-admin--admin-bar--height, 0px));
		z-index: calc(var(--eamd-z-header, 10) - 1);
	}
}

/* ---------- Mobile: stacked rows ---------- */

@media (max-width: 759.98px) {
	.eamd-pt .eamd-pt__toolbar {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
	}

	.eamd-pt .eamd-pt__field,
	.eamd-pt .eamd-pt__field--search,
	.eamd-pt .eamd-pt__field--per {
		flex: none;
		width: 100%;
	}

	.eamd-pt .eamd-pt__field--actions .eamd-btn {
		flex: 1 1 auto;
	}

	.eamd-pt .eamd-pt__selectall {
		display: inline-flex;
	}

	.eamd-pt .eamd-pt__tablewrap {
		overflow: visible;
	}

	.eamd-pt .eamd-pt__line {
		justify-content: flex-start;
		margin-top: 0;
	}

	.eamd-pt table.eamd-pt__table,
	.eamd-pt .eamd-pt__table tbody {
		display: block;
		width: 100%;
	}

	.eamd-pt .eamd-pt__table thead {
		display: none;
	}

	.eamd-pt .eamd-pt__table tbody tr {
		display: grid;
		grid-template-areas:
			"sel sku sku"
			"sel title title"
			"sel price price"
			"sel qty act";
		grid-template-columns: 24px auto minmax(0, 1fr);
		gap: 4px 8px;
		align-items: center;
		padding: 12px;
		border-bottom: 1px solid var(--pt-line);
	}

	.eamd-pt .eamd-pt__table tbody tr:last-child {
		border-bottom: 0;
	}

	.eamd-pt .eamd-pt__table tbody tr > td,
	.eamd-pt .eamd-pt__table tbody tr > th,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-select,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-sku,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-title,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-price,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-qty,
	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-action {
		display: block;
		width: auto;
		min-width: 0;
		max-width: none;
		padding: 0;
		border: 0;
	}

	.eamd-pt .eamd-pt__table tbody tr:hover > td,
	.eamd-pt .eamd-pt__table tbody tr:hover > th,
	.eamd-pt .eamd-pt__table tbody tr.is-selected > td,
	.eamd-pt .eamd-pt__table tbody tr.is-selected > th,
	.eamd-pt .eamd-pt__table tbody tr.is-added > td,
	.eamd-pt .eamd-pt__table tbody tr.is-added > th {
		background: transparent;
	}

	.eamd-pt .eamd-pt__table tbody tr:hover {
		background: var(--pt-surface-2);
	}

	.eamd-pt .eamd-pt__table tbody tr.is-selected {
		background: var(--pt-accent-tint);
		box-shadow: inset 3px 0 0 var(--pt-accent);
	}

	.eamd-pt .eamd-pt__table tbody tr.is-added {
		background: var(--pt-surface-2);
	}

	.eamd-pt .eamd-pt__table tbody tr.is-selected > td:first-child {
		box-shadow: none;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-select {
		grid-area: sel;
		align-self: start;
		padding-top: 1px;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-sku {
		grid-area: sku;
		min-height: 18px;
		overflow-wrap: anywhere;
		word-break: break-all;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-title {
		grid-area: title;
		overflow-wrap: anywhere;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-price {
		grid-area: price;
		margin-top: 4px;
		text-align: left;
	}

	.eamd-pt .eamd-pt__price {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.eamd-pt .eamd-pt__ask,
	.eamd-pt .eamd-pt__textlink--small {
		display: inline;
		margin: 0 12px 0 0;
		font-size: 14px;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-qty {
		grid-area: qty;
		justify-self: start;
		margin-top: 4px;
	}

	.eamd-pt .eamd-pt__table tbody tr > .eamd-col-action {
		grid-area: act;
		margin-top: 4px;
	}

	.eamd-pt .eamd-col-action .eamd-btn {
		width: 100%;
	}

	.eamd-pt .eamd-pt__add {
		min-width: 0;
		padding: 0 12px;
	}

	.eamd-pt .eamd-qty__btn {
		width: 32px;
	}

	.eamd-pt input.eamd-qty__input[type] {
		width: 42px;
	}

	.eamd-pt .eamd-pt__pager {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.eamd-pt .eamd-pt__pages {
		justify-content: center;
	}

	.eamd-pt .eamd-pt__pages > li:first-child,
	.eamd-pt .eamd-pt__pages > li:last-child {
		flex: 1 1 calc(50% - 4px);
	}

	.eamd-pt .eamd-pt__pages > li:first-child {
		order: 1;
	}

	.eamd-pt .eamd-pt__pages > li:last-child {
		order: 2;
	}

	.eamd-pt .eamd-pt__pages > li:not(:first-child):not(:last-child) {
		order: 3;
	}

	.eamd-pt .eamd-pt__page--nav {
		display: flex;
		width: 100%;
	}

	.eamd-pt .eamd-pt__bulk {
		right: 12px;
		left: 12px;
		flex-wrap: wrap;
		max-width: none;
		padding: 12px;
		transform: none;
		animation-name: eamd-pt-rise-mobile;
	}

	.eamd-pt .eamd-pt__bulk-count {
		flex: 1 1 100%;
		margin: 0;
	}

	.eamd-pt .eamd-pt__bulk .eamd-btn--primary {
		flex: 1 1 auto;
	}

	.eamd-pt-toasts {
		right: 12px;
		left: 12px;
		width: auto;
		max-width: none;
	}

	.eamd-pt-toasts.has-bulk {
		bottom: 136px;
	}
}

@keyframes eamd-pt-rise-mobile {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eamd-pt *,
	.eamd-pt *::before,
	.eamd-pt *::after,
	.eamd-pt-toasts *,
	.eamd-pt .eamd-pt__bulk {
		animation: none !important;
		transition: none !important;
	}

	.eamd-pt .eamd-btn:active:not(:disabled),
	.eamd-pt .eamd-qty__btn:active:not([aria-disabled="true"]):not(:disabled),
	.eamd-pt .eamd-pt__page:active {
		transform: none;
	}
}
