/*!
 * Pay2S Elementor Widgets — Footer
 * Số đo pay2s.vn (footer.hp-footer):
 *  lưới 1.5fr 1fr 1.15fr .7fr, gap 35, đệm dưới 40 (≤800: 2 cột, cột công ty cả hàng · ≤480: gap 28/18)
 *  tiêu đề cột 13px (cách 16) · link 11px #82928a (cách 9), hover #087b4b · đoạn chữ 12px
 *  logo 110px · logo ngân hàng 85×38 (lưới 2 cột gap 20) · badge cao 24, rộng tối đa 120
 *  "Thông tin": viền trên #e5ece8, padding 25/0, 3 cột gap 12/30 (≤800: 2 · ≤480: 1), link 12px/1.6 #687e70
 *  dòng bản quyền: viền trên, padding 22/0, 11px #8c9b93 (≤480: 9px), chữ căn giữa ở ≤991 · ghi chú 10px (≤480: 9px) căn giữa
 */

.p2sew.p2sew-footer {
	--p2s-footer-divider: #e5ece8;
	--p2s-footer-link: #82928a;
	--p2s-footer-link-hover: var(--p2s-primary);
	background-color: var(--p2s-footer-auto-background, #fff);
}

.p2sew-footer .p2sew-footer__inner { padding-top: 40px; }

.p2sew-footer .p2sew-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.15fr 0.7fr;
	gap: 35px;
	padding-bottom: 40px;
}

.p2sew-footer .p2sew-footer__title {
	margin-bottom: 16px;
	font-size: 13px;
}

.p2sew-footer .p2sew-footer__col p {
	max-width: 240px;
	font-size: 12px;
}

.p2sew-footer .p2sew-footer__company p {
	max-width: 300px;
	margin-bottom: 10px;
}

/* Liên kết trong các cột */
.p2sew-footer .p2sew-footer__grid .p2sew-footer__link,
.p2sew-footer .p2sew-footer__grid a.p2sew-footer__link:focus {
	color: var(--p2s-footer-link);
	text-decoration: none;
}

.p2sew-footer .p2sew-footer__grid .p2sew-footer__link {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 9px;
	font-size: 11px;
}

.p2sew-footer .p2sew-footer__grid a.p2sew-footer__link:hover,
.p2sew-footer .p2sew-footer__info a.p2sew-footer__link:hover,
.p2sew-footer .p2sew-footer__bottom a:hover {
	color: var(--p2s-footer-link-hover);
	text-decoration: none;
}

.p2sew-footer .p2sew-footer__logo img {
	width: 110px;
	height: auto;
	margin-bottom: 17px;
}

/* Logo ngân hàng */
.p2sew-footer .p2sew-footer__banks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.p2sew-footer .p2sew-footer__banks img {
	width: 85px;
	max-width: 100%;
	height: 38px;
	margin: 0;
	object-fit: contain;
}

.p2sew-footer .p2sew-footer__bank-link {
	display: inline-flex;
}

/* Badge */
.p2sew-footer .p2sew-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.p2sew-footer .p2sew-footer__badges img {
	width: auto;
	max-width: 120px;
	height: 24px;
	margin: 0;
	object-fit: contain;
}

/* Khối "Thông tin" */
.p2sew-footer .p2sew-footer__info {
	padding: 25px 0;
	border-top: 1px solid var(--p2s-footer-divider);
}

.p2sew-footer .p2sew-footer__info-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 30px;
}

.p2sew-footer .p2sew-footer__info .p2sew-footer__link,
.p2sew-footer .p2sew-footer__info a.p2sew-footer__link:focus {
	color: #687e70;
	text-decoration: none;
}

.p2sew-footer .p2sew-footer__info .p2sew-footer__link {
	font-size: 12px;
	line-height: 1.6;
}

/* Dòng bản quyền */
.p2sew-footer .p2sew-footer__bottom {
	display: flex;
	justify-content: space-between;
	padding: 22px 0;
	border-top: 1px solid var(--p2s-footer-divider);
	color: #8c9b93;
	font-size: 11px;
}

