/**
 * Q8 Kart — Flatsome footer polish (widget rows + absolute bar).
 * Scoped to #footer.footer-wrapper. Solid brand bar (no gradient); text tokens match header.
 */
#footer.footer-wrapper {
	--q8-ft-brand: var(--q8-brand-solid, #2e1a6d);
	--q8-ft-on-brand: var(--q8-hdr-ink, #ffffff);
	--q8-ft-on-brand-muted: var(--q8-hdr-ink-muted, rgba(255, 255, 255, 0.78));
	--q8-ft-brand-edge: var(--q8-hdr-border, rgba(255, 255, 255, 0.22));
	--q8-ft-border: var(--q8-hdr-search-border, #e2e4ec);
	--q8-ft-ink: #1a1a1a;
	--q8-ft-ink-muted: var(--q8-hdr-search-muted, #5a6175);
}

/* --- Upper widget bands (footer-1 / footer-2) — brand field, no white strip --- */
#footer.footer-wrapper .footer-widgets.footer {
	border-top: 1px solid var(--q8-ft-brand-edge);
	background: var(--q8-ft-brand);
	background-image: none;
	color: var(--q8-ft-on-brand);
}

#footer.footer-wrapper .footer-widgets.footer.footer-1 {
	background: var(--q8-ft-brand);
	background-image: none;
}

#footer.footer-wrapper .footer-widgets.footer .row {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 2.25rem 1rem 2rem;
}

@media (min-width: 768px) {
	#footer.footer-wrapper .footer-widgets.footer .row {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

#footer.footer-wrapper .footer-widgets .col {
	padding-bottom: 1.25rem;
}

#footer.footer-wrapper .footer-widgets .widget {
	margin-bottom: 0;
}

#footer.footer-wrapper .footer-widgets .widget-title {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--q8-ft-on-brand);
	margin: 0 0 0.85rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--q8-ft-brand-edge);
	display: inline-block;
}

#footer.footer-wrapper .footer-widgets .widget > ul,
#footer.footer-wrapper .footer-widgets .widget ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer.footer-wrapper .footer-widgets .widget li {
	margin: 0 0 0.45rem;
	padding: 0;
	line-height: 1.45;
}

#footer.footer-wrapper .footer-widgets .widget a {
	color: var(--q8-ft-on-brand-muted);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.15s ease, text-decoration 0.15s ease;
}

#footer.footer-wrapper .footer-widgets .widget a:hover,
#footer.footer-wrapper .footer-widgets .widget a:focus {
	color: var(--q8-ft-on-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#footer.footer-wrapper .footer-widgets .textwidget,
#footer.footer-wrapper .footer-widgets .is-divider {
	margin-top: 0.5rem;
}

#footer.footer-wrapper .footer-widgets .textwidget,
#footer.footer-wrapper .footer-widgets .textwidget p {
	color: var(--q8-ft-on-brand-muted);
}

#footer.footer-wrapper .footer-widgets input[type="email"]::placeholder,
#footer.footer-wrapper .footer-widgets input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.55);
	opacity: 1;
}

#footer.footer-wrapper .footer-widgets input[type="email"]::-webkit-input-placeholder,
#footer.footer-wrapper .footer-widgets input[type="text"]::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.55);
}

/* Footer-2 when theme uses dark band for widgets — solid brand */
#footer.footer-wrapper .footer-widgets.footer.footer-2.dark {
	background: var(--q8-ft-brand);
	background-image: none;
	color: var(--q8-ft-on-brand);
	border-top: none;
	box-shadow: inset 0 -1px 0 var(--q8-ft-brand-edge);
}

#footer.footer-wrapper .footer-widgets.footer.footer-2.dark .widget-title {
	color: var(--q8-ft-on-brand);
	border-bottom-color: var(--q8-ft-brand-edge);
}

#footer.footer-wrapper .footer-widgets.footer.footer-2.dark .widget a {
	color: var(--q8-ft-on-brand-muted);
}

#footer.footer-wrapper .footer-widgets.footer.footer-2.dark .widget a:hover,
#footer.footer-wrapper .footer-widgets.footer.footer-2.dark .widget a:focus {
	color: var(--q8-ft-on-brand);
}

/* Newsletter / forms in footer */
#footer.footer-wrapper .footer-widgets .mc4wp-form,
#footer.footer-wrapper .footer-widgets .wpcf7 {
	margin-top: 0.25rem;
}

#footer.footer-wrapper .footer-widgets input[type="email"],
#footer.footer-wrapper .footer-widgets input[type="text"] {
	width: 100%;
	max-width: 22rem;
	border: 1px solid var(--q8-ft-brand-edge);
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 0.9375rem;
	background: rgba(255, 255, 255, 0.1);
	color: var(--q8-ft-on-brand);
}

#footer.footer-wrapper .footer-widgets input[type="submit"],
#footer.footer-wrapper .footer-widgets button[type="submit"] {
	margin-top: 0.5rem;
	cursor: pointer;
	border: 1px solid var(--q8-ft-brand-edge);
	border-radius: 8px;
	padding: 0.65rem 1.25rem;
	font-size: 0.8125rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.12);
	background-image: none;
	color: var(--q8-ft-on-brand);
	transition: background 0.15s ease, filter 0.15s ease;
}

