/**
 * RelyWP Wishlists - wishlist page, shared view and My Account dashboard.
 *
 * Everything is scoped under .swlp-ui. Colours follow --swlp-primary and
 * --swlp-secondary (printed on :root from the Styling settings); the derived
 * accents are re-declared here so they follow those values. Card radius comes
 * from --swlp-card-radius and button radius from --swlp-button-radius.
 */

/* =========================================================================
 * Tokens
 * ====================================================================== */
.swlp-ui {
	--swlp-p: var( --swlp-primary, #e0435f );
	--swlp-s: var( --swlp-secondary, #a8243f );
	--swlp-gradient: linear-gradient( 135deg, var( --swlp-p ) 0%, var( --swlp-s ) 100% );
	--swlp-tint: #fdeef1;
	--swlp-tint-border: #f6c3cd;
	--swlp-icon-bg: #fdeef1;
	--swlp-ring: rgba( 224, 67, 95, 0.22 );
	--swlp-glow: rgba( 224, 67, 95, 0.18 );
	--swlp-ink: #2c3e50;
	--swlp-text: #495057;
	--swlp-muted: #6b7280;
	--swlp-faint: #9ca3af;
	--swlp-line: #e9ecef;
	--swlp-line-soft: #f3f4f6;
	--swlp-surface: #f8f9fa;
	--swlp-success: #1a7f37;
	--swlp-danger: #d92d20;
	--swlp-radius: var( --swlp-card-radius, 12px );
	--swlp-radius-sm: 8px;
	--swlp-btn-radius: var( --swlp-button-radius, 8px );
	--swlp-shadow: 0 2px 10px rgba( 15, 23, 42, 0.05 );
	--swlp-shadow-hover: 0 12px 28px rgba( 15, 23, 42, 0.1 );
	color: var( --swlp-text );
	line-height: 1.5;
}

/* Derived accents follow the configured colours where color-mix() exists;
 * older browsers keep the solid rose fallbacks above. */
@supports ( color: color-mix( in srgb, red 50%, white ) ) {
	.swlp-ui {
		--swlp-tint: color-mix( in srgb, var( --swlp-p ) 8%, #fff );
		--swlp-tint-border: color-mix( in srgb, var( --swlp-p ) 30%, #fff );
		--swlp-icon-bg: linear-gradient( 135deg, color-mix( in srgb, var( --swlp-p ) 14%, #fff ) 0%, color-mix( in srgb, var( --swlp-s ) 14%, #fff ) 100% );
		--swlp-ring: color-mix( in srgb, var( --swlp-p ) 22%, transparent );
		--swlp-glow: color-mix( in srgb, var( --swlp-p ) 18%, transparent );
	}
}

.swlp-ui,
.swlp-ui *,
.swlp-ui *::before,
.swlp-ui *::after {
	box-sizing: border-box;
}

.swlp-ui .swlp-icon {
	width: 18px;
	height: 18px;
	flex: none;
	vertical-align: middle;
}

.swlp-ui a:focus-visible,
.swlp-ui button:focus-visible,
.swlp-ui input:focus-visible,
.swlp-ui select:focus-visible,
.swlp-ui [tabindex]:focus-visible {
	outline: 2px solid var( --swlp-p );
	outline-offset: 2px;
}

/* =========================================================================
 * Buttons
 * ====================================================================== */
.swlp-ui .swlp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: var( --swlp-btn-radius );
	background: none;
	color: var( --swlp-ink );
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-btn--primary {
	background: var( --swlp-gradient );
	color: #fff;
	box-shadow: 0 4px 12px var( --swlp-glow );
}

.swlp-ui .swlp-btn--primary:hover,
.swlp-ui .swlp-btn--primary:focus {
	color: #fff;
	box-shadow: 0 6px 18px var( --swlp-glow );
}

.swlp-ui .swlp-btn--primary.is-added {
	background: var( --swlp-success );
}

.swlp-ui .swlp-btn--outline {
	background: #fff;
	border-color: var( --swlp-line );
	color: var( --swlp-ink );
}

.swlp-ui .swlp-btn--outline:hover,
.swlp-ui .swlp-btn--outline:focus {
	border-color: var( --swlp-p );
	color: var( --swlp-p );
}

.swlp-ui .swlp-btn--soft {
	background: var( --swlp-tint );
	border-color: var( --swlp-tint-border );
	color: var( --swlp-s );
}

.swlp-ui .swlp-btn--soft:hover {
	border-color: var( --swlp-p );
}

.swlp-ui .swlp-btn--ghost-danger {
	background: transparent;
	border-color: #f5c2bd;
	color: var( --swlp-danger );
}

.swlp-ui .swlp-btn--ghost-danger:hover {
	background: #fef3f2;
}

.swlp-ui .swlp-btn--danger {
	background: var( --swlp-danger );
	color: #fff;
}

.swlp-ui .swlp-btn--danger:hover,
.swlp-ui .swlp-btn--danger:focus {
	background: #b42318;
	color: #fff;
}

.swlp-ui .swlp-btn--small {
	min-height: 36px;
	padding: 6px 12px;
	font-size: 14px;
}

.swlp-ui .swlp-btn--small .swlp-icon {
	width: 16px;
	height: 16px;
}

.swlp-ui .swlp-btn--large {
	min-height: 48px;
	padding: 12px 24px;
	font-size: 16px;
}

.swlp-ui .swlp-btn:disabled,
.swlp-ui .swlp-btn--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.swlp-ui .swlp-btn--disabled {
	background: var( --swlp-surface );
	border-color: var( --swlp-line );
	color: var( --swlp-muted );
	opacity: 1;
}

.swlp-ui .swlp-btn.is-busy {
	cursor: progress;
	opacity: 0.75;
}

.swlp-ui .swlp-btn.is-busy::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
}

.swlp-ui .swlp-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid var( --swlp-line );
	border-radius: var( --swlp-btn-radius );
	background: #fff;
	color: var( --swlp-muted );
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-icon-btn:hover,
.swlp-ui .swlp-icon-btn:focus {
	border-color: #f5c2bd;
	background: #fef3f2;
	color: var( --swlp-danger );
}

.swlp-ui .swlp-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var( --swlp-muted );
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-link-btn:hover,
.swlp-ui .swlp-link-btn:focus {
	background: none;
	color: var( --swlp-p );
}

.swlp-ui .swlp-link-btn .swlp-icon {
	width: 14px;
	height: 14px;
}

/* =========================================================================
 * Hero (gradient band with glass stat cards)
 * ====================================================================== */
.swlp-ui .swlp-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 0 0 24px;
	padding: 30px;
	overflow: hidden;
	border-radius: var( --swlp-radius );
	background: var( --swlp-gradient );
	color: #fff;
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.12 );
}

.swlp-ui .swlp-hero::before,
.swlp-ui .swlp-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: radial-gradient( circle, rgba( 255, 255, 255, 0.2 ) 0%, rgba( 255, 255, 255, 0 ) 70% );
	pointer-events: none;
}

.swlp-ui .swlp-hero::before {
	top: -90px;
	inset-inline-end: -70px;
	width: 280px;
	height: 280px;
}

.swlp-ui .swlp-hero::after {
	bottom: -120px;
	inset-inline-start: 30%;
	width: 220px;
	height: 220px;
	opacity: 0.6;
}

.swlp-ui .swlp-hero--solid {
	background: var( --swlp-p );
}

.swlp-ui .swlp-hero-intro {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.swlp-ui .swlp-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border: 1px solid rgba( 255, 255, 255, 0.28 );
	border-radius: 14px;
	background: rgba( 255, 255, 255, 0.18 );
	color: #fff;
}

.swlp-ui .swlp-hero-icon .swlp-icon {
	width: 26px;
	height: 26px;
	fill: rgba( 255, 255, 255, 0.25 );
}

.swlp-ui .swlp-hero-text {
	min-width: 0;
}

.swlp-ui .swlp-hero-title {
	margin: 0 0 4px;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	word-break: break-word;
}

.swlp-ui .swlp-hero-subtitle {
	margin: 0;
	color: #fff;
	font-size: 15px;
	opacity: 0.9;
}

.swlp-ui .swlp-hero-eyebrow {
	margin: 0 0 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.swlp-ui .swlp-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 8px 0 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.9;
}

.swlp-ui .swlp-hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.swlp-ui .swlp-hero-meta .swlp-icon {
	width: 15px;
	height: 15px;
}

.swlp-ui .swlp-hero-stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) );
	gap: 16px;
}

