/*
 * Sidfot 3 – nyhetsbrev i Poco Home-stil och sidfot i fem kolumner.
 */

.bsp-f3 {
	--bsp-f3-nl-bg: #1e2a3a;
	--bsp-f3-nl-kicker: #ffffff;
	--bsp-f3-nl-title: #ffffff;
	--bsp-f3-nl-consent: var(--bsp-f3-nl-title);
	--bsp-f3-nl-consent-link: var(--bsp-f3-nl-title);
	--bsp-f3-nl-btn-bg: #ffffff;
	--bsp-f3-nl-btn-text: #1e2a3a;
	--bsp-f3-main-bg: #e8eef3;
	--bsp-f3-title: #111827;
	--bsp-f3-text: #374151;
	--bsp-f3-muted: #6b7280;
	--bsp-f3-link: #374151;
	--bsp-f3-link-hover: #111827;
	--bsp-f3-border: #d1d9e0;
	--bsp-f3-social-bg: #ffffff;
	--bsp-f3-social-icon: #374151;
	--bsp-f3-social-hover-bg: #1e2a3a;
	--bsp-f3-currency-bg: #1e2a3a;
	--bsp-f3-currency-text: #ffffff;
	--bsp-f3-bottom-bg: #f3f6f8;
	--bsp-f3-copyright: #6b7280;

	font-family: inherit;
}

.bsp-f3__container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ============================= Nyhetsbrev ================================ */

.bsp-f3__newsletter {
	background: var(--bsp-f3-nl-bg);
	padding: 44px 0;
}

.bsp-f3__newsletter-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.bsp-f3__newsletter-copy {
	flex: 1 1 420px;
	max-width: 620px;
}

.bsp-f3__newsletter-kicker {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--bsp-f3-nl-kicker);
}

.bsp-f3__newsletter-title {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bsp-f3-nl-title);
}

.bsp-f3__newsletter-form-wrap {
	flex: 1 1 360px;
	max-width: 520px;
}

.bsp-f3__newsletter-form {
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 999px;
	overflow: hidden;
	padding: 4px 4px 4px 20px;
}

.bsp-f3__newsletter-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: none;
	background: transparent;
	padding: 12px 0;
	font-size: 14px;
	color: #111827;
}

.bsp-f3__newsletter-form input[type="email"]::placeholder {
	color: #9ca3af;
}

.bsp-f3__newsletter-form button {
	flex: 0 0 auto;
	border: 0;
	cursor: pointer;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	color: var(--bsp-f3-nl-btn-text);
	background: transparent;
	transition: opacity 0.2s ease;
}

.bsp-f3__newsletter-form button:hover {
	opacity: 0.75;
}

.bsp-f3__newsletter-consent {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--bsp-f3-nl-consent);
}

.bsp-f3__newsletter-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--bsp-f3-nl-consent);
	cursor: pointer;
}

.bsp-f3__newsletter-consent-checkbox {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin: 2px 0 0;
	accent-color: #ffffff;
	cursor: pointer;
}

.bsp-f3__newsletter-consent-label > span {
	min-width: 0;
}

.bsp-f3__consent-link {
	color: var(--bsp-f3-nl-consent-link);
	text-decoration: underline;
}

/* ============================= Huvudkolumner ============================== */

.bsp-f3__main {
	background: var(--bsp-f3-main-bg);
	padding: 48px 0 40px;
}

.bsp-f3__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px 28px;
	align-items: start;
}

/* Keep each footer column equal; the split quick-link widget occupies two columns. */
@media (min-width: 1200px) {
	.bsp-f3__grid:has(> :nth-child(2) .bsp-f3__menu--split) {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.bsp-f3__grid > :nth-child(2):has(.bsp-f3__menu--split) {
		grid-column: span 2;
	}
}

/* Kontaktkolumn */

.bsp-f3__contact-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bsp-f3-text);
}

.bsp-f3__contact-line i {
	margin-top: 3px;
	font-size: 14px;
	color: var(--bsp-f3-muted);
}

.bsp-f3__contact-line--phone strong,
.bsp-f3__contact-line--email strong {
	font-weight: 700;
	color: var(--bsp-f3-title);
}

.bsp-f3__contact-email {
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.bsp-f3__contact-email:hover {
	text-decoration: underline;
}

.bsp-f3__social-block {
	margin: 8px 0 18px;
}

.bsp-f3__social-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: var(--bsp-f3-title);
}

.bsp-f3__socials {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bsp-f3__social {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--bsp-f3-social-icon);
	background: var(--bsp-f3-social-bg);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bsp-f3__social:hover {
	background: var(--bsp-f3-social-hover-bg);
	color: #ffffff;
}

.bsp-f3__disclaimer {
	margin: 0 0 18px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--bsp-f3-muted);
	max-width: 34ch;
}

.bsp-f3__currency {
	position: relative;
	z-index: 5;
}

.bsp-f3__currency .bsp-mcx {
	position: relative;
}

