.cart-drawer-upsell-product {
  position: relative;
  display: grid;
  width: 100%;
  margin-bottom: 20px;
  .upsell-header {
    h3 {
      font-size: 28px;
      line-height: 120%;
      margin-bottom: 14px;
    }
  }
  .upsell-content {
    display: flex;
    width: 100%;
    >div:first-child {
      flex: 0 0 30%;
      margin-right: 10px;
    }
    >div:last-child {
      flex: 0 0 65%;
    }
    .upsell__details {
      p {
        line-height: 110%;
        margin-top: 0;
        margin-bottom: 6px;
      }
      h2.title {
        margin: 0!important;
        padding: 0!important;
      }
      p .price {
        font-size: 16px;
        font-weight: 600;
      }
      p .compare-price {
        opacity: 50%;
        color: #FF0000;
        font-size: 19px;
        font-weight: 600;
        text-decoration: line-through;
      }
      p.small-caption {
        font-size: 12px;
        line-height: 120%;
      }
      .upsell-add__to__cart__button {
        button {
          height: 40px !important;
          min-height: 40px !important;
          width: 100%;
          font-size: 18px;
          svg {
            margin-left: 6px;
            margin-top: 4px;
          }
          &.loading-cart {
            cursor: progress;
            .add-btn-label {
              display: none;
            }
            .loading__spinner {
              display: flex !important;
              height: 100%;
              margin-right: 50px;
              margin-top: -6px;
            }
          }
        }
      }
    }
  }
}

.cart-drawer__shipping-protection-container {
  display: grid;
  position: relative;
  padding: 12px 16px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 16px;
  background-color: #D7E7FF;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzYiIGhlaWdodD0iNzgiIHZpZXdCb3g9IjAgMCA3NiA3OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy43MzM4IDY1LjAxMDhDMzAuMDE3NyA2Ny45MDI1IDQzLjUxNjIgNjIuMzQ3NCA1OS4wMDEyIDU4LjQ5NDFDNjAuNDg4NSA1OC4xMjQgNjEuOTQ1MiA1Ny43NDQgNj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WxsPSIjRkVGRUZFIi8+CjxwYXRoIGQ9Ik0yMy40ODUgMzYuNDY5NkMyMi44ODgyIDM3LjYzOTYgMjMuMzUwNyAzOS4wNzIyIDI0LjUyMDkgMzkuNjcxQzI1LjY5MTEgNDAuMjY5OCAyNy4xMjM0IDM5LjgwNTMgMjcuNzIyMyAzOC42MzUxQzI4LjMxOSAzNy40NjUgMjcuODU2NiAzNi4wMzI1IDI2LjY4NjMgMzUuNDMzN0MyNS41MTYzIDM0LjgzNyAyNC4wODM4IDM1LjI5OTQgMjMuNDg1IDM2LjQ2OTZaIiBmaWxsPSIjRkVGRUZFIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjk1MTFfMTIxNCI+CjxyZWN0IHdpZHRoPSIzMy40MDk3IiBoZWlnaHQ9IjEzLjczNzMiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09Im1hdHJpeCgwLjk5NDA4OCAtMC4xMDg1NzUgLTAuMTA4NTc1IC0wLjk5NDA4OCAxOS44NjExIDQxLjk0OSkiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K'); /* Replace with the actual image path */
  background-position: 13px calc(100% - -25px);
  background-repeat: no-repeat;
  background-size: 73px;

  .cart-drawer__shipping-protection-container-description {
    width: 100%;
    padding-right: 114px;
    .line--header,
    .line--footer {
      margin: 0;
      padding: 0 0 6px 0;
      font-size: 20px;
      line-height: 120%;
      font-weight: 600;
    }
    .line--footer {
      text-align: center;
      font-size: 16px;
      padding: 0 0 0 48px;
      span>svg {
        margin-bottom: -5px;
      }
    }
    p {
      font-size: 12px;
      font-weight: 400;
      line-height: 1.3rem;
      padding-bottom: 10px;
      margin: 0;
    }
  }
  .cart-drawer__shipping-protection-container-tickbox {
    position: absolute;
    display: grid;
    place-items: self-end;
    height: auto;
    width: 104px;
    right: 20px;
    top: 8px;
    .tick-price {
      font-size: 13px;
      font-weight: 600;
      line-height: 0.9rem;
      span.sec-sign { padding-right: 4px }
    }
    .tick-box {
      position: relative;
      width: 50px;
      height: 28px;
      margin-bottom: 12px;
    }

    .tick-box__input {
      display: inline-block;
      width: 100%;
      height: 100%;
      background-color: #e5e5e5;
      border-radius: 9999px;
      position: relative;
      transition: background-color 0.3s ease-in-out, box-shadow 0.2s ease-in-out;
      cursor: pointer;
      outline: none;
      &.loading {
        cursor: progress;
      }

      &.checked {
        background-color: #34c759;
        box-shadow: 0 0 5px rgba(52, 199, 89, 0.5);
        &::before {
          transform: translateX(22px);
        }
      }

      &::before {
        content: '';
        position: absolute;
        top: 4px;
        left: 4px;
        width: 20px;
        height: 20px;
        background-color: #ffffff;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
    }
  }
}

.cart-drawer__ctas {
  flex-direction: column !important;
  position: relative;
  .totals__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    position: relative;
    width: 100%;
    h3, p {
      margin: 0;
      width: 100%;
    }
    h3 { font-size: 20px;  font-weight: 400; text-align: left; }
    p {
      font-size: 12px;
      .total-ant {
        font-size: 20px;
        font-weight: 600;
        color: #0D0A0B;
      }
    }
  }
  .money-back-guarantee-desc {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    span>svg {
      margin-bottom: -6px;
    }
  }
  button {
    width: 100% !important;
  }
}

.cart-drawer:not(.is-empty) .drawer__footer {
  padding: 1rem 2rem !important;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

@media only screen and (max-width: 768px) {
  .cart-drawer-upsell-product {
    & .upsell-content {
      & .upsell__details {
        & h2.title {
          font-size: 100%;
        }
        & p .price {
          font-size: 90% !important;
        }
        & p .compare-price {
          font-size: 86% !important;
        }
        & .upsell-add__to__cart__button {
          & button {
            height: 35px !important;
            min-height: 35px !important;
            font-size: 16px;
          }
        }
      }
    }
  }
  .cart-drawer__shipping-protection-container {
    .cart-drawer__shipping-protection-container-description {
      padding-right: 72px;
      .line--footer {
        font-size: 13px;
        padding: 0 0 0 58px;
      }
    }
  }
}