.swlp-ui .swlp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 18px;
	border: 1px solid rgba( 255, 255, 255, 0.22 );
	border-radius: calc( var( --swlp-radius ) - 2px );
	background: rgba( 255, 255, 255, 0.15 );
	text-align: center;
	-webkit-backdrop-filter: blur( 10px );
	backdrop-filter: blur( 10px );
}

.swlp-ui .swlp-stat-number {
	display: block;
	margin: 0 0 6px;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.swlp-ui .swlp-stat-number .woocommerce-Price-amount,
.swlp-ui .swlp-stat-number bdi {
	color: #fff;
}

.swlp-ui .swlp-stat-label {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	opacity: 0.92;
}

.swlp-ui .swlp-stat-sublabel {
	margin-top: 2px;
	color: #fff;
	font-size: 12px;
	opacity: 0.72;
}

/* A single stat sits beside the title instead of below it. */
.swlp-ui .swlp-hero--single-stat .swlp-hero-stats {
	grid-template-columns: minmax( 200px, 280px );
}

/* Compact hero: the wishlist page and shared lists. */
.swlp-ui .swlp-hero--compact {
	padding: 24px;
}

.swlp-ui .swlp-hero--compact .swlp-hero-title {
	font-size: 24px;
}

.swlp-ui .swlp-hero--compact .swlp-stat {
	padding: 14px;
}

.swlp-ui .swlp-hero--compact .swlp-stat-number {
	font-size: 22px;
}

.swlp-ui .swlp-hero--compact .swlp-stat-sublabel {
	display: none;
}

@media ( min-width: 768px ) {
	.swlp-ui .swlp-hero--single-stat,
	.swlp-ui .swlp-hero--compact {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.swlp-ui .swlp-hero--compact .swlp-hero-stats {
		flex: 0 1 auto;
		grid-auto-columns: minmax( 120px, auto );
		grid-auto-flow: column;
		grid-template-columns: none;
		min-width: 0;
	}

	.swlp-ui .swlp-hero--compact .swlp-hero-stats .swlp-stat {
		min-width: 120px;
	}
}

/* =========================================================================
 * Dashboard tabs (a <select> under 768px)
 * ====================================================================== */
.swlp-ui .swlp-tabs-nav {
	display: grid;
	grid-auto-columns: minmax( 0, 1fr );
	grid-auto-flow: column;
	gap: 8px;
	margin: 0;
	border-bottom: 1px solid #e9ecef;
}

/* Plain tabs, the same as the Store Credit and Rewards dashboards. The hover
 * and focus states repeat the colours so theme and page builder link styles
 * stay off them. */
.swlp-ui .swlp-tabs-nav .swlp-tab,
.swlp-ui .swlp-tabs-nav .swlp-tab:hover,
.swlp-ui .swlp-tabs-nav .swlp-tab:focus {
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e9ecef;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: #f8f9fa;
	color: #495057;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-tabs-nav .swlp-tab:hover {
	color: #2c3e50;
}

.swlp-ui .swlp-tabs-nav .swlp-tab.is-active,
.swlp-ui .swlp-tabs-nav .swlp-tab.is-active:hover,
.swlp-ui .swlp-tabs-nav .swlp-tab.is-active:focus {
	background: #fff;
	color: #2c3e50;
	box-shadow: 0 -2px 6px rgba( 0, 0, 0, 0.04 );
}

.swlp-ui .swlp-tabs-mobile {
	display: none;
}

.swlp-ui .swlp-tabs-select {
	width: 100%;
	min-height: 50px;
	padding: 10px 36px 10px 12px;
	border: 1px solid var( --swlp-line );
	border-radius: var( --swlp-radius-sm );
	background-color: #f8f9fa;
	background-image: url( "data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E" );
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	color: var( --swlp-ink );
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-align-last: center;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.swlp-ui .swlp-tabs-content {
	padding: 20px;
	border: 1px solid #e9ecef;
	border-top: 0;
	border-radius: 0 0 10px 10px;
	background: #fff;
}

.swlp-ui .swlp-tabs-content--flush {
	border-top: 1px solid var( --swlp-line );
	border-radius: var( --swlp-radius );
}

@media ( max-width: 767px ) {
	.swlp-ui .swlp-tabs-nav {
		display: none;
	}

	.swlp-ui .swlp-tabs-mobile {
		display: block;
	}

	.swlp-ui .swlp-tabs-content {
		margin-top: 12px;
		padding: 16px;
		border-top: 1px solid var( --swlp-line );
		border-radius: var( --swlp-radius );
	}
}

/* =========================================================================
 * Section cards (account settings)
 * ====================================================================== */
.swlp-ui .swlp-section {
	margin: 0 0 20px;
	padding: 22px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-section:last-child {
	margin-bottom: 0;
}

.swlp-ui .swlp-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 2px solid var( --swlp-line-soft );
	color: var( --swlp-ink );
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.swlp-ui .swlp-section-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var( --swlp-icon-bg );
	color: var( --swlp-p );
}

.swlp-ui .swlp-section-icon .swlp-icon {
	width: 17px;
	height: 17px;
}

.swlp-ui .swlp-section-intro {
	margin: 0 0 16px;
	color: var( --swlp-muted );
	font-size: 14px;
}

.swlp-ui .swlp-privacy-list {
	margin: 0;
	padding: 0;
	border: 1px solid var( --swlp-line-soft );
	border-radius: 10px;
	list-style: none;
}

.swlp-ui .swlp-privacy-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 10px 14px;
	border-bottom: 1px solid var( --swlp-line-soft );
}

.swlp-ui .swlp-privacy-row:last-child {
	border-bottom: 0;
}

.swlp-ui .swlp-privacy-name {
	color: var( --swlp-ink );
	font-weight: 600;
}

.swlp-ui .swlp-danger-zone {
	border-color: #fbd5d1;
	background: linear-gradient( 180deg, #fff 0%, #fffafa 100% );
}

.swlp-ui .swlp-danger-zone .swlp-section-icon {
	background: #fee2e2;
	color: var( --swlp-danger );
}

.swlp-ui .swlp-feedback {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.swlp-ui .swlp-feedback:empty {
	display: none;
}

.swlp-ui .swlp-feedback.is-error {
	color: var( --swlp-danger );
}

.swlp-ui .swlp-feedback.is-success {
	color: var( --swlp-success );
}

/* =========================================================================
 * Notices
 * ====================================================================== */
.swlp-ui .swlp-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var( --swlp-tint-border );
	border-radius: var( --swlp-radius );
	background: var( --swlp-tint );
}

.swlp-ui .swlp-notice--owner {
	border-color: var( --swlp-line );
	background: var( --swlp-surface );
}

.swlp-ui .swlp-notice-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var( --swlp-p );
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-notice-text {
	flex: 1 1 220px;
	margin: 0;
	color: var( --swlp-text );
	font-size: 14px;
}

.swlp-ui .swlp-notice-text strong {
	display: block;
	color: var( --swlp-ink );
	font-weight: 700;
}

.swlp-ui .swlp-notice-text span {
	color: var( --swlp-muted );
	font-size: 13px;
}

/* =========================================================================
 * List links (shown when an owner has more than one list)
 * ====================================================================== */
.swlp-ui .swlp-list-links {
	margin: 0 0 16px;
}

.swlp-ui .swlp-list-links__items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swlp-ui .swlp-list-links__items li {
	margin: 0;
	padding: 0;
}

.swlp-ui .swlp-list-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var( --swlp-line );
	border-radius: 999px;
	background: #fff;
	color: var( --swlp-text );
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.swlp-ui .swlp-list-link:hover,
.swlp-ui .swlp-list-link:focus {
	border-color: var( --swlp-tint-border );
	background: var( --swlp-tint );
	color: var( --swlp-ink );
}

.swlp-ui .swlp-list-link.is-active {
	border-color: var( --swlp-p );
	background: var( --swlp-p );
	color: #fff;
}

.swlp-ui .swlp-list-link__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var( --swlp-line-soft );
	color: var( --swlp-muted );
	font-size: 12px;
	font-weight: 700;
}

.swlp-ui .swlp-list-link.is-active .swlp-list-link__count {
	background: rgba( 255, 255, 255, 0.25 );
	color: #fff;
}

/* =========================================================================
 * List head, toolbar and bulk bar
 * ====================================================================== */
.swlp-ui .swlp-list-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

.swlp-ui .swlp-list-head-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	min-width: 0;
}

.swlp-ui .swlp-list-title {
	margin: 0;
	color: var( --swlp-ink );
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.swlp-ui .swlp-list-count {
	color: var( --swlp-muted );
	font-size: 14px;
	font-weight: 600;
}

.swlp-ui .swlp-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 10px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: var( --swlp-surface );
}

.swlp-ui .swlp-search {
	position: relative;
	flex: 1 1 240px;
	min-width: 0;
}

.swlp-ui .swlp-search-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 12px;
	display: flex;
	color: var( --swlp-faint );
	transform: translateY( -50% );
	pointer-events: none;
}

