/* =========================================================
   Booking Xonex — Area account / I miei biglietti
   ========================================================= */

.bx-my-tickets-wrap.bx-account-area {
	font-family: var(--bx-font, inherit);
	color: #1e293b;
	max-width: 960px;
	margin: 0 auto;
}

body.bx-wc-account .woocommerce-MyAccount-content .bx-my-tickets-wrap.bx-account-area {
	max-width: none;
	margin: 0;
}

.bx-my-tickets-wrap .bx-ico {
	flex-shrink: 0;
	display: block;
}

/* ── Hero ─────────────────────────────────────────────────── */
.bx-account-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	padding: 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.bx-account-hero-user {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 240px;
}

.bx-account-avatar {
	border-radius: 50% !important;
	border: 3px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
	width: 56px !important;
	height: 56px !important;
}

.bx-account-greeting {
	margin: 0 0 4px;
	font-size: 14px;
	color: #64748b;
	font-weight: 500;
}

.bx-account-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
}

.bx-account-subtitle {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	max-width: 420px;
}

.bx-account-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bx-account-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	min-width: 110px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.bx-stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #eff6ff;
	color: var(--bx-primary, #2563eb);
}

.bx-account-stat strong {
	display: block;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	color: #0f172a;
}

.bx-account-stat span {
	display: block;
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .4px;
	margin-top: 2px;
}

.bx-stat-active .bx-stat-icon {
	background: #ecfdf5;
	color: #059669;
}

/* ── Back link ────────────────────────────────────────────── */
.bx-account-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bx-primary, #2563eb);
	text-decoration: none;
	transition: opacity .15s;
}

.bx-account-back:hover {
	opacity: .8;
	text-decoration: none;
	color: var(--bx-primary, #2563eb);
}

/* ── Empty state ──────────────────────────────────────────── */
.bx-account-empty {
	text-align: center;
	padding: 56px 24px;
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
}

.bx-account-empty-icon {
	color: #94a3b8;
	margin-bottom: 16px;
}

.bx-account-empty h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.bx-account-empty p {
	margin: 0 0 24px;
	color: #64748b;
	font-size: 15px;
	line-height: 1.5;
}

.bx-account-cta {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
}

/* ── Event groups ─────────────────────────────────────────── */
.bx-account-events {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bx-event-group {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.bx-event-group-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #1e293b, #334155);
	color: #fff;
}

.bx-event-group-title h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.bx-event-group-header .bx-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.bx-event-group-header .bx-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #cbd5e1;
}

.bx-event-group-header .bx-meta-item .bx-ico {
	opacity: .85;
}

.bx-event-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 8px 14px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 8px;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
	white-space: nowrap;
}

.bx-event-link:hover {
	background: rgba(255, 255, 255, .2);
	color: #fff !important;
	text-decoration: none;
}

/* ── Ticket grid ──────────────────────────────────────────── */
.bx-account-ticket-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	padding: 16px;
}

