/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Kontener */
.wc-stock-meter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
}

/* Pasek z 3 segmentami */
.wc-stock-bar {
  display: inline-flex;
  gap: 6px;
 width: 85px;
 height: 21px;
}

.wc-stock-high .wc-stock-bar {background: url('https://vaporia.pl/wp-content/themes/salient-child/gfx/dostepnosc1.svg'); background-repeat:no-repeat; background-size: cover;}
.wc-stock-low .wc-stock-bar {background: url('https://vaporia.pl/wp-content/themes/salient-child/gfx/dostepnosc2.svg'); background-repeat:no-repeat; background-size: cover;}
.wc-stock-out .wc-stock-bar {background: url('https://vaporia.pl/wp-content/themes/salient-child/gfx/dostepnosc3.svg'); background-repeat:no-repeat; background-size: cover;}

.wc-stock-label {
  font-weight: 600;
}

/* Opcjonalnie: drobny margines w kartach w archiwum */
.products .product .wc-stock-meter {
  margin-top: 6px;
  display: inline-flex;
}

.cwginstock-panel-primary {
	border-radius: 20px !important;
	border-color: #D0D0D0 !important;
}

.cwginstock-panel-heading {
	background: #F1F1F1 !important;
	border-radius: 18px 18px 0 0 !important;
	border: 0 !important;
	color: black !important;
}

.cwginstock-panel-heading h4 {
color: black !important;
}

.cwginstock-panel-body input {
	margin-bottom: 0 !important;
}

.term-description--bottom {
  margin-bottom: 50px;
}

.megamenu .nectar-menu-icon-img {
  width: 100% !important;
  border-radius: 10px !important;
}

.megamenu .menu-item-object-product_brand,
.megamenu .menu-item-object-product_brand a {
  
  border-radius: 10px !important;
}

ul.sub-menu {
  border-radius: 20px 20px 20px 20px !important;
}

#slide-out-widget-area .menu-item-hidden-text>a>.nectar-menu-icon-text>.menu-title-text {
  font-size: 16px !important;
      color: white !important;
      display: block;
}

tr.is-bundled td {
  padding-top: 0 !important;
}
tr.is-bundled td img {
  max-width: 70px !important;
  
}

.is-bundle td {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}



.is-bundled .wc-block-cart-item__product, 
tr.is-bundled td {
  margin-bottom: 0 !important;
  padding-bottom: 0 important;
}

.is-bundled .wc-block-cart-item__product .wc-block-components-sale-badge {
  display:none !important;
}

/*.is-bundled {
  display: none !important;
}*/

/* ========= WSPÓLNA RAMKA DLA BUNDLE + JEGO DZIECI (Cart Block) ========= */

/* Upewnij się, że nie ma odstępów między wierszami (czasem motywy dodają) */
table.wc-block-cart-items,
table.wc-block-cart-items tbody,
table.wc-block-cart-items tr,
table.wc-block-cart-items td{
  border-spacing: 0 !important;
}

/* Bazowe: tło dla całej grupy (bundle + bundled) */
tr.wc-block-cart-items__row.is-bundle td,
tr.wc-block-cart-items__row.is-bundled td{
  background: rgba(80,140,255,.04);
}

/* BOCZNE KRAWĘDZIE wspólnej ramki (lewa/prawa) na KAŻDYM wierszu grupy */
tr.wc-block-cart-items__row.is-bundle td.wc-block-cart-item__image,
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__image{
  border-left: 1px solid rgba(80,140,255,.25);
}

tr.wc-block-cart-items__row.is-bundle td.wc-block-cart-item__total,
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__total{
  border-right: 1px solid rgba(80,140,255,.25);
}

/* GÓRA ramki: tylko na wierszu bundle */
tr.wc-block-cart-items__row.is-bundle td.wc-block-cart-item__image{
  border-top: 1px solid rgba(80,140,255,.25);
  border-top-left-radius: 12px;
}
tr.wc-block-cart-items__row.is-bundle td.wc-block-cart-item__product{
  border-top: 1px solid rgba(80,140,255,.25);
}
tr.wc-block-cart-items__row.is-bundle td.wc-block-cart-item__total{
  border-top: 1px solid rgba(80,140,255,.25);
  border-top-right-radius: 12px;
}

/* DÓŁ ramki: tylko na ostatnim dziecku */
tr.wc-block-cart-items__row.is-bundled__last td.wc-block-cart-item__image{
  border-bottom: 1px solid rgba(80,140,255,.25);
  border-bottom-left-radius: 12px;
}
tr.wc-block-cart-items__row.is-bundled__last td.wc-block-cart-item__product{
  border-bottom: 1px solid rgba(80,140,255,.25);
}
tr.wc-block-cart-items__row.is-bundled__last td.wc-block-cart-item__total{
  border-bottom: 1px solid rgba(80,140,255,.25);
  border-bottom-right-radius: 12px;
}

/* Delikatna linia separująca dzieci od siebie (żeby nie było wrażenia "osobnych kart") */
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__image,
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__product,
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__total{
  border-top: 1px solid rgba(80,140,255,.12);
}

/* Wcięcie + łącznik dla dzieci (Twoja "przynależność") */
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__product{
  padding-left: 56px !important;
  position: relative;
}



.is-bundled .wc-block-cart-item__image {
  text-align:right !important;
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price__value {
  color: black;
  font-weight: bold !important;
}

.is-bundled .wc-block-cart-item__total-price-and-sale-badge-wrapper .wc-block-components-product-price__value {
  color: gray;
  font-weight: normal !important;
}

.wc-block-cart-items__row td {
  border-top: 1px solid lightgray !important;
  padding-top: 20px !important;
}

@media screen and (max-width: 699px) {
  
}

.is-bundled td,
.wc-block-cart-items__row:first-child td,
.bundled_mini_cart_item {
  border: 0 !important;
  padding-bottom: 10px;
}

/* (Opcjonalnie) Dzieci trochę „lżejsze” */
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__image,
tr.wc-block-cart-items__row.is-bundled td.wc-block-cart-item__total{
  opacity: .9;
}

add_action( 'woocommerce_login_form_start', function () {
	if ( shortcode_exists('nextend_social_login') ) {
		echo do_shortcode('[nextend_social_login]');
	}
}, 5 );

add_action( 'woocommerce_register_form_start', function () {
	if ( shortcode_exists('nextend_social_login') ) {
		echo do_shortcode('[nextend_social_login]');
	}
}, 5 );

