body.thl-cart-page {
  --thl-black: #191919;
  --thl-lime: #dffe02;
  --thl-white: #fff;
  --thl-muted: #777;
  --thl-line: #e8e8e8;
  --thl-soft: #f7f7f4;
  background: #fff;
  color: #191919;
  overflow-x: hidden;
}

body.thl-cart-page .wp-block-post-title {
  display: none !important;
}

body.woocommerce-cart main[data-page="cart"] > .wp-block-post-title,
body.woocommerce-cart .site-main > header:first-child,
body.woocommerce-cart .site-main > .entry-header:first-child,
body.woocommerce-cart .elementor-widget-theme-post-title,
body.woocommerce-cart .elementor-location-single .entry-title,
body.woocommerce-cart .elementor-location-single .page-title,
body.woocommerce-cart .elementor-location-single .elementor-heading-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .thl-cart-app :is(.entry-title, .page-title, .elementor-heading-title, .wp-block-post-title) {
  display: revert !important;
}

body.thl-cart-page .entry-content,
body.thl-cart-page .woocommerce {
  width: 100% !important;
  max-width: none !important;
}

.thl-cart-app,
.thl-cart-app * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.thl-cart-app {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 86px;
  color: var(--thl-black);
}

.thl-cart-app > .woocommerce {
  display: grid;
  grid-template-columns: minmax(310px, 348px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
  min-width: 0;
  direction: ltr;
}

@media (min-width: 768px) {
  body.thl-cart-page .thl-cart-app > .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(310px, 348px) minmax(0, 1fr) !important;
    column-gap: clamp(24px, 3vw, 48px) !important;
    row-gap: 32px !important;
  }
}

.thl-cart-app > .woocommerce > .woocommerce-notices-wrapper,
.thl-cart-app > .woocommerce > .wc-empty-cart-message,
.thl-cart-app > .woocommerce > .return-to-shop,
.thl-cart-app > .woocommerce > .thl-cart-empty-app {
  grid-column: 1 / -1;
}

.thl-cart-app .woocommerce-cart-form,
.thl-cart-app .cart-collaterals {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.thl-cart-app .woocommerce-cart-form {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  direction: rtl;
}

.thl-cart-app .cart-collaterals {
  display: flex;
  flex-direction: column;
  gap: 24px;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  align-self: start;
  direction: rtl;
  position: sticky;
  top: 24px;
}

.thl-cart-app .shop_table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  background: transparent !important;
}

.thl-cart-app .shop_table thead,
.thl-cart-app .shop_table tbody {
  display: block;
}

.thl-cart-app .shop_table thead {
  display: none !important;
}

.thl-cart-app .woocommerce-cart-form__cart-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 92px minmax(190px, 1fr) 188px minmax(142px, 180px) 42px;
  gap: 10px 18px;
  align-items: center;
  min-height: 132px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--thl-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 25, 25, 0.07);
}

.thl-cart-app .woocommerce-cart-form__cart-item td,
.thl-cart-app .woocommerce-cart-form__cart-item th.product-name {
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: right !important;
}

.thl-cart-app .product-remove {
  position: static;
  grid-column: 5;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 2;
  transform: none;
}

.thl-cart-app .product-remove a {
  display: grid !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #dedede !important;
  border-radius: 32px !important;
  background: #fff !important;
  color: var(--thl-black) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: none !important;
}

