/** Shopify CDN: Minification failed

Line 32:26 Expected identifier but found whitespace
Line 32:28 Unexpected "{"
Line 32:38 Expected ":"
Line 33:29 Expected identifier but found whitespace
Line 33:31 Unexpected "{"
Line 33:41 Expected ":"
Line 34:29 Expected identifier but found whitespace
Line 34:31 Unexpected "{"
Line 34:41 Expected ":"
Line 35:27 Expected identifier but found whitespace
... and 2 more hidden warnings

**/
:root {
  --cart-drawer-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --cart-drawer-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  --cart-drawer-border-radius: 0;
}

cart-drawer-modern {
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5000;
  --drawer-width: 420px;
  
  /* Cart Drawer Footer Font Sizes - From Shopify Settings */
  --cart-drawer-text-size: {{ settings.cart_drawer_text_size | default: 12 | append: 'px' }};
  --cart-drawer-heading-size: {{ settings.cart_drawer_heading_size | default: 14 | append: 'px' }};
  --cart-drawer-primary-size: {{ settings.cart_drawer_primary_size | default: 16 | append: 'px' }};
  --cart-drawer-small-size: {{ settings.cart_drawer_small_size | default: 12 | append: 'px' }};
  
  display: none;
}

cart-drawer-modern.is--open {
  pointer-events: auto;
  display: block;
}

cart-drawer-modern .cart-drawer__backdrop {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1;
  transition: opacity var(--cart-drawer-transition), 
              visibility var(--cart-drawer-transition),
              backdrop-filter var(--cart-drawer-transition);
}

cart-drawer-modern.is--open .cart-drawer__backdrop {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cart-drawer__blocks {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--drawer-width);
  background-color: rgb(var(--color-background));
  z-index: 2;
  transform: translateX(100%);
  transition: transform var(--cart-drawer-transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--cart-drawer-shadow);
  border-radius: var(--cart-drawer-border-radius);
  will-change: transform;
}

cart-drawer-modern[data-position='right'] .cart-drawer__blocks {
  right: 0;
  left: auto;
  transform: translateX(100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

cart-drawer-modern[data-position='left'] .cart-drawer__blocks {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

cart-drawer-modern.is--open .cart-drawer__blocks {
  pointer-events: auto;
  transform: translateX(0);
}

/* Mobile Optimizations */
@media screen and (max-width: 749px) {
  .cart-drawer__blocks {
    max-width: 100%;
  }
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.06);
}

.cart-drawer__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: var(--drawer-title-size, 1.375rem);
  font-weight: var(--drawer-title-weight, 600);
  letter-spacing: -0.025em;
}

.cart-drawer__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background-color: rgba(var(--color-foreground), 0.08);
  color: rgba(var(--color-foreground), 0.8);
  border-radius: 0.375rem;
  font-size: var(--drawer-count-size, 0.75rem);
  font-weight: var(--drawer-count-weight, 500);
}

.cart-drawer__blocks .button--close {
  background-color: transparent;
  border-color: transparent;
  cursor: pointer;
  padding: 0.8rem;
}

.cart-drawer__blocks .button--close svg {
  color: initial;
  width: 1.6rem;
  height: 1.6rem;
}

.cart-drawer__blocks .button--close svg path {
  stroke: rgb(var(--color-foreground));
}

.cart-drawer__shipping-progress {
  padding: 0 2rem 1.5rem;
  text-align: center;
}

.shipping-progress__text {
  font-size: var(--cross-sell-subtitle-size, 14px);
  margin-bottom: 1rem;
  color: rgba(var(--color-foreground), 0.6);
  font-weight: var(--cross-sell-subtitle-weight, 400);
}

.shipping-progress__complete {
  color: #059669;
  font-weight: var(--product-title-weight, 500);
}

.cart-drawer__main {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 2rem;
}

