/* custom-cart woocommerce-block styles start */
/* custom-cart.php: WooCommerce Cart Blocks Override */
.wc-block-cart.is-large {
  display: grid !important;
  grid-template-columns: 1fr 400px !important;
  gap: 80px !important;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 1024px) {
  .wc-block-cart.is-large {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .wtcart {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .wtcart__summary {
    border-top: none;
  }

  .wtsum__title {
    margin-bottom: 18px;
  }
}

.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
  display: block !important;
}
.wc-block-cart-items__header {
  display: none !important;
}
.wc-block-cart-items tbody,
.wc-block-cart-items {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
}

.wc-block-cart-items__row {
  display: flex !important;
  position: relative;
  padding: 32px 0 !important;
  border-bottom: 1px solid var(--wt-black) !important;
  gap: 32px;
  align-items: stretch;
}
tr.wc-block-cart-items__row:first-child {
  border-top: 1px solid var(--wt-black) !important;
}

.wc-block-cart-item__image {
  width: 140px !important;
  height: 140px !important;
  flex-shrink: 0;
  display: block !important;
  padding: 0 !important;
}
.wc-block-cart-item__image a {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--wt-bg-base);
}
.wc-block-cart-item__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.wc-block-cart-item__product {
  flex: 1;
  display: block !important;
  padding: 0 !important;
}
.wc-block-cart-item__wrap {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

.wc-block-components-product-name {
  order: 1;
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--wt-black) !important;
  text-decoration: none !important;
  margin-bottom: 16px !important;
  padding-right: 48px;
  display: block;
  line-height: 1.4;
}

.wc-block-cart-item__prices {
  display: none !important;
}

.wc-block-cart-item__quantity {
  order: 2;
  display: flex !important;
  align-items: center;
  margin-bottom: auto !important;
}
.wc-block-components-quantity-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.wc-block-components-quantity-selector__button--minus {
  order: 1;
}
.wc-block-components-quantity-selector__input {
  order: 2;
  width: 24px !important;
  text-align: center;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  color: var(--wt-black) !important;
}
.wc-block-components-quantity-selector__button--plus {
  order: 3;
}

.wc-block-components-quantity-selector__button {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  font-family: var(--wt-font) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  color: var(--wt-black) !important;
}
.wc-block-components-quantity-selector__button:hover {
  opacity: 0.7;
}

.wc-block-components-product-metadata {
  order: 3;
  margin-top: auto !important;
  font-family: var(--wt-font) !important;
  font-size: 14px !important;
  color: var(--wt-black) !important;
  padding-right: 120px;
}
.wc-block-components-product-details {
  display: flex;
  gap: 6px;
  margin: 0 !important;
}

.wc-block-cart-item__remove-link {
  position: absolute;
  top: 32px;
  right: 0;
  width: 24px;
  height: 24px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  font-size: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  opacity: 1 !important;
}
.wc-block-cart-item__remove-link::before,
.wc-block-cart-item__remove-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--wt-black);
}
.wc-block-cart-item__remove-link::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.wc-block-cart-item__remove-link::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.wc-block-cart-item__remove-link:hover {
  opacity: 0.6 !important;
}

.wc-block-cart-item__total {
  position: absolute;
  bottom: 32px;
  right: 0;
  display: block !important;
  padding: 0 !important;
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--wt-black) !important;
}
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
  display: flex !important;
  justify-content: flex-end !important;
}

.wc-block-components-sidebar {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}
.wc-block-components-sidebar::before {
  display: none !important;
}

.wc-block-cart__totals-title {
  font-family: var(--wt-font) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: var(--wt-black) !important;
  margin-bottom: 40px !important;
  text-transform: none !important;
}

.wp-block-woocommerce-cart-order-summary-block {
  border: none !important;
}

.wc-block-components-totals-coupon {
  border-top: 1px solid var(--wt-black) !important;
  border-bottom: 1px solid var(--wt-black) !important;
  margin-bottom: 32px !important;
  padding: 20px 0 !important;
}
.wc-block-components-panel__button {
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  color: var(--wt-black) !important;
  padding: 0 !important;
  font-weight: 300 !important;
}
.wc-block-components-panel__button-icon {
  display: none !important;
}
.wc-block-components-panel__button::after {
  content: "\2192";
  margin-left: auto;
  font-size: 20px;
  color: var(--wt-black);
  font-weight: 300;
}

.wc-block-components-totals-wrapper {
  margin-bottom: 24px !important;
}
.wc-block-components-totals-item {
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--wt-black) !important;
  border-top: none !important;
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  color: var(--wt-black) !important;
  margin: 0 !important;
}
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item-tax-value,
.wc-block-components-product-price__value {
  font-weight: 500 !important;
}

