/**
 * Paid Activities — booking modal tab styles.
 * Flexbox + media queries native to the WP Travel Engine ecosystem.
 */

.wpte-paid-act-tab {
	display: flex;
	flex-direction: column;
	gap: 16px;
	-webkit-font-smoothing: antialiased;
	/* Prices recompute live as travelers/quantities change — tabular figures
	   keep the digit width constant so the surrounding layout doesn't jitter. */
	font-variant-numeric: tabular-nums;
}

/* Wraps the day pills + Reset button on one row — pills take the
   available space, Reset stays a fixed-size sibling on the end. */
.wpte-paid-act-filter-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}

.wpte-paid-act-day-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}

.wpte-paid-act-reset-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	font-size: clamp(0.56rem, calc(0.494rem + 0.341vw), 0.75rem);
	font-weight: 600;
	color: #29ad57;
	background: transparent;
	border: 1px solid #29ad57;
	border-radius: 999px;
	cursor: pointer;
	transition-property: background-color, color, scale;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

.wpte-paid-act-reset-btn:hover {
	background: rgba( 41, 173, 87, 0.12 );
}

.wpte-paid-act-reset-btn:active {
	scale: 0.96;
}

.wpte-paid-act-day-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	font-size: clamp(0.56rem, calc(0.494rem + 0.341vw), 0.75rem);
	font-weight: 600;
	color: #566267;
	background: #f7f9fa;
	border: 1px solid #e6eaec;
	border-radius: 999px;
	cursor: pointer;
	transition-property: border-color, background-color, color, scale;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

.wpte-paid-act-day-pill:hover {
	border-color: #29ad57;
}

.wpte-paid-act-day-pill:active {
	scale: 0.96;
}

.wpte-paid-act-day-pill.is-active {
	color: #29ad57;
	background: rgba( 41, 173, 87, 0.12 );
	border-color: #29ad57;
}

/* Groups the filter-toggle and Reset buttons as one fixed-size sibling of
   the day pills, matching the pills/Reset row's existing flex layout. */
.wpte-paid-act-filter-actions {
	display: flex;
	flex-shrink: 0;
	align-items: flex-start;
}

.wpte-paid-act-filter-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	color: #566267;
	background: #f7f9fa;
	border: 1px solid #e6eaec;
	border-radius: 999px;
	cursor: pointer;
	transition-property: border-color, background-color, color, scale;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

.wpte-paid-act-filter-toggle-btn:hover {
	border-color: #29ad57;
}

.wpte-paid-act-filter-toggle-btn:active {
	scale: 0.96;
}

.wpte-paid-act-filter-toggle-btn.is-active {
	color: #29ad57;
	background: rgba( 41, 173, 87, 0.12 );
	border-color: #29ad57;
}

/* Advanced filter panel — a card-like container below the pills/Reset row,
   one section per filter group. */
.wpte-paid-act-filter-panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	padding: 16px;
	background: #f7f9fa;
	border: 1px solid #e6eaec;
	border-radius: 12px;
}

.wpte-paid-act-filter-group__title {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #0f1d23;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wpte-paid-act-filter-checkbox-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.wpte-paid-act-filter-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #566267;
	cursor: pointer;
}

.wpte-paid-act-filter-checkbox input[type="checkbox"] {
	accent-color: #29ad57;
	cursor: pointer;
}

/* Dual-handle range slider: two native range inputs stacked on the same
   pill-shaped track via absolute positioning — only their thumbs are
   interactive (the transparent track layer would otherwise block the one
   underneath). The pill's own background is the "unselected" track; the
   __fill div below renders the selected low-high segment on top of it. */
.wpte-paid-act-range-slider {
	position: relative;
	height: 15px;
	border-radius: 99px;
	margin: 4px 0 14px 0;
	background: rgb( 41 173 87 / 12% );
}

/* Selected-range fill — same green as the thumbs (accent-color below), so
   it reads as "belonging" to the marker, while contrasting clearly against
   the lighter 12%-opacity pill background it sits on. Position/width are
   set inline per-render from the current [low, high] values. */
.wpte-paid-act-range-slider__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 99px;
	background: #29ad57;
}