.thl-cart-app .product-remove a:hover {
  border-color: #dedede !important;
  background: #fff !important;
  color: var(--thl-black) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.thl-cart-app .product-remove a:active {
  transform: none !important;
}

html body.thl-cart-page .thl-cart-app table.shop_table td.product-thumbnail,
html
  body.thl-cart-page
  .thl-cart-app
  table.shop_table
  td.product-thumbnail
  > a {
  display: block !important;
  grid-column: 1;
  grid-row: 1;
  width: 92px !important;
  height: 92px !important;
  min-height: 0 !important;
  max-height: 92px !important;
  overflow: hidden !important;
}

html
  body.thl-cart-page
  .thl-cart-app
  table.shop_table
  td.product-thumbnail
  img {
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  min-height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  padding: 10px;
  border: 1px solid var(--thl-line);
  border-radius: 26px;
  background: var(--thl-soft);
  object-fit: contain !important;
}

.thl-cart-app .product-name {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.thl-cart-product-name {
  display: block;
  max-width: 100%;
  margin: 0;
  color: var(--thl-black);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.65;
}

.thl-cart-app .product-name a {
  color: var(--thl-black) !important;
  text-decoration: none !important;
}

.thl-cart-app .product-quantity,
.thl-cart-app .product-subtotal {
  min-width: 0;
  color: var(--thl-black);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
  white-space: nowrap;
}

.thl-cart-app .product-quantity {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  text-align: center !important;
}

.thl-cart-app .product-subtotal {
  grid-column: 4;
  grid-row: 1;
  justify-self: stretch;
  padding-left: 0 !important;
  text-align: left !important;
}

.thl-cart-app .product-quantity::before,
.thl-cart-app .product-subtotal::before {
  display: block;
  margin-bottom: 5px;
  color: var(--thl-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
}

.thl-cart-app .product-quantity::before {
  content: "تعداد";
}

.thl-cart-app .product-subtotal::before {
  content: "مبلغ";
}

.thl-cart-app .product-subtotal .amount {
  font-size: 16px !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.thl-cart-app del {
  display: block;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 700;
}

.thl-cart-app ins {
  text-decoration: none;
}

.thl-cart-app .quantity {
  display: block !important;
  width: 188px;
  max-width: 100%;
  height: 42px;
}

.thl-cart-app .qty {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.thl-cart-app .actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 10px !important;
  margin-top: 18px !important;
  padding: 0 !important;
}

.thl-cart-app .actions .coupon {
  display: flex !important;
  flex: 1;
  gap: 10px !important;
}

.thl-cart-app .actions .coupon input {
  flex: 1;
  min-height: 42px !important;
  padding: 8px 16px !important;
  border: 1px solid var(--thl-line) !important;
  background: var(--thl-soft) !important;
  color: var(--thl-black) !important;
  text-align: right;
  box-shadow: none !important;
}

.thl-cart-app button,
.thl-cart-app input,
.thl-cart-app .button,
.thl-cart-app .checkout-button {
  border-radius: 32px !important;
}

.thl-cart-app .actions button,
.thl-cart-coupon-card button,
.thl-cart-app .wc-proceed-to-checkout a {
  min-height: 42px !important;
  padding: 8px 20px !important;
  border: 2px solid var(--thl-black) !important;
  background: #fff !important;
  color: var(--thl-black) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: none !important;
}

.thl-cart-app .actions button:hover,
.thl-cart-coupon-card button:hover,
.thl-cart-app .wc-proceed-to-checkout a:hover {
  filter: brightness(0.98);
}

.thl-cart-app .actions button:disabled {
  opacity: 0.45 !important;
}

.thl-cart-app td.product-price,
.thl-cart-app th.product-price,
.thl-cart-app .woocommerce-cart-form__cart-item td.product-price,
.thl-cart-app .actions > button[name="update_cart"] {
  display: none !important;
}

.thl-cart-app .cart_totals {
  width: 100% !important;
  padding: 24px;
  border: 0;
  border-radius: 32px;
  background: var(--thl-black);
  color: #fff;
  box-shadow: 0 18px 48px rgba(25, 25, 25, 0.16);
}

.thl-cart-app .cart_totals h2 {
  display: none !important;
}

.thl-cart-app .cart_totals table,
.thl-cart-app .cart_totals tbody,
.thl-cart-app .cart_totals tr,
.thl-cart-app .cart_totals th,
.thl-cart-app .cart_totals td {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
}

.thl-cart-app .cart_totals tr {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
  padding: 0 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.thl-cart-app .cart_totals .order-total {
  padding-top: 8px;
  margin-top: 8px;
}

.thl-cart-app .cart_totals tr:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0 !important;
}

.thl-cart-app .cart_totals th,
.thl-cart-app .cart_totals td {
  display: block !important;
  width: auto !important;
  max-width: 1000%;
  padding: 0 !important;
  color: #fff !important;
  white-space: normal;
}

.thl-cart-app .cart_totals td::before {
  display: none !important;
  content: none !important;
}

.thl-cart-app .cart_totals th {
  order: 2;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  font-weight: 850;
  text-align: right !important;
  direction: rtl;
}

.thl-cart-app .cart_totals td {
  order: 1;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.6;
  text-align: left !important;
  direction: rtl;
}

.thl-cart-app .cart-discount .woocommerce-remove-coupon {
  display: none !important;
}

.thl-cart-app .cart-discount th,
.thl-cart-app .cart-discount td,
.thl-cart-app .cart-discount .amount {
  color: var(--thl-lime) !important;
}

.thl-cart-app .order-total td,
.thl-cart-app .order-total strong,
.thl-cart-app .order-total .amount {
  color: var(--thl-lime) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.thl-cart-app .cart_totals .woocommerce-shipping-totals,
.thl-cart-app .cart_totals .shipping,
.thl-cart-app .cart_totals .tax-rate,
.thl-cart-app .cart_totals .fee,
.thl-cart-app .cart_totals .recurring-totals {
  display: none !important;
}

.thl-cart-app .wc-proceed-to-checkout {
  padding: 20px 0 0 !important;
}

.thl-cart-app .wc-proceed-to-checkout a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-color: var(--thl-lime) !important;
  background: var(--thl-lime) !important;
  color: var(--thl-black) !important;
  font-size: 16px !important;
}

.thl-cart-coupon-card {
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--thl-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 25, 25, 0.08);
}

.thl-cart-coupon-card::before {
  content: "کد تخفیف دارید؟";
  display: block;
  margin-bottom: 16px;
  color: var(--thl-black);
  font-size: 16px;
  font-weight: 950;
}

.thl-cart-coupon-card .coupon {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
  width: 100%;
}

.thl-cart-coupon-card input {
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 16px !important;
  border: 1px solid var(--thl-line) !important;
  background: var(--thl-soft) !important;
  color: var(--thl-black) !important;
  text-align: right;
  box-shadow: none !important;
  outline: none !important;
}

.thl-cart-coupon-card input:focus {
  border-color: var(--thl-black) !important;
}

.thl-cart-coupon-card button {
  width: 100%;
  border-color: var(--thl-black) !important;
  background: var(--thl-black) !important;
  color: #fff !important;
}

.thl-cart-app .tiam-cart-control {
  --tiam-control-width: 188px;
  --tiam-control-height: 42px;
  --tiam-control-radius: 32px;
  --tiam-action-width: 54px;
  --tiam-primary: var(--thl-lime);
  --tiam-white: #fff;
  --tiam-dark: var(--thl-black);
  --tiam-danger: #d92d20;
  --tiam-font-size: 14px;
  --tiam-font-weight: 900;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: var(--tiam-control-width);
  height: var(--tiam-control-height);
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--thl-line);
  border-radius: var(--tiam-control-radius);
  background: var(--tiam-white);
  direction: rtl;
  box-shadow: 0 8px 18px rgba(25, 25, 25, 0.05);
}

.thl-cart-app .tiam-cart-control__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--tiam-control-height);
  margin: 0;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: var(--tiam-control-radius) !important;
  color: var(--tiam-dark) !important;
  background: var(--tiam-primary) !important;
  font-size: var(--tiam-font-size) !important;
  font-weight: var(--tiam-font-weight) !important;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition: none;
}

