.csl-cart-wrapper {
  width: 100%;
  position: relative;
}

.csl-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 24px;
  align-items: start;
}


/* ========================================
   LEFT
======================================== */

.csl-cart__products,
.csl-cart-summary {
  background: #fff;
  border: 1px solid #eee5e1;
  border-radius: 18px;
}

.csl-cart__products {
  padding: 26px;
}

.csl-cart__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.csl-cart__title h2,
.csl-cart-summary h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: #28252b;
}

.csl-cart__title span {
  font-size: 14px;
  color: #988f8b;
}


/* ========================================
   ITEMS
======================================== */

.csl-cart-items {
  display: flex;
  flex-direction: column;
}

.csl-cart-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;

  padding: 20px 0;

  border-bottom: 1px solid #f0e9e6;
}

.csl-cart-item:first-child {
  padding-top: 0;
}

.csl-cart-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.csl-cart-item__image {
  width: 105px;
  height: 125px;

  overflow: hidden;

  background: #f8f6f5;
  border-radius: 12px;
}

.csl-cart-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csl-cart-item__content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.csl-cart-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.csl-cart-item__name {
  display: inline-block;

  color: #28252b;

  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;

  text-decoration: none;
}

.csl-cart-item__name:hover {
  color: #b57769;
}

.csl-cart-item__variation {
  margin-top: 6px;

  font-size: 13px;
  color: #928985;
}

.csl-cart-item__variation p {
  margin: 0;
}

.csl-cart-remove {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #faf7f6;
  color: #8f8581;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease;
}

.csl-cart-remove:hover {
  background: #f3e8e5;
  color: #b57769;
}


/* ========================================
   QUANTITY
======================================== */

.csl-cart-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.csl-cart-quantity {
  display: inline-grid;
  grid-template-columns: 38px 44px 38px;

  height: 40px;

  border: 1px solid #e9dfdb;
  border-radius: 9px;

  overflow: hidden;
}

.csl-cart-quantity__button {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;

  border: 0;

  background: #fff;
  color: #312e32;

  font-size: 18px;

  cursor: pointer;

  transition: background .2s ease;
}

.csl-cart-quantity__button:hover {
  background: #f8f3f1;
}

.csl-cart-quantity input {
  width: 100%;
  height: 100%;

  padding: 0;

  border: 0;
  border-left: 1px solid #eee6e2;
  border-right: 1px solid #eee6e2;

  outline: 0;

  background: #fff;
  color: #28252b;

  text-align: center;

  font-size: 14px;

  appearance: textfield;
}

.csl-cart-quantity input::-webkit-inner-spin-button,
.csl-cart-quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.csl-cart-item__price {
  color: #28252b;

  font-size: 16px;
  font-weight: 600;
}


/* ========================================
   SUMMARY
======================================== */

.csl-cart-summary {
  position: sticky;
  top: 20px;

  padding: 26px;
}

.csl-cart-summary h2 {
  margin-bottom: 22px;
}


/* ========================================
   COUPON
======================================== */

.csl-cart-coupon {
  padding-bottom: 22px;

  border-bottom: 1px solid #f0e9e6;
}

.csl-cart-coupon label {
  display: block;
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 500;

  color: #302d31;
}

.csl-cart-coupon__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.csl-cart-coupon__form input {
  width: 100%;
  height: 46px;

  padding: 0 14px;

  border: 1px solid #e9dfdb;
  border-radius: 9px;

  background: #fff;

  outline: 0;

  box-sizing: border-box;

  font-size: 14px;
}

.csl-cart-coupon__form input:focus {
  border-color: #b57769;
}

.csl-cart-coupon__form button {
  height: 46px;

  padding: 0 17px;

  border: 1px solid #b57769;
  border-radius: 9px;

  background: #fff;
  color: #b57769;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background .2s ease,
    color .2s ease;
}

.csl-cart-coupon__form button:hover {
  background: #b57769;
  color: #fff;
}