#footer.footer-wrapper .footer-widgets input[type="submit"]:hover,
#footer.footer-wrapper .footer-widgets button[type="submit"]:hover {
	filter: brightness(1.06);
	background: rgba(255, 255, 255, 0.2);
}

/* Social icons (Flatsome follow widget / shortcode) */
#footer.footer-wrapper .social-icons.follow-icons a {
	opacity: 0.9;
}

#footer.footer-wrapper .social-icons.follow-icons a:hover {
	opacity: 1;
}

/* --- Absolute footer: copyright + menu + payments — solid brand --- */
#footer.footer-wrapper .absolute-footer {
	clear: both;
	width: 100%;
	background: var(--q8-ft-brand);
	background-image: none;
	color: var(--q8-ft-on-brand);
	border-top: 1px solid var(--q8-ft-brand-edge);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	padding: 0;
}

#footer.footer-wrapper .absolute-footer .container {
	float: none;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.15rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

#footer.footer-wrapper .absolute-footer .footer-primary.pull-left,
#footer.footer-wrapper .absolute-footer .footer-secondary.pull-right {
	float: none;
	width: auto;
	max-width: 100%;
}

#footer.footer-wrapper .absolute-footer .footer-primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
}

#footer.footer-wrapper .absolute-footer .footer-nav.links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}

#footer.footer-wrapper .absolute-footer .footer-nav.links li {
	margin: 0;
	padding: 0;
}

#footer.footer-wrapper .absolute-footer .footer-nav.links a {
	color: var(--q8-ft-on-brand);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.95;
}

#footer.footer-wrapper .absolute-footer .footer-nav.links a:hover,
#footer.footer-wrapper .absolute-footer .footer-nav.links a:focus {
	color: var(--q8-ft-on-brand);
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#footer.footer-wrapper .absolute-footer .copyright-footer {
	font-size: 0.8125rem;
	color: var(--q8-ft-on-brand-muted);
	line-height: 1.4;
	margin: 0;
}

#footer.footer-wrapper .absolute-footer .copyright-footer a {
	color: var(--q8-ft-on-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#footer.footer-wrapper .absolute-footer .footer-secondary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem 1rem;
}

#footer.footer-wrapper .absolute-footer .footer-text {
	font-size: 0.8125rem;
	color: var(--q8-ft-on-brand-muted);
}

#footer.footer-wrapper .absolute-footer .footer-text a {
	color: var(--q8-ft-on-brand);
}

/* Woo / UX payment icons in absolute footer */
#footer.footer-wrapper .absolute-footer .payment-icons.inline-block,
#footer.footer-wrapper .absolute-footer .payment-icons {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin: 0 !important;
}

#footer.footer-wrapper .absolute-footer .payment-icons .payment-icon img {
	height: 26px;
	width: auto;
	opacity: 0.92;
	filter: none;
}

/* Google Play + App Store badges (child theme assets/footer/*.svg) */
#footer.footer-wrapper .absolute-footer .q8kart-store-badges {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	margin: 0;
	vertical-align: middle;
}

#footer.footer-wrapper .absolute-footer .q8kart-store-badges .q8kart-store-badge {
	display: inline-block;
	line-height: 0;
	opacity: 0.95;
	transition: opacity 0.15s ease;
}

#footer.footer-wrapper .absolute-footer .q8kart-store-badges .q8kart-store-badge:hover,
#footer.footer-wrapper .absolute-footer .q8kart-store-badges .q8kart-store-badge:focus {
	opacity: 1;
}

#footer.footer-wrapper .absolute-footer .q8kart-store-badges .q8kart-store-badge:focus-visible {
	outline: 2px solid var(--q8-ft-on-brand, #fff);
	outline-offset: 3px;
}

#footer.footer-wrapper .absolute-footer .q8kart-store-badges .q8kart-store-badge img {
	height: 40px;
	width: auto;
	display: block;
	max-width: 100%;
}

/* Light absolute footer variant (theme setting) — accents still use header purple */
#footer.footer-wrapper .absolute-footer.light {
	background: #fff;
	color: var(--q8-ft-ink);
	border-top: 1px solid var(--q8-ft-border);
	box-shadow: none;
}

#footer.footer-wrapper .absolute-footer.light .footer-nav.links a {
	color: var(--q8-ft-ink-muted);
	opacity: 1;
}

#footer.footer-wrapper .absolute-footer.light .footer-nav.links a:hover {
	color: var(--q8-ft-brand);
}

#footer.footer-wrapper .absolute-footer.light .copyright-footer {
	color: var(--q8-ft-ink-muted);
}

#footer.footer-wrapper .absolute-footer.light .copyright-footer a {
	color: var(--q8-ft-brand);
}

#footer.footer-wrapper .absolute-footer.light .q8kart-store-badges .q8kart-store-badge:focus-visible {
	outline-color: var(--q8-ft-brand);
}

