/*
Theme Name: Shoptimizer Child Theme vMieszko stara
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/


#shipping_method li p {
  cursor: pointer;
}

.cart-custom-field {
  clear: both;
  margin-bottom: 15px;
  padding-top: 10px;
  color: #111;
  font-size: 14px;
}

.cart-custom-field strong {
  font-weight: 600
}

.cart-custom-field h4 {
  margin-top: 1.2em;
  margin-bottom: .5em;
  padding-bottom: .15em;
  border-bottom: 1px solid #e2e2e2;
  font-size: 17px;
  font-weight: 600
}

.cart-custom-field .widget {
  margin: 0;
  font-size: 14px
}

.cart-custom-field .widget p {
  margin-bottom: 5px
}

.cart-custom-field .widget fieldset p {
  margin-top: -15px;
  margin-bottom: 0
}

.cart-custom-field a {
  border-bottom: 1px solid #ccc;
  color: #111
}

.cart-custom-field ul {
  margin: 10px 0 0 0
}

.cart-custom-field ul li {
  position: relative;
  margin-bottom: 3px;
  margin-left: 22px;
  list-style: none
}

.cart-custom-field ul li::before {
  position: absolute;
  top: 4px;
  left: -22px;
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: #333;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 12L11 14L15 10M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain
}

.cart-custom-field fieldset {
  margin-top: .5em;
  margin-bottom: 1.2em;
  border: 1px solid #e2e2e2
}

.cart-custom-field fieldset legend {
  display: block;
  margin: 0 auto;
  width: inherit;
  padding: 10px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-align: center
}

.cart-custom-field fieldset img {
  display: block
}
.wc-proceed-to-checkout {
  margin-bottom: 10;
}
.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button.cgkit-swatch-selected {
background: #FEC601;
border-color: #111;
color: #222222;

}


/* Produkt okienko */

.woocommerce-card__header {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically if you need */
  flex-direction: column; /* Stack children vertically */
}

.woocommerce-loop-product__title {
  text-align: center; /* Center the text inside the div */
  width: 100%; /* Ensure the div takes up the full width */
}

/* Formatowanie checkout dodatkowe checkboxa na zgodnę na przetwarzanie danych osobowych */

#przetwarzanie_danych_field label {
font-weight: normal !important;
}
.woocommerce form .form-row.przetwarzanie_danych .woocommerce-form__label-for-checkbox {
  display: block;
  position: relative;
  padding-left: 26px;
}

.woocommerce form .form-row.przetwarzanie_danych .input-checkbox {
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 0;
  width: 18px;
  height: 18px;
}

.woocommerce form .form-row .input-checkbox {
  width: 18px; /* Width of the checkbox */
  height: 18px; /* Height of the checkbox */
}
/* wielkosc kwoty */
.woocommerce-variation-price .price .amount {
font-size: 20px;
font-weight: bold;
}

/* Product page likes */
.single-product .product-details-wrapper .wcpl-product-likes-product {
  font-size: 20px;
  font-weight: bold;
}
.wcpl-product-likes-button[data-type="like"] .wcpl-product-likes-button-icon-heart:before {
  
  background-size: contain !important;  /* or 'cover' or '150%' etc. */
}
.single-product .wcpl-product-likes-product {
  display: flex;
  align-items: center;
  justify-content: center;
}
.wcpl-product-likes-liked {
  font-weight: bold;
  color: #e02139;
}

/* Product subcategory list */
/* Adjust subcategory list styles */
.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.subcategory-list li {
display: inline-block;  
margin-bottom: 10px;
margin-right: 10px;
}

.subcategory-list li a {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f3f3f3; /* Use your theme's background color */
  color: #333; /* Use your theme's text color */
  border-radius: 5px;
  text-decoration: none;
  font-family: inherit; /* Use your theme's font family */
  font-size: inherit; /* Use your theme's font size */
  transition: background-color 0.3s ease;
}

.subcategory-list li a:hover {
  background-color: #ddd; /* Use your theme's hover background color */
}

/* paginacja wyświetlania */

nav.woocommerce-pagination {
display: block !important;
}

/* badge zmiana*/
.ckit-badge {
font-weight: bold;
opacity: 1;
}


/* Shipping methods kurson pointer -----
*/

.wc-proceed-to-checkout {
    margin-bottom: 10;
}

/********** promo boxes **********/
/**********------------------------ **********/

.promo-box fieldset {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 4px dashed #faca3e;
    border-radius: 8px;
}
.promo-box fieldset legend {
    text-align: center;
    display: block;
    margin: 0 auto;
    width: inherit;
    color: #ac0107;
    font-size: 1.2rem;
    font-weight: bold; /* Make text bold and red */
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0px;
    padding-bottom: 0px;
}

