/* ==========================================================================
   SpeedySeals Frontend — Trust Seal Display
   ========================================================================== */

.speedyseals-grid {
	--ss-gap: 16px;
	--ss-item-radius: 12px;
	--ss-item-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--ss-item-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);

	display: grid;
	gap: var(--ss-gap);
	grid-template-columns: repeat(var(--m_cols, 1), 1fr);
	align-items: stretch;
	justify-items: stretch;
	width: 100%;
	min-height: 80px;
	padding: 4px 0;
	transition: opacity 0.4s ease;
}

/* Loading skeleton */
.speedyseals-grid--loading {
	position: relative;
}

.speedyseals-grid--loading::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--ss-item-radius);
	background: linear-gradient(
		90deg,
		#f0f0f1 0%,
		#e8e8ea 40%,
		#f0f0f1 80%
	);
	background-size: 200% 100%;
	animation: speedyseals-shimmer 1.4s ease-in-out infinite;
	z-index: 0;
	min-height: 72px;
}

.speedyseals-grid--loading .speedyseals-item {
	opacity: 0;
}

.speedyseals-grid:not(.speedyseals-grid--loading)::before {
	display: none;
}

@keyframes speedyseals-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.speedyseals-grid--loading::before {
		animation: none;
		background: #f0f0f1;
	}
}

@media (min-width: 768px) {
	.speedyseals-grid {
		grid-template-columns: repeat(var(--t_cols, 2), 1fr);
	}
}

@media (min-width: 1024px) {
	.speedyseals-grid {
		grid-template-columns: repeat(var(--d_cols, 3), 1fr);
	}
}

/* Individual seal card */
.speedyseals-item {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
	padding: 16px 20px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--ss-item-radius);
	box-shadow: var(--ss-item-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.3s ease, border-color 0.25s ease;
	overflow: hidden;
}

.speedyseals-item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.speedyseals-item:hover {
	transform: translateY(-2px);
	box-shadow: var(--ss-item-shadow-hover);
	border-color: rgba(0, 0, 0, 0.12);
}

.speedyseals-item img {
	max-width: 100%;
	height: auto;
	display: block;
}

.speedyseals-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

@media (prefers-reduced-motion: reduce) {
	.speedyseals-item {
		transition: filter 0.3s ease;
	}

	.speedyseals-item:hover {
		transform: none;
	}
}

/* Grayscale filter */
.speedyseals-grayscale {
	filter: grayscale(100%);
}

.speedyseals-grayscale:hover {
	filter: grayscale(0%);
}

/* Sticky container */
.speedyseals-sticky-container {
	position: fixed;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	animation: speedyseals-slide-in 0.4s ease;
}

@keyframes speedyseals-slide-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.speedyseals-sticky-container {
		animation: none;
	}
}

.speedyseals-sticky-container .speedyseals-item {
	min-height: auto;
	padding: 10px 14px;
	box-shadow: none;
	border: none;
	background: transparent;
}

.speedyseals-sticky-container .speedyseals-item:hover {
	transform: none;
	box-shadow: none;
}

.speedyseals-sticky-container .speedyseals-item + .speedyseals-item {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0;
	padding-top: 12px;
}

.speedyseals-sticky-container--bottom-left {
	bottom: 20px;
	left: 20px;
}

.speedyseals-sticky-container--bottom-right {
	bottom: 20px;
	right: 20px;
}

.speedyseals-sticky-container--top-left {
	top: 20px;
	left: 20px;
}

.speedyseals-sticky-container--top-right {
	top: 20px;
	right: 20px;
}

/* RTL positioning */
body.rtl .speedyseals-sticky-container--bottom-left {
	left: auto;
	right: 20px;
}

body.rtl .speedyseals-sticky-container--bottom-right {
	right: auto;
	left: 20px;
}

body.rtl .speedyseals-sticky-container--top-left {
	left: auto;
	right: 20px;
}

body.rtl .speedyseals-sticky-container--top-right {
	right: auto;
	left: 20px;
}

/* Hide sticky seals on mobile (only inside sticky container) */
@media (max-width: 767px) {
	.speedyseals-sticky-container .speedyseals-hide-mobile {
		display: none !important;
	}

	.speedyseals-sticky-container {
		padding: 8px;
		border-radius: 10px;
	}

	.speedyseals-sticky-container--bottom-left,
	.speedyseals-sticky-container--bottom-right {
		bottom: 12px;
	}

	.speedyseals-sticky-container--top-left,
	.speedyseals-sticky-container--top-right {
		top: 12px;
	}

	.speedyseals-item {
		padding: 12px 16px;
		min-height: 60px;
	}
}
