.tl-sidecart {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tl-sidecart__trigger {
    background: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.tl-sidecart__badge {
        font-size: 12px;
    line-height: 1;
    min-width: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: .25rem;
    background: #e6e6e6;
    color: #1f274c;
    position: absolute;
    bottom: -5px;
    left: 10px;
}

/*.tl-sidecart__drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1050;
}*/

.tl-sidecart__drawer {
  position: fixed;
  inset: 0;
  display: block;              
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 1050;
}

/*.tl-sidecart__drawer.is-open {
    display: block;
}*/

.tl-sidecart__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tl-sidecart__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    border: 0;
    z-index: -1;
}



/*.tl-sidecart__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100%);
    background: #fff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .28s ease-in-out;
    display: flex;
    flex-direction: column;
}*/

.tl-sidecart__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  box-shadow: -6px 0 24px rgba(0,0,0,.12);
  transform: translate3d(100%, 0, 0);
  transition: transform .35s cubic-bezier(.22,.61,.36,1); /* easing “out” morbida */
  will-change: transform; /* performance hint */
  display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*.tl-sidecart__drawer.is-open .tl-sidecart__panel {
    transform: translateX(0);
}*/

.tl-sidecart__drawer.is-open .tl-sidecart__panel {
  transform: translate3d(0, 0, 0);
}

.tl-sidecart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.tl-sidecart__header .btn .material-icons {
    font-size: 14px;
    cursor: pointer;
}

.tl-sidecart__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 1rem 1.25rem;
}

.tl-sidecart__footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.tl-sidecart__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.tl-item_li {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: .75rem;
    align-items: center;
}

.tl-item__img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.tl-item__name {
    display: block;
    font-weight: 600;
}

.tl-item__attr {
    font-size: .875rem;
    color: #666;
}

.tl-item__qtyprice {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.tl-item__remove {
    background: none;
    border: 0;
    padding: .25rem;
    color: #888;
}

.tl-item__remove:hover {
    color: #000;
}

html.tl-sidecart-open,
body.tl-sidecart-open {
    overflow: hidden;
}

.tl-sidecart__totals{
    position: absolute;
    bottom: 100px;
        width: 90%;
}

.tl-sidecart__totals .line{
    display: flex;
    justify-content: space-between;
    width: 100%;
}


@media (max-width: 576px) {
  .tl-sidecart__panel {
    width: 100%;
    height: auto;
    max-height: 95vh;
    bottom: 0;
    top: 120px;
    right: 0;
    border-radius: 12px 12px 0 0;
    transform: translate3d(0, 100%, 0);
  }
  .tl-sidecart__drawer.is-open .tl-sidecart__panel {
    transform: translate3d(0, 0, 0);
  }
}
