/* Bed — So sánh sản phẩm (nút trên trang chi tiết, nút nổi, modal bảng so sánh) */

/* Nút "So sánh" cạnh tiêu đề sản phẩm: icon 16 + chữ 12px đậm màu secondary (như mẫu) */
body.bed-theme .bed-pd__compare-btn {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; height: 20px;
	background: transparent; border: 0; box-shadow: none; color: var(--bed-secondary); cursor: pointer;
	font-family: var(--bed-font-body); font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: normal; text-transform: none;
}
body.bed-theme .bed-pd__compare-btn .bed-icon { width: 16px; height: 16px; flex: none; }
body.bed-theme .bed-pd__compare-btn:hover, body.bed-theme .bed-pd__compare-btn.is-active { color: var(--bed-primary); }
.bed-pd__compare-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }

/* Nút nổi góc trái dưới */
.bed-cmp-opener { position: fixed; left: 25px; bottom: 25px; z-index: 999; }
.bed-cmp-opener[hidden] { display: none; }
@media (max-width: 767px) { .bed-cmp-opener { left: 12px; bottom: 76px; } }
body.bed-theme .bed-cmp-opener__btn { display: inline-flex; align-items: center; gap: 4px; padding: 11px 15px; background: #fff; color: var(--bed-primary); border: 1px solid var(--bed-primary); border-radius: 9999px; font-size: 14px; font-weight: 600; line-height: 22px; cursor: pointer; }
body.bed-theme .bed-cmp-opener__btn:hover { background: var(--bed-primary); color: #fff; }

/* Thông báo nhỏ */
.bed-cmp-toast { position: fixed; left: 50%; bottom: 90px; z-index: 3200; transform: translate(-50%, 12px); opacity: 0; padding: 10px 18px; border-radius: 9999px; background: #000000; color: #fff; font-size: 14px; transition: opacity .25s, transform .25s; pointer-events: none; }
.bed-cmp-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* Modal */
.bed-cmp-modal .bed-modal__box { max-width: 960px; width: calc(100% - 24px); padding: 24px; border-radius: 16px; }
.bed-cmp__title { margin: 0 0 16px; font-family: var(--bed-font-heading); font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--bed-fg); }
.bed-cmp__scroll { overflow-x: auto; }
.bed-cmp__table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 20px; color: var(--bed-fg); }
.bed-cmp__table th, .bed-cmp__table td { padding: 10px 12px; border: 1px solid var(--bed-n50); vertical-align: top; text-align: left; font-weight: 400; }
.bed-cmp__table th { width: 120px; background: var(--bed-bg-body); color: var(--bed-n300); font-weight: 600; }
.bed-cmp__row--img td { position: relative; padding: 12px; text-align: center; }
.bed-cmp__row--img img { display: block; width: 100%; max-width: 160px; height: auto; margin: 0 auto; border-radius: 8px; }
.bed-cmp__name a { color: var(--bed-fg); font-weight: 600; text-decoration: none; }
.bed-cmp__name a:hover { color: var(--bed-link); }
.bed-cmp__price .bed-price { color: var(--bed-price); font-weight: 600; font-size: 16px; }
.bed-cmp__price .bed-price-compare { margin-left: 6px; color: var(--bed-price-compare); text-decoration: line-through; font-size: 12px; }
.bed-cmp__ok { color: var(--bed-success, #2bad14); font-weight: 600; }
.bed-cmp__out { color: var(--bed-error, #ee1926); font-weight: 600; }
.bed-cmp__remove { position: absolute; top: 6px; right: 6px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: var(--bed-n50); color: var(--bed-fg); cursor: pointer; min-height:unset !important;}
.bed-cmp__remove:hover { background: var(--bed-primary); color: #fff; }
body.bed-theme .bed-cmp__cta { display: inline-flex; padding: 8px 16px; font-size: 14px; line-height: 20px; }
.bed-cmp--empty, .bed-cmp--loading { padding: 24px 0; text-align: center; }
