/*
 * FPV ISOLATION LAYER (v1.67.2)
 *
 * MUC DICH: chan chuoi KE THUA tu BetterDocs/theme vao cac khoi giao dien
 * cua plugin, de Customizer CSS khong con phai "khoa cung" font cho tung
 * class FPV mot (~1.300 dong trong villaverde-custom-css v7.30).
 *
 * LICH SU / BAI HOC (quan trong - dung lam lai):
 *   v1.67.0 dung `all: initial` tai goc moi khoi FPV. Sai lam: `all` reset
 *   TAT CA thuoc tinh ke thua, khong chi font-size. Trong 6.200 dong CSS
 *   cua plugin co rat nhieu cho co tinh KHONG khai bao color/list-style/
 *   border-collapse/cursor... vi dang dua vao gia tri ke thua san co ->
 *   `all: initial` pha het cung luc (mau badge hotspot, mau chu tab tang,
 *   bang, danh sach...). Da rollback.
 *
 * CACH LAM HIEN TAI (hep va an toan): CHI vo hieu hoa dung nhung thuoc tinh
 * ke thua ma BetterDocs (includes/Admin/Customizer/dynamic.css.php) va
 * theme thuc su set len khung .betterdocs-entry-content. Tuyet doi KHONG
 * dung toi:
 *   - color, font-family  -> giu nguyen mau/font cua site nhu truoc
 *   - list-style, border-collapse, cursor, visibility, direction, white-space
 *   - va bat ky thuoc tinh khong-ke-thua nao (display, position, width...)
 *
 * Neu sau nay con cho nao bi ro typography, THEM DUNG 1 thuoc tinh vao
 * danh sach duoi day - KHONG quay lai `all`.
 *
 * THU TU NAP: file nay phai nap TRUOC floor-plan-viewer.css va fpv-stats.css
 * (khai bao qua deps cua wp_enqueue_style). Do uu tien deu la (0,1,0) nen
 * CSS rieng cua plugin nap sau se ghi de lai binh thuong.
 *
 * `:where(body) >` bat cac overlay/modal JS gan thang vao <body>
 * (fpv-lc-modal-overlay, fpv-compare-overlay, fpv-nav-overlay-modal,
 * fpv-hotspot-tooltip...) ma KHONG lam tang do uu tien - :where() dong gop 0.
 * Nho vay overlay them moi sau nay tu dong duoc bao ve, khong can sua JS.
 */

.fpv-container,
.fpv-stats-page,
.fpv-compare-page,
.fpv-finance-page,
:where( body ) > [class^="fpv-"],
:where( body ) > [class*=" fpv-"] {
	/* Nhom 1: typography bi BetterDocs ep tren khung cha - nguyen nhan goc
	 * cua toan bo cac muc "khoa cung font" cu. */
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-indent: 0;
	font-style: normal;
	font-weight: 400;

	/* Nhom 2: chan tran ngang (khong phai typography, nhung cung 1 diem dat) */
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* box-sizing cho toan bo cay con - do uu tien (0,0,0) nen bat ky rule nao
 * cua plugin cung ghi de duoc. */
:where( .fpv-container, .fpv-stats-page, .fpv-compare-page, .fpv-finance-page ) *,
:where( .fpv-container, .fpv-stats-page, .fpv-compare-page, .fpv-finance-page ) *::before,
:where( .fpv-container, .fpv-stats-page, .fpv-compare-page, .fpv-finance-page ) *::after,
:where( body > [class^="fpv-"], body > [class*=" fpv-"] ) *,
:where( body > [class^="fpv-"], body > [class*=" fpv-"] ) *::before,
:where( body > [class^="fpv-"], body > [class*=" fpv-"] ) *::after {
	box-sizing: border-box;
}
