.cart-icon-link {
  background: transparent;
  border-radius: 100px;
  width: 40px !important;
  height: 40px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s linear;
}

.cart-icon-link:hover {
  background: #eee;
}

.cart-icon-link img {
    width: 26px; /* Możesz dostosować rozmiar ikony */
    height: auto;
    display: inline-block;
    vertical-align: middle;
}
.cart-count {
	position: absolute;
	top: 1px;
	  right: -2px;
	  background-color: #CF142B;
	  color: #fff;
	  font-size: 12px;
	  font-weight: bold;
	  border-radius: 50%;
	  padding: 3px 6px;
	  min-width: 20px;
	  text-align: center;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  height: 20px;
	  width: 20px;
}

/*Warstwa z podsumowaniem po dodaniu do koszyka*/
#summary-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 990000;
}

#summary-layer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Wyśrodkowanie */
    max-width: 500px;
    width: 100%;
    background: #fff;
    z-index: 990001;
    padding: 20px;
    border: 1px solid #ccc;
}

#close-summary {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 18px;
	cursor: pointer;
}

.added_to_cart.wc-forward {
	display: none !important;
}

.summary-wrapper {
	display: grid;
	grid-template: auto / 100px 1fr;
	padding-top: 2rem;
	gap: 1rem;
}

.summary-wrapper img {
	grid-column: 1/2;
	grid-row: 1/2;
	border: 1px solid #eee;
	border-radius: 0px;
}

.summary-details {
	grid-column: 2/3;
	grid-row: 1/2;
}

.summary-buttons {
	grid-template: auto / 1fr 1fr;
	align-items: center;
	gap: 1rem;
	display: grid;
	margin-top: 1rem;
	text-align: center;
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

.summary-buttons button#continue-shopping {
	background: #fff !important;
	color: #1D1D1F !important;
	margin-bottom: 0;
	border: 0;
}

.summary-buttons .button {
	font-size: 18px !important;
	background: #e04e38;
	color: #fff;
	font-weight: 700;
}
.summary-buttons .button:hover {
	background: #517c63;
}


.summary-name h3 {
	font-weight: 500;
	font-size: 18px;
	padding-bottom: 0;
}

.summary-details {
	font-size: 14px;
}

.summary-desc {
	font-size: 26px;
	font-weight: bold;
}

/* Configurator summary list */
.summary-cfg-list {
  margin: 8px 0 0;
  padding: 8px 0 0;
  list-style: none;
  border-top: 1px dashed #e6e6e6;
}
.summary-cfg-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  color: #6b7280; /* lekko szare */
  line-height: 1.35;
  padding: 4px 0;
}
.summary-cfg-list li .k { /* key/label */
  color: #6b7280;
}
.summary-cfg-list li .v { /* value */
  color: #4b5563;
}
.summary-cfg-list li .d { /* delta (price change) */
  color: #6b7280;
  white-space: nowrap;
}


.summary-buttons * {
	padding: 10px !important;
	margin: 0 !important;
}

.summary-buttons .button::after {
	display: none;
}

.summary-buttons .button {
	border-radius: 100px !important;
	border: 0 !important;
}

.custom-variations-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variation-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-add-to-cart-button {
    background-color: #ff4500;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.custom-add-to-cart-button:hover {
    background-color: #517c63;
}



.variations-wrapper {
  display: grid;
  grid-template: auto / 1fr 1fr;
  gap: 16px;
}


