/*
 * SmokTek footer styles (Phase 5.2; re-skinned light Phase 5.3 round 4;
 * full structural restructure Phase 5.3 P2 footer pass, 2026-07-27)
 *
 * Background/heading/text/link COLORS come from Shoptimizer's own Kirki
 * color options (shoptimizer_footer_bg etc., set light in functions.php
 * smoktek_shoptimizer_color_defaults()), which target `footer.site-footer`
 * and `footer.copyright` - these classes are reused deliberately (see
 * functions.php). This file sets the TYPOGRAPHY SCALE (size/weight/
 * transform) the parent's color options don't control, plus a few
 * elements where the parent's color reach proved unreliable in testing
 * (kept explicit rather than assumed).
 *
 * Container: Shoptimizer's generic `.col-full` caps at 1170px
 * (main.css, @media min-width:993px) and uses box-sizing:content-box
 * with context-dependent padding - which made the footer bands render
 * at inconsistent widths (newsletter 1484px, social/payment row
 * 1524px) and left the whole footer looking off-center vs the live
 * Shopify footer's uniform 1440px column. Normalize every footer band
 * to the SAME border-box 1440px column, centered, with identical 24px
 * side padding, at a specificity (0,2,0) that beats the parent's
 * `.col-full` (0,1,0). box-sizing:border-box is the key - it makes
 * max-width the TOTAL width so all bands align to the same edges.
 */
.smoktek-footer .col-full,
.smoktek-footer-bottom__social-payments .col-full,
.smoktek-footer-bottom__copyright .col-full {
	box-sizing: border-box;
	width: 100%;
	/* 1488 = the measured 1440px Shopify content column + the 24px
	 * gutters on each side (border-box), so the CONTENT lands at exactly
	 * 1440px flush to the same edges as Shopify at wide widths, while
	 * the gutters still protect content from touching the viewport edge
	 * below ~1488px. */
	max-width: 1488px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Top spacing - the parent .site-footer adds a large padding-top (64px
 * measured) which, stacked with the newsletter's own, left too much
 * empty space above "Join SmokTek" vs Shopify. Tighten to a Shopify-
 * matching gap; the newsletter's own padding-top is zeroed below so
 * this is the only top spacing. */
.smoktek-footer {
	padding-top: 48px;
}

/* Newsletter band — the footer's top row, like the live Shopify
 * footer: heading + subtext left, inline email form right. Light,
 * matching the re-skinned footer.site-footer background. */
.smoktek-footer__newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--smoktek-space-4);
	padding-top: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: var(--smoktek-space-6);
}

/* Column headings AND the newsletter heading share the parent's
 * .widget-title markup - base rule covers both, the more specific
 * newsletter rule below (measured 18px, sentence case) overrides size/
 * transform for that one heading only. Letter-spacing and color
 * re-measured against the live Shopify footer (2026-07-27): 1.04px
 * (not 0.04em, ~0.5px at this size) and pure black (not #111111) -
 * color also set as a code-versioned Kirki default in functions.php,
 * kept explicit here too per this file's existing "parent's color
 * reach proved unreliable" pattern. */
.smoktek-footer .widget-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.04px;
	color: #000000;
	margin: 0 0 var(--smoktek-space-3);
}

.smoktek-footer__newsletter-heading {
	font-size: 18px;
	text-transform: none;
	letter-spacing: normal;
	margin: 0 0 var(--smoktek-space-1);
}

.smoktek-footer__newsletter-text p {
	margin: 0;
	font-size: 13px;
	color: #555555;
}

/* margin-left:auto pushes the form hard against the right edge of the
 * newsletter row, opposite the heading/subtext on the left - exactly
 * like Shopify. The row's justify-content:space-between alone left the
 * form stranded mid-row (measured right edge 1489 vs the 1673 content
 * edge): the free space was being distributed as if a phantom third
 * item sat after the form, landing it at the halfway point. The auto
 * margin is the guaranteed flex right-push and sidesteps that entirely
 * (same fix as the payment row). */
.smoktek-footer__newsletter-form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--smoktek-space-2);
	margin-left: auto;
}

/* Exact size measured against the live Shopify newsletter form
 * (2026-07-27): input 346x46, button 112x46, both radius 4px (the
 * radius token already matched; width/height didn't - this used to be
 * padding-driven sizing only). */
.smoktek-footer__newsletter-form input {
	width: 346px;
	height: 46px;
	max-width: 100%;
	padding: 0 var(--smoktek-space-3);
	border: 1px solid #d6d1c8;
	border-radius: 4px;
	background: #fff;
	color: #111111;
	box-sizing: border-box;
}

.smoktek-footer__newsletter-form button {
	width: 112px;
	height: 46px;
	padding: 0;
	border: none;
	border-radius: 4px;
	/* #E8650A measured live - this is the existing --smoktek-color-
	 * primary-hover token's value, not --smoktek-color-primary. */
	background: var(--smoktek-color-primary-hover);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.smoktek-footer__newsletter-form input:disabled,
.smoktek-footer__newsletter-form button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.smoktek-footer__newsletter-status {
	flex-basis: 100%;
	font-size: 12px;
	color: #888888;
}

@media (max-width: 749px) {
	.smoktek-footer__newsletter {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Reset the desktop right-push in the stacked layout so the form
	 * stays left-aligned under the heading. */
	.smoktek-footer__newsletter-form {
		margin-left: 0;
		width: 100%;
	}

	.smoktek-footer__newsletter-form input {
		width: 100%;
	}
}

.smoktek-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--smoktek-space-8) var(--smoktek-space-6);
	padding-top: var(--smoktek-space-8);
	padding-bottom: var(--smoktek-space-8);
}

