/**
 * Stopka — pasek zaufania + płatności / dostawa (child theme).
 * Układ kolumn i menu: Blocksy Customizer.
 */

.twd-footer-trust,
.twd-footer-payments {
	--twd-ft-ink: #0f172a;
	--twd-ft-muted: #64748b;
	--twd-ft-line: rgba(226, 232, 240, 0.95);
	--twd-ft-bg: #f8fafc;
	--twd-ft-card: #ffffff;
	color: var(--twd-ft-ink);
}

.twd-footer-trust {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-top: 1px solid var(--twd-ft-line);
}

.twd-footer-trust__inner,
.twd-footer-payments__inner {
	width: min(100% - 2rem, var(--theme-normal-container-max-width, 1200px));
	margin: 0 auto;
	padding: 1.15rem 0;
}

.twd-footer-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twd-footer-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.75rem 0.85rem;
	background: var(--twd-ft-card);
	border: 1px solid var(--twd-ft-line);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.twd-footer-trust__ico {
	flex-shrink: 0;
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 8px;
	background-color: #0f172a;
	-webkit-mask: center / 1rem no-repeat;
	mask: center / 1rem no-repeat;
}

.twd-footer-trust__ico--shield {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V6l8-3z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-4' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V6l8-3z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-4' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.twd-footer-trust__ico--truck {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 6h11v8H3zM14 9h4l3 3v2h-7V9z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='17' r='1.6' fill='black'/%3E%3Ccircle cx='17' cy='17' r='1.6' fill='black'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3 6h11v8H3zM14 9h4l3 3v2h-7V9z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3Ccircle cx='7' cy='17' r='1.6' fill='black'/%3E%3Ccircle cx='17' cy='17' r='1.6' fill='black'/%3E%3C/svg%3E");
}

.twd-footer-trust__ico--freeship {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3l1.8 3.6L17.5 7.5l-3.1 3 0.7 4L12 13.2 8.9 14.5l0.7-4-3.1-3 3.7-0.9L12 3z' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M5 19h14' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M8 19v-2h8v2' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3l1.8 3.6L17.5 7.5l-3.1 3 0.7 4L12 13.2 8.9 14.5l0.7-4-3.1-3 3.7-0.9L12 3z' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M5 19h14' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M8 19v-2h8v2' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.twd-footer-trust__ico--return {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 14L4 9l5-5' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 20v-5a4 4 0 00-4-4H4' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 14L4 9l5-5' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 20v-5a4 4 0 00-4-4H4' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.twd-footer-trust__title {
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.twd-footer-trust__desc {
	display: block;
	font-size: 0.68rem;
	line-height: 1.35;
	color: var(--twd-ft-muted);
	margin-top: 0.1rem;
}

/* Płatności + dostawa */
.twd-footer-payments {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: #0f172a;
	border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.twd-footer-payments__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.35rem 0 1.5rem;
	text-align: center;
}

.twd-footer-payments__headline {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #64748b;
}

.twd-footer-payments__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem 0.55rem;
	max-width: 36rem;
}

.twd-footer-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.twd-footer-logo:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.twd-footer-logo img {
	display: block;
	width: auto;
	object-fit: contain;
}

/* Przelewy24 — szerokie logo */
.twd-footer-logo--p24 {
	padding: 0.4rem 0.85rem;
}

.twd-footer-logo--p24 img {
	height: 1.15rem;
	max-width: 6.5rem;
}

/* BLIK, Apple Pay, Google Pay — standardowe badge 38×24 */
.twd-footer-logo--blik,
.twd-footer-logo--apple-pay,
.twd-footer-logo--google-pay {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.twd-footer-logo--blik:hover,
.twd-footer-logo--apple-pay:hover,
.twd-footer-logo--google-pay:hover {
	border: none;
	box-shadow: none;
}

.twd-footer-logo--blik img,
.twd-footer-logo--apple-pay img,
.twd-footer-logo--google-pay img {
	height: 1.6rem;
	width: auto;
	border-radius: 5px;
}

/* InPost — oficjalny wordmark */
.twd-footer-logo--inpost {
	padding: 0.38rem 0.75rem;
}

.twd-footer-logo--inpost img {
	height: 1.35rem;
	max-width: 5.75rem;
}

@media (max-width: 900px) {
	.twd-footer-trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.twd-footer-trust__inner,
	.twd-footer-payments__inner {
		width: min(100% - 1.25rem, 1200px);
	}

	.twd-footer-trust__grid {
		grid-template-columns: 1fr;
	}

	.twd-footer-payments__badges {
		gap: 0.4rem 0.45rem;
	}

	.twd-footer-logo--p24 img {
		height: 1rem;
		max-width: 5.5rem;
	}

	.twd-footer-logo--blik img,
	.twd-footer-logo--apple-pay img,
	.twd-footer-logo--google-pay img {
		height: 1.45rem;
	}

	.twd-footer-logo--inpost img {
		height: 1.2rem;
		max-width: 5rem;
	}
}