.csl-cart-coupons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 12px;
}

.csl-cart-coupon-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 7px 10px;

  border-radius: 7px;

  background: #f8f2f0;

  color: #a66f63;

  font-size: 12px;
  font-weight: 600;
}

.csl-cart-coupon-active button {
  padding: 0;

  border: 0;

  background: transparent;
  color: inherit;

  font-size: 17px;
  line-height: 1;

  cursor: pointer;
}


/* ========================================
   TOTALS
======================================== */

.csl-cart-totals {
  display: flex;
  flex-direction: column;
  gap: 13px;

  padding: 22px 0;
}

.csl-cart-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  color: #625b58;

  font-size: 14px;
}

.csl-cart-totals strong {
  color: #28252b;

  font-weight: 600;
  text-align: right;
}

.csl-cart-discount {
  color: #b57769 !important;
}

.csl-cart-delivery {
  max-width: 175px;

  color: #817976 !important;

  font-size: 12px;

  line-height: 1.35;
}

.csl-cart-total {
  margin-top: 5px;
  padding-top: 17px;

  border-top: 1px solid #eee5e1;

  font-size: 17px !important;
}

.csl-cart-total strong {
  font-size: 20px;
}


/* ========================================
   BUTTONS
======================================== */

.csl-cart-checkout,
.csl-cart-button {
  width: 100%;
  min-height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 20px;

  border: 1px solid #b57769;
  border-radius: 10px;

  box-sizing: border-box;

  background: #b57769;
  color: #fff !important;

  text-decoration: none !important;

  font-size: 14px;
  font-weight: 600;

  transition:
    background .2s ease,
    border-color .2s ease;
}

.csl-cart-checkout:hover,
.csl-cart-button:hover {
  background: #a66c60;
  border-color: #a66c60;
}

.csl-cart-continue {
  display: block;

  margin-top: 15px;

  color: #746c68;

  text-decoration: none;

  text-align: center;

  font-size: 13px;
}

.csl-cart-continue:hover {
  color: #b57769;
}


/* ========================================
   LOADING
======================================== */

.csl-cart-wrapper.is-loading {
  pointer-events: none;
}

.csl-cart-wrapper.is-loading::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 99;

  background: rgba(255, 255, 255, .58);
  border-radius: 18px;
}

.csl-cart-wrapper.is-loading::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  z-index: 100;

  width: 30px;
  height: 30px;

  margin: -15px 0 0 -15px;

  border: 3px solid #eadfdb;
  border-top-color: #b57769;
  border-radius: 50%;

  animation: csl-cart-spin .65s linear infinite;
}

@keyframes csl-cart-spin {
  to {
    transform: rotate(360deg);
  }
}


/* ========================================
   EMPTY
======================================== */

.csl-cart-empty {
  max-width: 600px;

  margin: 20px auto;

  padding: 60px 30px;

  border: 1px solid #eee5e1;
  border-radius: 18px;

  background: #fff;

  text-align: center;
}

.csl-cart-empty__icon {
  margin-bottom: 15px;

  font-size: 40px;
}

.csl-cart-empty h2 {
  margin: 0 0 10px;

  font-size: 24px;
}

.csl-cart-empty p {
  margin: 0 0 24px;

  color: #827a76;
}

.csl-cart-empty .csl-cart-button {
  width: auto;
  display: inline-flex;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .csl-cart {
    grid-template-columns: 1fr;
  }

  .csl-cart-summary {
    position: static;
  }
}


@media (max-width: 600px) {

  .csl-cart__products,
  .csl-cart-summary {
    padding: 18px;

    border-radius: 14px;
  }

  .csl-cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .csl-cart-item__image {
    width: 82px;
    height: 105px;
  }

  .csl-cart-item__bottom {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .csl-cart-quantity {
    align-self: flex-start;
  }

  .csl-cart-coupon__form {
    grid-template-columns: 1fr;
  }

  .csl-cart-coupon__form button {
    width: 100%;
  }
}