/* pepgg Account Orders (mu-plugins/pepgg-account-orders.php): order tickets on My Account, and the phone menu row.
   Theme traps this file works around: an inline rule gives every link text-decoration:none and color:#0a463e, both
   !important; paragraphs, headings and lists have margin 0; headings inside .woocommerce-MyAccount-content are
   forced to 30px with 20px top padding, also !important. */

.pgao,
.pgao-hello {
	--pgao-ink: #0a463e;
	--pgao-deep: #062c27;
	--pgao-mint: #a4f8f2;
	--pgao-soft: #4a7d78;
	--pgao-line: #dbe7e5;
	font-family: "Gilroy-Regular", sans-serif;
	color: var(--pgao-ink);
}

/* ── Greeting ─────────────────────────────────────────────────────────── */
.pgao-hello {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0 0 22px;
}
.pgao-hello p.pgao-hello-name {
	font-family: "PPHatton-Bold", Georgia, serif;
	font-size: 34px;
	line-height: 1.15;
	color: var(--pgao-ink);
}
.pgao-hello-who {
	font-size: 15px;
	color: var(--pgao-soft);
}
.pgao-hello-who a {
	text-decoration: underline !important;
}

/* ── Section ──────────────────────────────────────────────────────────── */
.pgao {
	margin: 0 0 28px;
}
.woocommerce-MyAccount-content .pgao h2.pgao-title {
	font-family: "Gilroy-Medium", sans-serif;
	font-size: 18px !important;
	line-height: 1.3;
	padding: 0 !important;
	margin: 0 0 12px;
	color: var(--pgao-soft);
}
.pgao-all {
	margin: 0;
	font-size: 16px;
}
.pgao-all a,
.pgao-empty a,
.pgao a.pgao-more {
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.pgao-empty {
	font-size: 17px;
	line-height: 1.5;
	color: var(--pgao-soft);
	margin: 0 0 18px;
	max-width: 56ch;
}

/* ── Ticket ───────────────────────────────────────────────────────────── */
.pgao-ticket {
	--band-bg: var(--pgao-deep);
	--band-ink: #fff;
	--band-soft: rgba(255, 255, 255, 0.8);
	--rail-on: var(--pgao-mint);
	--rail-off: rgba(255, 255, 255, 0.26);
	border: 1px solid var(--pgao-line);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	margin: 0 0 18px;
}
.pgao-is-delivered {
	--band-bg: #e4fbf8;
	--band-ink: var(--pgao-ink);
	--band-soft: var(--pgao-soft);
	--rail-on: var(--pgao-ink);
	--rail-off: rgba(10, 70, 62, 0.2);
}
.pgao-is-pay,
.pgao-is-problem {
	--band-bg: #fff7e6;
	--band-ink: #3b2a06;
	--band-soft: #6b5422;
	--rail-on: #d9860b;
	--rail-off: rgba(59, 42, 6, 0.2);
	border-color: #f0c269;
}

.pgao-band {
	background: var(--band-bg);
	padding: 20px 24px 20px;
}
.pgao-ref {
	font-size: 14px;
	line-height: 1.4;
	color: var(--band-soft);
	margin: 0 0 8px;
}
.pgao .pgao-headline {
	font-family: "PPHatton-Bold", Georgia, serif;
	font-size: 30px;
	line-height: 1.15;
	text-transform: none;
	color: var(--band-ink);
	margin: 0 0 8px;
}
.pgao-detail {
	font-size: 16px;
	line-height: 1.5;
	color: var(--band-soft);
	max-width: 62ch;
}

/* Rail: Ordered, Paid, Shipped, Delivered. A dot per stop, a line to the next one. */
.pgao .pgao-rail {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	max-width: 520px;
	margin: 22px 0 0;
	padding: 0;
}
.pgao-rail li {
	position: relative;
	padding: 22px 12px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--band-soft);
}
.pgao-rail li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border: 2px solid var(--rail-off);
	border-radius: 50%;
}
.pgao-rail li::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 16px;
	right: 4px;
	height: 2px;
	background: var(--rail-off);
}
.pgao-rail li:last-child::after {
	display: none;
}
.pgao-rail li.pgao-done {
	color: var(--band-ink);
}
.pgao-rail li.pgao-done::before {
	background: var(--rail-on);
	border-color: var(--rail-on);
}
.pgao-rail li.pgao-done:not(.pgao-here)::after {
	background: var(--rail-on);
}
.pgao-rail li.pgao-here {
	font-family: "Gilroy-Bold", sans-serif;
}
/* In transit: the stretch between Shipped and Delivered moves. */
.pgao-rail-moving li.pgao-here::after {
	background: repeating-linear-gradient(90deg, var(--rail-on) 0 8px, transparent 8px 16px);
	background-size: 16px 2px;
	animation: pgao-travel 0.9s linear infinite;
}
@keyframes pgao-travel {
	to {
		background-position: 16px 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pgao-rail-moving li.pgao-here::after {
		animation: none;
	}
}

/* Body: the action on the left, what is in the order on the right. */
.pgao-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pgao-action,
.pgao-contents {
	padding: 20px 24px;
}
.pgao-action + .pgao-contents {
	border-left: 1px solid var(--pgao-line);
}
.pgao-body > :only-child,
.pgao-action-wide,
.pgao-action-wide + .pgao-contents {
	grid-column: 1 / -1;
}
.pgao-action-wide + .pgao-contents {
	border-left: 0;
	border-top: 1px solid var(--pgao-line);
}
.pgao-action-wide .pgg-payment-section {
	margin-bottom: 0;
}
.pgao-label {
	font-size: 14px;
	line-height: 1.4;
	color: var(--pgao-soft);
	margin: 0 0 4px;
}
.pgao .pgao-number {
	display: block;
	font-family: "Gilroy-Medium", sans-serif;
	font-size: 22px;
	line-height: 1.35;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
	color: var(--pgao-ink);
	margin: 0 0 16px;
}
.pgao a.pgao-number {
	text-decoration: underline !important;
	text-decoration-color: var(--pgao-mint) !important;
	text-decoration-thickness: 3px !important;
	text-underline-offset: 6px;
}
.pgao a.pgao-number:hover {
	text-decoration-color: var(--pgao-ink) !important;
}
.pgao a.pgao-btn,
.pgao-empty + a.pgao-btn {
	display: inline-block;
	background: var(--pgao-mint);
	color: #073a32;
	font-family: "Gilroy-Medium", sans-serif;
	font-size: 17px;
	line-height: 1.2;
	padding: 14px 28px;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}
.pgao a.pgao-btn:hover {
	background: #7eeee5;
}
.pgao a:focus-visible {
	outline: 3px solid var(--pgao-ink);
	outline-offset: 3px;
}

.pgao .pgao-items {
	margin: 0 0 12px;
	padding: 0;
}
.pgao-items li {
	font-size: 16px;
	line-height: 1.45;
	padding: 3px 0;
	color: var(--pgao-ink);
}
.pgao-qty {
	display: inline-block;
	min-width: 2.3em;
	color: var(--pgao-soft);
}
.pgao-free {
	display: inline-block;
	font-size: 13px;
	line-height: 1.5;
	background: var(--pgao-mint);
	border-radius: 999px;
	padding: 0 9px;
	margin-left: 6px;
}
.pgao-total {
	display: flex;
	justify-content: space-between;
	font-family: "Gilroy-Medium", sans-serif;
	font-size: 17px;
	border-top: 1px solid var(--pgao-line);
	padding-top: 10px;
	margin: 0 0 8px;
}
.pgao-to {
	font-size: 14px;
	line-height: 1.5;
	color: var(--pgao-soft);
	margin: 0 0 10px;
}
.pgao-to span {
	font-family: "Gilroy-Medium", sans-serif;
	color: var(--pgao-ink);
	margin-right: 6px;
}
.pgao a.pgao-more {
	font-size: 15px;
}

@media (max-width: 767px) {
	.pgao-hello {
		margin-bottom: 16px;
	}
	.pgao-hello p.pgao-hello-name {
		font-size: 26px;
	}
	.pgao-band {
		padding: 16px 16px 18px;
	}
	.pgao .pgao-headline {
		font-size: 24px;
	}
	.pgao-detail {
		font-size: 15px;
	}
	.pgao-body {
		grid-template-columns: minmax(0, 1fr);
	}
	.pgao-action,
	.pgao-contents {
		padding: 16px;
	}
	.pgao-action + .pgao-contents {
		border-left: 0;
		border-top: 1px solid var(--pgao-line);
	}
	.pgao .pgao-number {
		font-size: 19px;
	}
	.pgao a.pgao-btn {
		display: block;
		text-align: center;
	}

	/* Account menu: one row that scrolls sideways, so the page's content starts on the first screen. The
	   long prefix outranks the parent theme's own menu rules (.hentry .entry-content …), which load after this file. */
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		border: 0;
		padding: 2px 15px 12px;
		margin: 0 -15px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link {
		flex: none;
		border: 0;
		padding: 0;
		margin: 0;
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a {
		display: block;
		font-size: 15px;
		line-height: 1.2;
		white-space: nowrap;
		padding: 11px 16px;
		border: 1px solid #cfdedb;
		border-radius: 999px;
		background-color: #fff;
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--spin-wheel a {
		border-color: rgba(201, 153, 46, 0.55);
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a::before {
		display: none !important;
	}
	.woocommerce-account .hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active a {
		background: #0a463e;
		border-color: #0a463e;
		color: #fff !important;
	}
}