/* Desktop: accordion markup present — show panels, hide +/- (mobile-only UX) */
@media (min-width: 768px) {
	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion > .q8kart-ft-acc-panel {
		display: block !important;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion > .widget-title {
		pointer-events: none;
		cursor: default;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion > .widget-title::after {
		display: none !important;
	}
}

/* Mobile: accordion list + stack absolute bar */
@media (max-width: 767px) {
	#footer.footer-wrapper {
		--q8-ft-mobile-inline: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-left, 0px));
		--q8-ft-mobile-inline-r: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-right, 0px));
	}

	/* Side inset (row was 0 — labels and dividers touched screen edges) */
	#footer.footer-wrapper .footer-widgets.footer .row {
		padding-left: var(--q8-ft-mobile-inline);
		padding-right: var(--q8-ft-mobile-inline-r);
		padding-top: 2rem;
		padding-bottom: 2rem;
		max-width: none;
	}

	#footer.footer-wrapper .footer-widgets.footer .row > .col.pb-0.widget,
	#footer.footer-wrapper .footer-widgets.footer .row > .widget {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
	}

	/* Accordion rows on brand (requires footer-q8kart.js) */
	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion {
		background: transparent;
		border-bottom: 1px solid var(--q8-ft-brand-edge);
		margin: 0;
		padding-left: 0;
		padding-right: 0;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion > .widget-title {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		box-sizing: border-box;
		padding: 1rem 0;
		margin: 0 !important;
		font-size: 0.9375rem;
		font-weight: 500;
		letter-spacing: normal;
		text-transform: none;
		color: var(--q8-ft-on-brand);
		border-bottom: none !important;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		user-select: none;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion > .widget-title::after {
		content: "+";
		flex: 0 0 auto;
		margin-left: 0.75rem;
		font-size: 1.2rem;
		font-weight: 400;
		color: rgba(255, 255, 255, 0.65);
		line-height: 1;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion.q8kart-ft-acc--open > .widget-title::after {
		content: "\2212";
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion:not(.q8kart-ft-acc--open) > .q8kart-ft-acc-panel {
		display: none !important;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion.q8kart-ft-acc--open > .q8kart-ft-acc-panel {
		display: block;
		padding: 0 0 1rem;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion .q8kart-ft-acc-panel .is-divider {
		display: none;
	}

	#footer.footer-wrapper .footer-widgets .widget.q8kart-ft-accordion .q8kart-ft-acc-panel li {
		margin-bottom: 0.6rem;
	}

	#footer.footer-wrapper .absolute-footer .container {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding-left: var(--q8-ft-mobile-inline);
		padding-right: var(--q8-ft-mobile-inline-r);
	}

	#footer.footer-wrapper .absolute-footer .footer-secondary {
		justify-content: flex-start;
		width: 100%;
	}

	#footer.footer-wrapper .absolute-footer.medium-text-center .container,
	#footer.footer-wrapper .absolute-footer.text-center .container {
		align-items: center;
		text-align: center;
	}

	#footer.footer-wrapper .absolute-footer.medium-text-center .footer-primary,
	#footer.footer-wrapper .absolute-footer.text-center .footer-primary {
		justify-content: center;
	}

	#footer.footer-wrapper .absolute-footer.medium-text-center .footer-secondary,
	#footer.footer-wrapper .absolute-footer.text-center .footer-secondary {
		justify-content: center;
	}
}

/* --- Flipkart-style SEO link band — full viewport width above footer --- */
.q8kart-seo-directory.q8kart-seo-directory--fullbleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	position: relative;
	left: auto;
	right: auto;
	box-sizing: border-box;
}

.q8kart-seo-directory {
	background: #eceef2;
	color: #4a4f59;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	padding: 0.85rem 0 1rem;
	font-size: 0.6875rem;
	line-height: 1.55;
}

.q8kart-seo-directory__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.q8kart-seo-directory__inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

.q8kart-seo-directory__head {
	margin: 0 0 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #2b3038;
}

.q8kart-seo-directory__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.35rem;
	margin: 0 0 0.45rem;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.q8kart-seo-directory__row:last-child {
	margin-bottom: 0;
}

.q8kart-seo-directory__label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2b3038;
	margin-right: 0.25rem;
	white-space: nowrap;
}

.q8kart-seo-directory__links {
	font-weight: 400;
}

.q8kart-seo-directory a {
	color: #4a4f59;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.12s ease, border-color 0.12s ease;
}

.q8kart-seo-directory a:hover,
.q8kart-seo-directory a:focus {
	color: var(--q8-ft-brand, #2e1a6d);
	border-bottom-color: rgba(46, 26, 109, 0.35);
}

.q8kart-seo-directory__sep {
	color: rgba(74, 79, 89, 0.45);
	font-weight: 400;
}

@media (min-width: 768px) {
	.q8kart-seo-directory {
		font-size: 0.6875rem;
		padding: 1rem 0 1.15rem;
	}
}

@media (max-width: 767px) {
	.q8kart-seo-directory__row {
		display: block;
	}

	.q8kart-seo-directory__label {
		white-space: normal;
		display: block;
		margin: 0 0 0.2rem;
	}
}
