.cart-shell {
  max-width: 1240px;
  padding-top: 42px;
}

.cart-hero {
  margin-bottom: 34px;
}

.cart-content > .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 28px;
  align-items: start;
}

.cart-content > .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.woocommerce-cart table.shop_table.cart {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

.woocommerce-cart table.shop_table.cart thead {
  display: none;
}

.woocommerce-cart table.shop_table.cart tbody {
  display: block;
}

.woocommerce-cart table.shop_table.cart tr.cart_item {
  display: grid;
  grid-template-columns: 34px 112px minmax(150px, 1fr) 88px 92px 105px;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #dce4d6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px #26351c09;
}

.woocommerce-cart table.shop_table.cart td {
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}

.woocommerce-cart table.shop_table.cart td::before {
  float: none;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e1e6de;
  border-radius: 50%;
  background: #f6f8f4;
  color: #7e8978 !important;
  font-size: 0;
  line-height: 1;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove::before {
  content: '×';
  font-size: 1.3rem;
  font-weight: 400;
}

.woocommerce-cart table.shop_table.cart .product-remove a.remove:hover {
  border-color: #e6c9c5;
  background: #fff0ee;
  color: #a23e34 !important;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail a {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #f2f4f0;
}

.woocommerce-cart table.shop_table.cart .product-thumbnail img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.woocommerce-cart table.shop_table.cart .product-name a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.woocommerce-cart table.shop_table.cart .product-name a:hover {
  color: var(--accent);
}

.woocommerce-cart table.shop_table.cart .product-price::before,
.woocommerce-cart table.shop_table.cart .product-quantity::before,
.woocommerce-cart table.shop_table.cart .product-subtotal::before {
  display: block;
  margin-bottom: 5px;
  color: #7a8375;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.woocommerce-cart table.shop_table.cart .product-price::before {
  content: 'Preço';
}

.woocommerce-cart table.shop_table.cart .product-quantity::before {
  content: 'Quantidade';
}

.woocommerce-cart table.shop_table.cart .product-subtotal::before {
  content: 'Subtotal';
}

.woocommerce-cart table.shop_table.cart .product-price,
.woocommerce-cart table.shop_table.cart .product-subtotal {
  font-size: .95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.woocommerce-cart table.shop_table.cart .product-subtotal {
  font-weight: 800;
}

.woocommerce-cart table.shop_table.cart .quantity .qty {
  width: 72px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #ccd6c5;
  border-radius: 10px;
  background: #fbfcfa;
  text-align: center;
}

.woocommerce-cart table.shop_table.cart tr:last-child {
  display: block;
}

.woocommerce-cart table.shop_table.cart td.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 2px;
  padding: 18px !important;
  border: 1px solid #dce4d6 !important;
  border-radius: 16px;
  background: #fff;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
  display: flex;
  gap: 9px;
  float: none;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
  width: 180px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 13px;
  border: 1px solid #ccd6c5;
  border-radius: 10px;
  background: #fbfcfa;
}

.woocommerce-cart table.shop_table.cart td.actions .button {
  min-height: 48px;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-size: .78rem;
}

.woocommerce-cart table.shop_table.cart td.actions button[name='update_cart'] {
  margin-left: auto;
  background: #eaf2e3 !important;
  color: #355020 !important;
}

.woocommerce-cart table.shop_table.cart td.actions button[name='update_cart']:not(:disabled):hover {
  background: var(--green) !important;
  color: var(--ink) !important;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  width: auto;
  margin: 0;
}

.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after {
  display: none;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  position: sticky;
  top: 124px;
  width: 100%;
  float: none;
  padding: 30px;
  border: 0;
  border-radius: 20px;
  background: var(--dark);
  color: #edf4e8;
  box-shadow: 0 22px 55px #17201822;
}

.woocommerce-cart .cart_totals h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: -.04em;
}

.woocommerce-cart .cart_totals table.shop_table {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  color: #edf4e8;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  padding: 15px 0 !important;
  border-color: #ffffff1c !important;
  background: transparent;
  color: inherit;
  font-size: .88rem;
  vertical-align: top;
}

.woocommerce-cart .cart_totals table.shop_table th {
  width: 34%;
  font-weight: 700;
}

.woocommerce-cart .cart_totals table.shop_table td {
  text-align: right;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
  margin: 0;
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
  color: var(--green);
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  padding-top: 21px !important;
  border-top: 1px solid #ffffff38 !important;
  color: #fff;
  font-size: 1.08rem !important;
}

.woocommerce-cart .cart_totals .order-total strong {
  color: var(--green);
  font-size: 1.28rem;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding: 22px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  border-radius: 999px !important;
  background: var(--green) !important;
  color: #1d2a15 !important;
  font-size: .92rem;
  font-weight: 800;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #d7ff94 !important;
  transform: translateY(-1px);
}

.woocommerce-cart .wc-proceed-to-checkout::after {
  content: 'Sem pagamento online · confirmamos o pedido consigo.';
  display: block;
  margin-top: 12px;
  color: #aebba8;
  font-size: .72rem;
  line-height: 1.5;
  text-align: center;
}

.woocommerce-cart .cross-sells {
  width: 100%;
  float: none;
  margin-bottom: 24px;
}

.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  grid-column: 1 / -1;
}

.woocommerce-cart .cart-empty {
  margin: 0;
  padding: 34px;
  border: 1px solid #dce4d6;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.woocommerce-cart .return-to-shop {
  text-align: center;
}

@media (max-width: 1050px) {
  .cart-content > .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    grid-column: 1;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    position: static;
  }
}

@media (max-width: 720px) {
  .woocommerce-cart table.shop_table.cart tr.cart_item {
    grid-template-columns: 88px minmax(0, 1fr) 32px;
    grid-template-areas:
      'thumb name remove'
      'thumb price price'
      'thumb quantity subtotal';
    gap: 12px 15px;
    padding: 15px;
  }

  .woocommerce-cart table.shop_table.cart .product-remove {
    grid-area: remove;
  }

  .woocommerce-cart table.shop_table.cart .product-thumbnail {
    display: block !important;
    grid-area: thumb;
    align-self: start;
  }

  .woocommerce-cart table.shop_table.cart .product-thumbnail img {
    width: 88px;
    height: 88px;
  }

  .woocommerce-cart table.shop_table.cart .product-name {
    grid-area: name;
    padding-right: 5px !important;
  }

  .woocommerce-cart table.shop_table.cart .product-price {
    grid-area: price;
  }

  .woocommerce-cart table.shop_table.cart .product-quantity {
    grid-area: quantity;
  }

  .woocommerce-cart table.shop_table.cart .product-subtotal {
    grid-area: subtotal;
    align-self: end;
    text-align: right !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions {
    align-items: stretch;
    flex-direction: column;
    padding: 15px !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
    width: 100% !important;
  }

  .woocommerce-cart table.shop_table.cart td.actions button[name='update_cart'] {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .cart-shell {
    padding-top: 26px;
  }

  .cart-hero {
    margin-bottom: 24px;
  }

  .cart-hero h1 {
    font-size: 2.45rem;
  }

  .woocommerce-cart table.shop_table.cart tr.cart_item {
    border-radius: 14px;
    box-shadow: none;
  }

  .woocommerce-cart .cart-collaterals .cart_totals {
    padding: 24px 19px;
    border-radius: 16px;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart table.shop_table.cart td.actions .coupon .button {
    width: 100%;
  }
}
