/*
 * Brands row, strip and footer (site redesign). Printed by footer/footer.php
 * on every page that has the footer.
 *
 * TYPE (Inter only), from Eoghan's design:
 *   22px / 600            "Brands we stock"
 *   16px / 700            the strip (14px on phones)
 *   13px / 700 capitals   column headings
 *   15px / 400            links and text (#B9BDC3)
 *   15px / 400 white      the rating line, phone and email
 *   15px / 700            the Sign Up button
 *   14px / 400            the email field (so the placeholder fits)
 * On phones the email field is 16px so the phone does not zoom in.
 *
 *   A. brands we stock;
 *   B. the strip;
 *   1. frame and columns;
 *   2. links and text;
 *   3. the newsletter form (WPForms);
 *   4. the bottom line;
 *   5. tablets and phones.
 */

/* ---------- A. Brands we stock ---------- */

.dlf-brands {
	margin: 0;
	padding: 0;
	border-top: 1px solid #EFF1F3;
	background: #FFFFFF;
	font-family: Inter, system-ui, sans-serif;
}

.dlf-brands *,
.dlf-strip * {
	box-sizing: border-box;
}

.dlf-brands-in {
	max-width: 1218px;
	margin: 0 auto;
	padding: 64px 24px;
}

.dlf-brands .dlf-brands-h {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	text-align: center;
	text-transform: none;
	color: #363C44;
}

.dlf-brands .dlf-brands-h::before,
.dlf-brands .dlf-brands-h::after {
	content: none;
}

.dlf-brands-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 50px;
	margin-top: 32px;
}

.dlf-brands-row a {
	display: flex;
	box-shadow: none;
}

.dlf-brands-row a:focus-visible {
	outline: 2px solid #16191D;
	outline-offset: 4px;
}

.dlf-brands-row img {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	border-radius: 0;
}

/* ---------- B. The strip ---------- */

.dlf-strip {
	margin: 0;
	padding: 40px 0;
	background: #E2E6EF;
	font-family: Inter, system-ui, sans-serif;
}

.dlf-strip-in {
	max-width: 1218px;
	margin: 0 auto;
	padding: 0 24px;
}

.dlf-strip-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #E6E8EC;
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0 10px 28px rgba(22, 30, 50, 0.07);
	list-style: none;
}

.dlf-strip .dlf-tile {
	flex: 1 1 200px;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 22px 28px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #16191D;
	list-style: none;
}

.dlf-strip .dlf-tile::before {
	content: none;
}

.dlf-strip .dlf-tile + .dlf-tile {
	border-left: 1px solid #EEF0F3;
}

.dlf-strip .dlf-ico {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #E7F4EE;
}

.dlf-strip .dlf-ico svg {
	display: block;
}
/* ---------- 1. Frame and columns ---------- */

.dlf {
	margin: 0;
	padding: 0;
	background: #0F0F0F;
	color: #B9BDC3;
	font-family: Inter, system-ui, sans-serif;
	font-size: 15px;
	line-height: 19px;
	text-align: left;
}

.dlf *,
.dlf *::before,
.dlf *::after {
	box-sizing: border-box;
}

.dlf-in {
	max-width: 1218px;
	margin: 0 auto;
	padding: 56px 24px 28px;
}

.dlf-cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dlf-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding-right: 32px;
}

.dlf-col:last-child {
	padding-right: 0;
}

