/*
 * Custom code goes here.
 */

/* hide firstname and lastname alerts in checkout form */
#customer-form input[name="firstname"]+span.form-control-comment, #customer-form input[name="lastname"]+span.form-control-comment {
    display: none;
}
/* fix for Chrome image rendering */
img {
 image-rendering: -webkit-optimize-contrast;
}

li.product-flag.out_of_stock {
    background: red;
    color: #fff;
}

.product-miniature #product-availability {
    display: none !important;
}

/* CLS */
@media (max-width: 1199px) {
  #header .header-nav {border-bottom: 1px solid #e5e5e5;}
}

@media (max-width: 1199px) {
    .header-nav {height: 80px; }
    #_desktop_cart, #_desktop_user_info, .wp-nav {display: none;}
}

#wpimageslider-wrap {
  aspect-ratio: 834 / 420;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

#wpimageslider-wrap .bx-wrapper,
#wpimageslider-wrap .bx-viewport {
  height: 100% !important;
}


.wp-gallery {
  max-height: 129px;
  overflow: hidden;
}

.modal-body .wp-gallery {
  max-height: 170px;
} 

/* CLS end */


.wp-gallery {
  margin-bottom: 2rem;
}

#contact-link a{
color: white!important;
}

#contact-link a:hover{
color: #30425d!important;
}

#header .header-nav .user-info a{
color: white;
}

#header .header-nav .user-info a:hover{
color: #30425d;
}

#wpheadericonsmodule .wp-title:hover{
color: #30425d;
}

.wpheadericonsmodule-item:hover .wp-icon i::before{
color: #30425d;
}

#footer, .footer-container, .footer-copyright{
background: #30425d;
}

#footer span.h3,
#footer p.h3,
#block_myaccount_infos .myaccount-title a,
.block-contact .block-contact-title, .block_newsletter p.h3{
color: #ffffff;
}

#footer div.about-us-text p,
.footer-container li a,
.block-contact ul li,
.copy-logo-text,
.copy-logo-text p,
.block_newsletter p,
#footer .material-icons{
color: #ffffff;
}

/* .btn-primary:hover:hover,  */
#wpimageslider-wrap .btn-default:hover, 
#header .header-top .blockcart .cart-summary a.btn:hover, 
.btn-comment:hover{
background-color: #ff9e00;
}

.footer-container li a:hover, 
.block-contact ul li:hover{
color: #ff9e00;
}

.footer-before-container .container{
border-bottom: 1px solid #122137;
border-top: 10px solid #122137;
}

.footer-copyright{
border-top: 1px solid #122137;
}

#footer .material-icons,
#footer p.h3,
#footer p.h3 a{
color: #ff9e00;
}

/* Menu top */

#header .header-top #_desktop_top_menu a[data-depth="0"]{
background-color: #30425d;
color: white;
}

#header .header-top #_desktop_top_menu a:hover[data-depth="0"],
#header .header-top #_desktop_top_menu .current a[data-depth="0"]{
background-color: #ff9e00!important;
}

.border-this-div{
padding: 35px 0px 15px 0px;
border-width: 1px 0px 1px 0px;
border-color: #ccc;
border-style: solid;
}

#header .header-top .menu ul#top-menu>li{
margin-right: 5px;
}

.new-products{
margin-top: 50px;
}

.product-flags li.new{
display:none!important;
}

.product-availability-date{
margin-top:5px;
}

/* Środkowanie nagłówków w karuzelach na home */

.hc-tab > .hc-tab-info > .hc-cat.parent-cat {
  float: none;
  display: block;
  text-align: center;
  width: 100%;
  padding-right: 0;
}

.hc-tabs > li.hc-tab::after {
  content: "";
  display: block;
  clear: both;
}

.hc-tabs > li.hc-tab {
  display: block;
  clear: both;
  padding-top: 50px;
}

/* Przenoszenie strzałek w karuzeli mobilnej home na górę */

@media (max-width: 767px) {
  .hc-tab {
    position: relative;
  }

  .hc-products-list.has-products.slick-slider {
    padding-bottom: 0;
    margin-bottom: 30px;
  }

  .hc-products-container .slick-prev,
  .hc-products-container .slick-next {
    top: -68px;
    bottom: auto;
    z-index: 5;
  }

  .hc-products-container .slick-prev {
    right: calc(50% + 6px);
    left: auto;
  }

  .hc-products-container .slick-next {
    left: calc(50% + 6px);
    right: auto;
  }
  
  .hc-tab > .hc-tab-info > .hc-cat.parent-cat{
	  padding-bottom:55px;
  }
  
  /* Wyłączanie modułu z ikonkami na mobile na home */
  
  #wpblockiconsmodule{
	  display:none;
  }
  
  .add-blocks.displayTop{
	  display:none;
  }
  
}

/* Footer - desktop: 4 kolumny obok siebie */
#footer .footer-container .row > .links {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

#footer .footer-container .links > .row {
  display: flex !important;
  flex-wrap: wrap !important;
}

#footer .footer-container .links > .row > .wrapper {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

