/* RC5 — cart presentation polish, scoped and mobile-safe. */
body.selora-my-carts-page {
  --mc-bg: #f8f9fc;
  --mc-line: #e8ebf3;
  --mc-brand: #333ed2;
  background: #f8f9fc;
}
body.selora-my-carts-page .carts-page-main { width: min(1240px, calc(100% - 36px)); padding-top: 28px; }
body.selora-my-carts-page .carts-hero { margin-bottom: 22px; }
body.selora-my-carts-page .carts-page-title { font-size: clamp(23px, 2.3vw, 30px); }
body.selora-my-carts-page .open-carts-list { gap: 20px; align-items: start; }
body.selora-my-carts-page .open-cart-card {
  padding: 22px; border-radius: 24px; background: #fff;
  box-shadow: 0 12px 36px rgba(28, 39, 83, .055);
  overflow: hidden;
}
/* No decorative blue stripe above shop cards. */
body.selora-my-carts-page .open-cart-card::before { content: none !important; display: none !important; }
body.selora-my-carts-page .open-cart-card__top { align-items: center; }
body.selora-my-carts-page .open-cart-card__shop-name { font-size: 15px; }
body.selora-my-carts-page .open-cart-card__items { padding: 10px; gap: 10px; background: #f7f8fb; }
body.selora-my-carts-page .open-cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "product remove" "quantity remove";
  gap: 8px 14px; align-items: center; padding: 14px;
  min-width: 0; border: 1px solid #edf0f6; border-radius: 17px;
  box-shadow: 0 3px 12px rgba(28, 39, 83, .035);
}
body.selora-my-carts-page .open-cart-item__link {
  grid-area: product; grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; min-width: 0;
}
body.selora-my-carts-page .open-cart-item__image-wrap { width: 58px; height: 58px; }
body.selora-my-carts-page .open-cart-item__title { font-size: 12.5px; }
body.selora-my-carts-page .open-cart-item__price { min-width: 90px; text-align: start; }
body.selora-my-carts-page .open-cart-item__price strong { font-size: 12px; }
body.selora-my-carts-page .open-cart-quantity-actions {
  grid-area: quantity; display: inline-flex; align-items: center;
  justify-self: start; gap: 0; margin: 0; padding: 3px;
  width: max-content; min-width: 0; border: 1px solid #e1e5f0;
  border-radius: 12px; background: #f8f9fc;
}
body.selora-my-carts-page .open-cart-quantity-actions button {
  display: grid; place-items: center; flex: 0 0 36px;
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  margin: 0; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: #333ed2; font: inherit; font-size: 19px;
  font-weight: 800; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
body.selora-my-carts-page .open-cart-quantity-actions button:hover:not(:disabled),
body.selora-my-carts-page .open-cart-quantity-actions button:focus-visible {
  background: #e9ebff; outline: none;
}
body.selora-my-carts-page .open-cart-quantity-actions button:disabled { color: #a7aec3; cursor: not-allowed; }
body.selora-my-carts-page .open-cart-item__remove {
  grid-area: remove; align-self: center; justify-self: center;
  width: 38px; height: 38px; border-radius: 12px;
}
body.selora-my-carts-page .open-cart-card__meta { background: #fafbfe; border-radius: 14px; }
body.selora-my-carts-page .open-cart-card__actions { padding-top: 18px; }
body.selora-my-carts-page .open-cart-card__continue,
body.selora-my-carts-page .open-cart-card__shop-link { min-height: 48px; border-radius: 13px; }
body.selora-my-carts-page .open-cart-card__continue { background: #333ed2; box-shadow: none; }
body.selora-my-carts-page .open-cart-card__continue:hover { background: #2733b4; box-shadow: none; }
@media (max-width: 720px) {
  body.selora-my-carts-page .carts-page-main { width: calc(100% - 24px); padding: 22px 0 108px; }
  body.selora-my-carts-page .open-carts-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.selora-my-carts-page .open-cart-card { padding: 14px; border-radius: 20px; }
  body.selora-my-carts-page .open-cart-card__items { padding: 7px; }
  body.selora-my-carts-page .open-cart-item { padding: 10px; gap: 8px; }
  body.selora-my-carts-page .open-cart-item__link { grid-template-columns: 46px minmax(0,1fr); gap: 8px; }
  body.selora-my-carts-page .open-cart-item__image-wrap { width: 46px; height: 46px; }
  body.selora-my-carts-page .open-cart-item__price { grid-column: 2; min-width: 0; }
  body.selora-my-carts-page .open-cart-quantity-actions button {
    width: 34px; height: 34px; min-width: 34px; min-height: 34px; flex-basis: 34px;
  }
  body.selora-my-carts-page .open-cart-card__actions { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 370px) {
  body.selora-my-carts-page .open-cart-item { grid-template-columns: minmax(0,1fr) 32px; }
  body.selora-my-carts-page .open-cart-item__title { font-size: 11.5px; }
  body.selora-my-carts-page .open-cart-item__remove { width: 32px; height: 32px; }
}

/* RC6 unified stepper: left-hand trash only on last unit. */
body.selora-my-carts-page .open-cart-item {
  grid-template-columns: minmax(0,1fr);
  grid-template-areas: "product" "quantity";
}
body.selora-my-carts-page .open-cart-quantity-actions {
  display: inline-grid; grid-template-columns: 36px 32px 36px;
  align-items: center; justify-items: center; direction: ltr;
}
body.selora-my-carts-page .open-cart-quantity-actions button,
body.selora-my-carts-page .open-cart-quantity-actions .open-cart-item__remove {
  display: grid; grid-area: auto; margin: 0; padding: 0;
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border: 0; border-radius: 9px; background: transparent;
  box-shadow: none; justify-self: center; align-self: center;
}
body.selora-my-carts-page .open-cart-quantity-actions .open-cart-item__remove {
  color: #d04a61;
}
body.selora-my-carts-page .open-cart-quantity-actions .open-cart-item__remove:hover { background: #ffeaed; }
body.selora-my-carts-page .open-cart-quantity-actions button[hidden] { display: none !important; }
body.selora-my-carts-page .open-cart-quantity-value {
  min-width: 26px; text-align: center; color: #243152;
  font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums;
}
@media (max-width:720px) {
  body.selora-my-carts-page .open-cart-quantity-actions { grid-template-columns: 34px 30px 34px; }
  body.selora-my-carts-page .open-cart-quantity-actions button,
  body.selora-my-carts-page .open-cart-quantity-actions .open-cart-item__remove {
    width: 34px; height: 34px; min-width: 34px; min-height: 34px;
  }
}
