/* cxd-stores — giao diện khách. Phẳng, không đổ bóng, một màu nhấn (ink). Token lấy từ theme nếu có, có giá trị dự phòng. */
.cxd-stores,
.cxd-strip {
	--st-ink: var(--ink, #231F20);
	--st-ink2: var(--ink-2, #55525A);
	--st-ink3: var(--ink-3, #6E6A73);
	--st-line: var(--line, #E4E2E6);
	--st-bg: var(--bg, #FAFAFB);
	--st-surface: var(--surface, #fff);
	--st-link: var(--cyan-700, #00719C);
	--st-ok: var(--ok, #16794C);
	--st-wash: var(--yellow-50, #FFFDE6);
	--st-r: var(--r-md, 8px);
	color: var(--st-ink);
	font-family: var(--font-body, inherit);
	line-height: 1.55;
	box-sizing: border-box;
}
.cxd-stores *,
.cxd-strip * { box-sizing: border-box; }
:is(.cxd-stores,.cxd-strip) .cxd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:is(.cxd-stores,.cxd-strip) .cxd-ic { flex: none; }
:is(.cxd-stores,.cxd-strip) .cxd-num { font-variant-numeric: tabular-nums; }

/* Thanh lọc */
.cxd-stores__bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cxd-stores__chips { display: flex; flex-wrap: wrap; gap: 8px; }
:is(.cxd-stores,.cxd-strip) .cxd-chip,
:is(.cxd-stores,.cxd-strip) .cxd-near,
:is(.cxd-stores,.cxd-strip) .cxd-btn,
:is(.cxd-stores,.cxd-strip) .cxd-link,
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary {
	min-height: 44px; font: inherit; cursor: pointer; touch-action: manipulation;
	transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
:is(.cxd-stores,.cxd-strip) .cxd-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px;
	background: var(--st-bg); color: var(--st-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--st-line);
}
:is(.cxd-stores,.cxd-strip) .cxd-chip__n { font-variant-numeric: tabular-nums; color: var(--st-ink2); font-weight: 600; }
:is(.cxd-stores,.cxd-strip) .cxd-chip:hover { background: var(--st-wash); }
:is(.cxd-stores,.cxd-strip) .cxd-chip[aria-pressed="true"] { background: var(--st-ink); color: #fff; box-shadow: none; }
:is(.cxd-stores,.cxd-strip) .cxd-chip[aria-pressed="true"] .cxd-chip__n { color: #fff; }
:is(.cxd-stores,.cxd-strip) .cxd-near {
	display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--st-r);
	background: var(--st-surface); color: var(--st-ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--st-ink);
}
:is(.cxd-stores,.cxd-strip) .cxd-near:hover { background: var(--st-wash); }
:is(.cxd-stores,.cxd-strip) .cxd-near[aria-pressed="true"] { background: var(--st-wash); }
:is(.cxd-stores,.cxd-strip) .cxd-near:disabled { opacity: .6; cursor: progress; }
.cxd-stores__msg { min-height: 1.6em; margin: 0 0 12px; font-size: .875rem; color: var(--st-ink2); }

/* Danh sách + thẻ */
.cxd-stores__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
:is(.cxd-stores,.cxd-strip) .cxd-store[hidden] { display: none; }
:is(.cxd-stores,.cxd-strip) .cxd-store { margin: 0; padding: 0; }
:is(.cxd-stores,.cxd-strip) .cxd-store__in { height: 100%; padding: 20px; border-radius: 12px; background: var(--st-bg); display: flex; flex-direction: column; gap: 8px; }
:is(.cxd-stores,.cxd-strip) .cxd-store__img img { display: block; width: 100%; height: auto; border-radius: var(--st-r); }
:is(.cxd-stores,.cxd-strip) .cxd-store__brand { margin: 0; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--st-ink2); font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
:is(.cxd-stores,.cxd-strip) .cxd-store__main { text-transform: none; letter-spacing: 0; background: var(--brand-yellow, #FFF200); color: var(--st-ink); padding: 1px 8px; border-radius: 999px; font-size: .75rem; }
:is(.cxd-stores,.cxd-strip) .cxd-store__name { margin: 0; font-family: var(--font-head, inherit); font-size: 1.25rem; line-height: 1.25; font-weight: 700; color: var(--st-ink); }
:is(.cxd-stores,.cxd-strip) .cxd-store__name a { color: inherit; text-decoration: none; }
:is(.cxd-stores,.cxd-strip) .cxd-store__name a:hover { text-decoration: underline; }
:is(.cxd-stores,.cxd-strip) .cxd-store__addr { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--st-ink2); font-size: .9375rem; }
:is(.cxd-stores,.cxd-strip) .cxd-store__addr .cxd-ic { margin-top: 2px; width: 18px; height: 18px; color: var(--st-ink3); }
:is(.cxd-stores,.cxd-strip) .cxd-store__addr em { font-style: normal; color: var(--st-ink3); }
:is(.cxd-stores,.cxd-strip) .cxd-store__status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--st-ink2); }
:is(.cxd-stores,.cxd-strip) .cxd-store__status[hidden],
:is(.cxd-stores,.cxd-strip) .cxd-store__dist[hidden] { display: none; }
:is(.cxd-stores,.cxd-strip) .cxd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-ink3); flex: none; }
:is(.cxd-stores,.cxd-strip) .cxd-store__status.is-open { color: var(--st-ok); }
:is(.cxd-stores,.cxd-strip) .cxd-store__status.is-open .cxd-dot { background: var(--st-ok); }
:is(.cxd-stores,.cxd-strip) .cxd-store__dist { margin: 0; font-size: .875rem; font-weight: 700; color: var(--st-link); font-variant-numeric: tabular-nums; }

/* Nút */
:is(.cxd-stores,.cxd-strip) .cxd-store__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
:is(.cxd-stores,.cxd-strip) .cxd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--st-r);
	background: var(--st-surface); color: var(--st-ink); font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px var(--st-line); flex: 1 1 0; min-width: 0; line-height: 1.2;
}
:is(.cxd-stores,.cxd-strip) .cxd-btn:hover { background: var(--st-wash); color: var(--st-ink); }
:is(.cxd-stores,.cxd-strip) .cxd-btn--primary { flex: 1 1 100%; background: var(--st-ink); color: #fff; box-shadow: none; }
:is(.cxd-stores,.cxd-strip) .cxd-btn--primary:hover { background: #3b3739; color: #fff; }
:is(.cxd-stores,.cxd-strip) .cxd-store__meta { margin: 4px 0 0; font-size: .875rem; color: var(--st-ink2); display: flex; flex-direction: column; gap: 2px; }
:is(.cxd-stores,.cxd-strip) .cxd-store__pickup { color: var(--st-ink); font-weight: 600; }

/* Giờ mở cửa */
:is(.cxd-stores,.cxd-strip) .cxd-store__hours { margin-top: 4px; }
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary { display: flex; align-items: center; gap: 8px; font-weight: 700; list-style: none; border-radius: var(--st-r); padding: 0 4px; }
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary::-webkit-details-marker { display: none; }
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 150ms ease; }
:is(.cxd-stores,.cxd-strip) .cxd-store__hours[open] summary::after { transform: rotate(-135deg); }
:is(.cxd-stores,.cxd-strip) .cxd-hours { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 4px 0 0; }
:is(.cxd-stores,.cxd-strip) .cxd-hours th,
:is(.cxd-stores,.cxd-strip) .cxd-hours td { padding: 8px 4px; text-align: left; font-weight: 400; border-top: 1px solid var(--st-line); }
:is(.cxd-stores,.cxd-strip) .cxd-hours td { text-align: right; font-variant-numeric: tabular-nums; }
:is(.cxd-stores,.cxd-strip) .cxd-hours .is-today th,
:is(.cxd-stores,.cxd-strip) .cxd-hours .is-today td { font-weight: 700; }
:is(.cxd-stores,.cxd-strip) .cxd-hours__today { color: var(--st-link); }
:is(.cxd-stores,.cxd-strip) .cxd-hours__sp { margin: 8px 0 0; padding: 0 0 0 18px; font-size: .875rem; color: var(--st-ink2); }
:is(.cxd-stores,.cxd-strip) .cxd-hours__sp [hidden] { display: none; }

/* Bản đồ + liên kết phụ */
:is(.cxd-stores,.cxd-strip) .cxd-store__tools { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 4px; }
:is(.cxd-stores,.cxd-strip) .cxd-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; background: none; border: 0; color: var(--st-link); font-weight: 700; text-decoration: none; border-radius: var(--st-r);
}
:is(.cxd-stores,.cxd-strip) .cxd-link:hover { text-decoration: underline; }
:is(.cxd-stores,.cxd-strip) .cxd-store__map { margin-top: 8px; }
:is(.cxd-stores,.cxd-strip) .cxd-store__map iframe { display: block; width: 100%; height: 240px; border: 0; border-radius: var(--st-r); background: var(--st-line); }

/* Dải rút gọn */
.cxd-strip__head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.cxd-strip__title { margin: 0; font-family: var(--font-head, inherit); font-size: 1.25rem; }
.cxd-strip__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.cxd-strip__item { padding: 16px; border-radius: 12px; background: var(--st-bg); display: flex; flex-direction: column; gap: 4px; }
.cxd-strip__item .cxd-btn { margin-top: 8px; flex: none; }
.cxd-strip__name { margin: 0; font-weight: 700; }
.cxd-strip__area { margin: 0; font-size: .875rem; color: var(--st-ink2); }
.cxd-stores__empty { color: var(--st-ink2); }

/* Tiêu điểm bàn phím */
.cxd-stores a:focus-visible,
.cxd-stores button:focus-visible,
.cxd-stores summary:focus-visible,
.cxd-strip a:focus-visible { outline: 3px solid var(--st-link); outline-offset: 2px; }

@media (min-width: 768px) {
:is(.cxd-stores,.cxd-strip) .cxd-btn--primary { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
:is(.cxd-stores,.cxd-strip) .cxd-chip,
:is(.cxd-stores,.cxd-strip) .cxd-near,
:is(.cxd-stores,.cxd-strip) .cxd-btn,
:is(.cxd-stores,.cxd-strip) .cxd-link,
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary,
:is(.cxd-stores,.cxd-strip) .cxd-store__hours summary::after { transition: none; }
}

/* Giao diện chủ có thể ép chữ HOA / giãn chữ cho mọi nút — trả về chữ thường để đồng nhất với phần còn lại của khối. */
:is(.cxd-stores,.cxd-strip) .cxd-chip,
:is(.cxd-stores,.cxd-strip) .cxd-near,
:is(.cxd-stores,.cxd-strip) .cxd-btn,
:is(.cxd-stores,.cxd-strip) .cxd-link { text-transform: none; letter-spacing: normal; margin: 0; }
:is(.cxd-stores,.cxd-strip) .cxd-link[hidden] { display: none; }

/* Cơ sở sắp khai trương */
:is(.cxd-stores,.cxd-strip) .cxd-store__soon { display: inline-block; text-transform: none; letter-spacing: 0; background: var(--st-line, #e6e6e6); color: var(--st-ink, #111); padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin: 0; }
:is(.cxd-stores,.cxd-strip) .cxd-store__note { margin: 0; color: var(--st-ink2, #555); font-size: .9375rem; }