.cart-drawer__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.empty-state__icon {
  color: rgba(var(--color-foreground), 0.15);
  margin-bottom: 2rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.empty-state:hover .empty-state__icon {
  color: rgba(var(--color-foreground), 0.25);
  transform: scale(1.05);
}

.empty-state__title {
  font-size: var(--empty-title-size, 1.125rem);
  font-weight: var(--empty-title-weight, 500);
  margin: 0 0 0.5rem;
  color: rgba(var(--color-foreground), 0.8);
}

.empty-state__text {
  color: rgba(var(--color-foreground), 0.5);
  margin: 0 0 2rem;
  font-size: var(--empty-text-size, 0.875rem);
}

.cart-drawer__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.04);
  position: relative;
  align-items: flex-start;
  min-height: 120px;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__media {
  flex-shrink: 0;
  width: 80px;
  height: 120px;
  overflow: hidden;
  background-color: rgba(var(--color-foreground), 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(var(--color-foreground), 0.08);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.3s ease;
}

.cart-item__media:hover img {
  transform: scale(1.05);
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  min-height: 120px; /* Match desktop image height */
}

.cart-item__vendor {
  font-size: calc(var(--product-title-size, 14px) * 0.85);
  color: rgba(var(--color-foreground), 0.6);
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item__sku {
  font-size: calc(var(--product-title-size, 14px) * 0.85);
  color: rgba(var(--color-foreground), 0.5);
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-item__sku-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cart-item__sku-value {
  font-family: monospace;
  font-weight: 500;
}

.cart-item__name {
  font-size: var(--product-title-size, 14px);
  font-weight: var(--product-title-weight, 500);
  margin: 0 0 0.25rem;
  line-height: 1.4;
  color: rgb(var(--color-foreground));
  letter-spacing: -0.01em;
}

.cart-item__variant {
  display: block;
  font-size: calc(var(--product-title-size, 14px) * 0.9);
  color: rgba(var(--color-foreground), 0.6);
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.4;
  opacity: 0.8;
}

.cart-item__sku {
  font-size: calc(var(--product-title-size, 14px) * 0.85);
  color: rgba(var(--color-foreground), 0.5);
  font-weight: 400;
  margin: 0.3rem 0 0;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-family: 'Courier New', monospace;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.cart-item__quantity {
  display: inline-flex;
  align-items: center;
  background-color: rgba(var(--color-foreground), 0.03);
  border-radius: 1.5rem;
  height: 2rem;
  overflow: hidden;
}

.quantity__button {
  width: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(var(--color-foreground), 0.6);
  transition: all 0.15s ease;
  font-size: var(--quantity-size, 0.875rem);
  font-weight: 400;
}

.quantity__button:hover {
  color: rgb(var(--color-foreground));
  background-color: rgba(var(--color-foreground), 0.06);
}

.quantity__display {
  min-width: 1.5rem;
  text-align: center;
  font-size: var(--quantity-size, 0.938rem);
  font-weight: var(--quantity-weight, 500);
  color: rgb(var(--color-foreground));
}

.quantity__input {
  display: none;
}

.cart-item__price {
  font-size: var(--product-price-size, 16px);
  font-weight: var(--product-price-weight, 600);
  color: rgb(var(--color-foreground));
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.cart-item__price-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cart-item__price-original {
  font-size: calc(var(--product-price-size, 16px) * 0.85);
  color: rgba(var(--color-foreground), 0.5);
  text-decoration: line-through;
  font-weight: 400;
}

.cart-item__price-sale {
  font-size: var(--product-price-size, 16px);
  font-weight: var(--product-price-weight, 600);
  color: rgb(var(--color-base-error));
}

.cart-item__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  background: rgb(var(--color-base-error));
  color: #fff;
  font-size: calc(var(--product-price-size, 16px) * 0.7);
  font-weight: 600;
  border-radius: 3px;
  line-height: 1;
}

.cart-item__remove {
  position: absolute;
  top: 1.75rem;
  right: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(var(--color-foreground), 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  opacity: 0.6;
}

.cart-item:hover .cart-item__remove {
  opacity: 1;
}

.cart-item__remove:hover {
  color: black;
}

.cart-item__remove svg {
  transition: transform 0.3s ease;
}

.cart-item__remove:active {
  transform: scale(0.9) rotate(90deg);
}

.cart-drawer__footer {
  border-top: 1px solid rgba(var(--color-foreground), 0.06);
  padding: 1.3rem 1.5rem;
  background-color: rgba(var(--color-foreground), 0.01);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-drawer__footer[hidden] {
  display: none !important;
}

.cart-drawer__discount {
  margin-bottom: 0;
}

.discount-field {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.discount-input {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(var(--color-foreground), 0.15);
  border-radius: 0.4rem;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-size: var(--cart-drawer-text-size);
  transition: all 0.2s ease;
}

.discount-input:focus {
  outline: none;
  border-color: rgba(var(--color-foreground), 0.3);
  box-shadow: 0 0 0 3px rgba(var(--color-foreground), 0.05);
}

.discount-input::placeholder {
  color: rgba(var(--color-foreground), 0.5);
}

.discount-button {
  padding: 0.65rem 1.2rem;
  background-color: rgba(var(--color-foreground), 0.08);
  color: rgb(var(--color-foreground));
  border: 1px solid rgba(var(--color-foreground), 0.15);
  border-radius: 0.4rem;
  font-size: var(--cart-drawer-text-size);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.discount-button:hover {
  background-color: rgba(var(--color-foreground), 0.12);
  border-color: rgba(var(--color-foreground), 0.2);
}

.discount-message {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  font-size: var(--cart-drawer-text-size);
  font-weight: 500;
  transition: all 0.2s ease;
}

.discount-message.success {
  background: rgba(var(--color-base-success), 0.1);
  border: 1px solid rgba(var(--color-base-success), 0.3);
  color: rgb(var(--color-base-success));
}

.discount-message.error {
  background: rgba(var(--color-base-error), 0.1);
  border: 1px solid rgba(var(--color-base-error), 0.3);
  color: rgb(var(--color-base-error));
}

/* Applied Discount Tags - Modern tag-based design */
.applied-discounts {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: linear-gradient(135deg, rgba(var(--color-base-success), 0.1), rgba(var(--color-base-success), 0.05));
  border: 1px solid rgba(var(--color-base-success), 0.25);
  border-radius: 4px;
  font-size: var(--cart-drawer-text-size);
  font-weight: 500;
  color: rgb(var(--color-base-success));
  transition: all 0.2s ease;
}

.discount-tag__code {
  letter-spacing: 0.3px;
  font-weight: 600;
}

.discount-tag__remove {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
  color: rgb(var(--color-base-success));
  opacity: 0.7;
}

.discount-tag__remove:hover {
  opacity: 1;
  background: rgba(var(--color-base-success), 0.15);
  transform: scale(1.1);
}

.discount-tag__remove svg {
  display: block;
  width: 9px;
  height: 9px;
}

.cart-drawer__totals {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem 1rem;
  margin: 0;
  background: rgba(var(--color-foreground), 0.03);
  border-radius: 8px;
  border: none;
}

.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--cart-drawer-text-size);
  color: rgba(var(--color-foreground), 0.75);
}

.cart-drawer__subtotal span:first-child {
  font-weight: 500;
}

.cart-drawer__subtotal span:last-child {
  font-weight: 600;
  color: rgb(var(--color-foreground));
  font-size: var(--cart-drawer-heading-size);
}

.cart-drawer__discounts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cart-drawer__discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(var(--color-base-success), 0.06);
  border: 1px solid rgba(var(--color-base-success), 0.2);
  border-radius: 5px;
  transition: all 0.2s ease;
}

.cart-drawer__discount-item:hover {
  background: rgba(var(--color-base-success), 0.08);
  border-color: rgba(var(--color-base-success), 0.25);
}

.discount__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(var(--color-foreground), 0.85);
  font-weight: 500;
  flex-wrap: wrap;
  font-size: var(--cart-drawer-text-size);
}

.discount-code-name {
  font-weight: 600;
  color: rgb(var(--color-foreground));
  letter-spacing: 0.02em;
}

.discount__percentage {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  background: rgba(var(--color-base-success), 0.12);
  border-radius: 3px;
  font-size: var(--cart-drawer-small-size);
  color: rgb(var(--color-base-success));
  font-weight: 600;
  margin-left: 0;
}

.discount__amount {
  color: rgb(var(--color-base-success));
  font-weight: 700;
  font-size: var(--cart-drawer-heading-size);
  letter-spacing: -0.02em;
}

.discount__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 0.8rem;
  background: rgba(var(--color-foreground), 0.06);
  border: 1px solid rgba(var(--color-foreground), 0.1);
  border-radius: 50%;
  color: rgba(var(--color-foreground), 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.discount__remove:hover {
  background: rgba(var(--color-base-error), 0.12);
  border-color: rgba(var(--color-base-error), 0.3);
  color: rgb(var(--color-base-error));
  transform: scale(1.1);
}

.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(var(--color-foreground), 0.12);
  font-size: var(--cart-drawer-text-size);
  font-weight: 700;
  color: rgb(var(--color-foreground));
}

.cart-drawer__total span:last-child {
  font-size: var(--cart-drawer-primary-size);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-drawer__savings {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(var(--color-base-success), 0.12) 0%,
    rgba(var(--color-base-success), 0.06) 100%
  );
  border: 1.5px solid rgba(var(--color-base-success), 0.25);
  border-radius: 8px;
  color: rgb(var(--color-base-success));
  font-size: calc(var(--total-text-size, 16px) * 0.95);
  box-shadow: 0 2px 8px rgba(var(--color-base-success), 0.1);
}

.savings__text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.savings__amount {
  font-weight: 700;
  font-size: calc(var(--total-text-size, 16px) * 1.05);
}

.savings__percentage {
  font-weight: 600;
  opacity: 0.9;
}

.total__label {
  font-size: var(--total-text-size, 16px);
  font-weight: var(--total-text-weight, 600);
  color: rgba(var(--color-foreground), 0.8);
  letter-spacing: -0.01em;
}

.total__price {
  font-size: var(--total-text-size, 16px);
  font-weight: var(--total-text-weight, 600);
  color: rgb(var(--color-foreground));
  letter-spacing: -0.025em;
}

.checkout-button {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border: none;
  font-size: var(--cart-drawer-heading-size);
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.checkout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(var(--color-foreground), 0.15);
}

.checkout-button:active {
  transform: translateY(0);
}

.checkout-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-drawer__agreement {
  margin: 1rem 0;
}

.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--agreement-text-size, 0.875rem);
  line-height: 1.5;
}

.agreement-checkbox input[type='checkbox'] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

.agreement-text {
  color: rgba(var(--color-foreground), 0.75);
}

.agreement-text a {
  color: rgb(var(--color-foreground));
  text-decoration: underline;
}

.agreement-text a:hover {
  text-decoration: none;
}

.cart-drawer__buttons {
  display: flex;
  gap: 0.6rem;
  flex-direction: column;
}

.view-cart-button {
  width: 100%;
  background-color: transparent;
  color: rgb(var(--color-foreground));
  border: 1px solid rgba(var(--color-foreground), 0.2);
  padding: 0.8rem 1.5rem;
  font-size: var(--cart-drawer-text-size);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
}

.view-cart-button:hover {
  border-color: rgba(var(--color-foreground), 0.4);
  background-color: rgba(var(--color-foreground), 0.04);
}

@media (min-width: 768px) {
  .cart-drawer__buttons {
    flex-direction: row;
  }

  .checkout-button,
  .view-cart-button {
    flex: 1;
  }
}

.cart-item.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.cart-drawer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--color-background), 0.8);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(var(--color-foreground), 0.1);
  border-top: 2px solid rgb(var(--color-foreground));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes error-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.error-shake {
  animation: error-shake 0.5s ease-in-out;
}

