// Cart
#cart,
.mod_iso_checkout .orderproducts, .mod_iso_favorites,
.mod_iso_orderdetails {
  .collection {
    font-weight: lighter;
    position: relative;
    @include font-size(16px);
    margin-bottom: 2rem;

    @include media-breakpoint-up(lg) {
      @include font-size(22px);
    }

    .product {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      //margin: 0 -#{$gutter-default/2};
      padding: calc(2rem / 2) 0;
      border-top: 1px $primary solid;

      &.row_first {
        border-top: none;
        //padding-top: 0px;
      }

      > *:not([colspan="6"]) {
        flex: 1;
        margin: 0 calc(2rem / 4);

        @include media-breakpoint-up(lg) {
          margin: 0 calc(2rem / 2);
        }
      }

      > div[colspan="6"] {
        width: 100%;
      }

      ul {
        list-style-type: none;
        padding: 0px;
        margin: 0px;

        li.attribute {
          &:not(:last-child) {
            margin-bottom: 10px;
          }
        }
      }

      .image {
        flex: auto;
        width: 25%;
        text-align: center;

        @include media-breakpoint-down(lg) {
          margin: 0px 0px 1.25rem 0;
        }

        @include media-breakpoint-up(lg) {
          flex: 0 0 75px;
          width: auto;
        }

        figure {
          margin-bottom: 0px;
        }
      }

      .name {
        align-self: center;
        flex: auto;
        width: 75%;
        text-align: center;

        @include media-breakpoint-down(lg) {
          margin: 0px 0px 1.25rem 0;
          padding-left: 1.5rem;
        }

        @include media-breakpoint-up(lg) {
          width: auto;
          flex-grow: 4;
        }

        a {
          text-decoration: none;
          font-weight: $font-weight-bold;
          @include font-size(18px);
        }

        ul {
          @include font-size(14px);
          margin-bottom: 0px;
        }
      }

      .quantity {
        label {
          @include font-size(12px);
          text-align: center;
        }

        input {
          @include font-size(15px);
          height: 35px;
          text-align: center;
          width: 100%;
        }

        flex: 0 0 3em;
      }

      .actions {
        text-align: right;
        margin-left: 0px;
        max-width: 40px;
        width: 40px;
        margin-bottom: 3px;

        a{
          text-decoration: none;
          display: inline-block;
          vertical-align: middle;
          & + *{
            margin-left: .25rem;
          }
        }
      }

      .remove {
        display: inline-block;
        color: var(--bs-primary);
        text-align: right;
        text-decoration: none;
      }
    }

    .price {
      text-align: right;
    }

    .summary {
      display: flex;
      align-items: flex-start;
      background-color: var(--bs-gray-100);
      //margin: 0 -#{$gutter-default/2};

      &.foot_0 {
        padding-top: calc(2rem / 2);
        border-top: 2px $primary solid;
      }

      &.total {
        font-weight: 700;
        padding-bottom: 1rem;
        padding-top: 1rem;
      }

      > * {
        flex: 1;
        margin: 0 calc(2rem / 4);

        @include media-breakpoint-up(lg) {
          margin: 0 calc(2rem / 2);
        }
      }

      .col_0 {
        flex: 0 0 75px;

        @include media-breakpoint-down(lg) {
          display: none;
        }
      }

      .col_last.remove {
        max-width: 40px;
        width: 40px;
        margin-left: 0rem;


        /*


        @include media-breakpoint-up(lg) {
          margin-right: 0.75rem;
        }

        @include media-breakpoint-up(xl) {
          margin-right: 1.5rem;
        }

         */

        @include media-breakpoint-down(lg) {
          display: none;
        }
      }

      .name {
        flex: 4 1 3em;
        margin-left: 1rem;
        text-align: right;

        @include media-breakpoint-up(lg) {
          margin-left: calc(2rem * 1.5);
        }
      }
    }
  }

  .submit_container {
    display: flex;
    align-items: center;

    button {
      &.button_update {
        //@extend .btn, .btn-outline-primary;
        margin-right: auto;
      }

      &.button_checkout {
        //@extend .btn, .btn-outline-primary;
        margin-left: auto;
      }
    }

    @include media-breakpoint-down(lg) {
      flex-direction: column;
      align-items: center;

      button {
        margin: 5px 0 0 !important;
        width: 100%;
        max-width: 350px;
      }
    }
  }
}
