/**
 * adicam – Cross-Sell Restyle (dodatek)
 * Nadpisuje wygląd wtyczki WP Desk „Quick Cross-Sells":
 *   - karta produktu ("You might also like")
 *   - koszyk boczny (drawer)
 * na kafelki w stylu „Complete Your Setup".
 *
 * Nie edytuje oryginalnej wtyczki -> aktualizacje jej nie ruszą.
 * Wygrywa przez !important (reguły wtyczki są bez !important),
 * a jedyną regułę wtyczki z !important (wysokość miniatury)
 * przebijamy wyższą specyficznością (selektor z .wcqcs-cross-sell-item-img).
 *
 * Regulacja: zmienne poniżej.
 */
:root{
	--adicam-cs-bg:#f5f5f5;        /* tło kafelka */
	--adicam-cs-radius:12px;       /* zaokrąglenie kafelka */
	--adicam-cs-gap:14px;          /* odstęp miniatura <-> treść */
	--adicam-cs-text:#1a1a1a;      /* kolor nazwy produktu */
	--adicam-cs-accent:#e2001a;    /* czerwień adicam – ustaw dokładny hex marki */
	--adicam-cs-img:88px;          /* miniatura na karcie produktu */
	--adicam-cs-img-drawer:64px;   /* miniatura w koszyku bocznym */
}

/* ===== tabela -> lista kafelków ===== */
table.shop_table.wcqcs-cross-sells,
.single-product div.product table.shop_table.wcqcs-cross-sells,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells{
	display:block !important;
	table-layout:auto !important;
	border:0 !important;
	border-radius:0 !important;
	background:transparent !important;
	margin:0 0 1.5em !important;
	width:100% !important;
}
table.shop_table.wcqcs-cross-sells > tbody,
.single-product div.product table.shop_table.wcqcs-cross-sells > tbody{
	display:block !important;
	width:100% !important;
}

/* ===== wiersz = kafelek ===== */
table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item,
.single-product div.product table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item{
	display:flex !important;
	align-items:center !important;
	gap:var(--adicam-cs-gap) !important;
	margin:0 0 10px !important;
	padding:12px 14px !important;
	background:var(--adicam-cs-bg) !important;
	border:1px solid rgba(0,0,0,.06) !important;
	border-radius:var(--adicam-cs-radius) !important;
	box-sizing:border-box !important;
}
table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item:last-child,
.single-product div.product table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item:last-child,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item:last-child{
	margin-bottom:0 !important;
}

/* ===== komórki -> bloki bez ramek ===== */
table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item > td,
.single-product div.product table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item > td,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td{
	display:block !important;
	width:auto !important;
	padding:0 !important;
	border:0 !important;
	border-bottom:0 !important;
	background:transparent !important;
	box-sizing:border-box !important;
	vertical-align:middle !important;
}

/* ===== checkbox (karta produktu – tryb zaznaczania) ===== */
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-cb,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-cb{
	flex:0 0 auto !important;
	width:auto !important;
	order:0;
}
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-cb input,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-cb input{
	width:18px !important;
	height:18px !important;
	margin:0 !important;
	accent-color:var(--adicam-cs-accent);
}

/* ===== miniatura =====
   (selektor z .wcqcs-cross-sell-item-img przebija plugin `height:auto !important`) */
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image{
	flex:0 0 var(--adicam-cs-img) !important;
	width:var(--adicam-cs-img) !important;
	order:1;
}
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img,
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image > a,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image > a{
	display:block !important;
	width:var(--adicam-cs-img) !important;
	height:var(--adicam-cs-img) !important;
}
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img img,
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img img,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img img{
	display:block !important;
	width:var(--adicam-cs-img) !important;
	height:var(--adicam-cs-img) !important;
	object-fit:contain !important;
	background:#fff !important;
	border-radius:8px !important;
	margin:0 !important;
}

/* ===== treść: nazwa + cena (+ przycisk w koszyku bocznym) ===== */
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-product,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-product{
	flex:1 1 auto !important;
	min-width:0 !important;
	order:2;
	display:flex !important;
	flex-direction:column !important;
	gap:4px !important;
	padding-right:0 !important;
}
table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-product > *,
.single-product div.product table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-product > *{
	margin:0 !important;
}

