.mini-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

.mini-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}

.mini-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(540px, 96vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 34px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.mini-cart-drawer.is-open {
  pointer-events: auto;
}

.mini-cart-drawer.is-open .mini-cart-drawer__overlay {
  opacity: 1;
}

.mini-cart-drawer.is-open .mini-cart-drawer__panel {
  transform: translateX(0);
}

body.mini-cart-drawer-open {
  overflow: hidden;
}

.mini-cart-drawer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #111;
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
}

.mini-cart-drawer__header {
  padding: 22px 56px 18px 22px;
  border-bottom: 1px solid #eee;
}

.mini-cart-drawer__header h3 {
  margin: 0;
  color: #111;
  font-size: 24px;
  font-weight: 700;
}

#mini-cart-drawer-total {
  display: block;
  margin-top: 6px;
  color: #555;
  font-size: 14px;
}

.mini-cart-free-shipping {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  background: #fff;
}

.mini-cart-free-shipping[hidden] {
  display: none;
}

.mini-cart-free-shipping__text {
  margin-bottom: 10px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.mini-cart-free-shipping__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f2f2;
}

.mini-cart-free-shipping__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0618bb 0%, #f000c8 100%);
  transition: width .2s ease;
}

.mini-cart-free-shipping__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
}

.mini-cart-drawer__content {
  flex: 1;
  margin: 0;
  padding: 16px 18px;
  overflow-y: auto;
  list-style: none;
}

.mini-cart-drawer__content li {
  list-style: none;
}

.mini-cart-drawer__content table {
  width: 100%;
  margin-bottom: 12px;
}

.mini-cart-drawer__content img {
  max-width: 72px;
  height: auto;
  border-radius: 8px;
}

.mini-cart-drawer__content table.table-striped,
.mini-cart-drawer__content table.table-striped tbody,
.mini-cart-drawer__content table.table-striped tr,
.mini-cart-drawer__content table.table-striped td {
  display: block;
}

.mini-cart-drawer__content table.table-striped tr {
  position: relative;
  min-height: 116px;
  padding: 14px 158px 14px 92px;
  border-bottom: 1px solid #e6e6e6;
}

.mini-cart-drawer__content table.table-striped td {
  padding: 0;
  border: 0;
}

.mini-cart-drawer__content table.table-striped td:first-child {
  position: absolute;
  top: 14px;
  left: 0;
  width: 74px;
}

.mini-cart-drawer__content table.table-striped td:nth-child(2) {
  padding-right: 12px;
}

.mini-cart-drawer__content table.table-striped td:nth-child(3) {
  position: absolute;
  top: 12px;
  right: 48px;
  width: 106px;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.mini-cart-drawer__content table.table-striped td:nth-child(4) {
  position: absolute;
  right: 10px;
  bottom: 14px;
  width: 42px;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.mini-cart-drawer__content table.table-striped td:last-child {
  position: absolute;
  top: 14px;
  right: 8px;
  width: 38px;
}

.mini-cart-drawer__content table.table-striped .btn-danger {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 34px;
}

.mini-cart-qty {
  display: grid;
  grid-template-columns: 24px 34px 24px;
  align-items: center;
  gap: 4px;
}

.mini-cart-qty__btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.mini-cart-qty__btn:disabled {
  color: #bbb;
  cursor: default;
}

.mini-cart-qty__value {
  display: block;
  min-width: 34px;
  padding: 0 4px 4px;
  border-bottom: 1px solid #cfcfcf;
  color: #555;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.mini-cart-drawer__content .text-center {
  padding: 24px 0;
  color: #555;
}

.mini-cart-drawer__loading {
  padding: 24px 0;
  color: #555;
  text-align: center;
}

.mini-cart-drawer__actions {
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
  border-top: 1px solid #eee;
  background: #fff;
}

.mini-cart-drawer__checkout {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.mini-cart-drawer__checkout {
  border: 1px solid #0618bb;
  color: #fff;
  background: #0618bb;
}

.mini-cart-drawer__checkout:hover,
.mini-cart-drawer__checkout:focus {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .mini-cart-drawer__panel {
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
  }

  .mini-cart-drawer.is-open .mini-cart-drawer__panel {
    transform: translateY(0);
  }

  .mini-cart-drawer__header {
    padding-top: 20px;
  }
}