.variation-select-wrapper label {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.variation-select-wrapper select {
  border-radius: 3px;
  padding: 10px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  border-radius: 5px;
  border: 1px solid #DDD;
  background: #FFF;
  color: var(--Diet-Color-Text, #151515);
  font-family: var(--Diet-Font-Text, Sarabun);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.quantity-and-button-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-wrapper {
  display: flex;
  flex-direction: column;
}

.quantity-wrapper input {
  border-radius: 5px;
  border: 1px solid #DDD;
  background: #FFF;
  padding: 10px;
  width: 80px;
}

.quantity-wrapper label {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.quantity-and-button-wrapper button {
  background: var(--Diet-Button, #E04E38);
  color: #FFF;
  text-align: center;
  font-family: var(--Diet-Font-Text, Sarabun);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: row-reverse;
}

.quantity-and-button-wrapper button img {
  width: 20px !important;
  height: auto;
  flex-shrink: 0;
}

.quantity-and-button-wrapper button {
  padding: 13px 20px;
}

.quantity-and-button-wrapper {
  align-items: flex-end;
  gap: 20px;
}


.variation-select-wrapper {
  gap: 1px;
}

.custom-variations-form {
  gap: 20px;
}



.custom-add-to-cart-button.disabled {
  filter: grayscale(100%);
  cursor: not-allowed;
  pointer-events: none;
  opacity: .4;
  transition: all .2s linear;
}

.promotion-badge {
	background: var(--Diet-Primary, #517C63);
	width: fit-content;
	color: #FFF;
	font-family: var(--Diet-Font-Text, Sarabun);
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	line-height: 22px;
	padding: 2px 5px;
	margin-bottom: 1rem;
}

.summary-animation {
    text-align: center;
    margin: 10px 0;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.summary-animation.show {
    opacity: 1;
    transform: scale(1);
}




@media (max-width: 980px) {

.cart-icon-link img {
  width: 25px;
  height: 25px;
}

.cart-count {
  top: 6px;
  right: 2px;
  font-size: 11px;
  min-width: 17px;
  height: 17px;
  width: 17px;
}
}


/* Styles dla rozbioru cen w basket summary */
.cart-summary .summary-price-breakdown {
    margin: 8px 0;
}

.cart-summary .price-line {
    margin: 2px 0;
    font-size: 14px;
}

.cart-summary .price-line.base-price {
    color: #666;
}

.cart-summary .price-line.extras-price {
    color: #e67e22;
}

.cart-summary .price-line.total-price {
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #eee;
    font-size: 16px;
}

.cart-summary .price-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    line-height: 1.2;
}

.cart-summary .summary-config-details {
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 12px;
}

.cart-summary .config-item {
    margin: 2px 0;
    color: #666;
}

/* Styles dla rozbioru cen w modalu */
#summary-layer .summary-price-breakdown {
    margin: 8px 0;
}

#summary-layer .price-line {
    margin: 2px 0;
    font-size: 14px;
}

#summary-layer .price-line.base-price {
    color: #666;
}

#summary-layer .price-line.extras-price {
    color: #e67e22;
}

#summary-layer .price-line.total-price {
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid #eee;
    font-size: 16px;
}

#summary-layer .price-info {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    line-height: 1.2;
}

#summary-layer .summary-config-details {
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 12px;
}

#summary-layer .config-item {
    margin: 2px 0;
    color: #666;
}

.cart-summary .summary-total {
    border-top: 2px solid #ddd;
    padding-top: 15px;
    margin-top: 20px;
}

.cart-summary .total-line {
    font-size: 18px;
    margin-bottom: 8px;
}

.cart-summary .tax-info {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.summary-desc.summary-price-breakdown td {
	padding: 3px;
	font-weight: normal;
}





@media (max-width: 767px) {



	.cart-icon-link {
	  width: 30px !important;
	  height: 30px !important;
	}

	.cart-icon-link img {
	  width: 25px;
	  height: 25px;
	}

	.cart-count {
	  font-size: 11px;
	    top: -5px;
	    right: 0px;
	    min-width: 15px;
	    height: 15px;
	    width: 15px;
	  }
	


	  .summary-buttons .button {
	    font-size: 14px !important;
	  }

	  #summary-layer {
	    padding: 17px 12px;
	  }

	  .summary-buttons {
	    gap: 0;
	  }

	  .summary-wrapper {
	    padding-top: 0.5rem;
	  }



#summary-layer {

  width: 95%;
  border: 0;
  border-radius: 10px;
}

.summary-wrapper {
  grid-template: auto / auto;
}

.summary-wrapper img {
  grid-column: 1;
  grid-row: 1;
  border: 0;
  max-width: 110px;
}

.summary-details {
  grid-column: 1;
  grid-row: 2;
}

.summary-name h3 {
  font-weight: 700;
}


  .woocommerce .summary-buttons a.button, .woocommerce .summary-buttons button {
    letter-spacing: -1px !important;
  }


#summary-layer .summary-price-breakdown {
  margin-top: 20px;
  margin-bottom: 0;
}

.summary-buttons {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

}