/* Pinata Dock — chỉ hiện trên màn hình dưới 768px, giống thanh cũ.
 * Ngôn ngữ thiết kế lấy từ chính chiếc pinata: tua giấy nhún nhiều lớp, màu kẹo,
 * lắc như pinata đang treo, và tung kẹo khi gửi đơn thành công.
 */
.pd-root {
	--pd-accent: var(--primary-color, #a16695);
	--pd-accent-ink: #7f4a74; /* chữ màu thương hiệu, đủ tương phản trên nền trắng */
	--pd-accent-deep: #5b3354;
	--pd-ink: #2a1b26;
	--pd-muted: #6f5d68;
	--pd-line: #eadde4;
	--pd-line-strong: #d9c6d1;
	--pd-soft: #f8f1f5;
	--pd-surface: #fff;
	--pd-zalo: #0a68ff;
	--pd-wa: #1f8a4c;
	--pd-ok: #2e8b57;
	--pd-warn: #b7791f;
	--pd-error: #c2334f;

	/* Màu kẹo: đậm để làm tua và điểm nhấn, nhạt để làm nền thẻ */
	--pd-c-pink: #e8577b;   --pd-t-pink: #fde4ea;
	--pd-c-yellow: #f2b33d; --pd-t-yellow: #fdf1d6;
	--pd-c-teal: #3db7a4;   --pd-t-teal: #dcf3ef;
	--pd-c-orange: #f07f3c; --pd-t-orange: #fde7da;
	--pd-c-mauve: #a16695;  --pd-t-mauve: #f3e6ef;

	--pd-bar-h: 64px;
	--pd-safe: max(10px, env(safe-area-inset-bottom, 0px));
	--pd-ease: cubic-bezier(.2, .8, .2, 1);
	--pd-spring: cubic-bezier(.34, 1.35, .64, 1);
	display: none;
}

@media (max-width: 767px) {
	.pd-root { display: block; }
	body { padding-bottom: calc(var(--pd-bar-h) + var(--pd-safe) + 8px); }
	/* Thanh cũ: ẩn phòng khi chưa gỡ hết mã cũ */
	.bottom-contact { display: none !important; }
	html.pd-lock, html.pd-lock body { overflow: hidden; }
}

/* Reset: Flatsome định dạng mạnh cho button/a/ul — chặn lại trong phạm vi dock.
 * :where() giữ độ ưu tiên ở mức 1 class, để style riêng của từng thành phần bên dưới luôn thắng. */
.pd-root :where(button, a.pd-tab, a.pd-row) {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.pd-root a { -webkit-tap-highlight-color: transparent; text-decoration: none; }
.pd-root svg { width: 24px; height: 24px; flex: none; }
.pd-root h2 { margin: 0; }
.pd-root ul.pd-list { list-style: none; margin: 0; padding: 0; }

/* ============================================================
 * Thanh đáy
 * ============================================================ */
.pd-dock {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 990;
	pointer-events: none;
	font-family: inherit;
	color: var(--pd-ink);
}

.pd-status {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: calc(100% - 24px);
	margin: 0 auto 8px;
	padding: 5px 12px 5px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 999px;
	box-shadow: 0 6px 18px -8px rgba(60, 20, 45, .35);
	transition: opacity .25s var(--pd-ease), transform .25s var(--pd-ease);
}
.pd-status i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pd-ok);
	box-shadow: 0 0 0 3px rgba(46, 139, 87, .18);
}
.pd-status.is-off i { background: var(--pd-warn); box-shadow: 0 0 0 3px rgba(183, 121, 31, .18); }
.pd-status:empty { display: none; }
.pd-dock.is-compact .pd-status { opacity: 0; transform: translateY(10px); pointer-events: none; }

.pd-ctx {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 8px;
	padding: 6px 6px 6px 14px;
	font-size: 13px;
	color: #fff;
	background:
		linear-gradient(90deg, var(--pd-c-yellow) 0 33.3%, var(--pd-c-teal) 0 66.6%, var(--pd-c-pink) 0) 0 0 / 100% 3px no-repeat,
		var(--pd-ink);
	border-radius: 14px;
	box-shadow: 0 10px 24px -10px rgba(42, 27, 38, .6);
	animation: pd-rise .3s var(--pd-ease);
}
.pd-ctx[hidden] { display: none; }
.pd-ctx-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-root .pd-ctx-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #eadde4; }
.pd-root .pd-ctx-x svg { width: 16px; height: 16px; }

