:root {
  --primary-color: #070522;

  --text-color: #34495e;
  --background-color: #ecf0f1;
  --border-color: #bdc3c7;
  --hover-color: #f5f5f5;
  --active-color: #ba262e;
}



.wpdudecom-category-filter {
  display: flex;
  flex-wrap: wrap;

  justify-content: start;
  /* Ustawienie na środek */

  align-items: center;
}

.wpdudecom-category-filter .category-filter {
  padding: 3px;
  margin: 4px;
  background-color: #f4f4f4;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.wpdudecom-category-filter .category-filter:hover,
.wpdudecom-category-filter .category-filter.active {
  background: linear-gradient(45deg, #070522, #0d0a3d);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.wpdudecom-table-container {
  overflow-x: auto;
}
.wpdudecom-product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;

}

.wpdudecom-product-table th,
.wpdudecom-product-table td {
  padding: 4px 8px;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border: none;
}

.wpdudecom-product-table tr.product-row {
  white-space: normal;
  /* Pozwala na zawijanie tekstu */
  text-align: justify;
}

.wpdudecom-category-sort-container {
  padding: 5px;
}

.wpdudecom-product-table th {
  background-color: var(--background-color);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpdudecom-product-table .woocommerce-Price-amount {
  font-weight: normal;
}

.wpdudecom-product-table .product-column {
  width: 100%;
}

.wpdudecom-product-table .price-column {
  width: 60px;
  text-align: center;
}

.wpdudecom-product-table .weight-column {
  width: 60px;
  text-align: center
}

.wpdudecom-product-table .quantity-column {
  width: 100px;
  text-align: center;
  justify-content: center;
}

.wpdudecom-product-table tr {
  transition: background-color 0.3s ease;

}

.wpdudecom-product-table tr:hover {
  background-color: var(--hover-color);
}

.wpdudecom-product-table tr.highlighted {
  background-color: rgba(52, 152, 219, 0.1);
}

.quantity-column {
  display: flex;
  align-items: center;

}

.wpdudecom-tab.higieniczna .wpdudecom-product-table .weight-column {
  display: none;
}

.wpdudecom-product-table button {
  color: #070522;
  margin-top: 2px;
}

.wpdudecom-product-table input {
  color: #070522;
  min-height: 40px;
  min-width: 24px;
  margin: 0;
}

.quantity-button {

  border: none;
  padding: 0px 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 25px !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  padding: 3px 5px !important;
}

.quantity-button:hover {
  background-color: #b8242b;
}

.product-quantity {
  width: 40px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
  font-size: 14px;
}

#wpdudecom-product-summary {
  max-width: 1640px;

  background-color: #fff;
  border-radius: 8px;


}

#wpdudecom-product-summary h2 {
  background: linear-gradient(45deg, #070522, #0d0a3d);
  color: #fff;
  border-bottom: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 16px;
margin: 0;
  line-height: 1.5;
  border-radius: 8px 8px 0 0;
  text-align: center;
  

}
.woocommerce-checkout .elementor-widget-woocommerce-checkout-page .woocommerce .e-checkout__order_review
{
    border-radius: 10px 10px 3px 3px!important;
}

.woocommerce-checkout #wpdudecom-product-summary h2 {
  margin: -10px -10px 5px -10px;
}


#wpdudecom-product-summary h3 {
  margin: 6px 0 2px;
  font-size: 15px;
  color: #666;
  padding-bottom: 2px;
}

.progress-bar {
  height: 32px;
  background-color: var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;

}

.progress {
  height: 100%;
  background: linear-gradient(45deg, #2ecc71, #27ae60);
  position: relative;
  transition: width 0.3s ease;
}



#wpdudecom-product-summary .progress-bar .weight-info {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  padding: 0 8px;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.171), rgba(255, 255, 255, 0));
  animation: shine 4.5s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }

  100% {
    left: 150%;
  }
}

#wpdudecom-product-summary .weight-info {
  display: flex;
  justify-content: space-between;
}

#wpdudecom-product-summary .weight-info p {
  background-color: #ffffff52;
  padding: 0 5px;
  border-radius: 8px;
}

#wpdudecom-product-summary .weight-info p:first-child {
  color: #770c0c;
}

#wpdudecom-product-summary .weight-info p:last-child {
  color: #1e9150;
}


#wpdudecom-product-summary p {
  margin: 5px 0;
  font-size: 14px;
  color: #7f8c8d;
}

#wpdudecom-product-summary #total-weight,
#wpdudecom-product-summary #total-volume,
#wpdudecom-product-summary #service-tax,
#wpdudecom-product-summary #total-price {
  font-weight: bold;
  margin: 10px 0;
  font-size: 16px;
  color: #34495e;

  display: flex;
  justify-content: space-between;

}

#selected-products ul {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
}

#selected-products ul li {
  padding: 5px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  display: flex;
}



#selected-products ul li:nth-child(even) {
  background-color: #f5f5f5;
}

#selected-products ul li .product-name {
  flex-grow: 1;
  margin-right: 10px;
}

#selected-products ul li .product-info {
  white-space: nowrap;
}

#selected-products ul li .product-quantity {
  font-weight: bold;
  color: var(--primary-color);
}

#selected-products ul.spożywcze li::before {
  content: '•';
  color: blue;
  margin-right: 4px;
}

#selected-products ul.higieniczne li::before {
  content: '•';
  color: orange;
  margin-right: 4px;
}

.wpdudecom-tabs {
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff, #9090f321);

  border-radius: 10px;
}