.thl-cart-app .tiam-cart-control__stepper {
  display: none;
  align-items: stretch;
  width: 100%;
  height: var(--tiam-control-height);
  overflow: hidden;
  border: 0;
  border-radius: var(--tiam-control-radius);
  background: var(--tiam-white);
  box-shadow: none;
}

.thl-cart-app .tiam-cart-control.has-quantity .tiam-cart-control__add {
  display: none;
}

.thl-cart-app .tiam-cart-control.has-quantity .tiam-cart-control__stepper {
  display: flex;
}

.thl-cart-app .tiam-cart-control__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tiam-action-width);
  min-width: var(--tiam-action-width);
  height: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--tiam-dark) !important;
  cursor: pointer;
  appearance: none;
  transition: none;
}

.thl-cart-app .tiam-cart-control__increase,
.thl-cart-app .tiam-cart-control__increase:hover,
.thl-cart-app .tiam-cart-control__increase:focus,
.thl-cart-app .tiam-cart-control__increase:active {
  order: 1;
  color: var(--tiam-dark) !important;
  background: var(--tiam-primary) !important;
}

.thl-cart-app .tiam-cart-control__quantity {
  order: 2;
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  color: var(--tiam-dark);
  background: var(--tiam-white);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.thl-cart-app .tiam-cart-control__number {
  min-width: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.thl-cart-app .tiam-cart-control__unit {
  font-size: inherit;
  font-weight: 500;
}

.thl-cart-app .tiam-cart-control__decrease,
.thl-cart-app .tiam-cart-control__decrease:hover,
.thl-cart-app .tiam-cart-control__decrease:focus,
.thl-cart-app .tiam-cart-control__decrease:active {
  order: 3;
  color: var(--tiam-dark) !important;
  background: var(--tiam-white) !important;
  border-right: 1px solid rgba(32, 32, 32, 0.08) !important;
}

.thl-cart-app .tiam-cart-control__icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.thl-cart-app .tiam-cart-control__icon--plus {
  width: 28px;
  height: 28px;
}

.thl-cart-app .tiam-cart-control__icon--minus {
  width: 27px;
  height: 27px;
}

.thl-cart-app .tiam-cart-control__icon--trash {
  width: 24px;
  height: 24px;
}

.thl-cart-app
  .tiam-cart-control__decrease:hover
  .tiam-cart-control__icon--trash,
.thl-cart-app
  .tiam-cart-control__decrease:focus-visible
  .tiam-cart-control__icon--trash {
  color: var(--tiam-danger);
}

.thl-cart-app .tiam-cart-control.is-loading {
  opacity: 0.68;
  pointer-events: none;
}

.thl-cart-app .tiam-cart-control.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(223, 254, 2, 0.16),
    transparent
  );
  transform: translateX(100%);
  animation: thl-cart-loading-sheen 0.9s linear infinite;
  pointer-events: none;
}