.wpte-paid-act-range-slider input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 15px;
	margin: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
	accent-color: #29ad57;
}

/* Neutralize the browser's own native track-fill rendering — without this,
   each overlaid range input paints its own accent-color fill from the left
   edge to its own thumb, doubling up with (and fighting) the custom
   __fill div above. Height is pinned to match the pill wrapper so the
   thumb below has a known, consistent track box to center against. */
.wpte-paid-act-range-slider input[type="range"]::-webkit-slider-runnable-track {
	background: transparent;
	height: 15px;
}

.wpte-paid-act-range-slider input[type="range"]::-moz-range-track {
	background: transparent;
	height: 15px;
}

/* Explicitly styled (not left to accent-color, which would render the same
   solid green as the __fill bar behind it and make the thumb disappear) —
   a white disc on a green ring reads clearly against both the pale track
   and the solid fill. margin-top is WebKit's manual thumb-centering offset:
   (15px track − 18px thumb) / 2; Firefox centers ::-moz-range-thumb on its
   own and needs no equivalent. */
.wpte-paid-act-range-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #29ad57;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
	cursor: pointer;
	margin-top: -1.5px;
}

.wpte-paid-act-range-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #29ad57;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.25 );
	cursor: pointer;
}

.wpte-paid-act-range-slider__labels {
	position: relative;
	top: 16px;
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: #566267;
}

.wpte-paid-act-sort-toggle {
	display: flex;
	gap: 8px;
}

.wpte-paid-act-sort-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	font-size: 12px;
	font-weight: 600;
	color: #566267;
	background: #ffffff;
	border: 1px solid #e6eaec;
	border-radius: 999px;
	cursor: pointer;
	transition-property: border-color, background-color, color;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

.wpte-paid-act-sort-btn:hover {
	border-color: #29ad57;
}

.wpte-paid-act-sort-btn.is-active {
	color: #29ad57;
	background: rgba( 41, 173, 87, 0.12 );
	border-color: #29ad57;
}

/* Admin-configurable tab-level title, shown at the top of the tab's own
   content, above the instructions/day-pills/activity list. */
.wpte-paid-act-tab-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f1d23;
}

.wpte-paid-act-instructions {
	margin: 0;
	font-size: 13px;
	color: #566267;
	text-wrap: pretty;
	width: 100%;
}

.wpte-paid-act-empty {
	color: #566267;
	font-size: 14px;
}

/* Shown while no option is selected yet — the step requires at least one
   (a Free & Easy / inclusive option counts) before Continue unlocks. */
.wpte-paid-act-required-notice {
	margin: 0;
	padding: 10px 14px;
	font-size: 13px;
	color: #8a6d1f;
	background: rgba( 234, 179, 8, 0.1 );
	border: 1px solid rgba( 234, 179, 8, 0.3 );
	border-radius: 8px;
}

/* Visual fallback for WTE's own "Continue" button while this plugin has
   disabled it (see the ActivitiesTab required-selection effect in
   public.js) — some themes don't otherwise style a plain :disabled button
   distinctly. */
.wte-process-btn-next.wpte-paid-act-btn-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.wpte-paid-act-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 9px;
	margin-bottom: 10px;
	width: 100%;
}

.wpte-paid-act-card {
	position: relative;
	width: 49%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 10px;
	cursor: pointer;
	user-select: none;
	/* Shadow-as-border: adapts to any background, unlike a flat border color. */
	box-shadow:
		0px 0px 0px 1px rgba( 0, 0, 0, 0.06 ),
		0px 1px 2px -1px rgba( 0, 0, 0, 0.06 ),
		0px 2px 4px 0px rgba( 0, 0, 0, 0.04 );
	transition-property: box-shadow, background-color, scale;
	transition-duration: 0.2s;
	transition-timing-function: ease-out;
}

@media (max-width: 549px) {
	.wpte-paid-act-card {
		width: 100%;
	}
}

.wpte-paid-act-card:hover {
	box-shadow:
		0px 0px 0px 1px rgba( 41, 173, 87, 0.35 ),
		0px 4px 14px rgba( 26, 43, 51, 0.08 );
}

.wpte-paid-act-card:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 41, 173, 87, 0.25 );
}