.wpdudecom-tab-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;

}

.wpdudecom-tab-links li {
  margin-right: 2px;
  background-color: #fff;
  border-top-left-radius: 8px;
  border-bottom: 2px solid var(--primary-color);
  border-top-right-radius: 8px;


}

.wpdudecom-tab-links a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  background-color: #f4f4f4;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 1px 3px #07052218!important;
}

.wpdudecom-tab-links .ui-tabs-active a {
  background: linear-gradient(45deg,  #0d0a3d, #070522);
  color: white;
}

.wpdudecom-tab-content {

  background-color: #fff;
  border-radius: 0 0 8px 8px;
}

.blurred-row {
  filter: blur(3px);
  opacity: 0.7;
}

.hidden-row {
  display: none;
}

.show-more-container {
  text-align: center;
  margin-top: 20px;
}

.show-more-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.show-more-button:hover {
  background-color: var(--active-color);
}




@media (max-width: 768px) {

  .wpdudecom-product-table th,
  .wpdudecom-product-table td {
    padding: 4px 6px;
    vertical-align: middle;

  }

  .quantity-column {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-quantity {
    margin: 0;
  }
}

.limit-warning {
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  font-weight: bold;
}

#weight-warning {
  background: linear-gradient(45deg, #ffe6e6, #ffb3b3);
  color: #cc0000;
}

#volume-warning {
  background: linear-gradient(45deg, #e6f2ff, #b3d9ff);
  color: #0066cc;
}


.wpdudecom-sort-container {
  position: relative;
  display: inline-block;

}

.wpdudecom-sort-button {
  background-color: var(--primary-color);
  color: white;
  margin-left: 10px;
  float: right;
  padding: 10px 15px;
  border: none;
  background: linear-gradient(45deg, #070522, #0d0a3d);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.8em;
}

.wpdudecom-sort-button:hover {
  background-color: var(--active-color);
}

.wpdudecom-sort-current {
  font-weight: bold;
}

.wpdudecom-sort-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  padding: 5px;
}

.wpdudecom-sort-menu li {
  list-style-type: none;
}

.wpdudecom-sort-menu a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.wpdudecom-sort-menu a:hover {
  background-color: var(--hover-color);
}



.wpdudecom-search-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.wpdudecom-searchandsort-container {
  display: flex;
  margin: 10px 0;
}

.wpdudecom-searchandsort-container .wpdudecom-sort-container {
  flex: 0 1 auto;
}

.wpdudecom-searchandsort-container .wpdudecom-search-container {
  flex: 1;
}

#wpdudecom-product-summary .inner-summary {
  padding: 10px 20px;
  border: 1px solid #666;
  border-radius: 0 0 3px 3px;

}

#checkout-link {
  margin-top: 0px;
  text-align: center;

}

#checkout-link a {
  display: inline-block;
  padding: 10px 10px;
  margin: 30px 0;
  background: linear-gradient(45deg, #003d80, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;

  position: relative;
  overflow: hidden;
}

#checkout-link a:hover {
  background: linear-gradient(45deg, #0056b3, #003d80);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}


#checkout-link a.inactive {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
  background-color: #cccccc;
  transition: all 0.3s ease;
}


/* Stylizacja wersji desktopowej */
.desktop-summary {
  /* Twoje style dla wersji desktopowej */
}

/* Stylizacja wersji mobilnej */
@media (max-width: 768px) {
  .sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 2px solid #004997;
    max-width: 100vw;
  }

  .sticky-mobile .summary-container {
    background: linear-gradient(to bottom, #fff, #9090f321);

    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 3;
    width: 100%;

  }

  .sticky-mobile .item-title {

    color: #070522;
  }

  .sticky-mobile .item-value {
    font-size: 0.95em;
    font-weight: bold;
    color: #555;
    background: linear-gradient(to right, #ffffff, #ededf9, #ffffff);
  }

  .sticky-mobile .jump-to-summary {
    background: linear-gradient(45deg, #003d80, #0056b3);

    flex: 1;
    min-width: 20%;
    padding: 2px;

  }

  .sticky-mobile .jump-to-summary a {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: space-around;
    color: #fff;
    font-weight: bold;
    display: flex;

  }


  .sticky-mobile .summary-container .summary-row {
    margin: 0;
    display: grid;
    grid-template-columns: 23% 23% 24% 27%;
    grid-gap: 2px;
  }
  #zk_summary .inner-wrapper-sticky
  {
      position: static !important;
      transform: none !important;
  }
  /* .desktop-summary {
      display: none;
  } */
}




.summary-item {
  text-align: center;
}

.inactive {
  pointer-events: none;
  opacity: 0.5;
}


@media (min-width: 767px) {
  .sticky-mobile {
    display: none;
  }

  .desktop-summary {
    display: block;
  }
}



/* mobile  */

.wpdudecom-product-table .quantity-column {
  display: flex !important;
  flex-direction: row;
}

@media (max-width: 767px) {
  .product-quantity {
    width: 30px !important;
  }

  .wpdudecom-product-table td {
    padding: 4px;
  }
}

.jump-to-summary .icon {
  font-size: 30px;
}




.no-products-container {
  text-align: center;

  margin: 20px auto;
  padding: 20px;
  background: #fefeff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.no-products-title {
  margin-bottom: 20px;
}

.no-products-title h5 {
  color: #ec1b1b;
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

.no-products-text {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  padding: 0 20px;
}

#volume-limit
{
padding-bottom:10px;
}