.swlp-ui .swlp-input,
.swlp-ui .swlp-select {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var( --swlp-line );
	border-radius: var( --swlp-radius-sm );
	background-color: #fff;
	color: var( --swlp-ink );
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
}

.swlp-ui .swlp-input:focus,
.swlp-ui .swlp-select:focus {
	border-color: var( --swlp-p );
	outline: none;
	box-shadow: 0 0 0 3px var( --swlp-ring );
}

.swlp-ui .swlp-search-input {
	padding-inline-start: 40px;
}

.swlp-ui .swlp-sort {
	flex: 0 1 220px;
	min-width: 160px;
}

.swlp-ui .swlp-select {
	padding-inline-end: 36px;
	background-image: url( "data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E" );
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 20px;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.rtl .swlp-ui .swlp-select,
.rtl .swlp-ui .swlp-tabs-select {
	background-position: left 10px center;
}

.swlp-ui .swlp-view-toggle {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var( --swlp-line );
	border-radius: var( --swlp-radius-sm );
	background: #fff;
}

.swlp-ui .swlp-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 34px;
	border-radius: 6px;
	color: var( --swlp-muted );
	text-decoration: none;
}

.swlp-ui .swlp-view-btn:hover {
	color: var( --swlp-ink );
}

.swlp-ui .swlp-view-btn.is-active {
	background: var( --swlp-tint );
	color: var( --swlp-p );
}

