/* =========================================================================
 * THÔNG BÁO COOKIE (.ock) – inc/oxo-consent.php · assets/js/oxo-consent.js
 * Cùng kiểu thẻ lời chào chat (.ocw__tease): nền trắng phẳng, viền 1px nhạt, bo 18px, 1 bóng nhẹ trung tính.
 * Nút: Chấp nhận = đỏ đậm #d4252a chữ trắng (Q30), Từ chối = nút viền – 2 nút bằng nhau.
 * Máy tính: góc trái dưới (chat ở góc phải). Điện thoại/tablet: nằm TRÊN thanh tab đáy (.oxd) và nút "Gọi ngay" nhô lên.
 * Nút nổi không chồng lên banner ở MỌI bề rộng (JS đo): nút mục lục bài (.blg-tocbtn, hiện tới 1099px) đặt ngay trên banner bằng
 * --ock-up; điện thoại: nút chat (.ocw), thanh khuyến mãi (.km-bar) đẩy lên bằng --ock-sh; nút nổi khác chạm banner → JS nâng (translate).
 * Banner in sớm trong DOM (wp_body_open) – vùng có nhãn, không bẫy focus; vùng .ock-sr (aria-live) báo cho trình đọc màn hình.
 * ====================================================================== */
.ock { position: fixed; z-index: 984; left: 22px; bottom: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; width: min(460px, calc(100vw - 44px)); padding: 16px 18px; border: 1px solid var(--oxo-border, #ececee); border-radius: 18px; background: var(--oxo-surface, #fff); color: var(--oxo-body, #4a4f5a); box-shadow: 0 18px 44px -20px rgba(23, 23, 29, .45); font-family: var(--oxo-font, inherit); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.ock.is-in { opacity: 1; transform: none; }
.ock[hidden] { display: none !important; }
.ock__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--oxo-primary-soft, #fff0ee); color: var(--oxo-red-t, #c8232a); }
.ock__tx { min-width: 0; }
.ock p { margin: 0 !important; padding: 0; text-transform: none; letter-spacing: 0; }
.ock .ock__t { color: var(--oxo-text, #1b1d22); font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.ock .ock__d { margin-top: 4px !important; color: var(--oxo-body, #4a4f5a); font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.ock .ock__d strong { color: var(--oxo-text, #1b1d22); font-weight: 700; }
.ock .ock__d a { color: var(--oxo-red-t, #c8232a); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.ock .ock__d a:hover { text-decoration-thickness: 2px; }
.ock .ock__now { margin-top: 6px !important; color: var(--oxo-muted, #636873); font-size: 12.5px; font-weight: 600; }
.ock .ock__now[hidden] { display: none !important; }
.ock__btns { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ock .ock__btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 44px; min-height: 0; margin: 0; padding: 0 16px; border: 1px solid var(--oxo-border-strong, #dcdce0); border-radius: 12px; background: var(--oxo-surface, #fff); box-shadow: none; color: var(--oxo-text, #1b1d22); font: 700 14.5px/1 var(--oxo-font, inherit); letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.ock .ock__btn:hover { border-color: var(--oxo-text, #1b1d22); background: var(--oxo-surface-2, #f7f7f8); color: var(--oxo-text, #1b1d22); }
.ock .ock__btn.is-ok { border-color: #d4252a; background: #d4252a; color: #fff; }
.ock .ock__btn.is-ok:hover { border-color: #b81d22; background: #b81d22; color: #fff; }
.ock .ock__btn:focus-visible { outline: 2px solid var(--oxo-red, #ec3237); outline-offset: 2px; }
html[data-theme="dark"] .ock { box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .ock .ock__btn:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); color: #fff; }
html[data-theme="dark"] .ock .ock__btn.is-ok:hover { border-color: #b81d22; background: #b81d22; }
/* link "Cài đặt cookie" khi trang không có nhóm Chính sách ở chân trang */
.ock-foot { margin: 0 !important; padding: 12px 16px; text-align: center; font-size: 13px; }
.ock-open:focus-visible { outline: 2px solid var(--oxo-red, #ec3237); outline-offset: 2px; border-radius: 4px; }
/* vùng thông báo cho trình đọc màn hình (ẩn khỏi mắt) */
.ock-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* nút "Mục lục" của bài (hiện tới 1099px): luôn nằm trên mép trên banner, ở mọi bề rộng */
html.ock-on .blg-tocbtn { bottom: var(--ock-up, 92px); }

/* tablet: thanh tab đáy hiện từ 1023px trở xuống → đặt banner trên thanh và trên nút "Gọi ngay" nhô lên (~82px) */
@media (max-width: 1023px) {
	.ock { left: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); }
}
/* điện thoại: banner rộng hết khung (tối đa 560px), bỏ icon cho gọn; đẩy chat / thanh khuyến mãi lên trên banner */
@media (max-width: 849px) {
	.ock { left: 12px; right: 12px; width: auto; max-width: 560px; margin: 0 auto; padding: 14px 14px 12px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ock__ic { display: none; }
	.ock .ock__t { font-size: 15px; }
	.ock .ock__d { font-size: 13.5px; line-height: 1.5; }
	html.ock-on .ocw { bottom: calc(78px + var(--ock-sh, 0px) + env(safe-area-inset-bottom)); }
	html.ock-on .km-bar { bottom: calc(76px + var(--ock-sh, 0px) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .ock { transition: none; } }
@media print { .ock { display: none !important; } }
