/* KWSS audit fixes (2026) — storefront-child. Branch: kwss-audit-fixes.
   Scoped styles for: M16-F2 size-guide link, M10-F5 trust strip,
   M08-F1 sticky mobile Add-to-cart, M08-F4/M16-F7 cart free-ship nudge. */

/* M16-F2 — inline size-guide link at the selector */
.kwss-size-guide-inline {
	margin: 6px 0 12px;
	font-size: 0.9em;
}
.kwss-size-guide-inline a {
	font-weight: 700;
	text-decoration: underline;
}
.kwss-size-guide-inline .kwss-fit-cue {
	color: #555;
}

/* M10-F5 — PDP trust strip */
.kwss-trust-strip {
	list-style: none;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid #e6e6e6;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}
.kwss-trust-strip li {
	margin: 0;
	padding-left: 22px;
	position: relative;
	font-size: 0.9em;
	line-height: 1.4;
	color: #2d2d2d;
}
.kwss-trust-strip li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #2e7d32;
	font-weight: 700;
}
/* Live customer rating (server-rendered from Trustpilot data, font-matched).
   Star bar + score on the first level; click opens a details popup we control. */
.kwss-trust-strip li.kwss-review-rating {
	padding-left: 0;
	position: relative;
}
.kwss-trust-strip li.kwss-review-rating::before {
	content: none;
}
.kwss-rating-trigger {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 0.9em;
	line-height: 1.4;
	color: #2d2d2d;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.kwss-rating-trigger:hover,
.kwss-rating-trigger:focus {
	text-decoration: underline;
}
.kwss-rating-trigger strong {
	font-weight: 700;
}
.kwss-rating-count {
	color: #555;
}
/* CSS star bar — gray base, gold fill clipped to the score percentage. */
.kwss-stars {
	display: inline-block;
	position: relative;
	color: #d9d9d9;
	white-space: nowrap;
}
.kwss-stars::before {
	content: "\2605\2605\2605\2605\2605";
}
.kwss-stars::after {
	content: "\2605\2605\2605\2605\2605";
	position: absolute;
	left: 0;
	top: 0;
	width: var(--kwss-pct, 0%);
	overflow: hidden;
	color: #f5a623;
}
/* Details popup (fully ours — font-matched). */
.kwss-rating-popup {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 50;
	width: 250px;
	margin-top: 8px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	font-size: 0.9em;
}
.kwss-rating-popup[hidden] {
	display: none;
}
.kwss-rating-headline {
	margin: 0 0 2px;
}
.kwss-rating-sub {
	margin: 0 0 10px;
	color: #555;
}
.kwss-rating-bars {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}
.kwss-rating-bars li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
}
.kwss-bar-label {
	flex: 0 0 26px;
	color: #555;
}
.kwss-bar {
	flex: 1 1 auto;
	height: 7px;
	border-radius: 4px;
	background: #eee;
	overflow: hidden;
}
.kwss-bar > span {
	display: block;
	height: 100%;
	background: #f5a623;
}
.kwss-bar-n {
	flex: 0 0 18px;
	text-align: right;
	color: #555;
}
.kwss-rating-link {
	display: inline-block;
	font-weight: 700;
}

/* M29-F3 — exit-intent abandonment poll */
.kwss-exitpoll-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}
.kwss-exitpoll {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 8px;
	padding: 24px 22px 22px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	text-align: center;
}
.kwss-exitpoll-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #555;
	cursor: pointer;
}
.kwss-exitpoll-close:hover {
	color: #111;
}
.kwss-exitpoll-q {
	margin: 0 0 16px;
	font-size: 1.15em;
	font-weight: 700;
	color: #1a1a1a;
}
.kwss-exitpoll-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.kwss-exitpoll-opt {
	width: 100%;
	padding: 12px 14px;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	color: #1a1a1a;
	background: #f3f3f3;
	border: 1px solid #b9b9b9;
	border-radius: 6px;
	cursor: pointer;
}
.kwss-exitpoll-opt:hover,
.kwss-exitpoll-opt:focus {
	color: #14361c;
	background: #e4f3e8;
	border-color: #2e7d32;
}
.kwss-exitpoll-thanks {
	margin: 8px 0;
	font-size: 1.1em;
	font-weight: 700;
	color: #1f7a33;
}

/* M08-F1 — sticky mobile Add-to-cart bar (mobile only) */
.kwss-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: #fff;
	border-top: 1px solid #ddd;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}
.kwss-sticky-atc .kwss-sticky-title {
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.2;
	max-width: 55%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.kwss-sticky-atc .kwss-sticky-price {
	display: block;
	font-weight: 400;
	color: #2e7d32;
}
.kwss-sticky-atc button {
	flex: 0 0 auto;
	padding: 12px 22px;
	font-size: 1em;
}
@media (max-width: 768px) {
	.kwss-sticky-atc.is-visible {
		display: flex;
	}
	/* keep the sticky bar from covering the footer/last content */
	body.kwss-has-sticky-atc {
		padding-bottom: 64px;
	}
}

/* M08-F4 / M16-F7 — cart free-shipping progress nudge (block cart) */
.kwss-freeship-nudge {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #cfe8d4;
	border-radius: 6px;
	background: #f3faf4;
	font-size: 0.95em;
}
.kwss-freeship-nudge.is-qualified {
	border-color: #bfe3c6;
	background: #eafaef;
}
.kwss-freeship-nudge strong {
	color: #1f7a33;
}
.kwss-freeship-bar {
	margin-top: 8px;
	height: 8px;
	border-radius: 4px;
	background: #dceadf;
	overflow: hidden;
}
.kwss-freeship-bar > span {
	display: block;
	height: 100%;
	background: #2e7d32;
	transition: width 0.3s ease;
}