/* Tablet: 2 kolumny */
@media (max-width: 1199px) {
  #footer .footer-container .links > .row > .wrapper {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

/* Telefon: 1 kolumna */
@media (max-width: 767px) {
  #footer .footer-container .links > .row > .wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Fix dla wysuwanej warstwy submenu */
/* Mega menu zawsze nad treścią strony */

#adtm_menu {
  position: relative;
  z-index: 999;
}

#adtm_menu ul#menu li div.adtm_sub,
#adtm_menu ul#menu .li-niveau1 div.adtm_sub,
.li-niveau1 .adtm_sub,
.ui-autocomplete
 {
  z-index: 10000 !important;
}

/* Produkty niżej niż menu */
#products {
  position: relative;
  z-index: 1;
}

#products .product-flags {
  z-index: 2 !important;
}

/* Dodatkowy fix dla podglądu koszyka na desktop */

#header .cart-summary {
    z-index: 10000;
    position: absolute;
}

/* End fix */

/* Tła dla karuzel na stronie głównej */

@media (min-width: 768px) {
	
.hc-layout .container{
padding-left: 0;
padding-right: 0;
}

  .hc-tabs > li.hc-tab {
   width:100%;
   padding-left:60px;
   padding-right:60px;
  }
  
  .hc-tabs > li.hc-tab:nth-child(odd) {
    background: #d7d7d7;
  }
  
  .hc-tabs > li.hc-tab:nth-child(odd) > .hc-cat.parent-cat,
  .hc-tabs > li.hc-tab:nth-child(odd) > .hc-tab-info > .hc-cat.parent-cat {
    border-bottom: 1px solid #000;
  }

  .hc-tabs > li.hc-tab:nth-child(even) {
    background: #fff;
  }

}

/* Tabela w regulaminie Cookies */

table.pct {
  border-collapse: collapse;
}

table.pct th,
table.pct td {
  padding: 5px;
  border: 1px solid #000;
}

table.pct th {
  background-color: #ffcc33;
}

/* tabela w regulaminie Cookies end */

/* Dostawa i płatność */

.delivery-info,
.returns-txt-header{
border-bottom: 2px solid orange;
padding-top: 20px;
display: inline-block;
}

.delivery-color-orange,
.returns-txt-header h2{
color: orange;
}

.product-prices > .tax-shipping-delivery-label{
display: none;
}

/* Responsywne style */

@media (min-width: 1200px) {
    #_desktop_top_menu .top-menu .sub-menu {
        border: 1px solid #ff9e00;
    }
}

@media (min-width: 990px){
	
	#header .logo 
	{
    max-width: 245px;
	}
	
}

@media (min-width: 768px) {
    .col-md-3 {
        width: 45%;
    }
}

@media (min-width: 1199px) {
    #header .header-nav {
	background:#ff9e00;
	}
}

@media (min-width: 1200px) {
	
    #search_widget {
        display: block !important;
    }
	
	#header .header-nav .user-info svg path,
	#header .header-nav .user-info svg circle{
	stroke: #ffffff;
	}
	
}

/* Category page: 4 products per row ONLY in grid view */
@media (min-width: 992px) {
  body#category #js-product-list .products.row.gutter5 > article.product-miniature.prod-box-grid,
  body#new-products #js-product-list .products.row.gutter5 > article.product-miniature.prod-box-grid {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}

/* List view must stay full width */
body#category #js-product-list .products.row.gutter5 > article.product-miniature.prod-box-list {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* Home carousel - schowanie inputa ilości bez dużej przerwy */
body .hc-layout .product-actions input[name="qty"].wp-qty,
body .hc-layout .product-actions input.input-group.form-control.qty.wp-qty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Home carousel - ujednolicenie przycisku koszyka */
.hc-layout .product-actions #add-to-cart-or-refresh {
    margin-top: 8px !important;
}

.hc-layout .product-actions #add-to-cart-or-refresh input[name="qty"],
.hc-layout .product-actions #add-to-cart-or-refresh input.wp-qty {
    display: none !important;
}

.hc-layout .product-actions #add-to-cart-or-refresh button.add-to-cart {
    margin-top: 8px !important;
}

/* Home carousel - równe przyciski Dodaj do koszyka */
.hc-layout .product-actions button.add-to-cart,
.hc-layout .product-actions .btn.add-to-cart {
    width: 200px !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 20px !important;
    margin: 8px auto 0px auto !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.hc-layout .product-actions {
    text-align: center !important;
	margin-top: 8px !important;
}

/* Home Products PRO - ujednolicenie "Obecnie brak na stanie" */
.hc-layout .product-unavailable,
.hc-layout #product-availability .product-unavailable,
.hc-layout .product-availability .product-unavailable {
    color: #ff9a52 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: block !important;
    text-align: center !important;
}

/* Przycisk powiadom mnie */

button.js-mailalert-add{
	font-size: 12.5px!important;
}

.mt-1{
	margin-top: 5px!important;
}

/* Style dla tabeli na karcie produktu */

.tn-product-info-table {
    margin: 20px 0;
    max-width: 420px;
    font-size: 0.9375rem;
    line-height: 24px;
	border-top: 1px solid #ddd;
	margin-top: 8px;
	padding-top: 10px;
}

.tn-product-info-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    column-gap: 20px;
}

.tn-product-info-row span {
    font-weight: 400;
    color: #000;
}

.tn-product-info-row strong {
    font-weight: 700;
    color: #000;
}

/* Style dla tabeli na karcie produktu end */