/* The brand's dark canvas (design system bg-surface-primary), with white panels on it.
   Homepage particles sit on the body; #main stays clear so they are not covered.
   Beat theticketfairy.css `body.generic { background: #fbfbff }` when both classes
   are present (stale head cache or a layout that kept generic). */
body.account-page,
body.tf-shell-header-page.account-page,
body.generic.account-page {
	background: var(--bg-surface-primary, #0b0a15);
	background-color: #0b0a15;
}

body.account-page #main,
body.account-page #wrap,
body.tf-shell-header-page.account-page #main,
body.tf-shell-header-page.account-page #wrap {
	background-color: transparent;
}

body .account-page-wrap,
body #account-header,
body #content {
	position: relative;
	z-index: 1;
}

/* Shared by Account, Orders, Trips and Delegations — keep spacing identical. */
#account-header {
	text-align: center;
	padding-top: 30px;
	padding-bottom: 35px;
}

@media only screen and (max-device-width: 480px){
	#account-header {
		padding-top: 20px;
		padding-bottom: 15px;
	}
}

#account-header h1 {
	font-size: 40px;
	font-weight: 500;
	line-height: 120%;
	letter-spacing: -1px;
	text-align: center;
	color: #ebebee;
	margin: 0 0 15px;
	text-shadow: none;
}

/* TravelSiteChrome: beat site-theme's venue headline gradient on the account title. */
body.travel-site #account-header h1 {
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: #ebebee;
	color: #ebebee;
	padding-bottom: 0;
	font-size: 40px;
	font-weight: 500;
	line-height: 120%;
	letter-spacing: -1px;
	margin: 0 0 15px;
}

@media only screen and (max-width: 767px){
	#account-header h1,
	body.travel-site #account-header h1 {
		font-size: 32px;
	}
}

#account-header h3 {
	color: #d4d4de;
	line-height: 130%;
	font-size: 16px;
	font-weight: 400;
	margin: 15px 0 0;
	text-shadow: none;
}

body.travel-site #account-header h3 {
	color: #d4d4de;
	line-height: 130%;
	font-size: 16px;
	font-weight: 400;
	margin: 15px 0 0;
}

/* Links on the dark canvas: the brand's light blue (11:1 on #0b0a15). */
#account-header a {
	color: #b5bfff;
	font-weight: 600;
}

#account-header a:hover,
#account-header a:focus {
	color: #ffffff;
}

.account-page-wrap {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
}

.account-page-inner {
	width: 100%;
	max-width: 630px;
}

.account-page-inner .white-rounded-block {
	margin-bottom: 0px;
}

.account-header {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.account-header-title h2 {
	margin-bottom: 0px;
	white-space: nowrap;
}

@media only screen and (max-device-width: 480px){
	.account-header-title h2 {
		font-size: 20px !important;
	}
}

.account-header-actions {
	display: flex;
	gap: 5px;
	text-align: right;
	justify-content: end;
	align-content: flex-start;
	align-items: flex-start;
	flex-direction: row;
	flex-wrap: wrap;
}

.nav-tabs .active a {
	font-weight: bold;
	color: #333;
}

@media (max-width: 979px) {
	.account-page-wrap {
		display: flex;
		flex-direction: column-reverse;
		justify-content: space-between;
		gap: 20px;
		padding: 0 10px;
	}

	.account-page-inner {
		width: 100%;
	}
}


.account-verification {
	display: flex;
	gap: 15px;
	vertical-align: middle;
	align-items: center;
	margin: 0 0 20px;
	border: 1px solid #4095cd;
	background: #daecf8;
	border-radius: 8px;
	padding: 12px 10px;
	color: #005289;
	justify-content: space-between;
	font-size: 12px;
	line-height: 1.5em;
}

.account-verification.active {
	border: 1px solid #01a500;
	background: #d3f5d3;
	color: #003a00;
}

.account-verification.warning {
	border: 1px solid #cd4040;
	background: #f8dada;
	color: #890000;
}

.account-verification .account-verification-inner {
	display: flex;
	gap: 8px;
	vertical-align: middle;
	align-items: center;
	justify-content: space-between;
}

@media screen and (max-width: 559px) {
	.account-verification {
		flex-direction: column;
		gap: 10px;
	}

	.account-verification .account-verification-inner {
		flex-direction: column;
		text-align: center;
	}
}

.account-verification .account-verification-inner i {
	padding: 0 7px;
	color: #005289;
	font-size: 30px;
}

.account-verification.active .account-verification-inner i {
	color: #007400;
}

.account-verification.warning .account-verification-inner i {
	color: #890000;
}

/* Bootstrap span12 is 940px; the security well is narrower. */
#two-factor-setup .controls {
	max-width: 100%;
}

