/**
 * SHFTX USP, Trust & Offers Cards — frontend styles.
 *
 * Everything is scoped under .shftx-usp so it does not leak into the theme.
 * Colours derive from the per-block --shftx-usp-accent custom property that
 * the renderer prints inline, with safe neutral fallbacks for older browsers.
 */

.shftx-usp,
.shftx-usp * {
	box-sizing: border-box;
}

.shftx-usp {
	--su-accent: var(--shftx-usp-accent, #0e8f7e);
	--su-accent-tint: color-mix(in srgb, var(--su-accent) 9%, #ffffff);
	--su-accent-line: color-mix(in srgb, var(--su-accent) 32%, #ffffff);
	--su-border: #e4e7ec;
	--su-bg: #ffffff;
	--su-soft: #f7f8fa;
	--su-text: #1f2933;
	--su-muted: #6b7280;
	--su-radius: 10px;

	margin: 18px 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--su-text);
	-webkit-font-smoothing: antialiased;
}

/* SVG icons inherit colour from their wrapper. */
.shftx-usp svg {
	display: block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.shftx-usp strong {
	font-weight: 700;
}

.shftx-usp .shftx-usp--accent,
.shftx-usp__heading {
	color: var(--su-accent);
}

/* ---------------------------------------------------------------------------
 * Card shell — boxed (default) vs flat
 * ------------------------------------------------------------------------ */
.shftx-usp__card {
	background: var(--su-bg);
	border: 1px solid var(--su-border);
	border-radius: var(--su-radius);
	padding: 14px 16px;
}

.shftx-usp__card + .shftx-usp__card {
	margin-top: 12px;
}

.shftx-usp--flat .shftx-usp__card {
	border: 0;
	border-radius: 0;
	padding: 14px 0;
	background: transparent;
}

.shftx-usp--flat .shftx-usp__card + .shftx-usp__card {
	margin-top: 0;
	border-top: 1px solid var(--su-border);
}

/* Section heading inside a card. */
.shftx-usp__heading {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

/* ---------------------------------------------------------------------------
 * Generic row (delivery, COD, EMI)
 * ------------------------------------------------------------------------ */
.shftx-usp__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.shftx-usp__row--sub {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--su-border);
}

.shftx-usp__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--su-accent);
	font-size: 22px;
	line-height: 1;
	margin-top: 1px;
}

.shftx-usp__rowbody {
	min-width: 0;
}

.shftx-usp__rowtitle {
	font-size: 14px;
	color: var(--su-text);
}

.shftx-usp__rowsub {
	font-size: 13px;
	color: var(--su-muted);
	margin-top: 2px;
}

.shftx-usp__muted {
	color: var(--su-muted);
	font-weight: 400;
}

/* ---------------------------------------------------------------------------
 * Highlights
 * ------------------------------------------------------------------------ */
.shftx-usp__hl {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.shftx-usp__hl li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
}

.shftx-usp__hl li svg {
	color: var(--su-accent);
	font-size: 18px;
	margin-top: 2px;
}

@media (min-width: 480px) {
	.shftx-usp__hl {
		grid-template-columns: 1fr 1fr;
		column-gap: 18px;
	}
}

/* ---------------------------------------------------------------------------
 * Offers grid (cashback / bank / GST style boxes)
 * ------------------------------------------------------------------------ */
.shftx-usp__offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.shftx-usp__offer {
	position: relative;
	display: flex;
	gap: 9px;
	padding: 11px 12px;
	border: 1px solid var(--su-border);
	border-radius: 8px;
	background: var(--su-soft);
}

.shftx-usp__offer .shftx-usp__ic {
	font-size: 20px;
	margin-top: 0;
}

.shftx-usp__offerbody {
	min-width: 0;
}

.shftx-usp__offertitle {
	font-weight: 700;
	font-size: 13.5px;
}

.shftx-usp__offerdesc {
	font-size: 12.5px;
	color: var(--su-muted);
	margin-top: 3px;
}

.shftx-usp__pill {
	display: inline-block;
	margin-top: 7px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--su-accent);
	background: var(--su-accent-tint, var(--su-soft));
	border: 1px solid var(--su-accent-line, var(--su-border));
	border-radius: 999px;
}

/* ---------------------------------------------------------------------------
 * Coupons (tap-to-copy ticket chips)
 * ------------------------------------------------------------------------ */
.shftx-usp__coupons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.shftx-usp__coupon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shftx-usp__coupon .shftx-usp__ic {
	font-size: 18px;
	margin-top: 0;
}

.shftx-usp__couponbody {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	min-width: 0;
}

.shftx-usp__code {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	color: var(--su-accent);
	background: var(--su-accent-tint, var(--su-soft));
	border: 1px dashed var(--su-accent);
	border-radius: 7px;
	transition: background 0.15s ease, color 0.15s ease;
}

