.cart-widget-container {
  right: -440px;
  width: min(420px, 100vw);
  height: 100dvh;
  padding: 0;
  border-left: 0;
  background: #fff;
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.14);
}

.cart-widget-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100px;
  width: 100px;
  height: 100%;
  background: #fff;
}

.cart_widget {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 24px;
}

.cart_widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e8e8;
}

.cart_widget__header h3 {
  margin: 3px 0 0;
  font-size: 2.6rem;
  line-height: 1.1;
}

.cart_widget__eyebrow {
  color: #858585;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart_widget .cart_widget__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 10px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
}

.cart_widget__close img {
  width: 100%;
  height: 100%;
}

.cart_widget__content {
  flex: 1 1 auto;
  max-height: none;
  overflow: hidden;
}

.cart_widget__content_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 4px 14px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cart_widget__item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 30px;
  gap: 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #ededed;
}

.cart_widget__item_image {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: #f3f3f3;
}

.cart_widget__item_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart_widget__item_info {
  min-width: 0;
}

.cart_widget__item_name {
  display: block;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.cart_widget__item_meta,
.cart_widget__item_meta p,
.cart_widget__item_meta dt,
.cart_widget__item_meta dd {
  display: inline;
  margin: 0;
  color: #777;
  font-size: 1.2rem;
  line-height: 1.4;
}

.cart_widget__item_meta dd::after {
  content: " · ";
}

.cart_widget__item_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cart_widget__item_quantity {
  padding: 4px 8px;
  border-radius: 20px;
  color: #555;
  background: #f0f0f0;
  font-size: 1.2rem;
}

.cart_widget__item_price {
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.cart_widget .cart_widget__remove {
  align-self: start;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #777;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
}

.cart_widget .cart_widget__remove:hover {
  color: #fff;
  background: #222;
}

.cart_widget .cart_widget__remove.loading {
  opacity: 0.4;
  pointer-events: none;
}

.cart_widget__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 30px;
  text-align: center;
}

.cart_widget__empty_icon {
  font-size: 7rem;
  line-height: 0.8;
}

.cart_widget__empty strong {
  margin-top: 20px;
  font-size: 2rem;
}

.cart_widget__empty p {
  max-width: 260px;
  color: #777;
  font-size: 1.4rem;
}

.cart_widget__footer {
  flex: 0 0 auto;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.cart_widget__totals {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 1.8rem;
}

.cart_widget__totals strong {
  font-size: 2rem;
}

.cart_widget__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.cart_widget__actions:has(.continueShopping:only-child) {
  grid-template-columns: 1fr;
}

.cart_widget__actions .btn,
.cart_widget__actions .sec-btn {
  width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .cart-widget-container {
    right: -100vw;
    width: 100vw;
  }

  .cart_widget {
    padding: 18px 16px;
  }

  .cart_widget__item {
    grid-template-columns: 68px minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .cart_widget__actions {
    grid-template-columns: 1fr;
  }
}