.p2sew-footer .p2sew-footer__copyright {
	max-width: none;
	margin: 0;
	font-size: 11px;
}

.p2sew-footer .p2sew-footer__social {
	display: flex;
	flex-shrink: 0;
	gap: 18px;
}

.p2sew-footer .p2sew-footer__social-link,
.p2sew-footer a.p2sew-footer__social-link:focus {
	color: inherit;
	text-decoration: none;
}

.p2sew-footer .p2sew-footer__note {
	padding: 0 0 18px;
	color: #9ba9a0;
	font-size: 10px;
	text-align: center;
}

@media (max-width: 991px) {
	.p2sew-footer .p2sew-footer__copyright {
		text-align: center;
	}
}

/* container-mode: bản sao tự sinh từ @media phía trên (tools/container-mode.js) */
@container p2sew (max-width: 991px) {
	.p2sew-footer .p2sew-footer__copyright {
		text-align: center;
	}
}

@media (max-width: 800px) {
	.p2sew-footer .p2sew-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.p2sew-footer .p2sew-footer__grid > .p2sew-footer__col:first-child {
		grid-column: 1 / -1;
	}

	.p2sew-footer .p2sew-footer__info-links {
		grid-template-columns: 1fr 1fr;
	}

	.p2sew-footer .p2sew-footer__bottom {
		flex-wrap: wrap;
	}
}

/* container-mode: bản sao tự sinh từ @media phía trên (tools/container-mode.js) */
@container p2sew (max-width: 800px) {
	.p2sew-footer .p2sew-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.p2sew-footer .p2sew-footer__grid > .p2sew-footer__col:first-child {
		grid-column: 1 / -1;
	}

	.p2sew-footer .p2sew-footer__info-links {
		grid-template-columns: 1fr 1fr;
	}

	.p2sew-footer .p2sew-footer__bottom {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.p2sew-footer .p2sew-footer__grid {
		gap: 28px 18px;
	}

	.p2sew-footer .p2sew-footer__info-links {
		grid-template-columns: 1fr;
	}

	.p2sew-footer .p2sew-footer__bottom {
		gap: 10px;
		font-size: 9px;
	}

	.p2sew-footer .p2sew-footer__note {
		font-size: 9px;
	}
}

/* container-mode: bản sao tự sinh từ @media phía trên (tools/container-mode.js) */
@container p2sew (max-width: 480px) {
	.p2sew-footer .p2sew-footer__grid {
		gap: 28px 18px;
	}

	.p2sew-footer .p2sew-footer__info-links {
		grid-template-columns: 1fr;
	}

	.p2sew-footer .p2sew-footer__bottom {
		gap: 10px;
		font-size: 9px;
	}

	.p2sew-footer .p2sew-footer__note {
		font-size: 9px;
	}
}

/* Public app / commerce links introduced with Open Banking 2026. */
.p2sew-footer .p2sew-footer__public-links { margin-top:16px; }
.p2sew-footer .p2sew-footer__commerce { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.p2sew-footer .p2sew-footer__commerce-link { display:inline-flex; max-width:100%; }
.p2sew-footer .p2sew-footer__commerce img { width:118px; max-width:100%; height:auto; object-fit:contain; }
.p2sew-footer .p2sew-footer__public-links p { margin:12px 0 8px; font-size:11px; }
.p2sew-footer .p2sew-footer__stores { display:flex; flex-wrap:wrap; gap:8px; }
.p2sew-footer .p2sew-footer__stores img { width:auto; height:35px; object-fit:contain; }

/* Equal-height trust badges, between commerce and app links. */
.p2sew-footer .p2sew-footer__security{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0 16px}
.p2sew-footer .p2sew-footer__sectigo{display:block;width:100px;height:38px;max-width:100%;object-fit:contain;margin:0;padding:0}
.p2sew-footer .p2sew-footer__signature{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 10px;border:1px solid #b8e4cf;border-radius:6px;background:#edf9f2;color:#00845a;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}
.p2sew-footer .p2sew-footer__signature svg{flex-shrink:0;width:18px;height:18px}
