/*
Theme Name: Elessi Theme Child
Theme URI: https://elessi.nasatheme.com/demo/
Description: This is a child theme for Elessi Theme
Author: NasaTheme team
Author URI: https://nasatheme.com
Template: elessi-theme
Version: 1.0
*/


/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/

/* Cart UI cleanup */
.woocommerce-cart .wd-cart-table {
  table-layout: fixed;
}

.woocommerce-cart .wd-cart-table .product-remove {
  width: 64px;
  text-align: center;
  vertical-align: middle;
}

.woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: #7d4bc5;
  background: #fff;
  border: 2px solid currentColor;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose::before,
.woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose::after {
  left: 13px;
  top: 22px;
  width: 18px;
  border-top-width: 2px;
  border-top-color: currentColor;
}

.woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose:hover {
  background: #f8f5ff;
}

.woocommerce-cart .wd-cart-table .product-remove .screen-reader-text {
  display: none !important;
}

.woocommerce-cart .wd-cart-table .product-thumbnail {
  width: 92px;
}

.woocommerce-cart .wd-cart-table .product-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.woocommerce-cart .wd-cart-table td.product-name {
  padding-right: 18px;
}

.woocommerce-cart .wd-cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.woocommerce-cart .wd-cart-item-title,
.woocommerce-cart .wd-cart-item-title a {
  display: block;
  color: inherit;
  line-height: 1.35;
}

.woocommerce-cart .wd-cart-item-meta {
  display: grid;
  gap: 6px;
}

.woocommerce-cart .wd-cart-item-meta .variation {
  margin: 0;
}

.woocommerce-cart .wd-cart-item-meta .variation dt,
.woocommerce-cart .wd-cart-item-meta .variation dd {
  margin-bottom: 0;
}

.woocommerce-cart .wd-cart-table .product-price,
.woocommerce-cart .wd-cart-table .product-subtotal {
  white-space: nowrap;
}

.woocommerce-cart .cart_totals .shipping th,
.woocommerce-cart .cart_totals .shipping td {
  vertical-align: top;
}

.woocommerce-cart .wd-cart-shipping-summary {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.woocommerce-cart .wd-cart-shipping-summary__methods,
.woocommerce-cart .wd-cart-shipping-summary__meta {
  display: grid;
  gap: 6px;
  width: 100%;
  justify-items: end;
}

.woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-methods li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-methods label,
.woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-destination,
.woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-contents {
  margin: 0;
  text-align: right;
}

.woocommerce-cart .wd-cart-shipping-summary .shipping-calculator-form {
  margin: 0;
}

.woocommerce-cart .wd-cart-shipping-summary .shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-cart .wd-cart-shipping-summary .shipping-calculator-button:hover {
  text-decoration: underline;
}

.woocommerce-cart .coupon {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.woocommerce-cart .coupon .input-text {
  flex: 1 1 260px;
  min-width: 0;
}

@media only screen and (max-width: 767px) {
  .woocommerce-cart .wd-cart-table .product-remove {
    width: 52px;
  }

  .woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose {
    width: 40px;
    height: 40px;
  }

  .woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose::before,
  .woocommerce-cart .wd-cart-table .product-remove .remove.nasa-stclose::after {
    left: 11px;
    top: 18px;
    width: 14px;
  }

  .woocommerce-cart .wd-cart-table .product-thumbnail {
    width: 78px;
  }

  .woocommerce-cart .wd-cart-table td.product-name {
    padding-right: 10px;
  }

  .woocommerce-cart .wd-cart-item-main {
    gap: 6px;
  }

  .woocommerce-cart .wd-cart-table .product-quantity {
    width: auto;
    text-align: left;
  }

  .woocommerce-cart .wd-cart-table .product-subtotal.hide-for-small {
    display: block !important;
    padding-top: 8px;
    text-align: left;
  }

  .woocommerce-cart .wd-cart-table .product-subtotal.hide-for-small::before {
    content: attr(data-title) ": ";
    font-weight: 600;
    margin-right: 6px;
  }

  .woocommerce-cart .cart-collaterals {
    margin-top: 24px;
  }

  .woocommerce-cart .cart_totals .shipping th,
  .woocommerce-cart .cart_totals .shipping td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .woocommerce-cart .cart_totals .shipping th {
    padding-bottom: 8px;
  }

  .woocommerce-cart .wd-cart-shipping-summary,
  .woocommerce-cart .wd-cart-shipping-summary__methods,
  .woocommerce-cart .wd-cart-shipping-summary__meta {
    justify-items: start;
  }

  .woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-methods li {
    justify-content: flex-start;
  }

  .woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-methods label,
  .woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-destination,
  .woocommerce-cart .wd-cart-shipping-summary .woocommerce-shipping-contents,
  .woocommerce-cart .wd-cart-shipping-summary .shipping-calculator-button {
    text-align: left;
    justify-content: flex-start;
  }

  .woocommerce-cart .coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-cart .coupon .input-text,
  .woocommerce-cart .coupon .button {
    width: 100%;
  }
}