.pd-bar {
	pointer-events: auto;
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: end;
	min-height: var(--pd-bar-h);
	padding: 6px 4px var(--pd-safe);
	background: var(--pd-surface);
	border-top: 1px solid var(--pd-line);
	box-shadow: 0 -4px 16px -10px rgba(60, 20, 45, .25);
}
/* Viền tua giấy nhún như váy pinata */
.pd-bar::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -7px;
	height: 7px;
	background:
		linear-gradient(135deg, transparent 50%, var(--pd-surface) 50%) 0 0 / 10px 7px repeat-x,
		linear-gradient(225deg, transparent 50%, var(--pd-surface) 50%) 5px 0 / 10px 7px repeat-x;
	filter: drop-shadow(0 -1px 0 var(--pd-line));
}

.pd-root .pd-tab {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 3px;
	min-height: 48px;
	padding: 6px 0 2px;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	color: var(--pd-muted);
	border-radius: 12px;
	transition: color .15s;
}
.pd-root .pd-tab svg { transition: transform .25s var(--pd-spring); }
.pd-root .pd-tab:active svg { transform: scale(.86); }
.pd-root .pd-tab[aria-expanded="true"] { color: var(--pd-accent-ink); font-weight: 700; }
.pd-root .pd-tab[aria-expanded="true"] svg { transform: translateY(-2px) rotate(-6deg); }
/* chấm kẹo dưới ô đang mở */
.pd-root .pd-tab[aria-expanded="true"]::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	border-radius: 50%;
	background: var(--pd-c-pink);
	box-shadow: -9px 0 0 var(--pd-c-yellow), 9px 0 0 var(--pd-c-teal);
}
.pd-root .pd-tab:focus-visible { outline: 2px solid var(--pd-accent-ink); outline-offset: -2px; }

.pd-root .pd-primary { color: var(--pd-zalo); font-weight: 600; }
.pd-root .pd-primary.pd-wa { color: var(--pd-wa); }
.pd-badge {
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--pd-zalo);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: -.02em;
}
.pd-wa .pd-badge { background: var(--pd-wa); }
.pd-root .pd-badge svg { width: 16px; height: 16px; }

.pd-root .pd-fab {
	display: grid;
	justify-items: center;
	gap: 4px;
	margin-top: -30px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pd-accent-ink);
}
.pd-ring {
	width: 58px;
	height: 58px;
	padding: 4px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: conic-gradient(var(--pd-c-yellow) 0 25%, var(--pd-c-teal) 0 50%, var(--pd-c-pink) 0 75%, var(--pd-accent) 0);
	box-shadow: 0 10px 20px -8px rgba(127, 74, 116, .7);
	transition: transform .25s var(--pd-spring);
}
.pd-ring b {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--pd-accent-ink);
	color: #fff;
}
.pd-root .pd-fab:active .pd-ring { transform: scale(.92); }
.pd-root .pd-fab[aria-expanded="true"] .pd-ring { transform: rotate(45deg); }
.pd-root .pd-fab:focus-visible .pd-ring { outline: 3px solid var(--pd-ink); outline-offset: 2px; }

/* ============================================================
 * Bảng trượt — khung chung
 * ============================================================ */
.pd-scrim {
	position: fixed;
	inset: 0;
	z-index: 995;
	background: rgba(42, 20, 36, .46);
	opacity: 0;
	transition: opacity .25s;
}
.pd-scrim.is-on { opacity: 1; }
.pd-scrim[hidden], .pd-sheet[hidden] { display: none; }

