/**
 * "Bạn có vỏ bình?" — Phase 9 mục N/AG. Radio thật (input[type=radio] +
 * label thật, KHÔNG div giả) — chỉ ẩn control mặc định bằng CSS, giữ nguyên
 * hành vi keyboard/focus/click-label gốc của trình duyệt.
 */
/**
 * Owner annotation "tách ra làm 2 card riêng biệt": KHÔNG có card lớn bao
 * ngoài bọc cả 2 lựa chọn — chỉ còn legend (nhãn câu hỏi) + 2 card trắng
 * độc lập. Root cause của card bao ngoài là chính rule này (fieldset có
 * border/background/padding riêng). `<fieldset>` cũng có border mặc định
 * của trình duyệt nên phải set `border:0` tường minh, không chỉ bỏ khai
 * báo. Giữ nguyên fieldset/legend (semantics nhóm radio cho screen reader)
 * — chỉ bỏ phần trình bày dạng card.
 */
.alo-bottle-choice {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: transparent;
}

.alo-bottle-choice__legend {
	padding: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--alo-color-text);
}

/* mục W chỉ thị Phase 10 — 2 lựa chọn cạnh nhau (bám mockup ".choice"), gọn
   hơn dạng xếp chồng cũ, vẫn radio thật + label bao quanh. */
.alo-bottle-choice__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.alo-bottle-choice__option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--alo-color-border);
	border-radius: var(--alo-radius-md);
	background: var(--alo-color-surface);
	cursor: pointer;
	min-height: 72px;
}
.alo-bottle-choice__option:hover { border-color: var(--alo-color-primary); }
.alo-bottle-choice__option-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* :has() để đổi style cả label khi radio bên trong được chọn/focus — có
   fallback hợp lý (radio thật vẫn hiển thị + hoạt động đầy đủ ở trình
   duyệt không hỗ trợ :has(), chỉ mất phần tô màu viền). */
.alo-bottle-choice__option:has(.alo-bottle-choice__input:checked) {
	border-color: var(--alo-color-primary);
	background: var(--alo-color-primary-soft);
}
.alo-bottle-choice__option:has(.alo-bottle-choice__input:focus-visible) {
	outline: 2px solid var(--alo-color-primary);
	outline-offset: 2px;
}

.alo-bottle-choice__input {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	accent-color: var(--alo-color-primary);
}

.alo-bottle-choice__label {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: var(--alo-color-text);
}

.alo-bottle-choice__price {
	font-size: 13px;
	color: var(--alo-color-text-muted);
	white-space: nowrap;
}

@media (max-width: 420px) {
	/* KHÔNG set `padding` cho `.alo-bottle-choice` ở đây nữa. Rule cũ
	   (`padding:14px`) là tàn dư từ thời fieldset còn là 1 card bao ngoài;
	   sau khi bỏ card đó, padding này vẫn áp dụng ở mobile và thụt legend +
	   2 lựa chọn vào đúng 14px, khiến chúng LỆCH LỀ so với mọi card khác
	   trong cột mua hàng (đo thật @390px: các card ở left 16 / right 374,
	   riêng khối này 30 / 360) — đúng chỗ Owner đánh dấu. Fieldset phải
	   giữ `padding: 0` như rule cơ sở để mọi khối thẳng một lề. */
	.alo-bottle-choice__options { gap: 6px; }
	.alo-bottle-choice__option { padding: 10px 12px; }
	.alo-bottle-choice__price { white-space: normal; }
}
