/* =========================================================
 * BQN Cart Groups — שורת קטגוריה
 *
 * הכותרת נושאת את המשקל בצבע ובמרווח, לא בקווים:
 * אין קו מתחת לכותרת, ואין קו מעליה (הקו של הפריט האחרון בקבוצה מוסר).
 * ========================================================= */

.bqn-cg-head > td,
li.bqn-cg-head {
	/* אנכי בכפייה, אופקי נשאר פתוח כדי שה-JS יוכל להתאים אותו לשורות */
	padding-block: 26px 10px !important;
	padding-inline: 0;
	border: 0 !important;
	background: transparent !important;

	/* start ב-RTL = ימין, ומנצח את text-align: end של התבנית */
	text-align: start !important;
	direction: rtl !important;
}

/* הקבוצה הראשונה יושבת ישר מתחת לכותרת הטבלה */
.bqn-cg-head:first-child > td,
li.bqn-cg-head:first-child {
	padding-block-start: 6px !important;
}

.bqn-cg-head-label {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .01em;
	color: #0e5d6e;
}

.bqn-cg-head-count {
	display: inline-block;
	margin-inline-start: 8px;
	font-size: 11.5px;
	font-weight: 500;
	color: #7fa8b0;
}

/* פחות קווים: מסירים את הקו של הפריט האחרון בכל קבוצה,
   כך שלכותרת יש אוויר משני הצדדים במקום שתי מסגרות */
tr.bqn-cg-last-in-group > td,
li.bqn-cg-last-in-group {
	border-bottom: 0 !important;
}

.bqn-cg-head + tr.bqn-cg-item > td {
	border-top: 0 !important;
}

/* עגלת הצד */
ul.woocommerce-mini-cart li.bqn-cg-head,
ul.cart_list li.bqn-cg-head {
	list-style: none;
	margin: 0;
	padding-block: 18px 6px !important;
	/* ברירת מחדל; ה-JS דורס אותה בריפוד האמיתי של שורות העגלה */
	padding-inline: 15px;
}

ul.woocommerce-mini-cart li.bqn-cg-head:first-child,
ul.cart_list li.bqn-cg-head:first-child {
	padding-block-start: 0 !important;
}

ul.woocommerce-mini-cart li.bqn-cg-head::before,
ul.cart_list li.bqn-cg-head::before {
	content: none !important;
}

ul.woocommerce-mini-cart li.bqn-cg-head .bqn-cg-head-label,
ul.cart_list li.bqn-cg-head .bqn-cg-head-label {
	font-size: 13px;
}

@media (max-width: 767px) {
	.bqn-cg-head > td,
	li.bqn-cg-head {
		padding-block-start: 18px !important;
	}

	.bqn-cg-head-label {
		font-size: 13.5px;
	}
}