.dlf .dlf-h {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 13px;
	line-height: 19px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.dlf .dlf-h::before,
.dlf .dlf-h::after {
	content: none;
}

/* ---------- 2. Links and text ---------- */

.dlf p {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
}

.dlf .dlf-white {
	color: #FFFFFF;
}

.dlf-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dlf-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dlf-links li::before {
	content: none;
}

.dlf a {
	color: #B9BDC3;
	font: inherit;
	text-decoration: none;
	box-shadow: none;
}

.dlf a:hover {
	color: #FFFFFF;
}

.dlf a.dlf-u {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dlf a:focus-visible,
.dlf button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.dlf-stars {
	display: block;
	flex: 0 0 auto;
}

.dlf .dlf-intro {
	line-height: 25.6px;
	text-wrap: pretty;
}

/* ---------- 3. The newsletter form (WPForms) ---------- */

.dlf-form {
	width: 100%;
}

.dlf div.wpforms-container-full,
.dlf div.wpforms-container {
	margin: 0 !important;
	padding: 0;
}

/* Email field and Sign Up side by side. */
.dlf div.wpforms-container-full .wpforms-form {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.dlf div.wpforms-container-full .wpforms-form .wpforms-field-container {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.dlf div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-email {
	margin: 0;
	padding: 0;
}

/* The sign-up form plugin sets its own sizes and colours with strong rules,
   so the ones below are marked !important to win. */
.dlf div.wpforms-container-full .wpforms-form input[type="email"] {
	width: 100% !important;
	max-width: none !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: normal !important;
	color: #222222 !important;
}

.dlf div.wpforms-container-full .wpforms-form input[type="email"]::placeholder {
	color: #6B6B6B;
	opacity: 1;
}

.dlf div.wpforms-container-full .wpforms-form input[type="email"]:focus {
	outline: 2px solid #3BB44A !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
}

.dlf div.wpforms-container-full .wpforms-form .wpforms-submit-container {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.dlf div.wpforms-container-full .wpforms-form button.wpforms-submit {
	height: 48px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #3BB44A !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1 !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #FFFFFF !important;
	cursor: pointer !important;
}

.dlf div.wpforms-container-full .wpforms-form button.wpforms-submit:hover,
.dlf div.wpforms-container-full .wpforms-form button.wpforms-submit:focus {
	background: #34A242 !important;
	color: #FFFFFF !important;
}

.dlf div.wpforms-container-full .wpforms-form .wpforms-submit-spinner {
	margin: 0 0 0 8px;
}

/* The invisible spam check takes no room. */
.dlf div.wpforms-container-full .wpforms-form .wpforms-recaptcha-container {
	position: absolute;
	margin: 0;
	padding: 0;
}

/* Messages from the form. */
.dlf div.wpforms-container-full .wpforms-form .wpforms-error,
.dlf div.wpforms-container-full .wpforms-form em.wpforms-error,
.dlf div.wpforms-container-full .wpforms-form label.wpforms-error {
	display: block;
	margin: 6px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	line-height: 19px;
	font-style: normal;
	font-weight: 400;
	color: #FF9C9C;
}

.dlf div.wpforms-container-full .wpforms-form .wpforms-error::before {
	content: none;
}

.dlf .wpforms-confirmation-container-full,
.dlf div[submit-success] > .wpforms-confirmation-container-full {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #2E6B45;
	border-radius: 4px;
	background: #13261A;
	font-size: 15px;
	line-height: 1.5;
	color: #FFFFFF;
}

.dlf .wpforms-confirmation-container-full p {
	margin: 0;
	color: #FFFFFF;
}

/* ---------- 4. The bottom line ---------- */

.dlf-bottom {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: center;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #262626;
}

.dlf .dlf-copy {
	color: #B9BDC3;
}

.dlf a.dlf-contact {
	justify-self: start;
	color: #FFFFFF;
}

.dlf a.dlf-contact:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.dlf-cards {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dlf-cards li {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 30px;
	margin: 0;
	padding: 5px 6px;
	border-radius: 3px;
	background: #FFFFFF;
	list-style: none;
}

.dlf-cards li::before {
	content: none;
}

.dlf-cards img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	border-radius: 0;
}

/* ---------- 5. Tablets and phones ---------- */

@media (max-width: 991px) {
	/* Brands three across; strip two by two. */
	.dlf-brands-row {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-items: center;
		gap: 32px 20px;
		height: auto;
	}

	.dlf-strip-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dlf-strip .dlf-tile + .dlf-tile {
		border-left: 0;
	}

	.dlf-strip .dlf-tile:nth-child(2n) {
		border-left: 1px solid #EEF0F3;
	}

	.dlf-strip .dlf-tile:nth-child(n+3) {
		border-top: 1px solid #EEF0F3;
	}
	.dlf-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}

	.dlf-col:nth-child(2n) {
		padding-right: 0;
	}

	.dlf-bottom {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}

	/* Phone and email together on the first line, then the year and the logos. */
	.dlf a.dlf-contact {
		order: -1;
	}
}

/* From Eoghan's phone board: the two link lists side by side, then the
   reviews and the newsletter across the full width. */
@media (max-width: 640px) {
	/* Brands and strip, from his homepage phone board. */
	.dlf-brands-in {
		padding: 36px 20px 40px;
	}

	.dlf-brands-row {
		gap: 26px 20px;
		margin-top: 28px;
	}

	.dlf-brands-row img[alt="Dell"] { height: 26px !important; }
	.dlf-brands-row img[alt="Lenovo"] { height: 29px !important; }
	.dlf-brands-row img[alt="HP"] { height: 31px !important; }
	.dlf-brands-row img[alt="Panasonic"] { height: 15px !important; }
	.dlf-brands-row img[alt="Apple"] { height: 31px !important; }
	.dlf-brands-row img[alt="Microsoft"] { height: 19px !important; }

	.dlf-strip {
		padding: 32px 0;
	}

	.dlf-strip-in {
		padding: 0 20px;
	}

	.dlf-strip .dlf-tile {
		flex-direction: column;
		justify-content: flex-start;
		gap: 8px;
		padding: 16px 8px;
		font-size: 14px;
		text-align: center;
	}

	.dlf-strip .dlf-ico {
		width: 38px;
		height: 38px;
	}
	.dlf-in {
		padding: 44px 20px 28px;
	}

	.dlf-cols {
		column-gap: 20px;
		row-gap: 32px;
	}

	.dlf-col {
		padding-right: 0;
	}

	.dlf-col-reviews,
	.dlf-col-newsletter {
		grid-column: 1 / -1;
	}

	.dlf .dlf-h {
		margin-bottom: 6px;
	}

	.dlf div.wpforms-container-full .wpforms-form input[type="email"] {
		font-size: 16px !important;
	}

	.dlf-bottom {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.dlf-cards {
		justify-content: flex-start;
		flex-wrap: wrap;
		margin-top: 4px;
	}
}
