/* ProWP Car — shared accessible carousel skin.
 *
 * The plugin sections keep their own skin in sections.css. This file styles the
 * shared region wrapper that adopts plain horizontal card lists (for example the
 * theme service list) into the one shared carousel: scroll-snap track, prev/next
 * arrows, dot pagination, keyboard focus rings and reduced-motion safety.
 *
 * Control skin (2026-11-21): small round arrow buttons with a visible SVG
 * chevron, 8px pill dots with a 44px invisible hit area, and a peek of the
 * next card so the swipe affordance is obvious on phones.
 *
 * Theme-aware token fallbacks ensure full light AND dark parity even outside
 * `.pwc-sec` containers.
 */

.pwc-shared-region {
	position: relative;
}

/* —— Controls —— */
.pwc-sec-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin-block-start: 1.25rem;
}

.pwc-sec-carousel-nav[hidden] {
	display: none;
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn,
.pwc-sec-carousel-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	min-inline-size: 2.75rem;
	min-block-size: 2.75rem;
	padding: 0;
	margin: 0;
	border-radius: 999px;
	border: 1px solid var(--on-limo-outline, var(--pwc-border, var(--s-ln, rgba(40, 37, 38, 0.22))));
	background: var(--on-limo-elevated, var(--pwc-card, var(--s-card, #ffffff)));
	color: var(--on-limo-on-surface, var(--pwc-fg, var(--s-fg, #282425)));
	box-shadow: var(--on-limo-shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.06));
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn[hidden],
.pwc-sec-carousel-btn[hidden] {
	display: none;
}

.pwc-sec-carousel-btn svg {
	display: block;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	flex: 0 0 auto;
	stroke: currentColor;
	fill: none;
}

[dir="rtl"] .pwc-sec-carousel-btn .pwc-sec-ico--dir {
	transform: scaleX(-1);
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn:hover,
.pwc-sec-carousel-btn:hover {
	border-color: var(--on-limo-accent-text, var(--pwc-accent-text, var(--s-acct, #d71926)));
	color: var(--on-limo-accent-text, var(--pwc-accent-text, var(--s-acct, #d71926)));
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn:focus-visible,
.pwc-sec-carousel-btn:focus-visible {
	outline: 2px solid var(--on-limo-focus, var(--pwc-accent-text, var(--s-acct, #d71926)));
	outline-offset: 2px;
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn[aria-disabled="true"],
body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn:disabled,
.pwc-sec-carousel-btn[aria-disabled="true"],
.pwc-sec-carousel-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

/* —— Dots: 8px pills, active one wider and in the brand red —— */
.pwc-sec-carousel-dots {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.pwc-sec-carousel-dots[hidden] {
	display: none;
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-dot,
.pwc-sec-carousel-dot {
	position: relative;
	box-sizing: content-box;
	inline-size: 0.5rem;
	block-size: 0.5rem;
	min-inline-size: 0;
	min-block-size: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--on-limo-muted, var(--pwc-muted, var(--s-mut, #6f6869))) 55%, transparent);
	box-shadow: none;
	cursor: pointer;
	transition: inline-size 0.18s ease, background-color 0.18s ease;
}

/* Invisible 44px tall touch target around the 8px pill. */
.pwc-sec-carousel-dot::after {
	content: "";
	position: absolute;
	inset: -18px -10px;
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-dot[aria-current="true"],
.pwc-sec-carousel-dot[aria-current="true"] {
	inline-size: 1.5rem;
	background: var(--on-limo-primary, var(--pwc-accent, var(--s-acc, #d71926)));
}

body .pwc-sec-carousel-nav button.pwc-sec-carousel-dot:focus-visible,
.pwc-sec-carousel-dot:focus-visible {
	outline: 2px solid var(--on-limo-focus, var(--pwc-accent-text, var(--s-acct, #d71926)));
	outline-offset: 2px;
}

/* —— Swipe hint (shown on mobile carousels) —— */
.pwc-sec-carousel-hint {
	margin: 0.5rem 0 0;
	color: var(--on-limo-muted, var(--pwc-muted, var(--s-mut, #6f6869)));
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}

.pwc-sec-carousel-hint[hidden] {
	display: none;
}

/* Adopted service list: full-width centered slide inside container padding. */
body .pwc-shared-region .on-limo-services {
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

body .pwc-shared-region .on-limo-services > * {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: normal;
}

body .pwc-shared-region .on-limo-services > *:not(:only-child) {
	flex-basis: 100%;
}

body .pwc-shared-region .on-limo-services::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	background: transparent !important;
}

@media (max-width: 47.99rem) {
	.pwc-sec-carousel-nav {
		margin-block-start: 0.875rem;
	}

	.pwc-sec-carousel-hint {
		font-size: 0.75rem;
		opacity: 0.78;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .pwc-sec-carousel-nav button.pwc-sec-carousel-btn,
	body .pwc-sec-carousel-nav button.pwc-sec-carousel-dot,
	.pwc-sec-carousel-btn,
	.pwc-sec-carousel-dot {
		transition: none;
	}
}