@keyframes thl-cart-loading-sheen {
  to {
    transform: translateX(-100%);
  }
}

.thl-cart-network-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--thl-line);
  border-radius: 24px;
  background: #fff;
  color: var(--thl-black);
  direction: rtl;
  box-shadow: 0 10px 28px rgba(25, 25, 25, 0.08);
}

.thl-cart-network-error div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.thl-cart-network-error strong {
  font-weight: 950;
}

.thl-cart-network-error span {
  color: #656761;
  font-size: 13px;
}

.thl-cart-network-error button {
  min-height: 48px;
  padding: 10px 18px;
  border: 2px solid var(--thl-black);
  border-radius: 32px;
  background: var(--thl-lime);
  color: var(--thl-black);
  font-weight: 950;
}

.thl-cart-empty-app {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--thl-line);
  border-radius: 32px;
  background: #fff;
  color: var(--thl-black);
  text-align: center;
  box-shadow: 0 18px 44px rgba(25, 25, 25, 0.08);
}

.thl-cart-empty-app .thl-empty-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  border-radius: 32px;
  background: var(--thl-lime);
  color: var(--thl-black);
  font-size: 48px;
}

.thl-cart-empty-app strong {
  font-size: 32px;
}

.thl-cart-empty-app p {
  color: var(--thl-muted);
}

