/* WooCommerce Mini Cart */
.widget_shopping_cart {

  .product_list_widget {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    text-align: left;

    .mini_cart_item {
      padding: 20px;
    }
  }

  .mini_cart_item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;

    .remove {
      color: gray('500') !important;
      display: block;
      position: absolute;
      top: 15px;
      right: 15px;
      z-index: 12;
    }
  }

  .cart-item-image {
    position: relative;
    flex: 0 0 auto;
  }

  .cart-item-content {
    position: relative;
    flex: 1 1 auto;
    padding-right: 20px;
  }

  .quantity {
    color: gray('500');
    font-size: 13px;
    display: block;
  }
}

.product_list_widget {

  >li {
    border-bottom: 1px solid $border-color;

    &:last-child {
      border-bottom: none;
    }

    img {
      max-width: 65px;
      min-width: 65px;
      height: auto;
      box-shadow: 0 0 0 1px #e1e1e1;
    }
  }
}

/* WooCommerce Page Cart */
.cart-page-inner {

  .woocommerce-cart-holder {
    @include make-col-ready();

    @include media-breakpoint-up(lg) {
      @include make-col(8);
    }
  }

  .cart-collaterals {
    @include make-col-ready();

    @include media-breakpoint-up(lg) {
      @include make-col(4);
    }
  }

  .woocommerce-cart-form,
  .cart-collaterals-inner {
    background-color: $white;
    border: 1px solid $border-color;
    border-radius: $border-radius;
    padding: 30px;
    margin-bottom: 30px;
  }

  .woocommerce-cart-form {

    .shop_table {
      margin-bottom: 0;
    }

    tr.cart_item .product-quantity .quantity {
      width: 56px;

      .input-text {
        border: 0;
        border-bottom: 2px solid $border-color;
      }
    }

    td.actions {
      position: relative;
      padding-top: 30px;
      padding-bottom: 0;

      .coupon {
        position: relative;
        margin-bottom: 20px;

        label {
          display: none;
        }

        .input-text {
          width: 100%;
          line-height: 47px;
          padding: 0 15px;
        }

        &:after {
          position: absolute;
          font-family: 'FontAwesome';
          content: '\f105';
          right: 22px;
          top: 50%;
          transform: translateY(-50%);
        }

        .button {
          position: absolute;
          top: 0;
          right: 0;
          opacity: 0 !important;
          width: 60px;
        }
      }

      .button_update_cart {
        @extend .btn-border;
      }
    }

    @include media-breakpoint-up(md) {

      .coupon {
        width: 50%;
        margin-bottom: 0;
      }

      .button_update_cart {
        position: absolute;
        top: 30px;
        right: 0;
      }
    }
  }
}

.cart-collaterals {

  .shop_table {

    tr {

      th {
        vertical-align: baseline;
        padding-right: 50px;
        width: 60px;
      }

      &.shipping {

        #shipping_method {
          margin: 0;
          list-style-type: none;
        }

        td {
          padding-left: 0;
          padding-right: 0;
        }

        .shipping-title {
          color: #495057;
          margin-bottom: 10px;
        }

        .shipping-calculator-button {
          @extend .btn-link;
        }

        .button {
          @extend .btn-border;
          display: block;
          width: 100%;
        }
      }
    }
  }

  .checkout-button {
    display: block;
  }
}