.smoktek-footer__column {
	flex: 1 1 160px;
	min-width: 160px;
}

.smoktek-footer__store-info p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 var(--smoktek-space-2);
	font-size: 13px;
	line-height: 1.6;
	color: #000000;
}

/* Contact icons - added Phase 5.3 P2 footer pass, matching the live
 * Shopify footer's icon-prefixed contact lines (measured ~13x16). */
.smoktek-footer__contact-icon {
	flex-shrink: 0;
	width: 13px;
	height: 16px;
	display: inline-flex;
	color: #000000;
	margin-top: 2px;
}

.smoktek-footer__contact-icon svg {
	width: 100%;
	height: 100%;
}

.smoktek-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smoktek-footer__menu li {
	margin: 0 0 var(--smoktek-space-2);
}

/* line-height measured at 19.5px against the live Shopify footer
 * (2026-07-27) - exactly 1.5 at 13px, not 1.6. Color pure black,
 * matching the column headings' correction above. */
.smoktek-footer__menu a {
	font-size: 13px;
	line-height: 1.5;
	color: #000000;
	text-decoration: none;
}

.smoktek-footer__menu a:hover {
	color: var(--smoktek-color-primary);
	text-decoration: underline;
}

/* Divider + social(left)/payment(right) row - Phase 5.3 P2 footer
 * restructure (2026-07-27). Rendered by
 * smoktek_render_footer_social_payments() at shoptimizer_after_footer
 * priority 3, BEFORE smoktek-core's disclaimers (priority 5) - matches
 * the live Shopify footer's order (columns -> social/payment ->
 * legal -> copyright), which the old single combined-row function
 * couldn't produce since everything rendered at one priority. */
.smoktek-footer-bottom__social-payments {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.smoktek-footer-bottom__social-payments-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--smoktek-space-4);
	padding-top: var(--smoktek-space-4);
	padding-bottom: var(--smoktek-space-4);
}

/* Icon size/gap measured against the live Shopify footer: 30x30 filled
 * brand glyph, 18px gap. The SVG fills the full 30x30 link (was a
 * 22x22 glyph centered in a 30px box, which read as "too small"). */
.smoktek-footer-bottom__social {
	display: flex;
	align-items: center;
	gap: 18px;
}

.smoktek-footer-bottom__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.smoktek-footer-bottom__social a svg {
	width: 30px;
	height: 30px;
	display: block;
}

.smoktek-footer-bottom__social a:hover {
	opacity: 0.75;
}

/* Brand colors measured against the live Shopify social icons
 * (2026-07-27, Instagram confirmed exactly rgb(225,48,108) = #E1306C
 * live; the other four are each platform's standard brand color,
 * matching Shopify's full-color treatment instead of the earlier
 * single neutral currentColor). */
.smoktek-footer-bottom__social a[aria-label="Instagram"] {
	color: #e1306c;
}

.smoktek-footer-bottom__social a[aria-label="Facebook"] {
	color: #1877f2;
}

.smoktek-footer-bottom__social a[aria-label="YouTube"] {
	color: #ff0000;
}

.smoktek-footer-bottom__social a[aria-label="Pinterest"] {
	color: #e60023;
}

.smoktek-footer-bottom__social a[aria-label="Reddit"] {
	color: #ff4500;
}

/* margin-left:auto pushes the payment row hard against the right edge
 * of the centered container, opposite the social icons on the left -
 * the guaranteed flex right-push, replacing the container's earlier
 * justify-content:space-between which was leaving the payments stranded
 * near center (measured x=906 instead of the right edge). */
.smoktek-footer-bottom__payments {
	display: flex;
	align-items: center;
	gap: var(--smoktek-space-2);
	flex-wrap: wrap;
	margin-left: auto;
}

/* Height measured against the live Shopify payment icons: 30px. */
.smoktek-footer-bottom__payments img {
	display: block;
	height: 30px;
	width: auto;
}

/* Compliance disclaimers (smoktek-core plugin output, unchanged text/
 * markup). Centered, 900px max-width, pure black - measured against
 * the live Shopify legal text (2026-07-27); the earlier 1200px/
 * left-aligned/#666 treatment was wrong on all three counts, which is
 * why the California Prop 65 paragraph read as a detached left-aligned
 * block instead of wrapping inside the centered disclaimer column. */
.smoktek-footer-disclaimers {
	background: transparent;
	color: #000000;
}

.smoktek-footer-disclaimers__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: var(--smoktek-space-6) var(--smoktek-space-4) 0;
	text-align: center;
}

.smoktek-footer-disclaimers__inner p {
	margin: 0 0 var(--smoktek-space-2);
	font-size: 11px;
	line-height: 1.5;
	color: #000000;
}

.smoktek-footer-disclaimers__inner p:last-child {
	margin-bottom: 0;
}

/* Copyright - rendered by smoktek_render_footer_copyright() at
 * shoptimizer_after_footer priority 8, AFTER the disclaimers, and
 * centered beneath them (measured live, 2026-07-27). */
.smoktek-footer-bottom__copyright {
	text-align: center;
	padding-top: var(--smoktek-space-2);
	padding-bottom: var(--smoktek-space-4);
}

.smoktek-footer-bottom__copyright p {
	margin: 0;
	font-size: 12px;
	color: #000000;
}

@media (max-width: 600px) {
	.smoktek-footer-bottom__social-payments-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--smoktek-space-3);
	}

	/* In the stacked (column) layout the auto margin would shove the
	 * payment row to the right edge; keep both groups left-aligned. */
	.smoktek-footer-bottom__payments {
		margin-left: 0;
	}
}