.swlp-ui .swlp-bulkbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 14px;
	padding: 4px 2px;
}

.swlp-ui .swlp-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var( --swlp-text );
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.swlp-ui .swlp-check-input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var( --swlp-p );
	cursor: pointer;
}

.swlp-ui .swlp-bulk-count {
	color: var( --swlp-muted );
	font-size: 13px;
}

.swlp-ui .swlp-bulk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-inline-start: auto;
}

/* =========================================================================
 * Badges (pastel pills)
 * ====================================================================== */
.swlp-ui .swlp-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f3f4f6;
	color: var( --swlp-muted );
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.swlp-ui .swlp-badge .swlp-icon {
	width: 12px;
	height: 12px;
}

.swlp-ui .swlp-badge--success,
.swlp-ui .swlp-badge--drop,
.swlp-ui .swlp-badge--privacy-public {
	background: #dcfce7;
	color: #166534;
}

.swlp-ui .swlp-badge--warning {
	background: #fef3c7;
	color: #92400e;
}

.swlp-ui .swlp-badge--danger {
	background: #fee2e2;
	color: #991b1b;
}

.swlp-ui .swlp-badge--rise,
.swlp-ui .swlp-badge--neutral,
.swlp-ui .swlp-badge--privacy-private {
	background: #f3f4f6;
	color: var( --swlp-text );
}

.swlp-ui .swlp-badge--privacy-shared {
	background: #e0e7ff;
	color: #3730a3;
}

.swlp-ui .swlp-badge--sale {
	background: var( --swlp-gradient );
	color: #fff;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 2px 8px var( --swlp-glow );
}

/* =========================================================================
 * Items: shared parts
 * ====================================================================== */
.swlp-ui .swlp-items-wrap {
	position: relative;
}

.swlp-ui .swlp-item-title {
	margin: 0;
	color: var( --swlp-ink );
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.swlp-ui .swlp-item-title a {
	color: inherit;
	text-decoration: none;
}

.swlp-ui .swlp-item-title a:hover {
	color: var( --swlp-p );
}

.swlp-ui .swlp-item-attrs {
	margin: 0;
	color: var( --swlp-muted );
	font-size: 13px;
}

.swlp-ui .swlp-item-price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}

.swlp-ui .swlp-price {
	color: var( --swlp-ink );
	font-size: 16px;
	font-weight: 700;
}

.swlp-ui .swlp-price del {
	margin-inline-end: 4px;
	color: var( --swlp-faint );
	font-size: 13px;
	font-weight: 400;
}

.swlp-ui .swlp-price ins {
	background: none;
	color: var( --swlp-s );
	text-decoration: none;
}

.swlp-ui .swlp-item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.swlp-ui .swlp-item-added {
	color: var( --swlp-faint );
	font-size: 12px;
}

.swlp-ui .swlp-item-unavailable {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var( --swlp-danger );
	font-size: 13px;
	font-weight: 600;
}

.swlp-ui .swlp-item-unavailable .swlp-icon {
	width: 14px;
	height: 14px;
}

.swlp-ui .swlp-item-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.swlp-ui .swlp-item.is-unavailable .swlp-card-image,
.swlp-ui .swlp-item.is-unavailable .swlp-row-thumb {
	opacity: 0.5;
	filter: grayscale( 1 );
}

.swlp-ui .swlp-item.is-unavailable .swlp-item-title {
	color: var( --swlp-faint );
}

.swlp-ui .swlp-item.is-removing {
	opacity: 0.4;
	pointer-events: none;
}

.swlp-ui .swlp-item.has-cart-error {
	border-color: #f5c2bd;
}

/* Quantity stepper. */
.swlp-ui .swlp-qty {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	overflow: hidden;
	border: 1px solid var( --swlp-line );
	border-radius: var( --swlp-radius-sm );
	background: #fff;
}

.swlp-ui .swlp-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var( --swlp-text );
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-qty-btn:hover {
	background: var( --swlp-tint );
	color: var( --swlp-p );
}

.swlp-ui .swlp-qty-btn:disabled {
	background: transparent;
	color: var( --swlp-text );
	opacity: 0.35;
	cursor: default;
}

.swlp-ui .swlp-qty-btn .swlp-icon {
	width: 14px;
	height: 14px;
}

