/* Koszyk WooCommerce Blocks */

body.woocommerce-cart #content,
body.page-id-511 #content {
  width: min(1280px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 38px 0 72px;
}

body.woocommerce-cart #content .page-header,
body.page-id-511 #content .page-header {
  margin: 0 0 24px;
  padding: 0;
}

body.woocommerce-cart #content .entry-title,
body.page-id-511 #content .entry-title {
  margin: 0;
  color: var(--sb-color-text, #101010);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.page-id-511 .wp-block-woocommerce-cart {
  margin: 0;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.page-id-511 .wc-block-components-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 32px;
  align-items: start;
}

body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar,
body.page-id-511 .wc-block-components-main,
body.page-id-511 .wc-block-components-sidebar {
  width: auto;
  margin: 0;
  padding: 0;
}

/* Lista produktów */

body.woocommerce-cart table.wc-block-cart-items,
body.page-id-511 table.wc-block-cart-items {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

body.woocommerce-cart .wc-block-cart-items thead,
body.page-id-511 .wc-block-cart-items thead {
  display: none;
  color: var(--sb-color-muted, #686868);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items thead tr,
body.page-id-511 .wc-block-cart-items thead tr {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 116px;
}

body.woocommerce-cart .wc-block-cart-items tbody,
body.page-id-511 .wc-block-cart-items tbody {
  display: grid;
  gap: 12px;
}

body.woocommerce-cart .wc-block-cart-items th,
body.page-id-511 .wc-block-cart-items th {
  padding: 0 18px 3px;
  border: 0;
  background: transparent;
}

body.woocommerce-cart .wc-block-cart-items__header-image,
body.page-id-511 .wc-block-cart-items__header-image {
  width: 118px;
}

body.woocommerce-cart .wc-block-cart-items__row td,
body.page-id-511 .wc-block-cart-items__row td {
  padding: 18px;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

body.woocommerce-cart .wc-block-cart-items__row,
body.page-id-511 .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 116px;
  overflow: hidden;
  border: 1px solid var(--sb-color-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
  transition: border-color 160ms ease;
}

body.woocommerce-cart .wc-block-cart-items__row:hover,
body.page-id-511 .wc-block-cart-items__row:hover {
  border-color: #cfd3d8;
}

body.woocommerce-cart .wc-block-cart-item__image,
body.page-id-511 .wc-block-cart-item__image {
  width: 118px;
  padding-right: 4px !important;
}

body.woocommerce-cart .wc-block-cart-item__image a,
body.page-id-511 .wc-block-cart-item__image a {
  display: flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #eceef0;
  border-radius: 10px;
  background: #fff;
}

body.woocommerce-cart .wc-block-cart-item__image img,
body.page-id-511 .wc-block-cart-item__image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

body.woocommerce-cart .wc-block-cart-item__product,
body.page-id-511 .wc-block-cart-item__product {
  padding-left: 10px !important;
}

body.woocommerce-cart .wc-block-components-product-name,
body.page-id-511 .wc-block-components-product-name {
  display: inline-block;
  margin: 0;
  color: var(--sb-color-text, #101010);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  text-wrap: balance;
}

body.woocommerce-cart .wc-block-components-product-name:hover,
body.page-id-511 .wc-block-components-product-name:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.page-id-511 .wc-block-cart-item__prices {
  margin: 5px 0 0;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.page-id-511 .wc-block-components-product-metadata {
  margin: 5px 0 0;
  color: var(--sb-color-muted, #686868);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

body.woocommerce-cart .wc-block-components-product-metadata p,
body.page-id-511 .wc-block-components-product-metadata p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.woocommerce-cart .wc-block-cart-item__quantity,
body.page-id-511 .wc-block-cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.page-id-511 .wc-block-components-quantity-selector {
  display: grid;
  width: 112px;
  height: 38px;
  grid-template-columns: 36px 40px 36px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe2e6;
  border-radius: 8px;
  background: #fff;
}

body.woocommerce-cart .wc-block-components-quantity-selector::after,
body.page-id-511 .wc-block-components-quantity-selector::after {
  display: none;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input,
body.page-id-511 .wc-block-components-quantity-selector__input {
  width: 40px;
  min-width: 0;
  height: 36px;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-right: 1px solid #eceef0 !important;
  border-left: 1px solid #eceef0 !important;
  border-radius: 0;
  background: #fff;
  box-shadow: none !important;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 500;
  line-height: 36px;
  text-align: center;
  appearance: textfield;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input:focus,
body.woocommerce-cart .wc-block-components-quantity-selector__input:focus-visible,
body.page-id-511 .wc-block-components-quantity-selector__input:focus,
body.page-id-511 .wc-block-components-quantity-selector__input:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button,
body.page-id-511 .wc-block-components-quantity-selector__button {
  display: inline-flex;
  width: 36px;
  min-width: 0;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: var(--sb-color-text, #101010);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button--minus,
body.page-id-511 .wc-block-components-quantity-selector__button--minus {
  grid-column: 1;
  grid-row: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button--plus,
body.page-id-511 .wc-block-components-quantity-selector__button--plus {
  grid-column: 3;
  grid-row: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover:not(:disabled),
body.page-id-511 .wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: #f5f6f7;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:disabled,
body.page-id-511 .wc-block-components-quantity-selector__button:disabled {
  color: #b8bcc2;
  cursor: not-allowed !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link,
body.page-id-511 .wc-block-cart-item__remove-link {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #686868;
  text-decoration: none;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg,
body.page-id-511 .wc-block-cart-item__remove-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.page-id-511 .wc-block-cart-item__remove-link:hover {
  border-color: #ce1720;
  color: #ce1720;
}

body.woocommerce-cart .wc-block-cart-item__total,
body.page-id-511 .wc-block-cart-item__total {
  width: 116px;
  color: var(--sb-color-text, #101010);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Podsumowanie */

body.woocommerce-cart .wc-block-cart__sidebar,
body.page-id-511 .wc-block-cart__sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--sb-color-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.page-id-511 .wc-block-cart__totals-title {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid #eceef0;
  color: var(--sb-color-text, #101010);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.page-id-511 .wc-block-components-totals-wrapper {
  padding: 0;
  border: 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon,
body.page-id-511 .wc-block-components-totals-coupon {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button,
body.page-id-511 .wc-block-components-totals-coupon .wc-block-components-panel__button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"],
body.page-id-511 .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"] {
  border-bottom-color: transparent;
  border-radius: 9px 9px 0 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__content,
body.page-id-511 .wc-block-components-totals-coupon .wc-block-components-panel__content {
  margin: 0;
  padding: 12px !important;
  border: 1px solid #e5e7eb;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: #fff;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form,
body.page-id-511 .wc-block-components-totals-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 8px;
  align-items: stretch;
  margin: 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input,
body.page-id-511 .wc-block-components-totals-coupon__input {
  position: relative;
  margin: 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input input,
body.page-id-511 .wc-block-components-totals-coupon__input input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px !important;
  border: 1px solid #dfe2e6 !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none !important;
  color: var(--sb-color-text, #101010);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  outline: 0 !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input.is-active input,
body.page-id-511 .wc-block-components-totals-coupon__input.is-active input {
  padding: 14px 12px 3px !important;
  border-color: #007c30 !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input input:focus,
body.woocommerce-cart .wc-block-components-totals-coupon__input input:focus-visible,
body.page-id-511 .wc-block-components-totals-coupon__input input:focus,
body.page-id-511 .wc-block-components-totals-coupon__input input:focus-visible {
  border-color: #007c30 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input label,
body.page-id-511 .wc-block-components-totals-coupon__input label {
  top: 50% !important;
  left: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sb-color-muted, #686868) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  transform-origin: left top !important;
  pointer-events: none;
}

body.woocommerce-cart .wc-block-components-totals-coupon__input.is-active label,
body.page-id-511 .wc-block-components-totals-coupon__input.is-active label {
  top: 7px !important;
  font-size: 10px !important;
  transform: none !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.page-id-511 .wc-block-components-totals-coupon__button {
  display: inline-flex;
  width: 104px;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #007c30;
  border-radius: 8px;
  background: #007c30;
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

body.woocommerce-cart .wc-block-components-totals-coupon__button:hover:not(:disabled),
body.page-id-511 .wc-block-components-totals-coupon__button:hover:not(:disabled) {
  border-color: #066326;
  background: #066326;
  color: #fff;
}

body.woocommerce-cart .wc-block-components-totals-coupon__button:disabled,
body.page-id-511 .wc-block-components-totals-coupon__button:disabled {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed !important;
  opacity: 1;
}

body.woocommerce-cart .wc-block-components-panel__button-icon,
body.page-id-511 .wc-block-components-panel__button-icon {
  width: 18px;
  height: 18px;
  margin-left: auto;
  margin-right: 6px;
  fill: currentColor;
}

body.woocommerce-cart .wc-block-components-totals-item,
body.page-id-511 .wc-block-components-totals-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 9px 0;
  color: var(--sb-color-text, #101010);
  font-size: 14px;
  line-height: 1.4;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.page-id-511 .wc-block-components-totals-item__label {
  font-weight: 400;
}

body.woocommerce-cart .wc-block-components-totals-item__value,
body.page-id-511 .wc-block-components-totals-item__value {
  font-weight: 500;
  white-space: nowrap;
}

body.woocommerce-cart .wc-block-components-totals-item__description,
body.page-id-511 .wc-block-components-totals-item__description {
  grid-column: 1 / -1;
  color: var(--sb-color-muted, #686868);
  font-size: 12px;
  line-height: 1.4;
}

body.woocommerce-cart .wc-block-components-totals-footer-item,
body.page-id-511 .wc-block-components-totals-footer-item {
  margin-top: 14px;
  padding: 18px 0 0;
  border-top: 1px solid #dfe2e6;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.page-id-511 .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px;
  font-weight: 600;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.page-id-511 .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 20px;
  font-weight: 600;
}

body.woocommerce-cart .wc-block-cart__submit,
body.page-id-511 .wc-block-cart__submit {
  margin: 20px 0 0;
  padding: 0;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.page-id-511 .wc-block-cart__submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #007c30;
  border-radius: 9px;
  background: #007c30;
  box-shadow: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.page-id-511 .wc-block-cart__submit-button:hover {
  border-color: #066326;
  background: #066326;
  color: #fff;
}

body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.page-id-511 .wc-block-cart__submit-button:focus-visible {
  outline: 2px solid #007c30;
  outline-offset: 3px;
}

/* Pusty koszyk */

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.page-id-511 .wp-block-woocommerce-empty-cart-block {
  padding: 52px 24px;
  border: 1px solid var(--sb-color-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
body.page-id-511 .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  border-radius: 9px;
  background: #007c30;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.page-id-511 .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    gap: 22px;
  }

  body.woocommerce-cart .wc-block-cart-items__row td,
  body.page-id-511 .wc-block-cart-items__row td {
    padding: 14px;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.page-id-511 .wc-block-cart__sidebar {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  body.woocommerce-cart #content,
  body.page-id-511 #content {
    width: min(1280px, calc(100% - 24px));
    padding: 24px 0 48px;
  }

  body.woocommerce-cart #content .page-header,
  body.page-id-511 #content .page-header {
    margin-bottom: 16px;
  }

  body.woocommerce-cart #content .entry-title,
  body.page-id-511 #content .entry-title {
    font-size: 28px;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.page-id-511 .wc-block-components-sidebar-layout {
    display: block;
  }

  body.woocommerce-cart table.wc-block-cart-items,
  body.woocommerce-cart .wc-block-cart-items tbody,
  body.page-id-511 table.wc-block-cart-items,
  body.page-id-511 .wc-block-cart-items tbody {
    display: block;
  }

  body.woocommerce-cart .wc-block-cart-items thead,
  body.page-id-511 .wc-block-cart-items thead {
    display: none;
  }

  body.woocommerce-cart .wc-block-cart-items__row,
  body.page-id-511 .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 0 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--sb-color-border, #e5e5e5);
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-cart .wc-block-cart-items__row td,
  body.page-id-511 .wc-block-cart-items__row td,
  body.woocommerce-cart .wc-block-cart-items__row td:first-child,
  body.woocommerce-cart .wc-block-cart-items__row td:last-child,
  body.page-id-511 .wc-block-cart-items__row td:first-child,
  body.page-id-511 .wc-block-cart-items__row td:last-child {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
  }

  body.woocommerce-cart .wc-block-cart-item__image,
  body.page-id-511 .wc-block-cart-item__image {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image a,
  body.page-id-511 .wc-block-cart-item__image a {
    width: 76px;
    height: 76px;
    padding: 5px;
    border-radius: 9px;
  }

  body.woocommerce-cart .wc-block-cart-item__product,
  body.page-id-511 .wc-block-cart-item__product {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-cart .wc-block-components-product-name,
  body.page-id-511 .wc-block-components-product-name {
    font-size: 15px;
  }

  body.woocommerce-cart .wc-block-components-product-metadata,
  body.page-id-511 .wc-block-components-product-metadata {
    display: none;
  }

  body.woocommerce-cart .wc-block-cart-item__quantity,
  body.page-id-511 .wc-block-cart-item__quantity {
    margin-top: 10px;
  }

  body.woocommerce-cart .wc-block-components-quantity-selector,
  body.page-id-511 .wc-block-components-quantity-selector {
    width: 100px;
    height: 36px;
    grid-template-columns: 32px 36px 32px;
  }

  body.woocommerce-cart .wc-block-components-quantity-selector__input,
  body.page-id-511 .wc-block-components-quantity-selector__input {
    width: 36px;
    height: 34px;
    font-size: 13px;
    line-height: 34px;
  }

  body.woocommerce-cart .wc-block-components-quantity-selector__button,
  body.page-id-511 .wc-block-components-quantity-selector__button {
    width: 32px;
    height: 34px;
  }

  body.woocommerce-cart .wc-block-cart-item__remove-link,
  body.page-id-511 .wc-block-cart-item__remove-link {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  body.woocommerce-cart .wc-block-cart-item__total,
  body.page-id-511 .wc-block-cart-item__total {
    display: none !important;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.page-id-511 .wc-block-cart__sidebar {
    position: static;
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
  }

  body.woocommerce-cart .wc-block-cart__totals-title,
  body.page-id-511 .wc-block-cart__totals-title {
    font-size: 18px;
  }
}