.wpte-paid-act-card:active {
	scale: 0.96;
}

.wpte-paid-act-card.is-selected {
	box-shadow: 0 0 0 2px #29ad57;
	background: rgb( 41 173 87 / .08 );
}

/* Recommended ribbon — mirrors the Accommodation extension's badge exactly
   (same palette/shape) so "Recommended" reads identically across plugins. */
.wpte-paid-act-recommended {
	display: inline-flex;
	align-self: flex-start;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
	background: #16a34a;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba( 22, 101, 52, 0.25 );
}

/* HEAD block sits at the very top — title + (inclusive pill) + badges */
.wpte-paid-act-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	/* Leave room above the title for the day badge (top-left) and the
	   checkmark (top-right) — both float above this block rather than
	   squeezing it horizontally. */
	padding-top: 30px;
	min-height: 28px;
}

.wpte-paid-act-head .wpte-paid-act-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f1d23;
	text-wrap: balance;
}

/* Round checkbox↔checkmark badge, always rendered — an empty outlined circle
   at rest, morphing smoothly into the filled green checkmark (matching the
   selected border color #29ad57) via CSS transition when `.is-checked` is
   toggled, rather than mounting/unmounting the element (which only allowed a
   one-shot pop-in, never a reverse/uncheck animation). Pinned top-right; the
   Day badge occupies top-left so the two never collide. */
.wpte-paid-act-checkmark {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: transparent;
	border: 2px solid #c7d0d4;
	border-radius: 50%;
	box-shadow: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpte-paid-act-checkmark.is-checked {
	background: #29ad57;
	border-color: #29ad57;
	box-shadow: 0 2px 6px rgba( 22, 101, 52, 0.25 );
}

.wpte-paid-act-checkmark::after {
	content: '';
	width: 10px;
	height: 10px;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 13 9.5 18.5 20 6'/%3E%3C/svg%3E" );
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	scale: 0.5;
	transition: opacity 0.2s ease, scale 0.2s cubic-bezier( 0.2, 0, 0, 1 );
}

.wpte-paid-act-checkmark.is-checked::after {
	opacity: 1;
	scale: 1;
}

/* Day badge — pinned to the top-left of the card */
.wpte-paid-act-card__day {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	background: #1a2b33;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba( 26, 43, 51, 0.18 );
}

/* "Included in Package" pill, mirrors the Transportation tab style */
.wpte-paid-act-included {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #29ad57;
	background: rgba( 41, 173, 87, 0.12 );
	border-radius: 999px;
}

/* "Free & Easy" pill — a dedicated flag distinct from "Included in Package";
   a different color (blue, vs. the green used for Included/Recommended)
   keeps the two visually distinct, since Free & Easy carries a stronger
   behavior (same-day exclusive with every other option) than a plain
   inclusive add-on. */
.wpte-paid-act-free-easy {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #2563eb;
	background: rgba( 37, 99, 235, 0.1 );
	border-radius: 999px;
}

/* "Paid Add-on" pill — a third, independent labelling flag; amber to stay
   visually distinct from the green (Included) and blue (Free & Easy) pills. */
.wpte-paid-act-paid-addon {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #d97706;
	background: rgba( 217, 119, 6, 0.1 );
	border-radius: 999px;
}

.wpte-paid-act-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wpte-paid-act-gallery__item {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	overflow: hidden;
	cursor: zoom-in;
	/* On the container (not the img) so it stays put while the image
	   zooms on hover, instead of scaling along with it. */
	outline: 1px solid rgba( 0, 0, 0, 0.1 );
	outline-offset: -1px;
}

.wpte-paid-act-gallery__item img,
.wpte-paid-act-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.25s ease;
}

.wpte-paid-act-gallery__item:hover img {
	transform: scale( 1.05 );
}

.wpte-paid-act-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpte-paid-act-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	font-size: 12px;
	color: #29ad57;
	background-color: rgba( 41, 173, 87, 0.08 );
	border-radius: 50px;
}

.wpte-paid-act-badge__icon {
	display: inline-flex;
	align-items: center;
}

.wpte-paid-act-desc {
	position: relative;
	font-size: 14px;
	line-height: 1.6;
	color: #566267;
	max-height: 4.8em;
	overflow: hidden;
	transition: max-height 0.35s ease;
	text-wrap: pretty;
}

