/**
 * Account page styling — scoped to the .tri-sp-account page root, reusing the
 * shared shell's existing design tokens (no new colours, radii or fonts are
 * introduced here). Structure mirrors the other Chunk 5/6 pages: stacked
 * .tri-sp-card sections inside .tri-sp-account__main.
 */

.tri-sp-account__title {
	font-family: var(--tri-sp-font-heading);
	color: var(--tri-sp-text);
	font-size: 40px;
	font-weight: 400;
	margin: 0 0 12px;
}

.tri-sp-account__subtitle {
	color: var(--tri-sp-text-muted);
	margin: 0 0 32px;
	max-width: 640px;
}

.tri-sp-account__section {
	margin-bottom: 24px;
}

/* --- Notices --- */

.tri-sp-notice {
	border-radius: var(--tri-sp-card-radius-sm);
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 14px;
}

.tri-sp-notice--success {
	background: rgba(202, 150, 79, 0.12);
	border: 1px solid var(--tri-sp-border);
	color: var(--tri-sp-text);
}

.tri-sp-notice--error {
	background: rgba(190, 70, 60, 0.14);
	border: 1px solid rgba(190, 70, 60, 0.5);
	color: #f2d9d5;
}

/* --- Identity (avatar + summary) --- */

.tri-sp-account__identity {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--tri-sp-border);
}

.tri-sp-account__avatar {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.tri-sp-account__avatar-img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 1px solid var(--tri-sp-border);
	object-fit: cover;
}

.tri-sp-account__identity-meta {
	min-width: 0;
}

.tri-sp-account__identity-name {
	color: var(--tri-sp-text);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

.tri-sp-account__identity-line {
	color: var(--tri-sp-text-muted);
	font-size: 13px;
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

/* --- Forms --- */

.tri-sp-account-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 0 0 20px;
}

.tri-sp-account-form__field {
	min-width: 0;
}

.tri-sp-account-form__field label {
	display: block;
	font-size: 12px;
	color: var(--tri-sp-text-muted);
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tri-sp-account-form__field input,
.tri-sp-account-form__field select {
	width: 100%;
	background: var(--tri-sp-bg);
	border: 1px solid var(--tri-sp-border);
	border-radius: 4px;
	color: var(--tri-sp-text);
	padding: 10px 12px;
	font-family: var(--tri-sp-font-body);
	font-size: 14px;
}

/*
 * Chunk 6.6's Elementor Global Kit collision applies to these fields too:
 * `.elementor-kit-47604 input:not([type="button"]):not([type="submit"])`
 * matches at (0,3,1) and would otherwise win over the (0,2,1) rule above.
 * Re-declared here at (0,3,1)+ using only real ancestor classes already
 * present in the markup — no !important, no global element reset.
 */
.tri-sp-account .tri-sp-card .tri-sp-account-form__field input,
.tri-sp-account .tri-sp-card .tri-sp-account-form__field select {
	background: var(--tri-sp-bg);
	color: var(--tri-sp-text);
	padding: 10px 12px;
	font-size: 14px;
	line-height: normal;
}

.tri-sp-account-form__field input:focus,
.tri-sp-account-form__field select:focus {
	border-color: var(--tri-sp-gold);
	outline: none;
}

.tri-sp-account-form__hint {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	color: var(--tri-sp-text-muted);
}

/* --- Fact lists (Programme, Billing) --- */

.tri-sp-account__programme-name {
	color: var(--tri-sp-text);
	font-family: var(--tri-sp-font-heading);
	font-size: 20px;
	margin: 0 0 20px;
}

.tri-sp-account__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 0 0 20px;
}

.tri-sp-account__fact {
	min-width: 0;
}

.tri-sp-account__fact dt {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tri-sp-text-muted);
	margin-bottom: 6px;
}

.tri-sp-account__fact dd {
	margin: 0;
	color: var(--tri-sp-text);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.tri-sp-account__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--tri-sp-border);
	font-size: 12px;
	color: var(--tri-sp-text-muted);
}

.tri-sp-account__badge--ok {
	background: rgba(202, 150, 79, 0.16);
	border-color: var(--tri-sp-gold);
	color: var(--tri-sp-gold-strong);
}

.tri-sp-account__badge--warn {
	background: rgba(190, 70, 60, 0.16);
	border-color: rgba(190, 70, 60, 0.6);
	color: #f0c4bf;
}

.tri-sp-account__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.tri-sp-account__actions--logout {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--tri-sp-border);
}

/* --- Orders table --- */

.tri-sp-account__table-wrap {
	overflow-x: auto;
	max-width: 100%;
}

.tri-sp-account__orders {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.tri-sp-account__orders th,
.tri-sp-account__orders td {
	text-align: left;
	padding: 12px 10px;
	border-bottom: 1px solid var(--tri-sp-border);
	vertical-align: top;
}

.tri-sp-account__orders th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tri-sp-text-muted);
	font-weight: 600;
}

.tri-sp-account__orders td {
	color: var(--tri-sp-text);
}

.tri-sp-account__order-items {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: var(--tri-sp-text-muted);
}

/* --- Responsive --- */

@media (max-width: 768px) {
	.tri-sp-account__main {
		padding: 24px 16px;
	}

	.tri-sp-account__title {
		font-size: 28px;
	}

	.tri-sp-account__identity {
		flex-direction: column;
		align-items: flex-start;
	}

	.tri-sp-account-form__grid,
	.tri-sp-account__facts {
		grid-template-columns: 1fr;
	}

	/* Stacked order rows — the table's own header is hidden and each cell
	   carries its label, so nothing needs horizontal scrolling on a phone. */
	.tri-sp-account__orders thead {
		display: none;
	}

	.tri-sp-account__orders,
	.tri-sp-account__orders tbody,
	.tri-sp-account__orders tr,
	.tri-sp-account__orders td {
		display: block;
		width: 100%;
	}

	.tri-sp-account__orders tr {
		border: 1px solid var(--tri-sp-border);
		border-radius: var(--tri-sp-card-radius-sm);
		padding: 8px 12px;
		margin-bottom: 12px;
	}

	.tri-sp-account__orders td {
		border-bottom: none;
		padding: 6px 0;
	}

	.tri-sp-account__orders td[data-label]::before {
		content: attr(data-label) ": ";
		color: var(--tri-sp-text-muted);
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}
}