.bsp-f3__currency .bsp-currency-switcher,
.bsp-f3__currency .storecraft-currency-switcher,
.bsp-f3__currency select,
.bsp-f3__currency button,
.bsp-f3__currency .bsp-mcx__trigger {
	background: var(--bsp-f3-currency-bg);
	color: var(--bsp-f3-currency-text);
	border-radius: 999px;
	border: 0;
	font-size: 13px;
}

.bsp-f3__currency .bsp-mcx__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	cursor: pointer;
}

.bsp-f3__currency .bsp-mcx__current,
.bsp-f3__currency .bsp-mcx__trigger {
	color: var(--bsp-f3-currency-text);
}

/* Öppna uppåt så att menyn stannar ovanför sidfotens kant. */
.bsp-f3__currency .bsp-mcx__menu {
	top: auto;
	bottom: calc(100% + 10px);
	left: 0;
	right: auto;
	z-index: 40;
}

/* Länkkolumner */

.bsp-f3__widget-title,
.bsp-f3__links-col .bsp-footer__widget-title,
.bsp-f3__links-col h1,
.bsp-f3__links-col h2,
.bsp-f3__links-col h3,
.bsp-f3__links-col h4,
.bsp-f3__office-col .bsp-f3__widget-title {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--bsp-f3-title);
	line-height: 1.3;
}

.bsp-f3__menu,
.bsp-f3__links-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bsp-f3__grid .bsp-f3__menu--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--bsp-f3-menu-rows), auto);
	grid-auto-flow: column;
	column-gap: clamp(18px, 2vw, 32px);
	row-gap: 10px;
}

.bsp-f3__grid .bsp-f3__menu--split > li {
	margin: 0;
}

.bsp-f3__menu a,
.bsp-f3__links-col ul a {
	font-size: 14px;
	color: var(--bsp-f3-link);
	text-decoration: none;
	transition: color 0.15s ease;
}

.bsp-f3__menu a:hover,
.bsp-f3__links-col ul a:hover {
	color: var(--bsp-f3-link-hover);
}

.bsp-f3__placeholder {
	font-size: 13px;
	color: var(--bsp-f3-muted);
}

/* Kontorskolumn */

.bsp-f3__office-address,
.bsp-f3__office-line {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--bsp-f3-text);
}

.bsp-f3__about-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--bsp-f3-text);
}

.bsp-f3__about {
	max-width: 500px;
}

.bsp-f3__office-line a {
	color: var(--bsp-f3-link);
	text-decoration: none;
}

.bsp-f3__office-line a:hover {
	color: var(--bsp-f3-link-hover);
	text-decoration: underline;
}

/* ============================= Nedre fält ================================ */

.bsp-f3__bottom {
	background: var(--bsp-f3-bottom-bg);
	padding: 22px 0 24px;
	border-top: 1px solid var(--bsp-f3-border);
}

.bsp-f3__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.bsp-f3__copyright {
	margin: 0;
	font-size: 13px;
	color: var(--bsp-f3-copyright);
}

.bsp-f3__payments .bsp-footer__payments {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bsp-f3__payments .bsp-footer__payment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 28px;
	padding: 0 8px;
	border: 1px solid var(--bsp-f3-border);
	border-radius: 4px;
	background: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.4px;
	color: #1f2a44;
	text-transform: uppercase;
}

.bsp-f3__payments .bsp-footer__payment-image img {
	height: 28px;
	width: auto;
	display: block;
	border-radius: 4px;
}

/* ============================= Responsiv anpassning ================================ */

@media (max-width: 1199px) {
	.bsp-f3__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bsp-f3__contact-col {
		grid-column: 1 / -1;
	}

	.bsp-f3__grid > *:has(.bsp-f3__about-text) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.bsp-f3__newsletter {
		padding: 32px 0;
	}

	.bsp-f3__newsletter-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 22px;
	}

	.bsp-f3__newsletter-copy,
	.bsp-f3__newsletter-form-wrap {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}

	.bsp-f3__newsletter-copy {
		box-sizing: border-box;
		padding-inline: 12px;
	}

	.bsp-f3__newsletter-title {
		font-size: clamp(1.25rem, 5.5vw, 1.75rem);
	}

	.bsp-f3__newsletter-form {
		padding: 4px 4px 4px 16px;
	}

	.bsp-f3__newsletter-form button {
		padding: 12px 16px;
		white-space: nowrap;
	}

	.bsp-f3__grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
	}

	.bsp-f3__grid > *:has(.bsp-f3__menu--split),
	.bsp-f3__grid > *:has(.bsp-f3__about-text) {
		grid-column: 1 / -1;
	}

	.bsp-f3__about {
		max-width: 330px;
		margin-right: 0;
		margin-left: 0;
	}

	.bsp-f3__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 575px) {
	.bsp-f3__container {
		padding: 0 16px;
	}

	.bsp-f3__newsletter-consent {
		font-size: 11px;
	}

	.bsp-f3__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.bsp-f3__grid > * {
		min-width: 0;
		overflow-wrap: anywhere;
	}
}