.shftx-usp__code:hover {
	background: color-mix(in srgb, var(--su-accent) 16%, #ffffff);
}

.shftx-usp__codetext {
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 13px;
}

.shftx-usp__copy {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.shftx-usp__code.is-copied {
	color: #166534;
	background: #e9f7ef;
	border-style: solid;
	border-color: #166534;
}

.shftx-usp__coupondesc {
	font-size: 12.5px;
	color: var(--su-muted);
}

/* ---------------------------------------------------------------------------
 * Trust badge strip
 * ------------------------------------------------------------------------ */
.shftx-usp__badges {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	gap: 12px 8px;
	text-align: center;
}

.shftx-usp__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 4px 2px;
}

.shftx-usp__badgeic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--su-accent);
	background: var(--su-accent-tint, var(--su-soft));
	font-size: 22px;
}

.shftx-usp__badgelabel {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}

.shftx-usp__badgesub {
	font-size: 11px;
	color: var(--su-muted);
	line-height: 1.2;
}

/* ---------------------------------------------------------------------------
 * Small screens
 * ------------------------------------------------------------------------ */
@media (max-width: 360px) {
	.shftx-usp__badges {
		grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
	}
}

/* =========================================================================
 * Product video reel
 * ====================================================================== */
.shftx-usp__card--videos {
	padding-left: 0;
	padding-right: 0;
	overflow: hidden;
	--reel-h: var(--shftx-usp-reel-d, 420px);
}
.shftx-usp--flat .shftx-usp__card--videos { padding-left: 0; padding-right: 0; }
.shftx-usp__card--videos .shftx-usp__heading { padding: 0 16px; }

.shftx-usp__reelwrap { position: relative; }

.shftx-usp__reel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 16px 6px;
	scroll-padding: 0 16px;
	-webkit-mask-image: linear-gradient( 90deg, transparent 0, #000 var(--shftx-usp-fade, 28px), #000 calc( 100% - var(--shftx-usp-fade, 28px) ), transparent 100% );
	mask-image: linear-gradient( 90deg, transparent 0, #000 var(--shftx-usp-fade, 28px), #000 calc( 100% - var(--shftx-usp-fade, 28px) ), transparent 100% );
}
.shftx-usp__reel::-webkit-scrollbar { display: none; }
.shftx-usp__reel.is-dragging { scroll-snap-type: none; cursor: grabbing; }

.shftx-usp__reelitem {
	position: relative;
	flex: 0 0 auto;
	height: var(--reel-h);
	aspect-ratio: 9 / 16;
	border-radius: 14px;
	overflow: hidden;
	scroll-snap-align: start;
	background: #0b0b0b;
	cursor: pointer;
}
.shftx-usp__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #0b0b0b;
}
.shftx-usp__reelplay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0.9;
	pointer-events: none;
	filter: drop-shadow( 0 1px 4px rgba( 0, 0, 0, 0.55 ) );
	transition: opacity 0.2s ease;
}
.shftx-usp__reelitem:hover .shftx-usp__reelplay { opacity: 1; }

.shftx-usp__reelmute {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.55 );
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}
.shftx-usp__reelmute .ic-unmuted { display: none; }
.shftx-usp__reelmute:not( .is-muted ) .ic-muted { display: none; }
.shftx-usp__reelmute:not( .is-muted ) .ic-unmuted { display: inline-flex; }

.shftx-usp__reelcap {
	position: absolute;
	left: 10px;
	right: 46px;
	bottom: 10px;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.75 );
	pointer-events: none;
}

.shftx-usp__reelnav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 3;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.18 );
	color: #333;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.shftx-usp__reelwrap.has-scroll .shftx-usp__reelnav { display: inline-flex; }
.shftx-usp__reelnav--prev { left: 6px; }
.shftx-usp__reelnav--next { right: 6px; }
.shftx-usp__reelnav[disabled] { opacity: 0.35; cursor: default; }
@media ( hover: none ) { .shftx-usp__reelnav { display: none !important; } }

@media ( max-width: 1024px ) { .shftx-usp__card--videos { --reel-h: var(--shftx-usp-reel-t, 380px ); } }
@media ( max-width: 767px )  { .shftx-usp__card--videos { --reel-h: var(--shftx-usp-reel-m, 340px ); } }

/* Full-screen player */
.shftx-usp-lb {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}
.shftx-usp-lb.is-open { display: flex; }
.shftx-usp-lb__backdrop { position: absolute; inset: 0; background: rgba( 0, 0, 0, 0.92 ); }
.shftx-usp-lb__stage {
	position: relative;
	z-index: 1;
	width: min( 94vw, 460px );
	max-height: 88vh;
	aspect-ratio: 9 / 16;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}
.shftx-usp-lb__video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.shftx-usp-lb__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.16 );
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.shftx-usp-lb__nav {
	position: absolute;
	z-index: 3;
	top: 50%;
	transform: translateY( -50% );
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.16 );
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.shftx-usp-lb__nav--prev { left: max( 12px, calc( 50vw - 300px ) ); }
.shftx-usp-lb__nav--next { right: max( 12px, calc( 50vw - 300px ) ); }
@media ( max-width: 767px ) {
	.shftx-usp-lb__nav--prev { left: 8px; }
	.shftx-usp-lb__nav--next { right: 8px; }
}