#two-factor-setup .iti {
	display: block;
	width: 100%;
	max-width: 100%;
}

#two-factor-setup .iti input.iti__tel-input,
#two-factor-setup .iti input.form-control {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#two-factor-setup .modal-footer {
	text-align: right;
}

#two-factor-setup .modal-footer .btn-toolbar {
	margin: 0;
	text-align: right;
}

#two-factor-setup .modal-footer .btn-toolbar .btn {
	margin-left: 8px;
	margin-bottom: 0;
}

#two-factor-setup .modal-footer .btn-toolbar .btn:first-child {
	margin-left: 0;
}

/* My Orders: a list of orders, each with its event, when and where, status and main action. */
.account-page-inner--wide {
	max-width: 760px;
}

.my-orders-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.my-orders-bar .select2-container,
.my-orders-bar #event-select {
	width: 300px;
	max-width: 100%;
}

.my-orders-count {
	font-size: 14px;
	color: #55555f;
	white-space: nowrap;
}

.my-orders-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.my-orders-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid #ececf0;
}

.my-orders-item:first-child {
	border-top: 0;
}

.my-orders-art img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	background: #ececf0;
}

.my-orders-list .my-orders-title {
	margin: 0 0 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 22px;
	color: #16161a;
	overflow-wrap: anywhere;
}

.my-orders-title a {
	color: inherit;
}

.my-orders-when {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 20px;
	color: #3d3d45;
}

.my-orders-details {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	color: #6e6e78;
}

/* Delegations list: event name is the middle line, date/venue is supporting. */
.account-delegations-page .my-orders-details {
	color: #16161a;
}

.account-delegations-page .my-orders-when {
	color: #6e6e78;
}

.my-orders-status {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	vertical-align: 2px;
	white-space: nowrap;
	color: #3d3d45;
	background: #f0f0f3;
}

.my-orders-status--upcoming,
.my-orders-status--membership {
	color: #14532d;
	background: #e8f6ee;
}

.my-orders-status--pending,
.my-orders-status--awaiting,
.my-orders-status--payment_plan,
.my-orders-status--listed {
	color: #5c4300;
	background: #fff4d6;
}

.my-orders-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.my-orders-actions .btn {
	margin-top: 0;
}

/* Your trips: an outlined pill under the page title, in the canvas's link colour. */
#account-header .my-orders-trips-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding: 8px 18px;
	border: 1px solid rgba(181, 191, 255, 0.45);
	border-radius: 999px;
	font-size: 15px;
	line-height: 20px;
	text-decoration: none;
}

#account-header .my-orders-trips-link:hover,
#account-header .my-orders-trips-link:focus {
	border-color: #ffffff;
	text-decoration: none;
}

/* An order's own trip: a text link under its main action. */
.my-orders-trip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
}

/* site.css removes every focus outline; keyboard users still see where they are. */
.my-orders-title a:focus-visible,
.my-orders-trip:focus-visible,
.my-orders-bar a:focus-visible,
#account-header a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}

.my-orders-empty {
	padding: 24px 0;
	text-align: center;
}

.my-orders-empty h2 {
	margin: 0 0 8px;
	font-size: 20px;
	color: #16161a;
}

.my-orders-empty p {
	margin: 0 0 16px;
	color: #55555f;
}

@media (max-width: 767px) {
	.my-orders-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.my-orders-bar .select2-container,
	.my-orders-bar #event-select {
		width: 100%;
	}

	.my-orders-item {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 12px;
	}

	.my-orders-art img {
		width: 56px;
		height: 56px;
	}

	.my-orders-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.my-orders-actions .btn {
		flex: 1;
	}

	.my-orders-trip {
		padding: 0 4px;
	}
}
