/**
 * Site footer (footer.php). Design reference: design/ms-shop-homepage.html.
 *
 * Container width/gutters: ms-shop-layout.css (`#colophon .col-full`).
 * `#colophon` beats Storefront's Customizer footer colours and the older
 * footer rules in style.css (`.site-footer { background: #0e3144 }`).
 */

#colophon.ms-shop-footer {
	--ms-shop-footer-bg: #00324c;
	--ms-shop-footer-muted: #b9c7d2;
	--ms-shop-footer-line: rgba(255, 255, 255, 0.14);

	margin: 0;
	padding: 0;
	background: var(--ms-shop-footer-bg);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

#colophon .ms-shop-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 28px;
}

#colophon .ms-shop-footer__inner::before,
#colophon .ms-shop-footer__inner::after {
	display: none;
}

#colophon .ms-shop-footer__cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
	gap: 32px;
}

#colophon .ms-shop-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

#colophon .ms-shop-footer__col p {
	margin: 0;
	max-width: 34ch;
	line-height: 21px;
	color: var(--ms-shop-footer-muted);
}

/* Logo on a white chip so the dark logo stays readable on navy. */
#colophon .ms-shop-footer__logo {
	align-self: flex-start;
	display: inline-flex;
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
}

#colophon .ms-shop-footer__logo-img {
	display: block;
	width: 168px;
	height: auto;
	margin: 0;
}

#colophon .ms-shop-footer__logo-text {
	color: #00324c;
	font-size: 18px;
	font-weight: 800;
}

#colophon .ms-shop-footer__head {
	margin: 0 0 2px;
	padding: 0;
	color: #fff;
	font-size: 13px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#colophon .ms-shop-footer__links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .ms-shop-footer__links li {
	margin: 0;
	padding: 0;
}

#colophon .ms-shop-footer__col a {
	color: var(--ms-shop-footer-muted);
	text-decoration: none;
	overflow-wrap: anywhere;
}

#colophon .ms-shop-footer__col a:hover,
#colophon .ms-shop-footer__col a:focus {
	color: #fff;
	text-decoration: none;
}

#colophon .ms-shop-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 4px;
}

#colophon .ms-shop-footer__links a .ms-shop-footer__svg {
	display: inline-block;
	margin-left: 4px;
	vertical-align: -2px;
}

/* Contact lines: icon + text. */
#colophon .ms-shop-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ms-shop-footer-muted);
}

#colophon .ms-shop-footer__contact .ms-shop-footer__svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: #fff;
}

/* Social icons */
#colophon .ms-shop-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

#colophon .ms-shop-footer__social li {
	margin: 0;
}

#colophon .ms-shop-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	color: var(--ms-shop-footer-muted);
	transition: border-color 0.15s, color 0.15s;
}

#colophon .ms-shop-footer__social a:hover,
#colophon .ms-shop-footer__social a:focus {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

#colophon .ms-shop-footer__legal {
	padding-top: 20px;
	border-top: 1px solid var(--ms-shop-footer-line);
	color: var(--ms-shop-footer-muted);
	font-size: 13px;
}

@media (max-width: 1023px) {
	#colophon .ms-shop-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	#colophon .ms-shop-footer__inner {
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 24px;
	}

	#colophon .ms-shop-footer__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#colophon .ms-shop-footer__social a {
		transition: none;
	}
}