.promo-headline {
    margin-top: -10px;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0.5px 0 #ac0107, -0.5px 0 #ac0107;
    color: #ac0107;
}
.promo-info {
    font-weight: bold;
}

/* change in the below header widget*/
.header-widget-region .promo-box {
  display: flex;
  flex-direction: row;
  justify-content: space-around; /* Adjust this as needed */
}

.header-widget-region .promo-box fieldset {
  flex: 1; /* Each fieldset takes equal width */
  margin: 10px; /* Add some space between fieldsets */
  border: 4px dashed #ac0107;
  max-width: 600px;
  transition: transform 0.3s ease;
}
.header-widget-region .promo-box fieldset:hover {
  transform: scale(1.03);

}


  /* Media query for mobile devices */
  @media (max-width: 768px) {
    .header-widget-region .promo-box {
        flex-direction: column; /* Vertical layout on smaller screens */
    }

    .header-widget-region .promo-box fieldset {
        margin: 10px 0; /* Adjust margins for vertical stacking */
    }
  }

/********** Countdown - Flipdown.js **********/
/**********------------------------ **********/

/* THEMES */

/********** Theme: dark **********/
/* Font styles */
.flipdown.flipdown__theme-dark {
    font-family: sans-serif;
    font-weight: bold;
  }
  /* Rotor group headings */
  .flipdown.flipdown__theme-dark .rotor-group-heading:before {
    color: #000000;
  }
  /* Delimeters */
  .flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):before,
  .flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    background-color: #151515;
  }
  /* Rotor tops */
  .flipdown.flipdown__theme-dark .rotor,
  .flipdown.flipdown__theme-dark .rotor-top,
  .flipdown.flipdown__theme-dark .rotor-leaf-front {
    color: #FFFFFF;
    background-color: #151515;
  }
  /* Rotor bottoms */
  .flipdown.flipdown__theme-dark .rotor-bottom,
  .flipdown.flipdown__theme-dark .rotor-leaf-rear {
    color: #EFEFEF;
    background-color: #202020;
  }
  /* Hinge */
  .flipdown.flipdown__theme-dark .rotor:after {
    border-top: solid 1px #151515;
  }
  
  /********** Theme: light **********/
  /* Font styles */
  .flipdown.flipdown__theme-light {
    font-family: sans-serif;
    font-weight: bold;
  }
  /* Rotor group headings */
  .flipdown.flipdown__theme-light .rotor-group-heading:before {
    color: #EEEEEE;
  }
  /* Delimeters */
  .flipdown.flipdown__theme-light .rotor-group:nth-child(n+2):nth-child(-n+3):before,
  .flipdown.flipdown__theme-light .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    background-color: #DDDDDD;
  }
  /* Rotor tops */
  .flipdown.flipdown__theme-light .rotor,
  .flipdown.flipdown__theme-light .rotor-top,
  .flipdown.flipdown__theme-light .rotor-leaf-front {
    color: #222222;
    background-color: #DDDDDD;
  }
  /* Rotor bottoms */
  .flipdown.flipdown__theme-light .rotor-bottom,
  .flipdown.flipdown__theme-light .rotor-leaf-rear {
    color: #333333;
    background-color: #EEEEEE;
  }
  /* Hinge */
  .flipdown.flipdown__theme-light .rotor:after {
    border-top: solid 1px #222222;
  }
  
  /* END OF THEMES */
  
  .flipdown {
    overflow: visible;
    width: 100%;
    height: 55px;
    display: flex;        /* Enables flexbox */
    justify-content: center; /* Centers horizontally */
  }
  
  .flipdown .rotor-group {
    position: relative;
    float: left;
    padding-right: 15px;
  }
  
  .flipdown .rotor-group:last-child {
    padding-right: 0;
  }
  
  .flipdown .rotor-group-heading:before {
    display: block;
    height: 15px;
    line-height: 15px;
    text-align: center;
  }
  
  .flipdown .rotor-group:nth-child(1) .rotor-group-heading:before {
    content: attr(data-before);
  }
  
  .flipdown .rotor-group:nth-child(2) .rotor-group-heading:before {
    content: attr(data-before);
  }
  
  .flipdown .rotor-group:nth-child(3) .rotor-group-heading:before {
    content: attr(data-before);
  }
  
  .flipdown .rotor-group:nth-child(4) .rotor-group-heading:before {
    content: attr(data-before);
  }
  
  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 57px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  
  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 57px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  
  .flipdown .rotor {
    position: relative;
    float: left;
    width: 25px;
    height: 40px;
    margin: 0px 5px 0px 0px;
    border-radius: 4px;
    font-size: 1.9rem;
    text-align: center;
    perspective: 100px;
  }
  
  .flipdown .rotor:last-child {
    margin-right: 0;
  }
  
  .flipdown .rotor-top,
  .flipdown .rotor-bottom {
    overflow: hidden;
    position: absolute;
    width: 25px;
    height: 20px;
  }
  
  .flipdown .rotor-leaf {
    z-index: 1;
    position: absolute;
    width: 25px;
    height: 40px;
    transform-style: preserve-3d;
    transition: transform 0s;
  }
  
  .flipdown .rotor-leaf.flipped {
    transform: rotateX(-180deg);
    transition: all 0.5s ease-in-out;
  }
  
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-leaf-rear {
    overflow: hidden;
    position: absolute;
    width: 25px;
    height: 20px;
    margin: 0;
    transform: rotateX(0deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .flipdown .rotor-leaf-front {
    line-height: 40px;
    border-radius: 4px 4px 0px 0px;
  }
  
  .flipdown .rotor-leaf-rear {
    line-height: 0px;
    border-radius: 0px 0px 4px 4px;
    transform: rotateX(-180deg);
  }
  
  .flipdown .rotor-top {
    line-height: 40px;
    border-radius: 4px 4px 0px 0px;
  }
  
  .flipdown .rotor-bottom {
    bottom: 0;
    line-height: 0px;
    border-radius: 0px 0px 4px 4px;
  }
  
  .flipdown .rotor:after {
    content: '';
    z-index: 2;
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 25px;
    height: 20px;
    border-radius: 0px 0px 4px 4px;
  }
  
  @media (max-width: 550px) {
  
    .flipdown {
      width: 312px;
      height: 70px;
    }
  
    .flipdown .rotor {
      font-size: 2.2rem;
      margin-right: 3px;
    }
  
    .flipdown .rotor,
    .flipdown .rotor-leaf,
    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
      width: 30px;
    }
  
    .flipdown .rotor-group {
      padding-right: 20px;
    }
  
    .flipdown .rotor-group:last-child {
      padding-right: 0px;
    }
  
    .flipdown .rotor-group-heading:before {
      font-size: 0.8rem;
      height: 20px;
      line-height: 20px;
    }
  
    .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before,
    .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
      left: 69px;
    }
  
    .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
      bottom: 13px;
      height: 8px;
      width: 8px;
    }
  
    .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
      bottom: 29px;
      height: 8px;
      width: 8px;
    }
  
    .flipdown .rotor-leaf-front,
    .flipdown .rotor-top {
      line-height: 50px;
    }
  
    .flipdown .rotor-leaf,
    .flipdown .rotor {
      height: 50px;
    }
  
    .flipdown .rotor-leaf-front,
    .flipdown .rotor-leaf-rear,
    .flipdown .rotor-top,
    .flipdown .rotor-bottom,
    .flipdown .rotor:after {
      height: 25px;
    }
  }