.bx-account-ticket {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	border-left: 4px solid var(--bx-ticket-accent, var(--bx-primary, #2563eb));
	transition: box-shadow .18s, transform .12s;
}

.bx-account-ticket:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.bx-account-ticket.bx-status-cancelled,
.bx-account-ticket.bx-status-refunded,
.bx-account-ticket.bx-status-expired {
	opacity: .65;
}

.bx-account-ticket-event {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
}

.bx-account-ticket-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-bottom: 14px;
}

.bx-account-ticket-type-name {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	line-height: 1.3;
}

.bx-account-ticket-type {
	font-size: 13px;
	font-weight: 700;
	color: var(--bx-ticket-accent, var(--bx-primary, #2563eb));
	text-transform: uppercase;
	letter-spacing: .3px;
}

.bx-account-ticket-meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bx-account-ticket-meta li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #334155;
	line-height: 1.4;
}

.bx-account-ticket-meta .bx-ico {
	color: #64748b;
	margin-top: 2px;
}

.bx-account-ticket-meta em {
	display: block;
	font-style: normal;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .35px;
	color: #94a3b8;
	margin-bottom: 1px;
}

.bx-account-ticket-meta code {
	font-size: 13px;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 4px;
	font-family: ui-monospace, monospace;
	color: #0f172a;
	word-break: break-all;
}

.bx-ticket-num-row .bx-ticket-num {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bx-ticket-num-row code {
	display: block;
	width: fit-content;
	max-width: 100%;
	white-space: normal;
	word-break: break-all;
}

.bx-account-ticket-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.bx-account-ticket-actions .bx-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
}

/* ── Status badges ────────────────────────────────────────── */
.bx-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.bx-status-active    { background: #d1fae5; color: #065f46; }
.bx-status-used      { background: #e0e7ff; color: #3730a3; }
.bx-status-pending   { background: #fef9c3; color: #854d0e; }
.bx-status-cancelled { background: #fee2e2; color: #991b1b; }
.bx-status-refunded  { background: #f3f4f6; color: #6b7280; }
.bx-status-expired   { background: #f3f4f6; color: #6b7280; }

.bx-my-badge-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2px;
}

/* ── Ticket detail (QR view) ──────────────────────────────── */
.bx-account-detail {
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.bx-ticket-detail-header {
	padding: 20px 24px;
	background: linear-gradient(135deg, #1e293b, #334155);
	color: #fff;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.bx-detail-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #93c5fd;
}

.bx-ticket-detail-header h3 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.bx-detail-date,
.bx-detail-venue {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 14px;
	color: #cbd5e1;
}

.bx-ticket-detail-body {
	display: flex;
	gap: 0;
}

.bx-ticket-detail-info {
	flex: 1;
	padding: 24px;
	border-right: 2px dashed #e2e8f0;
}

.bx-detail-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bx-detail-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.bx-detail-list .bx-ico {
	color: var(--bx-primary, #2563eb);
	margin-top: 2px;
}

.bx-detail-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #94a3b8;
	margin-bottom: 2px;
}

.bx-detail-list strong,
.bx-detail-list span {
	font-size: 15px;
	color: #0f172a;
}

.bx-detail-list code {
	font-size: 14px;
	background: #f1f5f9;
	padding: 3px 10px;
	border-radius: 6px;
	font-family: ui-monospace, monospace;
}

.bx-ticket-detail-qr {
	width: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 24px;
	background: #f8fafc;
	text-align: center;
}

.bx-qr-frame {
	padding: 12px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.bx-qr-image {
	display: block;
	width: 200px;
	height: 200px;
	border-radius: 4px;
}

.bx-qr-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin: 14px 0 8px;
}

.bx-qr-number {
	font-family: ui-monospace, monospace;
	font-size: 12px;
	color: #64748b;
	word-break: break-all;
	background: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

.bx-ticket-detail-actions .bx-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
}

/* ── WooCommerce wrapper reset ────────────────────────────── */
.woocommerce-MyAccount-content .bx-my-tickets-wrap {
	width: 100%;
}

.woocommerce-MyAccount-content .bx-account-area .bx-btn {
	appearance: none !important;
	text-decoration: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
	.bx-account-hero {
		flex-direction: column;
		padding: 20px;
	}

	.bx-account-stats {
		width: 100%;
	}

	.bx-account-stat {
		flex: 1;
		min-width: 0;
	}

	.bx-event-group-header {
		flex-direction: column;
	}

	.bx-account-ticket-grid {
		grid-template-columns: 1fr;
	}

	.bx-ticket-detail-body {
		flex-direction: column;
	}

	.bx-ticket-detail-info {
		border-right: none;
		border-bottom: 2px dashed #e2e8f0;
	}

	.bx-ticket-detail-qr {
		width: 100%;
	}
}

/* ═══════════════════════════════════════════════════════════
   Dark theme
═══════════════════════════════════════════════════════════ */
body.bx-theme-dark .bx-my-tickets-wrap.bx-account-area {
	color: #e2e8f0;
}

body.bx-theme-dark .bx-account-hero {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-color: #334155;
}

body.bx-theme-dark .bx-account-title {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-account-greeting,
body.bx-theme-dark .bx-account-subtitle {
	color: #94a3b8;
}

body.bx-theme-dark .bx-account-stat {
	background: #0f172a;
	border-color: #334155;
}

body.bx-theme-dark .bx-account-stat strong {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-account-empty {
	background: #1e293b;
	border-color: #475569;
}

body.bx-theme-dark .bx-account-empty h3 {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-event-group {
	background: #1e293b;
	border-color: #334155;
}

body.bx-theme-dark .bx-account-ticket {
	background: #0f172a;
	border-color: #334155;
}

body.bx-theme-dark .bx-account-ticket-event {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-account-ticket-meta li {
	color: #cbd5e1;
}

body.bx-theme-dark .bx-account-ticket-meta code {
	background: #334155;
	color: #f1f5f9;
}

body.bx-theme-dark .bx-account-detail {
	background: #1e293b;
	border-color: #334155;
}

body.bx-theme-dark .bx-ticket-detail-info {
	border-color: #334155;
}

body.bx-theme-dark .bx-detail-list strong,
body.bx-theme-dark .bx-detail-list span {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-detail-list code {
	background: #334155;
	color: #f1f5f9;
}

body.bx-theme-dark .bx-ticket-detail-qr {
	background: #0f172a;
}

body.bx-theme-dark .bx-qr-frame {
	background: #1e293b;
	border-color: #475569;
}

body.bx-theme-dark .bx-qr-number {
	background: #334155;
	border-color: #475569;
	color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════
   WooCommerce My Account — layout e menu
═══════════════════════════════════════════════════════════ */
body.bx-wc-account .woocommerce {
	display: grid !important;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 28px 32px;
	align-items: start;
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 20px 48px;
	box-sizing: border-box;
	clear: both;
}

body.bx-wc-account .woocommerce::before,
body.bx-wc-account .woocommerce::after {
	display: none !important;
	content: none !important;
}

body.bx-wc-account .bx-wc-account-sidebar {
	grid-column: 1;
	grid-row: 1;
	position: sticky;
	top: 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
}

body.bx-wc-account .woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.bx-wc-account .woocommerce-MyAccount-content {
	grid-column: 2;
	grid-row: 1;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	padding: 0;
}

body.bx-account-tickets-view .woocommerce-MyAccount-content {
	padding: 0;
}

/* Hero compatto in WC: profilo già in sidebar */
body.bx-wc-account.bx-account-tickets-view .bx-account-avatar,
body.bx-wc-account.bx-account-tickets-view .bx-account-greeting {
	display: none;
}

body.bx-wc-account.bx-account-tickets-view .bx-account-hero-user {
	min-width: 0;
	flex: 1;
}

body.bx-wc-account.bx-account-tickets-view .bx-account-hero {
	align-items: center;
	margin-bottom: 24px;
}

body.bx-wc-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: transparent;
	border: none;
	border-radius: 0;
}

body.bx-wc-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: none;
}

body.bx-wc-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #475569 !important;
	text-decoration: none !important;
	transition: background .15s, color .15s;
}

body.bx-wc-account .woocommerce-MyAccount-navigation li a:hover {
	background: #eef2ff;
	color: var(--bx-primary, #2563eb) !important;
}

body.bx-wc-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--bx-primary, #2563eb);
	color: #fff !important;
}

body.bx-wc-account .woocommerce-MyAccount-navigation-link--bx-tickets a::before,
body.bx-wc-account .woocommerce-MyAccount-navigation-link--orders a::before,
body.bx-wc-account .woocommerce-MyAccount-navigation-link--edit-account a::before,
body.bx-wc-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background: currentColor;
	opacity: .85;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

body.bx-wc-account .woocommerce-MyAccount-navigation-link--bx-tickets a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 9a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v2a2 2 0 0 0 0 4v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-2a2 2 0 0 0 0-4V9z'/%3E%3Cpath d='M9 8v8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 9a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v2a2 2 0 0 0 0 4v2a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-2a2 2 0 0 0 0-4V9z'/%3E%3Cpath d='M9 8v8'/%3E%3C/svg%3E");
}

body.bx-wc-account .woocommerce-MyAccount-navigation-link--orders a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

body.bx-wc-account .woocommerce-MyAccount-navigation-link--edit-account a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

body.bx-wc-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

.bx-wc-nav-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 16px 14px;
	margin: 0;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.bx-wc-nav-avatar {
	border-radius: 50% !important;
	width: 48px !important;
	height: 48px !important;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.bx-wc-nav-header strong {
	display: block;
	font-size: 15px;
	color: #0f172a;
	line-height: 1.3;
}

.bx-wc-nav-header span {
	display: block;
	font-size: 12px;
	color: #64748b;
}

body.bx-theme-dark.bx-wc-account .bx-wc-account-sidebar {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-navigation ul {
	background: transparent;
	border-color: transparent;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-navigation li a {
	color: #cbd5e1 !important;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-navigation li a:hover {
	background: #334155;
	color: #93c5fd !important;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--bx-primary, #2563eb);
	color: #fff !important;
}

body.bx-theme-dark .bx-wc-nav-header {
	border-color: #334155;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.bx-theme-dark .bx-wc-nav-header strong {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-wc-nav-header span {
	color: #94a3b8;
}

/* Form WC (ordini, dettagli account) leggibili su dark */
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content {
	color: #e2e8f0;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content a {
	color: #93c5fd;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content table.shop_table {
	background: #1e293b;
	border-color: #334155;
	color: #e2e8f0;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content table.shop_table th,
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content table.shop_table td {
	border-color: #334155;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content .woocommerce-form-row label,
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content fieldset legend {
	color: #cbd5e1;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content input.input-text,
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content select,
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content textarea {
	background: #0f172a !important;
	border-color: #475569 !important;
	color: #f1f5f9 !important;
}

/* ── Subpage header (ordini / modifica account) ─────────────────────────── */
.bx-wc-subpage-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
	padding: 22px 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.bx-wc-subpage-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #fff;
	color: var(--bx-primary, #2563eb);
	border: 1px solid #e2e8f0;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
}

.bx-wc-subpage-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: #0f172a;
}

.bx-wc-subpage-subtitle {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}

/* ── Form modifica account ────────────────────────────────────────────── */
body.bx-wc-account .woocommerce-EditAccountForm,
body.bx-wc-account form.edit-account {
	max-width: 640px;
}

body.bx-wc-account .woocommerce-EditAccountForm .woocommerce-form-row,
body.bx-wc-account form.edit-account .woocommerce-form-row {
	margin-bottom: 18px;
}

body.bx-wc-account .woocommerce-EditAccountForm label,
body.bx-wc-account form.edit-account label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

body.bx-wc-account .woocommerce-EditAccountForm .required,
body.bx-wc-account form.edit-account .required {
	color: #ef4444;
}

body.bx-wc-account .woocommerce-EditAccountForm input.input-text,
body.bx-wc-account form.edit-account input.input-text,
body.bx-wc-account .woocommerce-EditAccountForm select,
body.bx-wc-account form.edit-account select {
	width: 100% !important;
	max-width: 100% !important;
	padding: 11px 14px !important;
	border-radius: 10px !important;
	border: 1px solid #cbd5e1 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s;
}

body.bx-wc-account .woocommerce-EditAccountForm input.input-text:focus,
body.bx-wc-account form.edit-account input.input-text:focus {
	border-color: var(--bx-primary, #2563eb) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important;
	outline: none !important;
}

body.bx-wc-account .woocommerce-EditAccountForm fieldset,
body.bx-wc-account form.edit-account fieldset {
	margin: 28px 0 20px;
	padding: 20px 22px;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px;
	background: #f8fafc;
}

body.bx-wc-account .woocommerce-EditAccountForm legend,
body.bx-wc-account form.edit-account legend {
	padding: 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

body.bx-wc-account .woocommerce-EditAccountForm em,
body.bx-wc-account form.edit-account em {
	display: block;
	margin: -8px 0 14px;
	font-size: 13px;
	color: #64748b;
	font-style: normal;
}

body.bx-wc-account .woocommerce-EditAccountForm .woocommerce-Button,
body.bx-wc-account form.edit-account .woocommerce-Button,
body.bx-wc-account .woocommerce-MyAccount-content > .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 12px 24px !important;
	background: var(--bx-primary, #2563eb) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	cursor: pointer;
	text-decoration: none !important;
	transition: filter .15s, transform .1s;
}

body.bx-wc-account .woocommerce-EditAccountForm .woocommerce-Button:hover,
body.bx-wc-account form.edit-account .woocommerce-Button:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

/* ── Ordini ─────────────────────────────────────────────────────────────── */
body.bx-wc-account .woocommerce-orders-table,
body.bx-wc-account table.shop_table.order_details,
body.bx-wc-account table.woocommerce-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

body.bx-wc-account .woocommerce-orders-table thead th,
body.bx-wc-account table.shop_table thead th {
	background: #f1f5f9;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .35px;
	color: #475569;
	border-bottom: 1px solid #e2e8f0;
}

body.bx-wc-account .woocommerce-orders-table tbody td,
body.bx-wc-account table.shop_table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
	vertical-align: middle;
}

body.bx-wc-account .woocommerce-orders-table tbody tr:last-child td,
body.bx-wc-account table.shop_table tbody tr:last-child td {
	border-bottom: none;
}

body.bx-wc-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
body.bx-wc-account table.shop_table a.button,
body.bx-wc-account .woocommerce-MyAccount-content a.woocommerce-button {
	display: inline-flex !important;
	align-items: center;
	padding: 8px 14px !important;
	background: #eff6ff !important;
	color: var(--bx-primary, #2563eb) !important;
	border: 1px solid #bfdbfe !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	margin: 2px 4px 2px 0;
}

body.bx-wc-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover,
body.bx-wc-account table.shop_table a.button:hover {
	background: var(--bx-primary, #2563eb) !important;
	color: #fff !important;
	border-color: var(--bx-primary, #2563eb) !important;
}

/* Messaggi WC (ordini vuoti, conferme…) */
body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-info,
body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-message,
body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-error {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 18px !important;
	margin: 0 0 20px !important;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	color: #334155 !important;
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}

body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-message::before {
	display: none !important;
}

body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-info .button,
body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-message .button {
	margin-left: auto !important;
	padding: 8px 16px !important;
	background: var(--bx-primary, #2563eb) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-pagination {
	margin-top: 20px;
}

body.bx-wc-account .woocommerce-MyAccount-content .woocommerce-pagination .button {
	padding: 10px 18px !important;
	border-radius: 8px !important;
}

/* Dark theme — subpage + form + ordini */
body.bx-theme-dark .bx-wc-subpage-header {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-color: #334155;
}

body.bx-theme-dark .bx-wc-subpage-header-icon {
	background: #0f172a;
	border-color: #475569;
	color: #93c5fd;
}

body.bx-theme-dark .bx-wc-subpage-title {
	color: #f1f5f9;
}

body.bx-theme-dark .bx-wc-subpage-subtitle {
	color: #94a3b8;
}

body.bx-theme-dark.bx-wc-account .woocommerce-EditAccountForm label,
body.bx-theme-dark.bx-wc-account form.edit-account label {
	color: #cbd5e1;
}

body.bx-theme-dark.bx-wc-account .woocommerce-EditAccountForm fieldset,
body.bx-theme-dark.bx-wc-account form.edit-account fieldset {
	background: #1e293b;
	border-color: #334155 !important;
}

body.bx-theme-dark.bx-wc-account .woocommerce-EditAccountForm legend,
body.bx-theme-dark.bx-wc-account form.edit-account legend {
	color: #f1f5f9;
}

body.bx-theme-dark.bx-wc-account .woocommerce-EditAccountForm em,
body.bx-theme-dark.bx-wc-account form.edit-account em {
	color: #94a3b8;
}

body.bx-theme-dark.bx-wc-account .woocommerce-orders-table,
body.bx-theme-dark.bx-wc-account table.shop_table {
	background: #1e293b;
	border-color: #334155;
}

body.bx-theme-dark.bx-wc-account .woocommerce-orders-table thead th,
body.bx-theme-dark.bx-wc-account table.shop_table thead th {
	background: #0f172a;
	color: #94a3b8;
	border-color: #334155;
}

body.bx-theme-dark.bx-wc-account .woocommerce-orders-table tbody td,
body.bx-theme-dark.bx-wc-account table.shop_table tbody td {
	border-color: #334155;
	color: #e2e8f0;
}

body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content .woocommerce-info,
body.bx-theme-dark.bx-wc-account .woocommerce-MyAccount-content .woocommerce-message {
	background: #1e293b !important;
	border-color: #334155 !important;
	color: #cbd5e1 !important;
}

body.bx-theme-dark.bx-wc-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a,
body.bx-theme-dark.bx-wc-account table.shop_table a.button {
	background: #0f172a !important;
	border-color: #475569 !important;
	color: #93c5fd !important;
}

@media (max-width: 768px) {
	body.bx-wc-account .woocommerce-orders-table thead {
		display: none;
	}

	body.bx-wc-account .woocommerce-orders-table tbody tr {
		display: block;
		padding: 12px;
		border-bottom: 1px solid #e2e8f0;
	}

	body.bx-wc-account .woocommerce-orders-table tbody td {
		display: flex;
		justify-content: space-between;
		padding: 6px 0;
		border: none;
	}

	body.bx-theme-dark.bx-wc-account .woocommerce-orders-table tbody tr {
		border-color: #334155;
	}
}

@media (max-width: 899px) {
	body.bx-wc-account .woocommerce {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 16px 16px 40px;
	}

	body.bx-wc-account.bx-account-tickets-view .woocommerce-MyAccount-content {
		order: 1;
	}

	body.bx-wc-account.bx-account-tickets-view .bx-wc-account-sidebar {
		order: 2;
	}

	body.bx-wc-account .bx-wc-account-sidebar,
	body.bx-wc-account .woocommerce-MyAccount-content {
		grid-column: 1;
		grid-row: auto;
	}

	body.bx-wc-account .bx-wc-account-sidebar {
		position: static;
	}
}