.wpte-paid-act-desc.is-expanded {
	max-height: 200em;
}

/* Fade-out overlay — only rendered once JS confirms the description
   actually exceeds the 3-line clamp (`.is-truncatable`, set in public.js
   from a real scrollHeight/clientHeight measurement), so short descriptions
   that already fit never show a stray fade with nothing left to reveal. */
.wpte-paid-act-desc.is-truncatable:not( .is-expanded )::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2em;
	background: linear-gradient( rgba( 255, 255, 255, 0 ), #fff );
	pointer-events: none;
}

/* A selected card's own background is a light green tint (see
   `.wpte-paid-act-card.is-selected`), not plain white — fade to that same
   tint instead of white so the overlay blends with the card instead of
   showing as a mismatched white patch over it. */
.wpte-paid-act-card.is-selected .wpte-paid-act-desc.is-truncatable:not( .is-expanded )::after {
	background: linear-gradient( rgba( 41, 173, 87, 0 ), rgb( 41 173 87 / 0.08 ) );
}

.wpte-paid-act-readmore {
	align-self: flex-start;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: #29ad57;
	background: none;
	border: 0;
	cursor: pointer;
}

.wpte-paid-act-readmore:hover {
	text-decoration: underline;
}

.wpte-paid-act-breakdown {
	padding: 12px;
	border-radius: 8px;
}

.wpte-paid-act-breakdown__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: #1a2b33;
	cursor: pointer;
	user-select: none;
	/* Minimum 40x40px hit area even though the visible row is shorter. */
	min-height: 40px;
}

.wpte-paid-act-breakdown__head:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 41, 173, 87, 0.25 );
	border-radius: 4px;
}

.wpte-paid-act-chevron {
	transition: transform 0.2s ease;
	color: #566267;
}

.wpte-paid-act-chevron.is-open {
	transform: rotate( 180deg );
}

/* `grid-template-rows: 0fr -> 1fr` animates to the content's natural
   height without any JS measurement — an interruptible CSS transition
   (can be reversed mid-animation), unlike the previous mount/unmount which
   had nothing to transition and just snapped open/closed. `visibility` is
   toggled with a transition-delay so the collapsed content leaves the tab
   order and can't be interacted with, same as the old unmount behavior. */
.wpte-paid-act-breakdown__rows-wrapper {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 250ms ease, visibility 0s linear 250ms;
}

.wpte-paid-act-breakdown.is-open .wpte-paid-act-breakdown__rows-wrapper {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 250ms ease, visibility 0s linear 0s;
}

.wpte-paid-act-breakdown__rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	overflow: hidden;
	min-height: 0;
}

.wpte-paid-act-line {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #566267;
}

.wpte-paid-act-line--total {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid #e1e6e8;
	font-weight: 600;
	color: #1a2b33;
}

@media ( max-width: 549px ) {
	.wpte-paid-act-gallery {
		flex-wrap: nowrap;
	}
}

/* Sidebar add-on summary (rendered into #wte-booking-es-summary-content) */
.wpte-paid-act-summary {
	margin-top: 16px;
}

.wpte-paid-act-summary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Groups the selected activities by day — shown as its own line directly
   above the first activity of that day (see renderSidebar() in public.js),
   rather than one combined "Selected day(s)" summary line. */
.wpte-paid-act-summary__day-label {
	margin: 0;
	font-size: clamp(0.75rem, calc(0.682rem + 0.341vw), 0.94rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #29ad57;
}

.wpte-paid-act-summary li.wpte-paid-act-summary__day-label:first-child {
	margin-top: 0;
}

.wpte-paid-act-summary__activity {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	border-top: 1px dashed #e1e6e8;
}

.wpte-paid-act-summary__activity:first-child {
	border-top: 0;
	margin-top: 0;
	padding-top: 0;
}

.wpte-paid-act-summary__activity > label {
	flex: 1;
	font-size: 13px;
	line-height: 1.35;
	color: #1a2b33;
}

/* Matches Accommodation's and Transportation's sidebar treatment exactly
   (same font-style/weight/color/size) so "Included in Package" looks
   identical everywhere in the sidebar — this rule was simply missing here,
   which is why inclusive activities rendered in the browser's default
   italic instead of the shared green style. */
.wpte-paid-act-summary__activity .amount-figure em {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	color: #29ad57;
}

.wpte-paid-act-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 2px 0 2px 12px;
}