.swlp-ui .swlp-qty-input {
	width: 46px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline-start: 1px solid var( --swlp-line-soft );
	border-inline-end: 1px solid var( --swlp-line-soft );
	border-radius: 0;
	background: transparent;
	color: var( --swlp-ink );
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.swlp-ui .swlp-qty-input::-webkit-outer-spin-button,
.swlp-ui .swlp-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.swlp-ui .swlp-qty-input:focus {
	outline: none;
	background: var( --swlp-tint );
}

.swlp-ui .swlp-qty-text {
	color: var( --swlp-muted );
	font-size: 13px;
	font-weight: 600;
}

/* =========================================================================
 * Grid view (cards)
 * ====================================================================== */
.swlp-ui .swlp-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swlp-ui .swlp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-card:hover {
	border-color: var( --swlp-line );
	box-shadow: var( --swlp-shadow-hover );
}

.swlp-ui .swlp-card.is-selected {
	border-color: var( --swlp-p );
	box-shadow: 0 0 0 3px var( --swlp-ring );
}

.swlp-ui .swlp-card-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var( --swlp-surface );
}

.swlp-ui .swlp-card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.swlp-ui .swlp-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.swlp-ui .swlp-card-select {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 9px;
	background: rgba( 255, 255, 255, 0.94 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.14 );
	cursor: pointer;
}

.swlp-ui .swlp-card-flag {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
}

.swlp-ui .swlp-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 6px;
}

.swlp-ui .swlp-card-footer {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding: 10px 16px 16px;
}

.swlp-ui .swlp-card-footer .swlp-qty {
	justify-self: start;
}

.swlp-ui .swlp-card-footer .swlp-btn--cart {
	flex: 1 1 auto;
	min-width: 0;
}

/* Narrow cards (many columns, two-up on phones): the cart button gets its own
 * row and the icon buttons share the row under it, so the label never clips. */
.swlp-ui .swlp-card-footer {
	container-type: inline-size;
}

@container ( max-width: 250px ) {
	.swlp-ui .swlp-card-footer .swlp-item-actions {
		flex-wrap: wrap;
	}

	.swlp-ui .swlp-card-footer .swlp-btn--cart {
		flex: 1 1 100%;
		padding-inline: 10px;
	}

	.swlp-ui .swlp-card-footer .swlp-item-actions .swlp-icon-btn {
		flex: 1 1 0;
		width: auto;
	}
}

@container ( max-width: 160px ) {
	.swlp-ui .swlp-card-footer .swlp-btn--cart .swlp-icon {
		display: none;
	}
}

/* =========================================================================
 * Table view (rows; stacked cards under 768px)
 * ====================================================================== */
.swlp-ui .swlp-table-wrap {
	overflow: hidden;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 14px;
}

.swlp-ui .swlp-table th {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var( --swlp-line-soft );
	background: var( --swlp-surface );
	color: var( --swlp-faint );
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: start;
	text-transform: uppercase;
}

.swlp-ui .swlp-table td {
	padding: 14px;
	border: 0;
	border-bottom: 1px solid var( --swlp-line-soft );
	background: transparent;
	vertical-align: middle;
}

.swlp-ui .swlp-table tbody tr:last-child td {
	border-bottom: 0;
}

.swlp-ui .swlp-row.is-selected td {
	background: var( --swlp-tint );
}

.swlp-ui .swlp-col-select {
	width: 46px;
}

.swlp-ui .swlp-row-product {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 220px;
}

.swlp-ui .swlp-row-thumb {
	display: block;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
	background: var( --swlp-surface );
}

.swlp-ui .swlp-row-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.swlp-ui .swlp-row-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.swlp-ui .swlp-col-price .swlp-item-price {
	flex-direction: column;
	align-items: flex-start;
}

.swlp-ui .swlp-col-actions .swlp-item-actions {
	justify-content: flex-end;
}

@media ( max-width: 767px ) {
	.swlp-ui .swlp-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect( 0, 0, 0, 0 );
	}

	.swlp-ui .swlp-table,
	.swlp-ui .swlp-table tbody,
	.swlp-ui .swlp-table td {
		display: block;
		width: 100%;
	}

	.swlp-ui .swlp-table tr {
		position: relative;
		display: grid;
		gap: 10px;
		padding: 14px;
		border-bottom: 1px solid var( --swlp-line-soft );
	}

	.swlp-ui .swlp-table tbody tr:last-child {
		border-bottom: 0;
	}

	.swlp-ui .swlp-table td {
		padding: 0;
		border: 0;
	}

	.swlp-ui .swlp-table td[data-label] {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.swlp-ui .swlp-table td[data-label]::before {
		content: attr( data-label );
		color: var( --swlp-faint );
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.swlp-ui .swlp-table .swlp-col-select {
		position: absolute;
		top: 14px;
		inset-inline-end: 14px;
		width: auto;
	}

	.swlp-ui .swlp-col-product {
		padding-inline-end: 36px;
	}

	.swlp-ui .swlp-row-product {
		min-width: 0;
	}

	.swlp-ui .swlp-col-price .swlp-item-price {
		align-items: flex-end;
	}

	.swlp-ui .swlp-col-actions .swlp-item-actions {
		justify-content: stretch;
	}

	.swlp-ui .swlp-col-actions .swlp-btn--cart {
		flex: 1 1 auto;
	}
}

/* =========================================================================
 * Empty state, no results, popular products
 * ====================================================================== */
.swlp-ui .swlp-empty {
	padding: 44px 20px 30px;
	border: 1px dashed var( --swlp-tint-border );
	border-radius: var( --swlp-radius );
	background: #fff;
	text-align: center;
}

.swlp-ui .swlp-empty-art {
	position: relative;
	width: 160px;
	height: 120px;
	margin: 0 auto 18px;
}

.swlp-ui .swlp-empty-sparkles {
	display: block;
	width: 100%;
	height: 100%;
}

.swlp-ui .swlp-empty-blob {
	fill: var( --swlp-tint );
}

.swlp-ui .swlp-empty-dot,
.swlp-ui .swlp-empty-spark {
	fill: var( --swlp-p );
	opacity: 0.55;
}

.swlp-ui .swlp-empty-dot--soft {
	fill: var( --swlp-tint-border );
	opacity: 1;
}

.swlp-ui .swlp-empty-heart {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var( --swlp-p );
}

.swlp-ui .swlp-empty-heart .swlp-icon {
	width: 58px;
	height: 58px;
	fill: var( --swlp-tint-border );
}

.swlp-ui .swlp-empty-title {
	margin: 0 0 6px;
	color: var( --swlp-ink );
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.swlp-ui .swlp-empty-text {
	max-width: 440px;
	margin: 0 auto 20px;
	color: var( --swlp-muted );
	font-size: 15px;
}

.swlp-ui .swlp-popular {
	margin: 34px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var( --swlp-line-soft );
	text-align: start;
}

.swlp-ui .swlp-popular-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var( --swlp-muted );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.swlp-ui .swlp-popular-title .swlp-icon {
	width: 16px;
	height: 16px;
	color: var( --swlp-p );
}

.swlp-ui .swlp-popular-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 140px, 200px ) );
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swlp-ui .swlp-popular-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-popular-image {
	display: block;
	aspect-ratio: 1 / 1;
	background: var( --swlp-surface );
}