/********** inne **********/
/**********------------------------ **********/

.summary h1 { 
  font-size: 18px;
}

@media (max-width: 992px) { 
  .summary h1.entry-title {
    font-size: 16px;
  }
}

.wc-price-history {
  display: block;
  clear: both; /* This ensures the div appears below any floated elements */
  font-size: 12px;
}



/* notification plugin adjustment for shoptimizer */
body #message-purchased {
  bottom: 75px;
  }


/* cena kolor podstawowy single product page*/


/* ile osób ogląda */
  .people-viewing-message {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-radius: 8px;
  }
  .people-viewing-message svg {
    margin-right: 8px;
    fill: red;
    height: 1.2em;
    width: 1.2em;
  }
  @media (min-width: 770px) { 
    .people-viewing-message {
      width: 80%;
    }
  }

/********** photo reviews **********/
/**********------------------------ **********/

/* naprawa konfliktu z theme*/
.star-rating>span{top:0!important;}

/* error message*/
.wcpr-comment-form-error {
  font-weight: bold;
  font-size: 2em;
}


.shortcode-wcpr-comment-author em,
.wcpr-comment-author em {
  margin-left: 5px;
}


.comment-form-rating p.stars span a {
  font-size: 28px;
}

/* verified owner badge */
.shortcode-wcpr-comment-author .woocommerce-review__verified::after,
.wcpr-comment-author .woocommerce-review__verified::after {
  content: '';
  display: inline-block;
  width: 24px; /* Adjust the width as needed */
  height: 24px; /* Adjust the height as needed */
  margin-left: 5px; /* Adjust the space between the icon and the text */
  background-image: url('/wp-content/themes/shoptimizer-child-theme/inc/svg/verified-user-badge1.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle; /* Align with the text */
  
}

.shortcode-wcpr-modal-wrap-container .shortcode-wcpr-single-product-summary-meta-shop {
  display: none;
}

/********** subheadling above category description **********/
/**********------------------------ **********/
.woocommerce-products-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background-color: transparent !important;
}
.woocommerce-products-header p {
  width: 100% !important;
  float: none !important;
  display: block !important;
}
.category-subheading {
  order: -1 !important;
}
.category-description .description-content {
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}