.wpte-paid-act-summary__line .qty {
	font-size: 12px;
	color: #566267;
}

.wpte-paid-act-summary__line .amount-figure {
	font-size: 12px;
	color: #1a2b33;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.wpte-paid-act-summary__activity .amount-figure {
	font-variant-numeric: tabular-nums;
}

/**
 * WPTE trip booking modal — step nav polish (finished-step checkmark, muted
 * finished underline, clearer active-step focus). Targets WPTE core's own
 * `.wte-process-nav-item` markup, not this plugin's own — shipped
 * identically in all three addon plugins (redundant but harmless) so it
 * applies regardless of which subset of the three is active, matching the
 * pattern already used for the mobile scroll-to-top fix.
 *
 * `!important` on `border-bottom-color` specifically: confirmed via
 * DevTools that WPTE's own React component sets `border-bottom` as a
 * PER-ITEM INLINE style, which otherwise overrides any plain class-based
 * rule regardless of selector specificity.
 */
.wte-process-nav-list .wte-process-nav-item.finish {
	position: relative;
}

.wte-process-nav-list .wte-process-nav-item.finish::after {
	content: '';
	position: absolute;
	top: 6px;
	right: 10px;
	width: 18px;
	height: 18px;
	background-color: #29ad57;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 13 9.5 18.5 20 6'/%3E%3C/svg%3E" );
	background-size: 10px 10px;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba( 22, 101, 52, 0.25 );
}

/* Step-number badge: numbers each nav item 1..N in DOM order via a CSS
   counter, so it stays correct regardless of which addon plugins are active.
   A `display:none` legacy template also contains `.wte-process-nav-item`
   markup, but counters never count elements inside a display:none subtree,
   so only the live, visible nav is ever numbered. Shown opposite the
   `.finish` checkmark (top-left vs top-right) so the two never collide;
   `:not(.finish)` means a completed step shows its checkmark instead. */
.wte-process-nav-list {
	counter-reset: wpte-step;
}

.wte-process-nav-list .wte-process-nav-item {
	counter-increment: wpte-step;
}

.wte-process-nav-list .wte-process-nav-item:not(.finish)::before {
	content: counter( wpte-step );
	position: absolute;
	top: 6px;
	left: 10px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e9edf0;
	color: #6e797e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
}

/* Muted underline on finished steps — a plain rgba fallback for browsers
   without color-mix() support, overridden by the theme-aware version below
   wherever it's understood, so finished steps read as "done" without
   competing with the current active step. */
.wte-process-nav-list .wte-process-nav-item.finish {
	border-bottom-color: rgba( 41, 173, 87, 0.35 ) !important;
}

.wte-process-nav-list .wte-process-nav-item.finish {
	border-bottom-color: color-mix( in srgb, var( --wpte-primary-color, var( --primary-color ) ) 35%, transparent ) !important;
}

/* Clearer focus on the current step: full-strength underline, a subtle
   tinted background, and a bolder label. */
.wte-process-nav-list .wte-process-nav-item.active {
	border-bottom-color: var( --wpte-primary-color, var( --primary-color ) ) !important;
	background-color: rgba( 41, 173, 87, 0.08 );
	background-color: color-mix( in srgb, var( --wpte-primary-color, var( --primary-color ) ) 8%, transparent );
	border-radius: 8px 8px 0 0;
}

.wte-process-nav-list .wte-process-nav-item.active a {
	font-weight: 700;
}

/* Admin-uploaded custom tab icon: size it exactly like WPTE's own native
   `.wte-icon svg { width:1em; height:1em }` rule so it shares the same
   font-size-relative sizing convention — a fixed-pixel <img> otherwise looks
   inconsistent next to the native icons and gets squeezed toward invisible
   once the flex nav row runs out of room on narrow viewports. */
.wte-icon .wpte-tab-icon-img {
	width: 1em;
	height: 1em;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
}