.cart-item--removing {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.cart-item--adding {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-drawer__cross-sell-section {
  margin-top: 3rem;
}

.cross-sell__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.cross-sell__title {
  font-size: var(--cross-sell-title-size, 18px);
  font-weight: var(--cross-sell-title-weight, 600);
  margin: 0 0 0.25rem;
  color: rgb(var(--color-foreground));
  letter-spacing: -0.01em;
}

.cross-sell__subtitle {
  font-size: var(--cross-sell-subtitle-size, 14px);
  font-weight: var(--cross-sell-subtitle-weight, 400);
  color: rgba(var(--color-foreground), 0.6);
  margin: 0;
  opacity: 0.8;
}

.cross-sell__carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.cross-sell__carousel::-webkit-scrollbar {
  height: 2px;
}

.cross-sell__carousel::-webkit-scrollbar-track {
  background: transparent;
}

.cross-sell__carousel::-webkit-scrollbar-thumb {
  background: rgba(var(--color-foreground), 0.1);
  border-radius: 1px;
}

.cross-sell__card {
  flex: 0 0 auto;
  width: 120px;
  background: rgba(var(--color-foreground), 0.02);
  position: relative;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  border: 1px solid rgba(var(--color-foreground), 0.06);
}

.cross-sell__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(var(--color-foreground), 0.1);
  cursor: pointer;
}

a.cross-sell__image-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: rgba(var(--color-foreground), 0.02);
  text-decoration: none;
  transition: transform 0.2s ease;
}

