/*
 * Tyson Vape footer (Elementor template 51). Layout and colours for the classes set on the template:
 *   .tv-footer > .tv-footer__top (brand + 4 link columns), .tv-footer__legal (warning + Prop 65), .tv-footer__bottom (copyright)
 * Depends on tokens.css. Values follow the mockup's footer.
 */

/* Shared wrapper used by footer and homepage containers. */
.e-con.tv-wrap {
	--padding-left: var(--gutter);
	--padding-right: var(--gutter);
	width: 100%;
	max-width: calc(var(--wrap) + (2 * var(--gutter)));
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------- shell */
.e-con.tv-footer {
	--padding-top: 80px;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--gap: 0px;
	--row-gap: 0px;
	background-color: var(--ink);
	color: var(--bone);
	border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- top grid */
.e-con.tv-footer__top {
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: 40px;
	--padding-top: 0;
	--padding-bottom: 60px;
	align-items: start;
}

.e-con.tv-footer__brand,
.e-con.tv-footer__col {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--gap: 0px;
	--row-gap: 0px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

/* Logo */
.tv-footer__logo img {
	width: auto;
	max-width: 200px;
	height: auto;
}

.tv-footer__logo .elementor-image,
.tv-footer__logo a {
	display: inline-block;
	text-align: left;
}

.tv-footer .tv-footer__logo {
	text-align: left;
}

/* Short line */
.tv-footer .tv-footer__blurb,
.tv-footer .tv-footer__blurb p {
	margin: 16px 0 0;
	max-width: 320px;
	color: var(--mute);
	font-family: var(--body);
	font-size: var(--fs-body-sm);
	line-height: 1.5;
	text-align: left;
}

/* ---------------------------------------------------------------- newsletter form (Elementor Pro form) */
.tv-footer__form {
	margin-top: 18px;
}

.tv-footer__form .elementor-form-fields-wrapper {
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	border: var(--border-w) solid var(--line);
}

.tv-footer__form .elementor-field-group {
	margin: 0;
	padding: 0;
}

.tv-footer__form .elementor-field-group:not(.e-form__buttons) {
	flex: 1 1 auto;
	width: auto;
	max-width: none;
}

.tv-footer__form .e-form__buttons,
.tv-footer__form .elementor-field-type-submit {
	flex: 0 0 auto;
	width: auto;
	max-width: none;
}

html body .tv-footer__form .elementor-field-textual,
html body .tv-footer__form input[type="email"] {
	min-height: 48px;
	padding: 14px 16px;
	background: transparent;
	color: var(--bone);
	border: 0;
	border-radius: 0;
	font-family: var(--body);
	font-size: var(--fs-body-sm);
}

html body .tv-footer__form input[type="email"]::placeholder {
	color: var(--mute);
	opacity: 1;
}

html body .tv-footer__form input[type="email"]:focus {
	outline: 2px solid var(--gold);
	outline-offset: -2px;
}

html body .tv-footer__form .elementor-button {
	height: 100%;
	min-height: 48px;
	padding: 0 20px;
	background: var(--gold);
	color: var(--ink);
	border: 0;
	border-radius: 0;
	clip-path: none;
	font-family: var(--body);
	font-size: var(--fs-label);
	font-weight: var(--fw-black);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	transform: none;
}

html body .tv-footer__form .elementor-button:hover {
	background: var(--gold-soft);
	color: var(--ink);
	transform: none;
}

/* Round 8: Elementor's form widget prints a default white button text colour with
   ".elementor-51 .elementor-element.elementor-element-4e995a3 .elementor-button[type=submit]" (0,5,0),
   which made "Subscribe" white on gold (2.17:1). Six classes win; ink on gold is 9.29:1. */
html body .tv-footer .tv-footer__form.elementor-widget-form .elementor-form .elementor-button[type="submit"],
html body .tv-footer .tv-footer__form.elementor-widget-form .elementor-form .elementor-button[type="submit"]:hover {
	color: var(--ink);
}

html body .tv-footer__form .elementor-message {
	margin-top: 10px;
	color: var(--bone);
	font-size: var(--fs-body-sm);
}

html body .tv-footer__form .elementor-message.elementor-message-danger {
	color: var(--gold-soft);
}

/* ---------------------------------------------------------------- column headings */
html body .tv-footer .tv-footer__heading .elementor-heading-title {
	margin: 0 0 18px;
	color: var(--gold);
	font-family: var(--mono);
	font-size: var(--fs-label);
	font-weight: var(--fw-bold);
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Second heading inside the "Online help" column ("Account"). */
.tv-footer__col--help .tv-footer__links + .tv-footer__heading {
	margin-top: 26px;
}

/* ---------------------------------------------------------------- link lists (Elementor icon list) */
html body .tv-footer .tv-footer__links .elementor-icon-list-items,
html body .tv-footer .tv-footer__contact .elementor-icon-list-items {
	margin: 0;
	padding: 0;
}

html body .tv-footer .tv-footer__links .elementor-icon-list-item,
html body .tv-footer .tv-footer__contact .elementor-icon-list-item {
	margin: 0 0 10px;
	padding: 0;
}

html body .tv-footer .tv-footer__links .elementor-icon-list-text,
html body .tv-footer .tv-footer__contact .elementor-icon-list-text {
	padding: 0;
	color: var(--foot-text);
	font-family: var(--body);
	font-size: var(--fs-body-sm);
	line-height: 1.45;
	transition: color var(--t-fast);
}

html body .tv-footer .tv-footer__links a:hover .elementor-icon-list-text,
html body .tv-footer .tv-footer__links a:focus-visible .elementor-icon-list-text,
html body .tv-footer .tv-footer__contact a:hover .elementor-icon-list-text,
html body .tv-footer .tv-footer__contact a:focus-visible .elementor-icon-list-text {
	color: var(--white);
}

/* Link lists have no icons. */
html body .tv-footer .tv-footer__links .elementor-icon-list-icon {
	display: none;
}

/* Contact list keeps its small icons, in gold. */
html body .tv-footer .tv-footer__contact .elementor-icon-list-item > a,
html body .tv-footer .tv-footer__contact .elementor-icon-list-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

html body .tv-footer .tv-footer__contact .elementor-icon-list-icon {
	flex: 0 0 16px;
	padding-top: 3px;
	color: var(--gold);
}

html body .tv-footer .tv-footer__contact .elementor-icon-list-icon i,
html body .tv-footer .tv-footer__contact .elementor-icon-list-icon svg {
	color: var(--gold);
	fill: var(--gold);
	width: 14px;
	height: 14px;
	font-size: 14px;
}

/* Social links: text "Facebook | Instagram | Pinterest" as in the mockup, icons kept. */
html body .tv-footer .tv-footer__social {
	margin-top: 14px;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-items {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-item {
	margin: 0;
	padding: 0;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-item::after {
	display: none;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-item > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-icon i,
html body .tv-footer .tv-footer__social .elementor-icon-list-icon svg {
	color: var(--gold);
	fill: var(--gold);
	width: 14px;
	height: 14px;
	font-size: 14px;
}

html body .tv-footer .tv-footer__social .elementor-icon-list-text {
	padding: 0;
	color: var(--foot-text);
	font-family: var(--body);
	font-size: var(--fs-small);
}

html body .tv-footer .tv-footer__social a:hover .elementor-icon-list-text,
html body .tv-footer .tv-footer__social a:focus-visible .elementor-icon-list-text {
	color: var(--white);
}

/* ---------------------------------------------------------------- legal: nicotine warning + Prop 65 */
.e-con.tv-footer__legal {
	--padding-top: 26px;
	--padding-bottom: 26px;
	--gap: 8px;
	--row-gap: 8px;
	border-top: 1px solid var(--line);
}

html body .tv-footer .tv-footer__legal .tv-footer__heading .elementor-heading-title {
	margin-bottom: 6px;
}

/* Compliance text: bone, not muted, so it is always clearly readable. */
html body .tv-footer .tv-footer__legal-text,
html body .tv-footer .tv-footer__legal-text p {
	color: var(--bone);
	font-family: var(--body);
	font-size: 13px;
	line-height: 1.6;
}

html body .tv-footer .tv-footer__legal-text p {
	margin: 0 0 8px;
}

html body .tv-footer .tv-footer__legal-text strong,
html body .tv-footer .tv-footer__legal-text .prop-bold {
	color: var(--white);
	font-weight: var(--fw-black);
}

html body .tv-footer .tv-footer__legal-text a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

html body .tv-footer .tv-footer__legal-text img.warning-triangle {
	float: left;
	width: 56px;
	height: auto;
	margin: 2px 14px 6px 0;
}

/* Clear the floated Prop 65 icon. */
html body .tv-footer .tv-footer__legal-text .elementor-widget-container::after,
html body .tv-footer .tv-footer__legal-text::after {
	content: "";
	display: block;
	clear: both;
}

/* ---------------------------------------------------------------- copyright */
.e-con.tv-footer__bottom {
	--padding-top: 18px;
	--padding-bottom: 26px;
	border-top: 1px solid var(--line);
}

html body .tv-footer .tv-footer__copyright .elementor-heading-title {
	color: var(--mute);
	font-family: var(--body);
	font-size: 12px;
	font-weight: var(--fw-regular);
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
	.e-con.tv-footer__top {
		grid-template-columns: 1fr 1fr;
		gap: 36px 28px;
	}

	.e-con.tv-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.e-con.tv-footer {
		--padding-top: 56px;
	}

	.e-con.tv-footer__top {
		grid-template-columns: 1fr;
		gap: 30px;
		--padding-bottom: 40px;
	}

	.tv-footer__form .elementor-field-group.e-form__buttons .elementor-button {
		padding: 0 14px;
	}
}

/* Elementor outputs the form's default field background (#ffffff) in post-51.css even with no setting saved;
   beat its specificity (6 classes) inside the footer form. */
html body .tv-footer .tv-footer__form .elementor-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper) {
	background-color: transparent;
	color: var(--bone);
	border: 0;
}

/* Round 10: the footer logo (Elementor site-logo thumb, 200x53) is printed without width/height;
   reserve its box so it does not shift layout when it lazy-loads. */
html body .tv-footer img[src*="Logo-FullColor"] {
	aspect-ratio: 200 / 53;
	height: auto;
}