.pd-sheet {
	/* 3 lớp tua — mỗi bảng một bộ màu riêng (xem bên dưới) */
	--f1: var(--pd-c-pink);
	--f2: var(--pd-c-yellow);
	--f3: var(--pd-c-teal);
	position: fixed;
	left: 0;
	right: 0;
	bottom: -32px; /* chừa chỗ cho nhịp nảy khi mở, để không lộ khe dưới đáy */
	z-index: 1000;
	max-height: 86vh;
	max-height: 86dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 18px calc(28px + 32px + var(--pd-safe));
	color: var(--pd-ink);
	background: var(--pd-surface);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -12px 40px -12px rgba(42, 27, 38, .4);
	transform: translateY(105%);
	transition: transform .42s var(--pd-spring);
}
.pd-sheet.is-on { transform: none; }

/* Dải tua giấy nhún 3 tầng ở mép trên bảng */
.pd-sheet::before {
	content: "";
	display: block;
	height: 22px;
	margin: 0 -18px 16px;
	background:
		conic-gradient(from -45deg at bottom, var(--f1) 90deg, #0000 0) 0 4px / 12px 6px repeat-x,
		linear-gradient(var(--f1), var(--f1)) 0 0 / 100% 4px no-repeat,
		conic-gradient(from -45deg at bottom, var(--f2) 90deg, #0000 0) 6px 10px / 12px 6px repeat-x,
		linear-gradient(var(--f2), var(--f2)) 0 0 / 100% 10px no-repeat,
		conic-gradient(from -45deg at bottom, var(--f3) 90deg, #0000 0) 0 16px / 12px 6px repeat-x,
		linear-gradient(var(--f3), var(--f3)) 0 0 / 100% 16px no-repeat;
}
#pd-sheet-topics  { --f1: var(--pd-c-pink);   --f2: var(--pd-c-yellow); --f3: var(--pd-c-teal); }
#pd-sheet-search  { --f1: var(--pd-c-teal);   --f2: var(--pd-c-pink);   --f3: var(--pd-c-yellow); }
#pd-sheet-order   { --f1: var(--pd-accent);   --f2: var(--pd-c-yellow); --f3: var(--pd-c-pink); }
#pd-sheet-ask     { --f1: var(--pd-c-yellow); --f2: var(--pd-c-teal);   --f3: var(--pd-accent); }
#pd-sheet-contact { --f1: var(--pd-c-teal);   --f2: var(--pd-c-orange); --f3: var(--pd-c-pink); }

.pd-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pd-sh h2 { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--pd-ink); }
.pd-root .pd-x {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--pd-muted);
	background: var(--pd-soft);
	transition: transform .25s var(--pd-spring), background .15s;
}
.pd-root .pd-x:active { transform: rotate(90deg) scale(.9); background: var(--pd-line); }
.pd-root .pd-x svg { width: 18px; height: 18px; }
.pd-root .pd-x:focus-visible { outline: 2px solid var(--pd-accent-ink); }
.pd-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--pd-muted); }
.pd-label { margin: 18px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pd-muted); }

/* Bảng màu kẹo dùng lại cho thẻ chủ đề, chip gợi ý, số thứ tự form */
.pd-list li:nth-child(5n+1), .pd-suggest a:nth-child(5n+1) { --t: var(--pd-c-pink);   --tt: var(--pd-t-pink); }
.pd-list li:nth-child(5n+2), .pd-suggest a:nth-child(5n+2) { --t: var(--pd-c-yellow); --tt: var(--pd-t-yellow); }
.pd-list li:nth-child(5n+3), .pd-suggest a:nth-child(5n+3) { --t: var(--pd-c-teal);   --tt: var(--pd-t-teal); }
.pd-list li:nth-child(5n+4), .pd-suggest a:nth-child(5n+4) { --t: var(--pd-c-orange); --tt: var(--pd-t-orange); }
.pd-list li:nth-child(5n),   .pd-suggest a:nth-child(5n)   { --t: var(--pd-c-mauve);  --tt: var(--pd-t-mauve); }

/* ============================================================
 * Chủ đề — mỗi mục là một "pinata" nhỏ có tua dưới chân
 * ============================================================ */