.wc-block-components-totals-footer-item {
  padding: 24px 0 16px !important;
  border-bottom: none !important;
  border-top: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.wp-block-woocommerce-proceed-to-checkout-block {
  margin-top: 32px !important;
}
.wc-block-cart__submit-button {
  width: 100% !important;
  border-radius: 0 !important;
  background: var(--wt-black) !important;
  color: var(--wt-white) !important;
  padding: 24px !important;
  font-family: var(--wt-font) !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  letter-spacing: 0.05em !important;
  border: 1px solid var(--wt-black) !important;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  min-height: 60px;
}
.wc-block-cart__submit-button:hover {
  background: var(--wt-bg-base) !important;
  color: var(--wt-black) !important;
}
.wc-block-cart__submit-button .wc-block-components-button__text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wc-block-cart__submit-button .wc-block-components-button__text::after {
  content: "\2192";
  margin-left: 12px;
  font-size: 20px;
  line-height: 1;
}

/* custom-cart woocommerce-block styles end */
/* custom-cart shortcode styles start */
/* custom-cart.php: Custom Cart Shortcode */
.wtcart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 78px;
  align-items: start;
  position: relative;
  padding: 0 30px;
}

.wtcart__main,
.wtcart__items,
.wtcart__info,
.wtcart__summary,
.wtsum {
  min-width: 0;
}

.wtcart__summary {
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.wtcart--loading {
  opacity: 0.6;
  pointer-events: none;
}
.wtcart__title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 34px;
  font-family: var(--wt-font);
}
.wtcart__items {
  display: flex;
  flex-direction: column;
}
.wtcart__row {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--wt-color-accent-soft-50);
}
.wtcart__row:first-child {
  padding-top: 0;
}
.wtcart__row:last-child {
  border-bottom: 0;
}
.wtcart__img {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  background: var(--wt-bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wtcart__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.wtcart__img a {
  display: block;
  width: 100%;
  height: 100%;
}
.wtcart__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wtcart__info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wtcart__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.wtcart__fav.wt-fav-heart--img {
  position: relative;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0;
  color: transparent !important;
  z-index: 2;
  pointer-events: auto;
}

.wtcart__fav.wt-fav-heart--img::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--wt-color-text);
  -webkit-mask: url("/wp-content/uploads/2026/04/Fav_inactive.svg")
    center/contain no-repeat;
  mask: url("/wp-content/uploads/2026/04/Fav_inactive.svg") center/contain
    no-repeat;
}

.wtcart__fav.wt-fav-heart--img.is-active {
  color: transparent !important;
}

.wtcart__fav.wt-fav-heart--img.is-active::before {
  background-color: var(--wt-color-text);
  -webkit-mask-image: url("/wp-content/uploads/2026/04/Fav2.svg");
  mask-image: url("/wp-content/uploads/2026/04/Fav2.svg");
}

.wtcart__fav.wt-fav-heart--img .wt-fav-heart__icon,
.wtcart__fav.wt-fav-heart--img svg {
  display: none !important;
}

.wtcart__name {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  color: var(--wt-black);
  max-width: 100%;
}
.wtcart__name a {
  color: inherit;
  text-decoration: none;
}
.wtcart__name a:hover {
  opacity: 0.8;
}
.wtcart__remove {
  width: 28px;
  height: 28px;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  color: var(--wt-color-text) !important;
  padding: 0;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.wtcart__remove svg {
  stroke: var(--wt-color-text) !important;
}

.wtcart__remove:hover {
  opacity: 0.6;
}
.wtcart__qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: auto;
}
.wtcart__qty button {
  width: auto;
  height: auto;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  color: var(--wt-color-text) !important;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wtcart__qty button:hover {
  color: var(--wt-color-text) !important;
}
.wtcart__qty input {
  padding: 0;
  width: 22px;
  text-align: center;
  border: 0;
  outline: none;
  font-size: 18px;
  background: transparent;
  color: var(--wt-color-text);
}
.wtcart__info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 44px;
  gap: 24px;
}
.wtcart__meta {
  font-size: 18px;
  color: var(--wt-color-text-78);
  margin: 0;
  line-height: 1.35;
}
.wtcart__price {
  font-size: 18px;
  font-weight: 500;
  color: var(--wt-black);
  white-space: nowrap;
}

.wtsum {
  display: flex;
  flex-direction: column;
}
.wtsum__title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 34px;
  font-family: var(--wt-font);
}
.wtsum__items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

@media (max-width: 1180px) {
  .wtcart {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .wtcart__summary {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  .wc-block-cart.is-large {
    gap: 40px !important;
  }

  .wc-block-cart-items__row {
    flex-direction: column !important;
    gap: 20px;
    padding: 24px 0 !important;
  }

  .wc-block-cart-item__image {
    width: 100px !important;
    height: 100px !important;
  }

  .wc-block-cart-item__remove-link {
    top: 24px;
  }

  .wc-block-components-product-metadata {
    padding-right: 0;
    margin-bottom: 32px !important;
  }

  .wc-block-cart-item__total {
    bottom: 24px;
    right: 0;
  }

  .wtcart {
    gap: 28px;
    padding: 0 15px;
  }

  .wtcart__row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 16px 0;
  }

  .wtcart__img {
    width: 88px;
    height: 88px;
  }

  .wtcart__info-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wtcart__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .wtcart__qty {
    gap: 8px;
    margin-top: 14px;
  }

  .wtcart__meta,
  .wtcart__price,
  .wtcart__name {
    font-size: 16px;
  }

  .wtcart__info-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
  }

  .wtsum__title,
  .wtcart__title {
    margin-bottom: 20px;
    font-size: 26px;
  }
}

/* custom-cart shortcode styles end */