.swlp-ui .swlp-popular-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.swlp-ui .swlp-popular-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px 12px;
}

.swlp-ui .swlp-popular-name {
	color: var( --swlp-ink );
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.swlp-ui .swlp-popular-name:hover {
	color: var( --swlp-p );
}

.swlp-ui .swlp-popular-price {
	color: var( --swlp-muted );
	font-size: 13px;
}

.swlp-ui .swlp-popular-button {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
}

.swlp-ui .swlp-no-results {
	padding: 40px 20px;
	border-radius: var( --swlp-radius );
	background: var( --swlp-surface );
	text-align: center;
}

.swlp-ui .swlp-no-results-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 10px;
	border-radius: 50%;
	background: #fff;
	color: var( --swlp-faint );
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-no-results-title {
	margin: 0 0 4px;
	color: var( --swlp-ink );
	font-size: 16px;
	font-weight: 700;
}

.swlp-ui .swlp-no-results-text {
	margin: 0;
	color: var( --swlp-muted );
	font-size: 14px;
}

/* =========================================================================
 * Load more, footer, loading
 * ====================================================================== */
.swlp-ui .swlp-load-more {
	display: flex;
	justify-content: center;
	margin: 22px 0 0;
}

.swlp-ui .swlp-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin: 22px 0 0;
	padding: 16px 20px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-footer-total {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swlp-ui .swlp-footer-label {
	color: var( --swlp-faint );
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.swlp-ui .swlp-footer-value {
	color: var( --swlp-ink );
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.swlp-ui.swlp-is-empty .swlp-toolbar,
.swlp-ui.swlp-is-empty .swlp-bulkbar,
.swlp-ui.swlp-is-empty .swlp-load-more,
.swlp-ui.swlp-is-empty .swlp-footer {
	display: none;
}

.swlp-ui.is-loading .swlp-items-wrap {
	opacity: 0.55;
	pointer-events: none;
}

.swlp-ui.is-loading .swlp-items-wrap::after {
	content: "";
	position: absolute;
	top: 40px;
	left: 50%;
	width: 28px;
	height: 28px;
	margin-left: -14px;
	border: 3px solid var( --swlp-tint-border );
	border-top-color: var( --swlp-p );
	border-radius: 50%;
}

/* =========================================================================
 * Shared view
 * ====================================================================== */
.swlp-ui .swlp-hero--shared .swlp-hero-icon .swlp-icon {
	fill: rgba( 255, 255, 255, 0.3 );
}

/* =========================================================================
 * Messages (login required, unavailable list)
 * ====================================================================== */
.swlp-ui.swlp-message {
	max-width: 560px;
	margin: 0 auto;
	padding: 48px 24px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: var( --swlp-radius );
	background: #fff;
	text-align: center;
	box-shadow: var( --swlp-shadow );
}

.swlp-ui .swlp-message-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin: 0 0 14px;
	border-radius: 50%;
	background: var( --swlp-icon-bg );
	color: var( --swlp-p );
}

.swlp-ui .swlp-message-icon .swlp-icon {
	width: 30px;
	height: 30px;
}

.swlp-ui .swlp-message-title {
	margin: 0 0 8px;
	color: var( --swlp-ink );
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.swlp-ui .swlp-message-text {
	max-width: 400px;
	margin: 0 auto 20px;
	color: var( --swlp-muted );
}

.swlp-ui .swlp-message-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* =========================================================================
 * Share modal
 * ====================================================================== */
.swlp-modal-open {
	overflow: hidden;
}

.swlp-ui .swlp-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.swlp-ui .swlp-modal[hidden] {
	display: none;
}

.swlp-ui .swlp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 15, 23, 42, 0.55 );
	-webkit-backdrop-filter: blur( 2px );
	backdrop-filter: blur( 2px );
}

.swlp-ui .swlp-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc( 100vh - 32px );
	padding: 26px;
	overflow-y: auto;
	border-radius: calc( var( --swlp-radius ) + 4px );
	background: #fff;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.25 );
	outline: none;
}

.swlp-ui .swlp-modal-close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --swlp-surface );
	color: var( --swlp-muted );
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-modal-close:hover {
	background: var( --swlp-line-soft );
	color: var( --swlp-ink );
}

.swlp-ui .swlp-modal-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding-inline-end: 40px;
}