/* ===== nazwa produktu ===== */
table.shop_table.wcqcs-cross-sells a.wcqcs-cross-sell-item-name,
table.shop_table.wcqcs-cross-sells span.wcqcs-cross-sell-item-name,
.single-product div.product table.shop_table.wcqcs-cross-sells a.wcqcs-cross-sell-item-name,
.single-product div.product table.shop_table.wcqcs-cross-sells span.wcqcs-cross-sell-item-name{
	font-size:15px !important;
	font-weight:600 !important;
	line-height:1.3 !important;
	color:var(--adicam-cs-text) !important;
	text-decoration:none !important;
}
table.shop_table.wcqcs-cross-sells a.wcqcs-cross-sell-item-name:hover,
.single-product div.product table.shop_table.wcqcs-cross-sells a.wcqcs-cross-sell-item-name:hover{
	color:var(--adicam-cs-accent) !important;
}
/* ukryj ikonkę „otwórz w nowej karcie" przy nazwie */
table.shop_table.wcqcs-cross-sells .wcqcs-cross-sell-item-name-icon,
.single-product div.product table.shop_table.wcqcs-cross-sells .wcqcs-cross-sell-item-name-icon{
	display:none !important;
}

/* ===== CTA (opcjonalny nagłówek nad nazwą) ===== */
table.shop_table.wcqcs-cross-sells h4.wcqcs-cross-sell-item-cta,
.single-product div.product table.shop_table.wcqcs-cross-sells h4.wcqcs-cross-sell-item-cta{
	font-size:12px !important;
	font-weight:700 !important;
	color:var(--adicam-cs-accent) !important;
	text-transform:uppercase !important;
	letter-spacing:.03em !important;
}

/* ===== cena ===== */
table.shop_table.wcqcs-cross-sells p.price,
.single-product div.product table.shop_table.wcqcs-cross-sells p.price{
	font-size:15px !important;
	font-weight:700 !important;
	line-height:1.2 !important;
}
table.shop_table.wcqcs-cross-sells p.price del,
.single-product div.product table.shop_table.wcqcs-cross-sells p.price del{
	margin-right:6px !important;
	font-weight:500 !important;
	opacity:.55 !important;
}
table.shop_table.wcqcs-cross-sells p.price ins,
.single-product div.product table.shop_table.wcqcs-cross-sells p.price ins{
	text-decoration:none !important;
}

/* ===== przycisk „Add to cart" (koszyk boczny) ===== */
table.shop_table.wcqcs-cross-sells a.button,
table.shop_table.wcqcs-cross-sells a.button.add_to_cart_button,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells a.button{
	display:inline-flex !important;
	align-items:center !important;
	align-self:flex-start !important;
	width:auto !important;
	margin-top:6px !important;
	padding:8px 16px !important;
	font-size:13px !important;
	line-height:1.2 !important;
	border-radius:6px !important;
}

/* ===== koszyk boczny (drawer) – wersja kompaktowa ===== */
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells{
	padding:0 1.25em !important;
	box-sizing:border-box !important;
}
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells tr.wcqcs-cross-sell-item{
	gap:12px !important;
	padding:10px 12px !important;
}
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image{
	flex-basis:var(--adicam-cs-img-drawer) !important;
	width:var(--adicam-cs-img-drawer) !important;
}
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image > a,
.wcqcs-add-to-cart-drawer table.shop_table.wcqcs-cross-sells td.wcqcs-cross-sell-item-image .wcqcs-cross-sell-item-img img{
	width:var(--adicam-cs-img-drawer) !important;
	height:var(--adicam-cs-img-drawer) !important;
}

/* pasek akcentu w koszyku: zielony -> czerwień adicam */
.wcqcs-add-to-cart-drawer .wcqcs-drawer-accent{
	background-color:var(--adicam-cs-accent) !important;
}

/* ===== tytuły sekcji ===== */
h3.wcqcs-cross-sells-section-title,
.single-product div.product h3.wcqcs-cross-sells-section-title{
	font-size:18px !important;
	font-weight:700 !important;
	margin-bottom:14px !important;
	color:var(--adicam-cs-text) !important;
}
