/**
 * The shop footer (inc/footer.php, decision 55, mockup "Stopka" version A): the four facts (Below Content), the
 * footer columns (Footer) and the legal bar (Copyright). Colours from tokens.css; the footer background, text and
 * link colours are also set in the Customizer (tools/footer/footer-widgets.php), which prints them before this file.
 */

/* ---------------------------------------------------------------- Four facts above the footer (Below Content) */

.below-content {
	padding: 0;
	border-top: 1px solid var(--sz-line);
	background: #fff;
}
.below-content .col-full {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding-top: 32px;
	padding-bottom: 34px;
}
.below-content .col-full::after,
.site-footer .col-full::after,
footer.copyright .col-full::after {
	content: none;
}
/* The theme moves these areas 20px to the left (its widgets had side padding); level them with the page content. */
@media (min-width: 993px) {
	.below-content .col-full,
	footer.site-footer .col-full,
	footer.copyright .col-full {
		padding-right: 2.617924em;
		padding-left: 2.617924em;
	}
}
.below-content .col-full > .widget {
	min-width: 0;
	margin: 0;
	padding: 0;
}
.below-content .widget .textwidget {
	height: 100%;
	margin: 0;
}
.sz-fact {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
}
.sz-fact__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sz-chip);
}
.below-content .sz-fact .sz-icon {
	position: static;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--sz-navy);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.below-content .sz-fact .sz-icon path {
	stroke-width: 1.7;
}
.sz-fact__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sz-fact__title {
	font-family: Poppins, sans-serif;
	font-size: 15px;
	line-height: 21px;
	font-weight: 600;
	color: var(--sz-ink);
}
.sz-fact__lead {
	font-size: 13.5px;
	line-height: 20px;
	color: var(--sz-ink2);
}
a.sz-fact:hover .sz-fact__title,
a.sz-fact:focus-visible .sz-fact__title {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ---------------------------------------------------------------- Footer columns (Footer) */

.site-footer {
	padding: 56px 0 44px;
}
.site-footer .col-full {
	display: grid;
	grid-template-columns: 1.45fr 1fr 1fr 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 48px;
	row-gap: 22px;
}
.site-footer .col-full > .widget {
	padding: 0;
	margin: 0;
	min-width: 0;
}
/* The shop column and the first two link columns run the full height; the fourth column holds two groups
   (Konto, O sklepie), one under the other. */
.site-footer .col-full > .widget:nth-child(-n+3) {
	grid-row: 1 / span 2;
}
.site-footer .col-full > .widget:nth-child(4) {
	grid-column: 4;
	grid-row: 1;
}
.site-footer .col-full > .widget:nth-child(5) {
	grid-column: 4;
	grid-row: 2;
}
.site-footer .widget .widget-title {
	display: block;
	margin: 0 0 10px;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	line-height: 22px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}
.site-footer .widget_nav_menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer .widget_nav_menu li {
	margin: 0;
	font-size: 14.5px;
	line-height: 32px;
}
.site-footer .widget_nav_menu a {
	display: inline;
	color: #d3d8e6;
}

/* The shop column */
.sz-footer-shop {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.sz-footer-shop__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	align-self: flex-start;
	font-family: Poppins, sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
footer.site-footer a.sz-footer-shop__brand {
	color: #fff;
}
.sz-footer-shop__brand img {
	width: 44px;
	height: 44px;
	margin: 0;
}
.site-footer .widget p.sz-footer-shop__text {
	max-width: 330px;
	margin: 0;
	font-size: 14.5px;
	line-height: 22px;
	color: #d3d8e6;
}
.site-footer .widget p.sz-footer-shop__contact {
	display: flex;
	margin: 4px 0 0;
}
footer.site-footer a.sz-footer-shop__email,
.sz-footer-shop__email {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	overflow-wrap: anywhere;
}
.sz-footer-shop__email .sz-icon {
	flex: none;
	width: 19px;
	height: 19px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
}

/* ---------------------------------------------------------------- Legal bar (Copyright) */

/* Stronger than the theme's "footer:last-child:not(:only-of-type)" (negative margin) and the Customizer colour,
   which paints both footers the same. */
body footer.copyright:last-child:not(:only-of-type),
body footer.copyright {
	margin-top: 0;
	padding: 22px 0 26px;
	background-color: var(--sz-navy-dark);
}
footer.copyright .col-full {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 24px;
}
footer.copyright .col-full > .widget {
	flex: 0 1 auto;
	padding: 0;
	margin: 0;
	text-align: left;
}
footer.copyright .col-full > .widget:last-child {
	flex: 1 0 100%;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: left;
}
footer.copyright .widget_nav_menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
footer.copyright .widget_nav_menu li {
	margin: 0;
	font-size: 13.5px;
	line-height: 24px;
}
footer.copyright .widget_nav_menu a {
	color: #fff;
}

.sz-payments {
	display: flex;
	align-items: center;
	gap: 10px;
}
.sz-payments__label {
	font-size: 12.5px;
	color: #b8c0d6;
}
/* The marks keep their own proportions at one height; the gap is the clear space the brands ask for (half the
   height of Google's G, a quarter of Apple's mark) */
.sz-payments__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sz-pay-mark {
	display: inline-flex;
	margin: 0;
	line-height: 0;
}
footer.copyright .widget .sz-pay-mark img {
	display: block;
	width: auto;
	height: 24px;
	margin: 0;
}
footer.copyright .widget .sz-pay-mark--ingpay img {
	height: 26px;
}
/* Visa and Mastercard are the marks alone: a white tile of the proportions of the other badges around them */
footer.copyright .widget .sz-pay-mark--tile {
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 24px;
	border-radius: 4px;
	background: #fff;
}
footer.copyright .widget .sz-pay-mark--visa img {
	height: 9px;
}
footer.copyright .widget .sz-pay-mark--mastercard img {
	height: 16px;
}

.sz-seller {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}
footer.copyright .widget p.sz-seller__data,
footer.copyright .widget p.sz-seller__copy {
	margin: 0;
	font-size: 12.5px;
	line-height: 20px;
	color: #b8c0d6;
}
.sz-seller__data {
	min-width: 0;
}
.sz-seller__line {
	display: block;
}
.sz-seller__part {
	white-space: nowrap;
}
footer.copyright .widget p.sz-seller__copy {
	flex: none;
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 992px) {
	.below-content .col-full {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 28px;
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.site-footer {
		padding: 44px 0 32px;
	}
	.site-footer .col-full {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		column-gap: 32px;
		row-gap: 28px;
	}
	.site-footer .col-full > .widget:nth-child(n) {
		grid-column: auto;
		grid-row: auto;
		margin: 0;
	}
	.site-footer .col-full > .widget:first-child {
		grid-column: 1 / -1;
	}
	footer.copyright .col-full {
		row-gap: 16px;
	}
	footer.copyright .col-full > .widget:last-child {
		margin-top: 2px;
	}
}

/* ---------------------------------------------------------------- Phone */

@media (max-width: 768px) {
	.below-content .col-full {
		gap: 10px;
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.sz-fact {
		flex-direction: column;
		gap: 8px;
		height: 100%;
		padding: 14px 12px;
		border: 1px solid var(--sz-line);
		border-radius: 10px;
		background: #fff;
	}
	.sz-fact__icon {
		width: 34px;
		height: 34px;
	}
	.below-content .sz-fact .sz-icon {
		width: 19px;
		height: 19px;
	}
	.sz-fact__title {
		font-size: 13.5px;
		line-height: 18px;
	}
	.sz-fact__lead {
		font-size: 12.5px;
		line-height: 17px;
	}

	.site-footer {
		padding: 28px 0 8px;
	}
	.site-footer .col-full {
		column-gap: 16px;
		row-gap: 18px;
	}
	.site-footer .col-full > .widget:first-child {
		padding-bottom: 22px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	}
	.site-footer .widget .widget-title {
		margin-bottom: 2px;
		font-size: 14.5px;
	}
	.site-footer .widget_nav_menu li {
		line-height: 20px;
	}
	.site-footer .widget_nav_menu a {
		display: block;
		padding: 10px 0;
	}
	.sz-footer-shop {
		gap: 14px;
	}
	.sz-footer-shop__brand {
		font-size: 17px;
	}
	.sz-footer-shop__brand img {
		width: 36px;
		height: 36px;
	}
	footer.site-footer a.sz-footer-shop__email {
		font-size: 16.5px;
	}

	body footer.copyright:last-child:not(:only-of-type),
	body footer.copyright {
		padding: 18px 0 24px;
	}
	footer.copyright .col-full > .widget {
		flex: 1 0 100%;
	}
	footer.copyright .widget_nav_menu ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
	}
	footer.copyright .widget_nav_menu li {
		line-height: 32px;
	}
	.sz-payments {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.sz-seller {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	footer.copyright .widget p.sz-seller__data,
	footer.copyright .widget p.sz-seller__copy {
		font-size: 12px;
		line-height: 19px;
	}
	.sz-seller__line + .sz-seller__line {
		margin-top: 4px;
	}
}
