/* Rocken Power storefront trust elements.
   Colours follow the packaging: near-black, brass, deep green. */

.rp-trust-badges,
.rp-trust-pay,
.rp-pop {
	--rp-ink: #1b1e17;
	--rp-muted: #616852;
	--rp-line: #e4e0d3;
	--rp-brass: #e5b121;
	--rp-green: #3f6b45;
	--rp-paper: #fffdf6;
}

/* ---------- badges under add to cart ---------- */

.rp-trust-badges {
	border-top: 1px solid var(--rp-line);
	border-bottom: 1px solid var(--rp-line);
	display: grid;
	gap: 14px 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 18px 0;
	padding: 16px 0;
}

.rp-trust-badges li {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin: 0;
}

.rp-trust-ico {
	color: var(--rp-green);
	flex: none;
	line-height: 0;
	padding-top: 2px;
}

.rp-trust-txt {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}

.rp-trust-txt b {
	color: var(--rp-ink);
	font-size: 14px;
	font-weight: 600;
}

.rp-trust-txt em {
	color: var(--rp-muted);
	font-size: 12px;
	font-style: normal;
}

@media (max-width: 480px) {
	.rp-trust-badges { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- payment security ---------- */

.rp-trust-pay {
	background: #f7f5ee;
	border: 1px solid var(--rp-line);
	border-radius: 3px;
	margin: 18px 0;
	padding: 14px 16px;
}

.rp-trust-pay-head {
	align-items: center;
	color: var(--rp-ink);
	display: flex;
	gap: 8px;
}

.rp-trust-pay-head svg { color: var(--rp-green); }
.rp-trust-pay-head b { font-size: 14px; font-weight: 600; }

.rp-trust-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

/* Fixed tiles, contained marks: the six logos run from 1.3:1 (Mastercard) to
   3.8:1 (RuPay), so they are fitted rather than stretched. Same size as the
   homepage footer strip, so the two read as one set. */
.rp-trust-methods li {
	align-items: center;
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: 4px;
	display: flex;
	height: 34px;
	justify-content: center;
	margin: 0;
	padding: 5px 7px;
	width: 54px;
}

.rp-trust-methods img {
	display: block;
	height: 100%;
	max-width: none;
	object-fit: contain;
	width: 100%;
}

.rp-trust-pay-note {
	color: var(--rp-muted);
	font-size: 12px;
	line-height: 1.5;
	margin: 10px 0 0;
}

/* ---------- review prompt ---------- */

.rp-trust-noreviews {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 8px;
	margin: 6px 0 14px;
}

.rp-trust-stars { color: #cfd3c6; letter-spacing: 2px; }

.rp-trust-noreviews a { color: var(--rp-muted, #616852); text-decoration: underline; }

.rp-trust-loop-noreviews {
	color: #8b9184;
	font-size: 11px;
	margin: 2px 0 4px;
}

/* ---------- popup ---------- */

.rp-pop {
	background: var(--rp-paper);
	border: 1px solid var(--rp-line);
	border-radius: 4px;
	bottom: 18px;
	box-shadow: 0 10px 34px rgba(20, 24, 15, 0.18);
	left: 18px;
	max-width: calc(100vw - 36px);
	opacity: 0;
	padding: 14px 16px 16px;
	position: fixed;
	transform: translateY(10px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	width: 320px;
	z-index: 9998; /* Below the chat widget, not on top of it. */
}

.rp-pop.is-open { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.rp-pop { transition: none; transform: none; }
}

.rp-pop-x {
	background: none;
	border: 0;
	color: var(--rp-muted);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 4px 6px;
	position: absolute;
	right: 6px;
	top: 6px;
}

.rp-pop-x:hover { color: var(--rp-ink); }

.rp-pop-eyebrow {
	color: var(--rp-muted);
	font-size: 10px;
	letter-spacing: 0.14em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.rp-pop-body { display: flex; gap: 12px; }

.rp-pop-img {
	background: #fff;
	border: 1px solid var(--rp-line);
	border-radius: 3px;
	flex: none;
	line-height: 0;
	padding: 4px;
}

.rp-pop-img img { height: 72px; object-fit: contain; width: 72px; }

.rp-pop-meta { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; }

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

.rp-pop-name:hover { text-decoration: underline; }

.rp-pop-price { color: var(--rp-ink); font-size: 14px; }
.rp-pop-price .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}
.rp-pop-price del { color: #9aa08f; font-size: 12px; }
.rp-pop-price ins { background: none; font-weight: 700; text-decoration: none; }

.rp-pop-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

.rp-pop button.rp-pop-add {
	background: var(--rp-brass);
	border: 0;
	border-radius: 2px;
	color: #1b1e17;
	cursor: pointer;
	flex: 1;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	padding: 11px 12px;
	text-transform: none;
	width: auto;
}

.rp-pop button.rp-pop-add:hover { background: var(--rp-brass); filter: brightness(0.94); }
.rp-pop button.rp-pop-add:disabled { cursor: default; opacity: 0.75; }

.rp-pop-view { color: var(--rp-muted); font-size: 12px; text-decoration: underline; white-space: nowrap; }

.rp-pop-msg { color: #a8412c; font-size: 12px; margin: 10px 0 0; }

.rp-pop :focus-visible { outline: 2px solid var(--rp-green); outline-offset: 2px; }

@media (max-width: 420px) {
	.rp-pop { bottom: 12px; left: 12px; right: 12px; width: auto; }
}
