/**
Include icons in scss/css.
Usage: 
 @include icon(close);
*/
/*
Media query mixin.
Usage: 
@include media($bp-l, min)
*/
/*
Mixin to add loading spinner to button/element.
Usage: 
@include loading()
*/
.ajax-cart__header {
  font-size: 1.25rem;
  line-height: 140%;
  font-weight: 600;
  letter-spacing: -0.025rem;
  text-align: left;
  display: flex;
}
@media (min-width: 992px) {
  .ajax-cart__header {
    font-size: 1.5rem;
  }
}
.ajax-cart__header .drawer__title {
  margin-top: 0.75rem;
}
@media only screen and (min-width: 768px) {
  .ajax-cart__header .drawer__title {
    margin-top: 1.25rem;
  }
}
.ajax-cart__header .drawer__close {
  background-color: transparent;
  padding: 0;
  border: 0;
  margin-bottom: 0;
  right: 0;
  display: flex;
}

.ajax-cart__count,
.ajax-cart__count span {
  transition: 0.3s ease;
  display: inline-block;
}
.js-ajax-cart-processing .ajax-cart__count {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}
.js-ajax-cart-processing .ajax-cart__count::after {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  right: 5px;
  left: calc(50% - 5px);
  bottom: auto;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border-width: 1px;
  border-style: solid;
  border-color: black black black transparent;
  animation: loading-spinner 0.5s linear infinite;
}
.js-ajax-cart-processing .ajax-cart__count span {
  transform: translateY(10px);
  opacity: 0;
}

.ajax-cart__container {
  padding-inline: 1.5rem;
  transition: 0.3s ease;
}
.js-ajax-cart-processing .ajax-cart__container {
  opacity: 0.7;
  pointer-events: none;
}

.ajax-cart__content {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;
  /* Track */
  /* Handle */
  padding-inline: 0.75rem;
  margin-inline: -0.75rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%;
  height: 100%;
}
.ajax-cart__content::-webkit-scrollbar-track {
  display: none;
}
.ajax-cart__content::-webkit-scrollbar-thumb {
  display: none;
}

.ajax-cart__items .cart-item:first-child {
  border: none;
}

.ajax-cart__empty {
  height: 100%;
  width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}
.ajax-cart__empty p {
  margin-bottom: 1rem;
}
.ajax-cart__empty a.primary-button {
  width: auto;
  display: inline-block;
  padding-left: 4.625rem;
  padding-right: 4.625rem;
}

.body-ajax-cart-drawer-opened:not(.smart-cart--enabled) {
  overflow: hidden;
}