a.cross-sell__image-wrapper:hover {
  transform: scale(1.02);
}

.cross-sell__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cross-sell__info {
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
 
a.cross-sell__product-title {
  font-size: var(--cross-sell-product-name-size, 12px);
  font-weight: var(--cross-sell-product-name-weight, 500);
  margin: 0 0 0.25rem;
  line-height: 1.2;
  color: rgb(var(--color-foreground));
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.cross-sell__product-title:hover {
  color: rgba(var(--color-foreground), 0.7);
  text-decoration: underline;
}

.cross-sell__price {
  font-size: var(--cross-sell-product-price-size, 14px);
  font-weight: var(--cross-sell-product-price-weight, 600);
  color: rgb(var(--color-foreground));
  letter-spacing: -0.01em;
}

.cross-sell__add-button {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  background: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cross-sell__add-button:hover:not(.is-loading) {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(var(--color-foreground), 0.25);
}

.cross-sell__add-button:active:not(.is-loading) {
  transform: scale(0.95);
}

.cross-sell__add-button.is-loading {
  pointer-events: none;
  transform: none !important;
  transition: none !important;
}

.cross-sell__add-button svg {
  transition: opacity 0.2s ease;
}

.cross-sell__add-button.is-loading svg {
  opacity: 0;
}

[id^='cart-drawer-cross-sell-spinner'].cross-sell__add-button.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: simple-spin 0.6s linear infinite;
}

@keyframes simple-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[id^='cart-drawer-cross-sell-spinner'].cross-sell__add-button.is-loading::after {
  animation: simple-spin 0.6s linear infinite !important;
  animation-duration: 0.6s !important;
  animation-iteration-count: infinite !important;
  animation-timing-function: linear !important;
  animation-play-state: running !important;
}

@media (prefers-reduced-motion: reduce) {
  [id^='cart-drawer-cross-sell-spinner'].cross-sell__add-button.is-loading::after {
    animation: simple-spin 0.6s linear infinite !important;
  }
}

@keyframes cart-cross-sell-spin {
  0% {
    transform: rotate(0deg) !important;
  }
  25% {
    transform: rotate(90deg) !important;
  }
  50% {
    transform: rotate(180deg) !important;
  }
  75% {
    transform: rotate(270deg) !important;
  }
  100% {
    transform: rotate(360deg) !important;
  }
}

@-webkit-keyframes cart-cross-sell-spin {
  0% {
    -webkit-transform: rotate(0deg) !important;
    transform: rotate(0deg) !important;
  }
  25% {
    -webkit-transform: rotate(90deg) !important;
    transform: rotate(90deg) !important;
  }
  50% {
    -webkit-transform: rotate(180deg) !important;
    transform: rotate(180deg) !important;
  }
  75% {
    -webkit-transform: rotate(270deg) !important;
    transform: rotate(270deg) !important;
  }
  100% {
    -webkit-transform: rotate(360deg) !important;
    transform: rotate(360deg) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  cart-drawer-modern #cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after {
    animation: cart-cross-sell-spin 0.8s linear infinite !important;
    animation-name: cart-cross-sell-spin !important;
    animation-duration: 0.8s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-direction: normal !important;
    animation-fill-mode: none !important;
    animation-play-state: running !important;
  }
}

.cross-sell__add-button.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

.cross-sell__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(var(--color-foreground), 0.5);
  font-size: var(--message-size, 0.875rem);
  line-height: 1.6;
}

.cross-sell__empty p {
  margin: 0 0 0.5rem;
  font-size: var(--message-size, 0.875rem);
  color: rgba(var(--color-foreground), 0.6);
}

.cross-sell__empty small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(var(--color-foreground), 0.5);
}