.pd-root ul.pd-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 10px;
	padding-bottom: 6px;
}
.pd-list li { margin: 0; }
/* mục lẻ cuối cùng trải hết hàng, không đứng chơ vơ */
.pd-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pd-list a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 60px;
	padding: 12px 12px 12px 14px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--pd-ink);
	background: var(--tt);
	border-radius: 16px 16px 4px 4px;
	transform-origin: 50% -24px; /* điểm treo phía trên, như sợi dây pinata */
}
.pd-list a::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--t);
	box-shadow: 0 0 0 3px #fff;
}
.pd-list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 6px;
	background: conic-gradient(from -45deg at bottom, var(--tt) 90deg, #0000 0) 0 0 / 12px 6px repeat-x;
}
.pd-list a:active { animation: pd-swing .7s ease-out; }
.pd-list a:focus-visible { outline: 3px solid var(--t); outline-offset: 3px; }
/* danh mục đang xem: nền mực, chấm kẹo giữ màu — đọc rõ với mọi màu */
.pd-list .current-menu-item > a,
.pd-list .current-menu-ancestor > a {
	color: #fff;
	background: var(--pd-ink);
}
.pd-list .current-menu-item > a::after,
.pd-list .current-menu-ancestor > a::after {
	background: conic-gradient(from -45deg at bottom, var(--pd-ink) 90deg, #0000 0) 0 0 / 12px 6px repeat-x;
}
.pd-list .current-menu-item > a::before,
.pd-list .current-menu-ancestor > a::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

/* các thẻ bật ra lần lượt khi mở bảng */
.pd-sheet.is-on .pd-list li,
.pd-sheet.is-on .pd-suggest a,
.pd-sheet.is-on .pd-row { animation: pd-pop .45s var(--pd-spring) backwards; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(2) { animation-delay: 40ms; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(3) { animation-delay: 80ms; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(4) { animation-delay: 120ms; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(5) { animation-delay: 160ms; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(6) { animation-delay: 200ms; }
.pd-sheet.is-on :is(.pd-list li, .pd-suggest a, .pd-row):nth-child(n+7) { animation-delay: 240ms; }

/* ============================================================
 * Tìm mẫu
 * ============================================================ */
.pd-sheet .aws-container .aws-search-form,
.pd-sheet .woocommerce-product-search,
.pd-sheet .searchform {
	display: block;
	height: auto;
	background: none;
	border: 0;
}
.pd-sheet .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.pd-sheet .aws-container .aws-search-form .aws-search-field,
.pd-sheet input[type="search"] {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px;
	font-size: 16px; /* dưới 16px thì iPhone tự phóng to trang khi gõ */
	color: var(--pd-ink);
	background: #fff;
	border: 2px solid var(--pd-line-strong);
	border-radius: 16px;
	box-shadow: 0 3px 0 var(--pd-line);
	transition: border-color .15s, box-shadow .15s;
}
.pd-sheet .aws-container .aws-search-form .aws-search-field:focus,
.pd-sheet input[type="search"]:focus {
	outline: 0;
	border-color: var(--pd-accent);
	box-shadow: 0 0 0 4px rgba(161, 102, 149, .2);
}

.pd-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-suggest a {
	padding: 9px 15px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pd-ink);
	background: var(--tt);
	border: 2px solid var(--t);
	border-radius: 999px;
	box-shadow: 0 3px 0 var(--t);
	transition: transform .1s, box-shadow .1s;
}
.pd-suggest a:active { transform: translateY(3px); box-shadow: 0 0 0 var(--t); }
.pd-suggest a:focus-visible { outline: 2px solid var(--pd-ink); outline-offset: 2px; }

/* ============================================================
 * Form Đặt làm (Contact Form 7)
 * ============================================================ */
#pd-sheet-order .pd-sub {
	padding: 10px 14px;
	color: var(--pd-ink);
	background: var(--pd-t-yellow);
	border-radius: 14px 14px 14px 4px;
}
#pd-sheet-order .wpcf7-form { counter-reset: pd-f; }
#pd-sheet-order .wpcf7-form p { margin: 0 0 16px; }
#pd-sheet-order .wpcf7-form p:nth-of-type(3n+1) label { --t: var(--pd-c-pink); }
#pd-sheet-order .wpcf7-form p:nth-of-type(3n+2) label { --t: var(--pd-c-teal); }
#pd-sheet-order .wpcf7-form p:nth-of-type(3n)   label { --t: var(--pd-c-yellow); }
#pd-sheet-order .wpcf7-form label {
	counter-increment: pd-f;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 8px 10px;
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--pd-ink);
}
/* số thứ tự hình viên kẹo: 3 bước thật sự để có báo giá */
#pd-sheet-order .wpcf7-form label::before {
	content: counter(pd-f);
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	background: var(--t);
	border-radius: 50%;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
	transform: rotate(-8deg);
}
#pd-sheet-order .wpcf7-form label br { display: none; }
#pd-sheet-order .wpcf7-form-control-wrap { grid-column: 1 / -1; display: block; }
#pd-sheet-order .wpcf7-form input:not([type="submit"]):not([type="hidden"]) {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 14px;
	font-size: 16px;
	font-weight: 500;
	color: var(--pd-ink);
	background: #fff;
	border: 2px solid var(--pd-line-strong);
	border-radius: 16px;
	box-shadow: 0 3px 0 var(--pd-line);
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
#pd-sheet-order .wpcf7-form input:not([type="submit"]):focus {
	outline: 0;
	border-color: var(--t, var(--pd-accent));
	box-shadow: 0 0 0 4px rgba(161, 102, 149, .18);
}
#pd-sheet-order .wpcf7-form input::placeholder { color: #a3929c; font-weight: 400; }
#pd-sheet-order .wpcf7-form .wpcf7-not-valid {
	border-color: var(--pd-error) !important;
	background: #fff6f8 !important;
	animation: pd-shake .35s;
}
#pd-sheet-order .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--pd-error); }