.swlp-ui .swlp-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	height: 46px;
	border-radius: 12px;
	background: var( --swlp-icon-bg );
	color: var( --swlp-p );
}

.swlp-ui .swlp-modal-icon .swlp-icon {
	width: 22px;
	height: 22px;
}

.swlp-ui .swlp-modal-title {
	margin: 0 0 2px;
	color: var( --swlp-ink );
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.swlp-ui .swlp-modal-subtitle {
	margin: 0;
	color: var( --swlp-muted );
	font-size: 14px;
	word-break: break-word;
}

.swlp-ui .swlp-segmented {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 4px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: 12px;
	background: var( --swlp-surface );
}

.swlp-ui .swlp-segment {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.swlp-ui .swlp-segment-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.swlp-ui .swlp-segment-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 6px;
	border-radius: 9px;
	color: var( --swlp-muted );
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.swlp-ui .swlp-segment-label .swlp-icon {
	width: 15px;
	height: 15px;
}

.swlp-ui .swlp-segment:hover .swlp-segment-label {
	color: var( --swlp-ink );
}

.swlp-ui .swlp-segment-input:checked + .swlp-segment-label {
	background: #fff;
	color: var( --swlp-s );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.1 );
}

.swlp-ui .swlp-segment-input:focus-visible + .swlp-segment-label {
	box-shadow: 0 0 0 3px var( --swlp-ring );
}

.swlp-ui .swlp-modal.is-saving .swlp-segmented {
	opacity: 0.7;
}

.swlp-ui .swlp-privacy-hint {
	margin: 10px 2px 18px;
	color: var( --swlp-muted );
	font-size: 13px;
}

.swlp-ui .swlp-field-label {
	display: block;
	margin: 0 0 6px;
	color: var( --swlp-ink );
	font-size: 13px;
	font-weight: 700;
}

.swlp-ui .swlp-copy-row {
	display: flex;
	gap: 8px;
}

.swlp-ui .swlp-copy-row .swlp-share-url {
	flex: 1 1 auto;
	min-width: 0;
	background: var( --swlp-surface );
	font-size: 14px;
}

.swlp-ui .swlp-copy-row .swlp-btn.is-copied {
	background: var( --swlp-success );
}

.swlp-ui .swlp-share-networks {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: 8px;
	margin: 16px 0;
}

.swlp-ui .swlp-share-net {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 12px 6px;
	border: 1px solid var( --swlp-line-soft );
	border-radius: 12px;
	background: #fff;
	color: var( --swlp-text );
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.swlp-ui .swlp-share-net:hover,
.swlp-ui .swlp-share-net:focus {
	border-color: var( --swlp-tint-border );
	background: var( --swlp-tint );
	color: var( --swlp-ink );
}

.swlp-ui .swlp-share-net-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var( --swlp-line-soft );
	color: var( --swlp-ink );
}

.swlp-ui .swlp-share-net--facebook .swlp-share-net-icon {
	background: #1877f2;
	color: #fff;
}

.swlp-ui .swlp-share-net--x .swlp-share-net-icon {
	background: #000;
	color: #fff;
}

.swlp-ui .swlp-share-net--pinterest .swlp-share-net-icon {
	background: #e60023;
	color: #fff;
}

.swlp-ui .swlp-share-net--whatsapp .swlp-share-net-icon {
	background: #25d366;
	color: #fff;
}

.swlp-ui .swlp-share-net--email .swlp-share-net-icon {
	background: var( --swlp-icon-bg );
	color: var( --swlp-p );
}

.swlp-ui .swlp-share-private {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 12px;
	background: var( --swlp-surface );
	color: var( --swlp-muted );
	font-size: 14px;
}

.swlp-ui .swlp-share-private p {
	margin: 0;
}

.swlp-ui .swlp-share-private .swlp-icon {
	color: var( --swlp-faint );
}

/* =========================================================================
 * Utilities
 * ====================================================================== */
.swlp-hidden {
	display: none !important;
}

.swlp-ui .swlp-sr-only,
.swlp-ui .swlp-price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	border: 0;
	white-space: nowrap;
}

/* Controls that need the script are hidden until it runs; the no-JS
 * fallbacks (the toolbar's Apply button) are hidden once it does. */
.swlp-ui:not(.swlp-js) .swlp-js-only {
	display: none;
}

.swlp-ui.swlp-js .swlp-no-js-only {
	display: none;
}

/* =========================================================================
 * Responsive
 * ====================================================================== */
@media ( min-width: 1280px ) {
	.swlp-ui .swlp-grid {
		grid-template-columns: repeat( auto-fill, minmax( 250px, 1fr ) );
		gap: 22px;
	}

	.swlp-ui .swlp-hero {
		padding: 34px;
	}
}

@media ( max-width: 767px ) {
	.swlp-ui .swlp-hero {
		gap: 18px;
		padding: 22px;
	}

	.swlp-ui .swlp-hero-title {
		font-size: 23px;
	}

	.swlp-ui .swlp-hero-icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.swlp-ui .swlp-hero-stats {
		grid-template-columns: repeat( auto-fit, minmax( 90px, 1fr ) );
		gap: 10px;
	}

	.swlp-ui .swlp-hero--single-stat .swlp-hero-stats {
		grid-template-columns: minmax( 0, 1fr );
	}

	.swlp-ui .swlp-stat {
		padding: 14px 10px;
	}

	.swlp-ui .swlp-stat-number {
		font-size: 22px;
	}

	.swlp-ui .swlp-stat-sublabel {
		display: none;
	}

	.swlp-ui .swlp-sort {
		flex: 1 1 160px;
	}

	.swlp-ui .swlp-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 12px;
	}

	.swlp-ui .swlp-footer {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.swlp-ui .swlp-footer .swlp-btn {
		width: 100%;
	}

	.swlp-ui .swlp-bulk-actions {
		width: 100%;
		margin-inline-start: 0;
	}

	.swlp-ui .swlp-modal {
		align-items: flex-end;
		padding: 0;
	}

	.swlp-ui .swlp-modal-dialog {
		max-width: none;
		max-height: 92vh;
		padding: 22px 18px calc( 22px + env( safe-area-inset-bottom, 0px ) );
		border-radius: 18px 18px 0 0;
	}
}