.cross-sell__empty strong {
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.7);
}

cart-drawer-modern #cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after,
#cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after {
  animation: cart-cross-sell-spin 0.8s linear infinite !important;
  animation-name: cart-cross-sell-spin !important;
  animation-duration: 0.8s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-direction: normal !important;
  animation-fill-mode: none !important;
  animation-play-state: running !important;
  transform: rotate(0deg) !important;
}

@media (prefers-reduced-motion: reduce) {
  cart-drawer-modern #cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after,
  #cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after {
    animation: cart-cross-sell-spin 0.8s linear infinite !important;
    animation-name: cart-cross-sell-spin !important;
    animation-duration: 0.8s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-direction: normal !important;
    animation-fill-mode: none !important;
    animation-play-state: running !important;
  }
}

* #cart-drawer-cross-sell-spinner.cross-sell__add-button.is-loading::after {
  animation: cart-cross-sell-spin 0.8s linear infinite !important;
  animation-duration: 0.8s !important;
  animation-iteration-count: infinite !important;
}

.cross-sell__card.is-removing {
  animation: fadeOutScale 0.3s ease forwards;
}

@keyframes fadeOutScale {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@media screen and (max-width: 749px) {
  .cart-drawer__blocks {
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .cross-sell__card {
    width: 90px;
  }

  .cross-sell__carousel {
    padding: 0 1.5rem 1rem;
    gap: 1rem;
  }

  .cross-sell__header {
    padding: 0 1.5rem;
  }

  .cross-sell__title {
    font-size: calc(var(--cross-sell-title-size, 18px) * 0.9);
  }

  .cross-sell__subtitle {
    font-size: calc(var(--cross-sell-subtitle-size, 14px) * 0.9);
  }

  .cart-drawer__header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
  }

  .cart-drawer__main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cart-drawer__footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: max(1.3rem, env(safe-area-inset-bottom));
  }

  .cart-drawer__shipping-progress {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cart-item__media {
    width: 70px;
    height: 105px; /* 70px * 1.5 = 105px for 2:3 ratio */
  }

  .cart-item__name {
    font-size: calc(var(--product-title-size, 14px) * 0.85);
  }
}

.cart-drawer__main::-webkit-scrollbar {
  width: 2px;
}

.cart-drawer__main::-webkit-scrollbar-track {
  background: transparent;
}

.cart-drawer__main::-webkit-scrollbar-thumb {
  background: rgba(var(--color-foreground), 0.1);
  border-radius: 1px;
}

.cart-drawer__main::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-foreground), 0.2);
}

.quantity__button:focus,
.checkout-button:focus,
.cart-item__remove:focus {
  outline: 2px solid rgba(var(--color-foreground), 0.2);
  outline-offset: 2px;
}

.cart-drawer__blocks .button--close:focus {
  outline: 2px solid rgba(var(--color-foreground), 0.2);
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .cart-drawer__blocks {
    border: 1px solid rgba(var(--color-foreground), 0.2);
  }

  .cart-item {
    border-bottom-color: rgba(var(--color-foreground), 0.15);
  }
}

.cart-drawer__error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin: 1rem 2rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: var(--message-size, 0.875rem);
  animation: slideDown 0.3s ease;
}

.cart-drawer__error svg {
  flex-shrink: 0;
}

.cart-drawer__error span {
  flex: 1;
}

.cart-drawer__error button {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #dc2626;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cart-drawer__error button:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