#pd-sheet-order .wpcf7-form input[type="submit"] {
	width: 100%;
	height: 58px;
	margin: 8px 0 0;
	padding: 0 18px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .01em;
	text-transform: none;
	color: #fff;
	/* vân giấy nhún trên nút */
	background:
		repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 5px),
		var(--pd-accent-ink);
	border: 0;
	border-radius: 18px;
	box-shadow: 0 5px 0 var(--pd-accent-deep), 0 14px 22px -12px rgba(91, 51, 84, .7);
	cursor: pointer;
	transition: transform .1s, box-shadow .1s;
}
#pd-sheet-order .wpcf7-form input[type="submit"]:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pd-accent-deep); }
#pd-sheet-order .wpcf7-form input[type="submit"]:focus-visible { outline: 3px solid var(--pd-c-yellow); outline-offset: 3px; }
#pd-sheet-order .wpcf7-form.submitting input[type="submit"] { opacity: .7; }
#pd-sheet-order .wpcf7-spinner { display: block; margin: 10px auto 0; }
#pd-sheet-order .wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 14px;
	font-size: 13.5px;
	font-weight: 600;
	border: 0;
	border-radius: 14px;
	background: var(--pd-t-yellow);
}
#pd-sheet-order .wpcf7 form.invalid .wpcf7-response-output,
#pd-sheet-order .wpcf7 form.failed .wpcf7-response-output,
#pd-sheet-order .wpcf7 form.spam .wpcf7-response-output { background: var(--pd-t-pink); color: var(--pd-error); }
#pd-sheet-order .wpcf7 form.sent .wpcf7-response-output { background: var(--pd-t-teal); color: var(--pd-ok); }

/* ============================================================
 * Hỏi mẫu này
 * ============================================================ */
.pd-quote {
	position: relative;
	margin: 0 0 8px;
	padding: 14px 16px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
	background: var(--pd-t-yellow);
	border: 2px dashed var(--pd-c-yellow);
	border-radius: 18px 18px 18px 6px;
	user-select: all;
	-webkit-user-select: all;
}
.pd-copy { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--pd-ok); min-height: 1.2em; }
.pd-copy:not(:empty)::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pd-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	animation: pd-pop .4s var(--pd-spring);
}

/* ============================================================
 * Liên hệ — mỗi kênh là một viên kẹo bấm được
 * ============================================================ */
#pd-sheet-contact .pd-sub {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 10px;
	font-weight: 600;
	color: var(--pd-ink);
	background: var(--pd-t-teal);
	border-radius: 999px;
}
#pd-sheet-contact .pd-sub::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pd-c-teal);
	box-shadow: 0 0 0 3px rgba(61, 183, 164, .25);
}