@media ( max-width: 480px ) {
	.swlp-ui .swlp-card-body {
		padding: 12px 12px 4px;
	}

	.swlp-ui .swlp-card-footer {
		padding: 8px 12px 12px;
	}

	.swlp-ui .swlp-item-title {
		font-size: 14px;
	}

	.swlp-ui .swlp-card .swlp-btn--cart {
		min-height: 40px;
		padding: 8px 10px;
		font-size: 14px;
	}

	.swlp-ui .swlp-card .swlp-btn--cart .swlp-icon {
		display: none;
	}

	.swlp-ui .swlp-card .swlp-icon-btn {
		width: 40px;
		height: 40px;
	}

	.swlp-ui .swlp-segment-label .swlp-icon {
		display: none;
	}

	/* Four stat cards make a tidy 2 x 2 instead of three and an orphan. */
	.swlp-ui .swlp-hero-stats:has( > :nth-child( 4 ):last-child ) {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 360px ) {
	.swlp-ui .swlp-grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.swlp-ui .swlp-hero-stats {
		grid-template-columns: minmax( 0, 1fr );
	}
}

/* =========================================================================
 * Motion (only for visitors who have not asked for less)
 * ====================================================================== */
@keyframes swlp-spin {

	to {
		transform: rotate( 360deg );
	}
}

@keyframes swlp-fade {

	from {
		opacity: 0;
	}
}

@keyframes swlp-pop {

	from {
		opacity: 0;
		transform: translateY( 8px ) scale( 0.98 );
	}
}

@keyframes swlp-float {

	50% {
		transform: translateY( -4px );
	}
}

@media ( prefers-reduced-motion: no-preference ) {
	.swlp-ui .swlp-btn,
	.swlp-ui .swlp-icon-btn,
	.swlp-ui .swlp-tab,
	.swlp-ui .swlp-view-btn,
	.swlp-ui .swlp-share-net,
	.swlp-ui .swlp-segment-label,
	.swlp-ui .swlp-qty-btn {
		transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	}

	.swlp-ui .swlp-btn--primary:hover,
	.swlp-ui .swlp-share-net:hover {
		transform: translateY( -1px );
	}

	.swlp-ui .swlp-card {
		transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	}

	.swlp-ui .swlp-card:hover {
		transform: translateY( -2px );
	}

	.swlp-ui .swlp-card-image img {
		transition: transform 0.35s ease;
	}

	.swlp-ui .swlp-card:hover .swlp-card-image img {
		transform: scale( 1.04 );
	}

	.swlp-ui .swlp-item {
		transition: opacity 0.2s ease;
	}

	.swlp-ui .swlp-items-wrap {
		transition: opacity 0.2s ease;
	}

	.swlp-ui .swlp-btn.is-busy::after,
	.swlp-ui.is-loading .swlp-items-wrap::after {
		animation: swlp-spin 0.7s linear infinite;
	}

	.swlp-ui .swlp-modal-backdrop {
		animation: swlp-fade 0.2s ease;
	}

	.swlp-ui .swlp-modal-dialog {
		animation: swlp-pop 0.22s ease;
	}

	.swlp-ui .swlp-empty-heart .swlp-icon {
		animation: swlp-float 3s ease-in-out infinite;
	}
}

/* =========================================================================
 * Print
 * ====================================================================== */
@media print {
	.swlp-ui .swlp-toolbar,
	.swlp-ui .swlp-bulkbar,
	.swlp-ui .swlp-item-actions,
	.swlp-ui .swlp-qty-btn,
	.swlp-ui .swlp-load-more,
	.swlp-ui .swlp-modal,
	.swlp-ui .swlp-tabs,
	.swlp-ui .swlp-notice,
	.swlp-ui .swlp-card-select,
	.swlp-ui .swlp-col-select,
	.swlp-ui .swlp-col-actions,
	.swlp-ui .swlp-footer .swlp-btn,
	.swlp-ui .swlp-list-head .swlp-btn,
	.swlp-ui .swlp-popular {
		display: none;
	}

	.swlp-ui .swlp-hero {
		padding: 12px 0;
		border-bottom: 2px solid #000;
		border-radius: 0;
		background: none;
		color: #000;
		box-shadow: none;
	}

	.swlp-ui .swlp-hero::before,
	.swlp-ui .swlp-hero::after,
	.swlp-ui .swlp-hero-icon {
		display: none;
	}

	.swlp-ui .swlp-hero-title,
	.swlp-ui .swlp-hero-subtitle,
	.swlp-ui .swlp-hero-eyebrow,
	.swlp-ui .swlp-hero-meta,
	.swlp-ui .swlp-stat-number,
	.swlp-ui .swlp-stat-label,
	.swlp-ui .swlp-stat-number .woocommerce-Price-amount,
	.swlp-ui .swlp-stat-number bdi {
		color: #000;
	}

	.swlp-ui .swlp-stat {
		border: 1px solid #ccc;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.swlp-ui .swlp-tabs-content {
		padding: 0;
		border: 0;
	}

	.swlp-ui .swlp-grid {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}

	.swlp-ui .swlp-card,
	.swlp-ui .swlp-table-wrap,
	.swlp-ui .swlp-footer {
		box-shadow: none;
		break-inside: avoid;
	}

	.swlp-ui .swlp-badge--sale {
		border: 1px solid #000;
		background: none;
		color: #000;
	}
}
