/**
 * GP Trust Icons — front-end trust bar.
 *
 * Everything tunable arrives as a CSS custom property on the .gp-ti container
 * (set inline from the saved settings), so this file just lays the bar out.
 */

.gp-ti {
	--gp-ti-isize: 30px;
	--gp-ti-stroke: 1.7;
	--gp-ti-tsize: 14px;
	--gp-ti-icol: #111827;
	--gp-ti-ibg: #f3f4f6;
	--gp-ti-tcol: #111827;
	--gp-ti-scol: #6b7280;
	--gp-ti-bg: #fff;
	--gp-ti-border: #e5e7eb;

	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: start;
	gap: 16px 22px;
	margin: 18px 0;
	box-sizing: border-box;
}

/* Hairline rules above and below (when not boxed). */
.gp-ti--divider {
	border-top: 1px solid var(--gp-ti-border);
	border-bottom: 1px solid var(--gp-ti-border);
	padding: 18px 4px;
}

/* Card framing. */
.gp-ti--boxed {
	background: var(--gp-ti-bg);
	border: 1px solid var(--gp-ti-border);
	border-radius: 12px;
	padding: 18px 20px;
}

/* ---- One item ------------------------------------------------------------- */
.gp-ti__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	grid-column: span var(--gp-ti-span, 4);
}

.gp-ti--stacked .gp-ti__item {
	flex-direction: column;
	text-align: center;
}

.gp-ti--center.gp-ti--inline .gp-ti__item {
	justify-content: center;
	text-align: left;
}

/* ---- Icon ----------------------------------------------------------------- */
.gp-ti__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--gp-ti-icol);
}

svg.gp-ti-ico,
.gp-ti .gp-ti-ico {
	width: var(--gp-ti-isize, 30px) !important;
	height: var(--gp-ti-isize, 30px) !important;
	max-width: var(--gp-ti-isize, 30px) !important;
	max-height: var(--gp-ti-isize, 30px) !important;
	stroke-width: var(--gp-ti-stroke, 1.7);
	display: block;
}

/* Chip style: a soft rounded background behind the icon. */
.gp-ti--chip .gp-ti__icon {
	background: var(--gp-ti-ibg);
	border-radius: 14px;
	padding: calc(var(--gp-ti-isize) * 0.32);
}

/* ---- Text ----------------------------------------------------------------- */
.gp-ti__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.gp-ti__title {
	color: var(--gp-ti-tcol);
	font-size: var(--gp-ti-tsize);
	font-weight: 700;
}

.gp-ti__sub {
	color: var(--gp-ti-scol);
	font-size: calc(var(--gp-ti-tsize) - 1.5px);
	font-weight: 400;
	margin-top: 2px;
}

/* ---- Sales boosters (viewers / shipping / stock / purchases) --------------- */
.gp-ti-boost {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 20px;
	margin: 14px 0;
	font-size: 13px;
	line-height: 1.4;
	color: #374151;
}

.gp-ti-boost__line {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 3px 0;
	min-width: 0;
}

.gp-ti-boost .gp-ti-boost__ico,
.gp-ti-boost__line .gp-ti-boost__ico {
	width: 17px !important;
	height: 17px !important;
	min-width: 17px;
	max-width: 17px !important;
	max-height: 17px !important;
	stroke-width: 1.8 !important;
	flex: none;
	display: block;
}

/* The pulsing "low stock" dot. */
.gp-ti-boost__dot {
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0 4px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
	animation: gp-ti-boost-pulse 2s ease-in-out infinite;
}

@keyframes gp-ti-boost-pulse {
	0%, 100% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .12); }
	50%      { box-shadow: 0 0 0 4px rgba(0, 0, 0, .22); }
}

@media (prefers-reduced-motion: reduce) {
	.gp-ti-boost__dot { animation: none; }
}

/* ---- Payment icons bar ------------------------------------------------------ */
.gp-ti-pay {
	margin: 14px 0;
	text-align: center;
}

.gp-ti-pay__title {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 8px;
}

.gp-ti-pay__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: var(--gp-ti-pay-row-w, 220px);
	margin: 0 auto;
	justify-content: center;
	align-items: center;
}

.gp-ti-pay__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--gp-ti-pay-box-w, 68px);
	height: var(--gp-ti-pay-box-h, 38px);
	padding: 5px 7px;
	max-width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	line-height: 0;
	overflow: hidden;
}

.gp-ti-pay .gp-ti-pay__img,
.gp-ti-pay__img {
	height: auto !important;
	width: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	display: block;
	object-fit: contain;
}

.gp-ti-pay__badge--googlepay .gp-ti-pay__img {
	transform: scale(1.28);
	transform-origin: center;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 600px) {
	.gp-ti {
		grid-template-columns: 1fr;
		gap: 14px 18px;
	}
	.gp-ti__item { grid-column: 1 / -1; }
	.gp-ti-boost { grid-template-columns: 1fr; }
}
