/** Shopify CDN: Minification failed

Line 249:0 Expected "}" to go with "{"

**/
/* ================================
   CART DRAWER BASE
================================ */

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

.drawer {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(var(--color-foreground), 0.5);
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--duration-default) ease;
}

.drawer.active {
  visibility: visible;
  pointer-events: auto;
}

/* ================================
   OVERLAY
================================ */

.cart-drawer__overlay {
  position: fixed;
  inset: 0;
  background: transparent;
}

/* ================================
   DRAWER PANEL
================================ */

.drawer__inner {
  position: relative;
  height: 100%;
  width: 40rem;
  max-width: calc(100vw - 3rem);
  padding: 0 1.5rem;
  background: rgb(var(--color-background));
  border-left: 0.1rem solid rgba(var(--color-foreground), 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration-default) ease;
  overflow: hidden;
}

.drawer.active .drawer__inner {
  transform: translateX(0);
}

/* ================================
   HEADER
================================ */

.drawer__header {
  position: relative;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__heading {
  margin: 0;
}

.drawer__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.drawer__close .svg-wrapper {
  width: 2rem;
  height: 2rem;
}

/* ================================
   CONTENTS
================================ */

.drawer__contents {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

cart-drawer-items {
  flex: 1;
  overflow-y: auto;
}

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

.cart-drawer .cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
}

.cart-drawer .cart-item__media img {
  max-width: 8rem;
  height: auto;
  display: block;
}

.cart-drawer .cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-drawer .cart-item__quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* ================================
   FOOTER
================================ */

.drawer__footer {
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.2);
  padding: 1.5rem 0;
}

.cart-drawer .totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer .cart__checkout-button {
  width: 100%;
}

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

cart-drawer.is-empty .drawer__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

cart-drawer.is-empty .drawer__header {
  display: none;
}

/* ================================
   SCROLLBAR (SAFE)
================================ */

cart-drawer-items::-webkit-scrollbar {
  width: 3px;
}

cart-drawer-items::-webkit-scrollbar-thumb {
  background-color: rgba(var(--color-foreground), 0.6);
  border-radius: 100px;
}
/* Fix cart item title wrapping on mobile */
@media (max-width: 768px) {
  .cart-item__name {
    white-space: normal;
    word-break: normal;
    max-width: 100%;
  }

  .cart-item__details {
    grid-template-columns: 1fr auto;
  }
}
/* ===============================
   MOBILE CART TITLE FIX
================================ */

@media (max-width: 768px) {
  /* Force cart items to stack properly */
  .cart-item {
    grid-template-columns: 1fr !important;
  }

  /* Make sure text can flow normally */
  .cart-item__details,
  .cart-item__name {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  /* Prevent vertical letter stacking */
  .cart-item__name a {
    display: block;
    width: 100%;
  }

  /* Price alignment fix */
  .cart-item__price {
    text-align: left;
    margin-top: 0.5rem;
  }
}
/* ===============================
   REMOVE DUPLICATE LINE ITEM PRICE (MOBILE)
================================ */

@media (max-width: 768px) {
  /* Hide the lower-right line item price */
  .cart-item__price {
    display: none !important;
  }
/* =====================================
   REMOVE DUPLICATE LINE-ITEM PRICE (MOBILE)
===================================== */

@media (max-width: 768px) {
  /* hide the lower-right duplicate price */
  .cart-item__totals {
    display: none !important;
  }
}
