.custom-cart-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);

  align-items: flex-end;
}

.cart-products {
  width: 100%;
}

.cart-products table {
  width: 100%;
  border-collapse: collapse;
}

.cart-products ol,
.cart-products ul {
  list-style: none;
}

.cart-products th,
.cart-products td {
  padding: 10px;
  border: none !important;
  text-align: left;
}

.cart-products .product-name {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-products .product-name a {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 1.3rem;
}

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);

  padding: var(--spacing-lg);
  border-radius: var(--border-radius);

  max-width: 600px;
  width: 100%;
}

.cart-totals h2 {
  margin: 0;
}

.cart-totals table {
  width: 100%;
}

.cart-totals th,
.cart-totals td {
  padding: var(--spacing-md);
  text-align: left;
}

.checkout-button {
  width: 100%;
  text-align: center;
  color: #fff;

  font-weight: 500 !important;
}

tbody .product-thumbnail {
  width: 100px;
  height: 100px;
}

tbody .product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.woocommerce table.shop_table {
  border: none;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.mobile-cart-products {
  display: none;
}

.remove {
  display: block;
  background: transparent !important;
  color: var(--button-bg) !important;
}

.small-screen {
  display: none;
}

@media screen and (max-width: 37.5em) {
  .remove {
    display: none;
  }

  .small-screen {
    display: block;
  }

  .product-name-and-attributes {
    justify-content: inherit !important;
  }
}

@media screen and (max-width: 48em) {
  .cart-products {
    display: none;
  }

  .mobile-cart-products {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .mobile-cart-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    border-radius: 8px;
  }

  .mobile-cart-item-header {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: var(--spacing-sm);
  }

  .product-thumbnail img {
    object-fit: cover;
  }

  .product-name-and-attributes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: space-between;
  }

  .mobile-cart-item-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .mobile-cart-item-footer,
  .mobile-cart-item-footer button {
    width: 100%;
  }
}

@media screen and (max-width: 64em) {
  .custom-cart-page {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cart-totals {
    padding: 0 var(--spacing-lg);
  }
}

.wp-block-woocommerce-checkout {
  padding: var(--spacing-lg);
}