body.thl-cart-page .woocommerce-info,
body.thl-cart-page .woocommerce-message,
body.thl-cart-page .woocommerce-error {
  width: min(1180px, calc(100% - 40px));
  margin: 16px auto !important;
  border: 1px solid var(--thl-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: var(--thl-black) !important;
  box-shadow: 0 12px 28px rgba(25, 25, 25, 0.08);
}
.cart-collaterals::before {
  display: none !important;
}
@media (min-width: 768px) and (max-width: 980px) {
  .thl-cart-app {
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  .thl-cart-app > .woocommerce {
    display: block;
  }

  .thl-cart-app .cart-collaterals {
    margin-top: 20px;
    position: static;
  }

  .thl-cart-network-error {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .thl-cart-network-error button {
    width: 100%;
  }

  .thl-cart-app .woocommerce-cart-form__cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 16px;
  }

  .thl-cart-app .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 4;
  }

  .thl-cart-app .product-name {
    grid-column: 2;
    grid-row: 1;
  }

  .thl-cart-app td.product-price,
  .thl-cart-app th.product-price,
  .thl-cart-app .woocommerce-cart-form__cart-item td.product-price {
    display: none !important;
  }

  .thl-cart-app .product-remove {
    position: absolute;
    top: 14px;
    left: 14px;
    transform: none;
  }

  .thl-cart-app .product-quantity {
    grid-column: 2;
    grid-row: 2;
  }

  .thl-cart-app .product-subtotal {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    justify-self: stretch;
    width: 100%;
    padding-top: 14px !important;
    border-top: 1px solid var(--thl-line) !important;
    text-align: right !important;
  }

  .thl-cart-app .product-subtotal::before {
    margin-bottom: 0;
  }

  html body.thl-cart-page .thl-cart-app table.shop_table td.product-thumbnail,
  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    td.product-thumbnail
    > a {
    width: 96px !important;
    height: 96px !important;
    max-height: 96px !important;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    td.product-thumbnail
    img {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }

  .thl-cart-app .actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .thl-cart-app .actions .coupon {
    flex-direction: column;
    width: 100%;
  }

  .thl-cart-app .actions button {
    width: 100%;
  }
}

@media (max-width: 0px) {
  .thl-cart-app {
    width: calc(100% - 22px);
    margin-bottom: 54px;
  }

  .thl-cart-app .woocommerce-cart-form__cart-item {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 14px;
    border-radius: 28px;
  }

  .thl-cart-product-name {
    max-width: calc(100% - 36px);
    font-size: 14px;
    line-height: 1.65;
  }

  .thl-cart-app .product-quantity,
  .thl-cart-app .product-subtotal {
    font-size: 13px;
  }

  .thl-cart-app .quantity {
    width: 100%;
    height: 42px;
  }

  .thl-cart-app .qty {
    height: 1px !important;
  }

  .thl-cart-app .tiam-cart-control {
    --tiam-control-width: 100%;
    --tiam-control-height: 42px;
    --tiam-control-radius: 32px;
    --tiam-action-width: 56px;
    width: 100%;
  }

  .thl-cart-app .product-remove {
    top: 10px;
    left: 10px;
    transform: none;
  }

  .thl-cart-app .product-remove a {
    width: 36px !important;
    height: 36px !important;
    font-size: 21px !important;
  }

  html body.thl-cart-page .thl-cart-app table.shop_table td.product-thumbnail,
  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    td.product-thumbnail
    > a {
    width: 78px !important;
    height: 78px !important;
    max-height: 78px !important;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    td.product-thumbnail
    img {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
    max-width: 78px !important;
    max-height: 78px !important;
    padding: 8px;
    border-radius: 24px;
  }

  .thl-cart-app .cart_totals,
  .thl-cart-coupon-card {
    padding: 18px;
    border-radius: 28px;
  }

  body.thl-cart-page .woocommerce-info,
  body.thl-cart-page .woocommerce-message,
  body.thl-cart-page .woocommerce-error {
    width: calc(100% - 22px);
  }
}

@media (max-width: 767px) {
  body.thl-cart-page {
    overflow-x: hidden;
  }

  body.thl-cart-page main.wp-block-group.has-global-padding,
  body.thl-cart-page .entry-content,
  body.thl-cart-page .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
  }

  body.thl-cart-page main.wp-block-group.has-global-padding {
    overflow-x: visible;
  }

  body.thl-cart-page .thl-cart-app {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px 0 56px !important;
    padding: 0 16px !important;
    box-sizing: border-box;
  }

  body.thl-cart-page .thl-cart-app > .woocommerce {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    direction: rtl;
  }

  body.thl-cart-page .thl-cart-app .woocommerce-cart-form {
    order: 1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.thl-cart-page .thl-cart-app .cart-collaterals {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 0;
    gap: 24px;
    position: static !important;
    transform: none !important;
  }

  body.thl-cart-page .thl-cart-app .shop_table,
  body.thl-cart-page .thl-cart-app .shop_table tbody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.thl-cart-page .thl-cart-app .woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) 36px;
    grid-template-rows: 80px 42px auto;
    gap: 14px 12px;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 28px;
    direction: rtl;
    transform: none !important;
    overflow: hidden;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > td.product-thumbnail,
  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > td.product-thumbnail
    > a {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    line-height: 0 !important;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > td.product-thumbnail
    img {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    padding: 8px;
    border-radius: 22px;
    object-fit: contain !important;
    object-position: center !important;
    vertical-align: top !important;
    transform: none !important;
  }

  body.thl-cart-page .thl-cart-app td.product-price,
  body.thl-cart-page .thl-cart-app th.product-price,
  body.thl-cart-page
    .thl-cart-app
    .woocommerce-cart-form__cart-item
    td.product-price {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  body.thl-cart-page .thl-cart-app .product-name {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    justify-self: stretch;
    text-align: right !important;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > td::before,
  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > th::before {
    display: none !important;
    content: none !important;
  }

  body.thl-cart-page .thl-cart-product-name {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    text-align: right;
  }

  body.thl-cart-page .thl-cart-app .product-remove {
    position: static;
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: start;
    transform: none !important;
  }

  body.thl-cart-page .thl-cart-app .product-remove a {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
  }

  body.thl-cart-page .thl-cart-app .product-quantity {
    grid-column: 1 / 4;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    text-align: right !important;
  }

  body.thl-cart-page .thl-cart-app .product-quantity::before {
    margin-bottom: 8px;
    font-size: 11px;
  }

  body.thl-cart-page .thl-cart-app .quantity {
    width: 100% !important;
    height: 42px;
  }

  body.thl-cart-page .thl-cart-app .tiam-cart-control {
    --tiam-control-width: 100%;
    --tiam-control-height: 42px;
    --tiam-action-width: 52px;
    width: 100% !important;
    transform: none !important;
  }

  body.thl-cart-page .thl-cart-app .tiam-cart-control__icon {
    width: 22px;
    height: 22px;
  }

  body.thl-cart-page .thl-cart-app .product-subtotal {
    grid-column: 1 / 4;
    grid-row: 3;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-top: 12px !important;
    border-top: 1px solid var(--thl-line) !important;
    text-align: right !important;
    direction: rtl;
    white-space: normal;
  }

  html
    body.thl-cart-page
    .thl-cart-app
    table.shop_table
    tr.woocommerce-cart-form__cart-item
    > td.product-subtotal::before {
    content: "جمع قیمت کالا" !important;
    display: block !important;
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 12px;
    text-align: right;
  }

  body.thl-cart-page .thl-cart-app .product-subtotal .amount {
    font-size: 16px !important;
    line-height: 1.4;
    text-align: left !important;
    direction: ltr;
  }

  body.thl-cart-page .thl-cart-app .cart_totals,
  body.thl-cart-page .thl-cart-coupon-card {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px;
    border-radius: 28px;
  }

  body.thl-cart-page .thl-cart-app .cart_totals tr {
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  body.thl-cart-page .thl-cart-app .cart_totals th {
    font-size: 12px;
  }

  body.thl-cart-page .thl-cart-app .cart_totals td {
    font-size: 15px;
  }

  body.thl-cart-page .thl-cart-app .order-total td,
  body.thl-cart-page .thl-cart-app .order-total strong,
  body.thl-cart-page .thl-cart-app .order-total .amount {
    font-size: 18px !important;
  }

  body.thl-cart-page .thl-cart-app .cart_totals .order-total {
    padding-top: 4px !important;
    margin-top: 4px !important;
  }

  body.thl-cart-page .thl-cart-coupon-card::before {
    margin-bottom: 14px;
    font-size: 15px;
  }

  body.thl-cart-page .thl-cart-coupon-card input,
  body.thl-cart-page .thl-cart-coupon-card button,
  body.thl-cart-page .thl-cart-app .wc-proceed-to-checkout a {
    min-height: 42px !important;
  }

  body.thl-cart-page .woocommerce-info,
  body.thl-cart-page .woocommerce-message,
  body.thl-cart-page .woocommerce-error,
  body.thl-cart-page .wc-block-components-notice-banner {
    width: calc(100% - 32px) !important;
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
}
