/**
 * NNF Commerce — Footer Section (Newsletter, Columns, Copyright & Mobile Sticky Bottom Bar)
 * @package NNF_Commerce
 */

/* ==========================================================================
   SYNCHRONIZED FOOTER (WoodMart Vegetables Theme Green Palette)
   ========================================================================== */
.nnf-woodmart-footer {
	background-color: #315C24;
	color: #ffffff;
	padding-top: 56px;
	font-size: 13px;
	line-height: 1.6;
	border-top: none;
	margin-top: 64px;
}

.nnf-footer-grid {
	display: grid;
	grid-template-columns: 1.25fr 1.35fr 1fr 1.15fr;
	gap: 36px;
	margin-bottom: 48px;
}

@media (max-width: 1199px) {
	.nnf-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 680px) {
	.nnf-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Footer Section Headings */
.nnf-footer-heading {
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 18px 0;
	position: relative;
	padding-bottom: 10px;
}

.nnf-footer-heading::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
}

/* Col 1: Brand & Legal */
.nnf-footer-brand {
	margin-bottom: 14px;
}

.nnf-footer-brand-logo-wrap {
	display: inline-block;
	background: transparent;
	padding: 0;
	border-radius: 0;
	margin-bottom: 12px;
	box-shadow: none;
}

.nnf-footer-logo {
	max-height: 48px;
	width: auto;
	display: block;
	margin: 0;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.nnf-company-name {
	color: #ffffff;
	font-weight: 800;
	font-size: 13.5px;
	line-height: 1.4;
	letter-spacing: 0.3px;
}

.nnf-company-desc {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.92);
	line-height: 1.55;
	margin: 0 0 14px 0;
}

.nnf-footer-info-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nnf-footer-info-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.45;
}

.nnf-info-label {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 700;
	flex-shrink: 0;
}

/* Col 2: Branches & Warehouses */
.nnf-branch-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nnf-branch-item {
	padding-bottom: 12px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.nnf-branch-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.nnf-branch-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.nnf-city-badge {
	background: rgba(0, 0, 0, 0.08);
	color: #ffffff;
	font-weight: 800;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.3px;
}

.nnf-branch-role {
	color: rgba(255, 255, 255, 0.88);
	font-size: 11.5px;
}

.nnf-branch-addr {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.45;
	margin: 2px 0;
}

.nnf-branch-tel {
	font-size: 12px;
	color: #ffffff;
	margin: 4px 0 0 0;
}

.nnf-branch-tel a {
	color: #ffffff;
	font-weight: 700;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.nnf-branch-tel a:hover {
	opacity: 0.85;
}

/* Col 3: Customer Policies Menu */
.nnf-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.nnf-footer-menu li a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 12.5px;
	transition: all 0.2s ease;
	display: inline-block;
}

.nnf-footer-menu li a:hover {
	color: #ffffff;
	transform: translateX(4px);
	text-decoration: underline;
}

/* Col 4: Support Hotline & Payments */
.nnf-hotline-card {
	background: rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.nnf-hotline-row {
	margin-bottom: 10px;
}

.nnf-hotline-type {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 2px;
}

.nnf-hotline-number {
	color: #ffffff;
	font-size: 17px;
	font-weight: 900;
	text-decoration: none;
	display: inline-block;
	letter-spacing: 0.5px;
	transition: opacity 0.2s;
}

.nnf-hotline-number:hover {
	opacity: 0.85;
}

.nnf-hotline-meta {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 10px;
	margin-top: 6px;
	line-height: 1.5;
}

.nnf-hotline-meta strong {
	color: #ffffff;
}

.nnf-hotline-meta a {
	color: #ffffff;
	text-decoration: underline;
}

.nnf-hotline-meta a:hover {
	opacity: 0.85;
}

.nnf-footer-payment-box {
	padding-top: 4px;
}

.nnf-pay-label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 8px;
}

.nnf-pay-svg-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* Region Hotline Tabs */
.nnf-region-tabs {
	display: inline-flex;
	background: rgba(0, 0, 0, 0.16);
	padding: 3px;
	border-radius: 6px;
	margin: 6px 0 8px 0;
	gap: 2px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.nnf-region-tab {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.2;
	font-family: inherit;
}

.nnf-region-tab:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}

.nnf-region-tab.is-active {
	background: #ffffff;
	color: #294F1E;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.nnf-region-panels {
	min-height: 28px;
}

.nnf-region-panel {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	animation: nnfFadeIn 0.25s ease;
}

.nnf-region-panel .nnf-hotline-number {
	font-size: 15.5px;
	font-weight: 900;
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 0.3px;
}

.nnf-tel-sep {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

@keyframes nnfFadeIn {
	from { opacity: 0; transform: translateY(-2px); }
	to { opacity: 1; transform: translateY(0); }
}

.nnf-pay-chip {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	background: rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 5px;
	color: #ffffff;
	letter-spacing: 0.2px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}

.nnf-pay-chip svg {
	flex-shrink: 0;
	stroke: currentColor;
	opacity: 0.95;
}

.nnf-pay-chip:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Footer Bottom Copyright */
.nnf-footer-bottom {
	background-color: #294F1E;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 16px 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.88);
}

.nnf-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.nnf-copyright-text strong {
	color: #ffffff;
}

.nnf-bottom-nav {
	display: flex;
	align-items: center;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nnf-bottom-nav li a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
	font-size: 12px;
	transition: color 0.2s;
}

.nnf-bottom-nav li a:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Floating Back-To-Top Button */
.nnf-back-to-top {
	position: fixed;
	bottom: 110px; /* Cách đỉnh nút Zalo desktop (94px) 16px */
	right: 24px;
	width: 44px;
	height: 44px;
	background: #315C24;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: 9999;
}

.nnf-back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nnf-back-to-top:hover {
	background: #24481A;
	color: #ffffff;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(49, 92, 36, 0.45);
}

@media (max-width: 768px) {
	.nnf-back-to-top {
		bottom: calc(138px + env(safe-area-inset-bottom, 0px)); /* Cách đỉnh nút Zalo mobile (124px) 14px */
		right: 18px;
		width: 40px;
		height: 40px;
	}
}



/* HR Contact Block */
.nnf-hr-contact-block {
	margin-top: 10px;
}

.nnf-hr-tel-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}

.nnf-hr-note {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.82);
	font-style: italic;
	font-weight: 500;
}

.nnf-hr-email-line {
	font-size: 12px;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.92);
}

.nnf-hr-email-line .nnf-hr-label {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 700;
}

.nnf-hr-email-line a {
	color: #ffffff;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.nnf-hr-email-line a:hover {
	opacity: 0.85;
}

.nnf-footer-info-list a {
	color: #ffffff;
	text-decoration: underline;
	transition: opacity 0.2s;
}

.nnf-footer-info-list a:hover {
	opacity: 0.85;
}

/* Official Ministry of Industry and Trade notification badge. */
.nnf-woodmart-footer .nnf-footer-bct {
	margin-top: 20px;
}

.nnf-woodmart-footer .nnf-footer-bct a {
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
	background-color: #fff;
	padding: 1.5px 2.5px;
	border-radius: 10px;
	box-sizing: border-box;
}

.nnf-woodmart-footer .nnf-footer-bct a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.nnf-woodmart-footer .nnf-footer-bct img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
