/**
 * YA footer
 *
 * Mobile: single stacked column.
 * Mobile L / Tablet: contact full-width above two link groups.
 * Tablet L: pattern-owned eight-column composition; Desktop: twelve.
 */

.ya-footer {
	box-sizing: border-box;
	width: 100%;
	margin-block: 0;
	padding-block: var(--wp--custom--spacing--padding-block, clamp(3rem, 1.004rem + 4.163vi, 6rem));
	padding-inline: var(--wp--custom--spacing--padding-inline, clamp(1rem, -1.486rem + 8.304vi, 2.5rem));
}

.ya-footer__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 120rem;
	margin-inline: auto;
	padding: var(--wp--custom--spacing--padding-block, clamp(3rem, 1.004rem + 4.163vi, 6rem))
		var(--wp--custom--spacing--padding-inline, clamp(1rem, -1.486rem + 8.304vi, 2.5rem));
	border-radius: 16px;
}

.ya-footer__panel a {
	color: inherit;
}

.ya-footer__brand {
	margin-block: 0;
}

.ya-footer__heading {
	margin-block: 0;
}

.ya-footer__columns.row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin-block: 0;
	margin-inline: auto;
	row-gap: 2.5rem;
	max-width: var(--wp--style--global--wide-size, 90rem);
}

.ya-footer__columns.row > .ya-footer__col { grid-column: auto; }

.ya-footer__col {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.ya-footer__col--contact { gap: var(--ya-spacing-40); }

.ya-footer__col > p,
.ya-footer__contact > p,
.ya-footer__legal > p {
	margin-block: 0;
}

.ya-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ya-footer__contact-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ya-footer__icon {
	display: inline-flex;
	flex-shrink: 0;
	color: currentColor;
}

.ya-footer__icon svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

.ya-footer__icon svg path {
	fill: currentColor;
}

.ya-footer__meta {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	margin-block-start: 2.5rem;
	margin-inline: auto;
	gap: 2.5rem;
	max-width: var(--wp--style--global--wide-size, 90rem);
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

.ya-footer__logo,
.ya-footer__klarna {
	margin-block: 0;
	line-height: 0;
}

.ya-footer__logo img,
.ya-footer__klarna img {
	display: block;
	height: auto;
}
.ya-footer__logo img { width: auto; height: 60px; max-width: 100%; }
.ya-footer__logo a { display: inline-block; border-radius: 0; }
.ya-footer__logo a:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--custom--color--focus-border-inverse);
	outline-offset: 4px;
}
.ya-footer .ya-link { min-height: 24px; }

.ya-footer__klarna img {
	width: 5rem;
}

.ya-footer__legal {
	display: flex;
	gap: 0.75rem 2.5rem;
	flex-direction: column;
	align-items: flex-start;
}

@media (max-width: 767px) {
	.ya-footer__panel { border-radius: 0; }
}
@media (forced-colors: active) {
	.ya-footer__logo a:focus-visible { outline-color: Highlight; }
}

@media (min-width: 480px) {
	.ya-footer__columns.row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ya-footer__columns.row > .ya-footer__col--contact { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
	.ya-footer__columns.row { row-gap: var(--ya-spacing-72); }
	.ya-footer__meta { margin-block-start: var(--ya-spacing-72); }
	.ya-footer__legal {
		gap: 0.75rem;
	}
}

/* Footer owns this eight-column composition; the shared Tablet L grid stays twelve. */
@media (min-width: 992px) {
	.ya-footer__columns.row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.ya-footer__columns.row > .ya-footer__col--contact { grid-column: 1 / span 3; }
	.ya-footer__columns.row > .ya-footer__col--offers { grid-column: 4 / span 2; }
	.ya-footer__columns.row > .ya-footer__col--about { grid-column: 6 / span 2; }
}

@media (min-width: 1280px) {
	.ya-footer__columns.row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.ya-footer__columns.row > .ya-footer__col--contact { grid-column: 1 / span 4; }
	.ya-footer__columns.row > .ya-footer__col--offers { grid-column: 5 / span 3; }
	.ya-footer__columns.row > .ya-footer__col--about { grid-column: 8 / span 2; }

	.ya-footer__meta {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		margin-block-start: 4.5rem;
	}

	.ya-footer__legal {
		flex-direction: row;
		align-items: center;
		gap: 0.5rem 2.5rem;
	}
}