.pd-rows { display: grid; gap: 10px; }
.pd-root .pd-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	font-size: 15px;
	color: var(--pd-ink);
	background: #fff;
	border: 2px solid var(--pd-line);
	border-radius: 18px;
	box-shadow: 0 3px 0 var(--pd-line);
	transition: transform .1s, box-shadow .1s;
}
.pd-root .pd-row::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0 4px 0 auto;
	border-top: 2.5px solid currentColor;
	border-right: 2.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .35;
}
.pd-root .pd-row:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pd-line); }
.pd-root .pd-row:focus-visible { outline: 2px solid var(--pd-accent-ink); outline-offset: 2px; }
.pd-ri {
	width: 44px;
	height: 44px;
	flex: none;
	display: grid;
	place-items: center;
	color: #fff;
	border-radius: 14px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
	transform: rotate(-6deg);
	transition: transform .3s var(--pd-spring);
}
.pd-row:nth-child(even) .pd-ri { transform: rotate(5deg); }
.pd-root .pd-row:active .pd-ri { transform: rotate(0) scale(.92); }
.pd-root .pd-ri svg { width: 22px; height: 22px; }
.pd-rt { display: grid; line-height: 1.35; }
.pd-rt b { font-size: 16px; font-weight: 700; }
.pd-rt small { font-size: 13px; color: var(--pd-muted); }

/* kênh đầu tiên (Gọi ngay / Zalo) được tô nổi như viên kẹo chính */
#pd-sheet-contact .pd-row:first-child,
#pd-sheet-ask .pd-row:first-child {
	background: var(--pd-t-pink);
	border-color: var(--pd-c-pink);
	box-shadow: 0 3px 0 #c9446a;
}
#pd-sheet-ask .pd-row:first-child { background: #e6f0ff; border-color: var(--pd-zalo); box-shadow: 0 3px 0 #0a52c9; }
#pd-sheet-contact .pd-row:first-child:active,
#pd-sheet-ask .pd-row:first-child:active { box-shadow: 0 0 0 transparent; }

/* ============================================================
 * Thông báo và tung kẹo
 * ============================================================ */
.pd-toast {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(var(--pd-bar-h) + var(--pd-safe) + 56px);
	z-index: 1010;
	padding: 13px 14px 11px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background:
		linear-gradient(90deg, var(--pd-c-yellow) 0 33.3%, var(--pd-c-teal) 0 66.6%, var(--pd-c-pink) 0) 0 0 / 100% 4px no-repeat,
		var(--pd-ink);
	border-radius: 14px;
	box-shadow: 0 14px 30px -12px rgba(42, 27, 38, .6);
	opacity: 0;
	transform: translateY(10px) scale(.98);
	pointer-events: none;
	transition: opacity .25s var(--pd-ease), transform .35s var(--pd-spring);
}
.pd-toast.is-on { opacity: 1; transform: none; }

.pd-confetti { position: fixed; inset: 0; z-index: 1020; overflow: hidden; pointer-events: none; }
.pd-confetti i {
	position: absolute;
	left: 50%;
	bottom: calc(var(--pd-bar-h) + var(--pd-safe) + 40px);
	width: 8px;
	height: 13px;
	background: var(--c);
	border-radius: 2px;
	animation: pd-burst 1.3s cubic-bezier(.2, .6, .35, 1) forwards;
}

/* ============================================================
 * Chuyển động
 * ============================================================ */
@keyframes pd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pd-pop { from { opacity: 0; transform: translateY(12px) scale(.94); } }
@keyframes pd-swing {
	0% { transform: rotate(0); }
	20% { transform: rotate(5deg); }
	45% { transform: rotate(-4deg); }
	70% { transform: rotate(2deg); }
	100% { transform: rotate(0); }
}
@keyframes pd-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}
@keyframes pd-burst {
	0% { transform: translate(-50%, 0) rotate(0); opacity: 1; }
	55% { transform: translate(calc(-50% + var(--x) * .75), var(--y)) rotate(calc(var(--r) * .6)); opacity: 1; }
	100% { transform: translate(calc(-50% + var(--x)), calc(var(--y) + 220px)) rotate(var(--r)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.pd-root *, .pd-root *::before, .pd-root *::after { transition: none !important; animation: none !important; }
}