.category-description.expanded .description-content {
  max-height: none;
}

.archive.tax-product_tag .category-description .description-content {
  max-height: 200px !important;
}

.archive.tax-product_tag .category-description.expanded .description-content {
  max-height: none !important;
  overflow: visible !important;
}

.read-more-wrapper {
  display: none;
}
.read-more-btn {
  display: block;
  margin-top: 10px;
  background-color: #f0f0f0;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

/* Jaśniejszy przycisk CTA tylko na stronach tagów produktów */
.archive.tax-product_tag .read-more-btn {
  background-color: #3bb54a !important; /* jaśniejszy zielony */
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Efekt hover/focus */
.archive.tax-product_tag .read-more-btn:hover,
.archive.tax-product_tag .read-more-btn:focus {
  background-color: #56c968 !important; /* lekko ciemniejszy przy hover */
  transform: translateY(-1px);
}


/********** product title span on product single page **********/
/**********------------------------ **********/

.single .summary h1.entry-title span {
  font-style: italic;
}

/********** Omnibus informacja na single product page **********/
/**********------------------------ **********/

#omnibus-price-data {
  display: block;
  margin-bottom: 10px;;
}


/********** Product list page **********/
/**********------------------------ **********/

.product-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-item {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.product-item img {
  max-width: 100%;
  height: auto;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

/********** modyfikacja menu **********/

.menu .woocommerce-card__header {
  display: none;
}

/********** product variation swatches **********/

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button.cgkit-swatch-selected {
  background-color: #3bb54a;
  color:white;
  font-weight: bold;

}

.cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button {
  font-weight: bold;
}

/********** homepage *********/
.home .woocommerce-loop-product__title {
  display: none;
}

/********** KP RELATED PRODUCTS *********/
.kp-related-products-box {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.kp-related-products-box > a {
	padding: 4px;
}

.kp-related-products-box > a > img {
	border-radius: 7px !important;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	display: inline-block;
}

.kp-lightbox--container {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	opacity: 0;
	transition: 0.3s ease opacity;
	pointer-events: none;
}

.kp-lightbox--container.js--active {
	opacity: 1;
	pointer-events: auto;
}

.kp-lightbox--overlay {
	position: absolute;
	inset: 0;
	background-color: #fff;
}

.kp-lightbox--content {
	display: flex;
	position: relative;
	z-index: 20;
}

.kp-lightbox--content__button {
	display: flex;
	justify-content: center;
	margin-top: 10px;
}

.swiper--lightbox {
	width: 100vw;
}




/********** product single page *********/

body.single-product .summary.entry-summary { /* zmniejszenie odstepu wierszy*/
  line-height: 1.1 !important;
}
.shoptimizer-product-prevnext { /* wyłączenie product previous next z prawej strony */
  display:none;
}

body.single-product .summary h1 { /* usunięcie odstępu zostawionego dla prevnext*/
  padding-right: 0px;
}



/********** inne *********************/

.col-full-nav { /* dodanie akcentu*/
  border-bottom: solid 5px #fec601;
}

@media (min-width: 993px) {
  
  .col-full.main-header {
      padding-top: 20px !important;
      padding-bottom: 20px !important;
  }
}

/* loga kurierow na korzyku i checkout */

.woocommerce-shipping-methods .shipping-method-description img {
    margin-left: 0 !important;
    margin-right: auto !important;
    max-height: 22px;
}

/* logo na mobile */
@media (max-width: 992px) {
    body.theme-shoptimizer .site-header .custom-logo-link img, 
    body.wp-custom-logo .site-header .custom-logo-link img {
        max-width: 210px;  /* Ustaw maksymalną szerokość logo */
        height: auto !important; /* NAJWAŻNIEJSZE: pozwól wysokości dostosować się automatycznie */
    }
}

.site-branding .menu-toggle .bar-text {
  display: none;
}



/********** ukrywanie na tagach, które są landing page *********************/

/* tag: kocie projekty */
.term-1292 .woocommerce-breadcrumb,
.term-1292 .shoptimizer-sorting,
.term-1292 .fibofilters-horizontal-filters-container,
.term-1292 .fibofilters-mobile-filters-container {
  display: none;
}


.tax-product_tag .description-content ul {
  list-style:none;
}

