// JTL DEFAULTS
/* index */
.basket {
  .basket-heading {
    margin-bottom: map-get($spacers, 3);
  }

  .basket-empty {
    text-align: center;
    .alert {
      margin-top: map-get($spacers, 4);
      padding-top: map-get($spacers, 2);
      padding-bottom: map-get($spacers, 5);
    }
  }
  .basket-summary {
    // margin-top: map-get($spacers, 4);
    .basket-summary-total {
      // margin-top: map-get($spacers, 3);
      // padding-top: map-get($spacers, 3);
      // font-size: $font-size-lg;
      // border-top: $border-width solid $border-color;
    }

  }
  .basket-summary-notice {
     margin-top: map-get($spacers, 5);
  }
}
.basket_notice {
  margin-left: 5px;
}

#cart-checkout-btn {
  width: 100%;
  margin-top: map-get($spacers, 3);
}

/* cart-items */
.cart-items-header {
  // padding-bottom: map-get($spacers, 3);
}
.cart-items-body {
  // padding-bottom: map-get($spacers, 3);
  .cart-items-image {
    height: 100%;
  }
  .cart-items-single-price {
    // margin-left: auto;
    margin-bottom: map-get($spacers, 3);
    @include media-breakpoint-up(xl) {
      margin-bottom: 0;
    }
    white-space: nowrap;
  }
  .cart-items-quantity {
    // margin-left: auto;
    margin-bottom: map-get($spacers, 4);
    text-align: center;
    @include media-breakpoint-up(xl) {
      margin-bottom: 0;
    }
    white-space: nowrap;
    input:invalid {
      border-color: $colorDangerFont;
    }
    .form-error-msg {
      font-size: 12px;
      white-space: normal;
      text-align: left;
    }
  }
  .cart-items-price {
    margin-left: auto;
    white-space: nowrap;
    // color: $font-accent;
    text-align: right;
  }
  .cart-items-price-text {
    margin-right: map-get($spacers, 3);
    display: inline-block;
    @include media-breakpoint-up(xl) {
      display: none;
    }
  }
  .cart-items-delete {
    // margin-left: auto;
    // margin-top: map-get($spacers, 4);
    .cart-items-delete-button {
      padding: 0;
      // text-decoration: underline;
      white-space: nowrap;
      > span {
        margin-right: map-get($spacers, 2);
      }
    }
  }
  .cart-items-name {
    display: block;
    // margin-bottom: map-get($spacers, 3);
  }
}
// END JTL DEFAULTS

// Custom ET CHANGES
.basket {
  hr {
    border-top: 1px solid $colorNeutral5;
  }
}

.basket-summary {
  .basket-summary-total,
  .et-basket-sidebar-products {
    font-weight: $font-weight-bold;
  }

  .et-basket-sidebar-products {
    padding-bottom: 20px;
  }

  .tax {
    color: $colorFontMuted;
  }

  .shipping-costs {
    margin-top: 5px;
  }

  .et-basket-sidebar-delivery {
    margin-top: 20px;
  }

  .basket-coupon-form {
    margin-top: 20px;
  }
}

.cart-items-header {
  font-size: medium;

  hr {
    margin-top: 0;
  }
}

.cart-items-body {
  .cart-items-name {
    font-weight: $font-weight-bold;
    line-height: 1.75;
    margin-bottom: 5px;
  }

  .cart-items-product-data {
    li {
      margin-bottom: 5px;
    }
  }

  .cart-items-delete {
    @include media-breakpoint-up(lg) {
      margin-left: auto;
    }
  }

  .wishlist-button {
    border-right: 0 none;
    margin-right: 20px;
    padding-right: 0;
    display: inline-block;

    .wishlist-button-inner .wishlist-button-text {
      text-decoration: none;
    }
  }

  .rating {
    display: block;
    margin-bottom: 5px;

    &:not(.btn),
    &:not(.btn):link {
      color: $colorRatings;
    }
  }
}

.et-basket-freegift-hint {
  font-size: smaller;
  gap: 5px;
  display: flex;
  flex-direction: column;
  &:not(.et-boxed-content) {
    padding-top: 5px;
  }

  .et-basket-freegift-hint-available-title {
    font-weight: bold;
  }

  &.et-basket-freegift-hint-context-cart {
    font-size: inherit;
  }
}