/* Shopping cart flow — Figma ShoppingCarts (2019:23009) */

.cart-page {
  background: #FFFFFF;
}

.cart-page .cart-hero {
  padding: 40px 0 0;
}
.cart-lines-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-lines-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 18px;
  border: 1px dashed #e4e4e7;
  border-radius: 12px;
  text-align: center;
}

.cart-lines-empty__text {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  line-height: 22px;
}

.cart-lines-empty__cta {
  text-decoration: none;
}

.cart-gifts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  scroll-margin-top: 148px;
}

.cart-gifts__title {
  margin: 0;
  color: #09090b;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

.cart-gifts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cart-page .cart-gift-product-card {
  gap: 0;
  height: 100%;
  padding: 6px;
  cursor: default;
}

.cart-page .cart-gift-product-card:hover {
  border-color: var(--color-border-soft);
  box-shadow: none;
}

.cart-page .cart-gift-product-card .product-media {
  aspect-ratio: 1 / 1;
}

.cart-page .cart-gift-product-card__body {
  flex: 1;
  gap: 0;
  min-height: 0;
  padding: 12px 10px 0;
}

.cart-page .cart-gift-product-card__hit {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cart-page .cart-gift-product-card__title {
  margin: 0;
  min-height: 44px;
  color: #27272a;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cart-page .cart-gift-product-card__title a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.cart-page .cart-gift-product-card__title a:hover {
  color: var(--color-discount);
}

.cart-page .cart-gift-product-card__meta {
  margin-top: auto;
  padding: 8px 10px 10px;
  border-top: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid #f4f4f6;
  font: inherit;
  direction: rtl;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add span {
  min-width: 0;
  color: #101114;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add i {
  color: #18191d;
  font-size: 18px;
  line-height: 1;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:hover,
.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:focus-visible {
  background: var(--color-black);
  border-color: var(--color-black);
  outline: none;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:hover span,
.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:hover i,
.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:focus-visible span,
.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-add:focus-visible i {
  color: #fff;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-added {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid #d8f0e2;
  background: #f3fbf6;
  color: #0f7a3c;
  font: inherit;
  direction: rtl;
  cursor: default;
  pointer-events: none;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-added span {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
}

.cart-page .cart-gift-product-card__meta > .cart-line-qty--gift-added i {
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.cart-page #cart_head_gifts_actions {
  display: contents;
}

.cart-line-title a {
  color: inherit;
  text-decoration: none;
}

.cart-line-title a:hover {
  text-decoration: underline;
}

.cart-line.is-updating {
  opacity: 0.55;
  pointer-events: none;
}
.cart-page .cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 382px);
  gap: 32px;
  align-items: start;
  max-width: var(--container-max);
  margin-inline: auto;
}

.cart-page .cart-layout--empty {
  grid-template-columns: minmax(0, 1fr);
}

.cart-page .cart-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

/* Cart step only — title vs «مشاهده محصولات اشانتیون» */
.cart-page .cart-head:has(.cart-head-gifts-link) {
  justify-content: space-between;
}

.cart-page .cart-head-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-page .cart-head-gifts-link--mobile {
  display: none;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
}

.cart-page .cart-head-gifts-link--mobile .cart-head-gifts-link__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.cart-page .cart-head-gifts-link--mobile[aria-expanded='true'] .cart-head-gifts-link__chevron {
  transform: rotate(180deg);
}

.cart-page .cart-gifts-collapse {
  display: none;
}

.cart-page .cart-gifts-carousel {
  margin-top: 12px;
}

.cart-page .cart-gifts-swiper .swiper-slide {
  width: 168px;
  height: auto;
}

.cart-page .cart-gifts-swiper .cart-gift-product-card {
  height: 100%;
}

.cart-page .cart-gifts-carousel--static .swiper-wrapper {
  transform: none !important;
}

.cart-page .cart-gifts-carousel--static .swiper-slide {
  width: 100%;
  max-width: 220px;
}

.cart-page .cart-head h1 {
  margin: 0;
  color: #09090b;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.cart-page .cart-head-gifts-link {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border-color: #e4e4e7;
  background: #fff;
  color: #27272a;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.cart-page .cart-head-gifts-link:hover,
.cart-page .cart-head-gifts-link:focus-visible {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #09090b;
  outline: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.cart-page .cart-head-back {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-heading);
}

.cart-page .cart-head-back img {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.cart-lines-alerts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-lines-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 22px;
  text-align: right;
}

.cart-lines-alert .btn-close {
  margin: 0;
  padding: 0.5rem;
}

.cart-lines-alert-text {
  flex: 1;
  min-width: 0;
}

.cart-line {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  background: #fff;
  overflow: hidden;
}

.cart-line--has-notice {
  border-color: rgba(255, 193, 7, 0.45);
}

.cart-line--unavailable {
  border-color: rgba(220, 53, 69, 0.35);
}

.cart-line-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

.cart-line-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  min-height: 184px;
  padding: 6px;
}

.cart-line--unavailable .cart-line-media img {
  filter: grayscale(0.25);
}

.cart-line-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.cart-line-pricing--unavailable {
  flex-shrink: 0;
}

.cart-line-pricing-offset {
  width: 100%;
  height: 26px;
  margin-bottom: 6px;
}

.cart-line-unavailable-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  white-space: nowrap;
}

.cart-line-side--unavailable {
  align-self: center;
  justify-content: center;
}

.cart-line-remove {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 116px;
  min-width: 116px;
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid #f4f4f6;
  border-radius: 999px;
  background: #f4f4f6;
  color: #18191d;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}

.cart-line-remove img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.cart-line-remove:focus-visible {
  outline: 2px solid #18191d;
  outline-offset: 2px;
}

.cart-line-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 172px;
  height: 172px;
  border-radius: 0;
  background: #fff;
  border-left: 1px solid var(--color-border-soft);
  overflow: hidden;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-line-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 0;
  padding: 14px 32px 14px 24px;
}

.cart-line-body .cart-line-info {
  min-width: 0;
}

.cart-line-body .cart-line-title {
  word-break: break-word;
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  justify-content: flex-start;
}

.cart-line-rating {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--color-placeholder);
  font-size: 12px;
  line-height: 18px;
}

.cart-line-rating .product-stars {
  display: inline-flex;
  gap: 2px;
  color: #facc15;
  font-size: 16px;
}

.cart-line-title {
  margin: 0;
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.cart-line-purchase-point {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: -4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--color-bg-elevated);
  color: var(--color-placeholder);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.cart-line-purchase-points {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-top: -2px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 1000px;
  background:
    linear-gradient(180deg, #fffaf3 0%, #fff5e8 100%) padding-box,
    linear-gradient(180deg, #f2a54d 0%, #f6c489 52%, #fdd1a2 100%) border-box;
  box-shadow:
    0 0 8px rgba(255, 162, 54, 0.1),
    0 1px 4px rgba(180, 83, 9, 0.06);
}

.cart-line-purchase-points__coin {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(180, 83, 9, 0.2));
}

.cart-line-purchase-points__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #52525b;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: right;
}

.cart-line-purchase-points__amount {
  margin: 0 2px;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.cart-line-subtitle {
  margin: 0;
  color: var(--color-placeholder);
  font-size: 12px;
  line-height: 18px;
  text-align: right;
}

.cart-line-attrs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.cart-line-attr {
  padding: 3px 12px;
  border: 1px solid var(--color-border-elevated);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text);
  font-size: 14px;
  line-height: 20px;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  width: 156px;
}

.cart-line-price-old-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.cart-line-price-old-rows .price-old-row {
  margin-bottom: 0;
}

.cart-line-price-old-rows .price-old-row--club-mid {
  margin-top: -2px;
}

.cart-line-price-old-rows--both .price-old-row--club-mid {
  margin-top: 0;
}

@media (min-width: 992px) {
  .cart-line-price-old-rows--both {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    row-gap: 4px;
  }

  .cart-line-price-old-rows--both .price-old-row {
    margin-bottom: 6px;
    width: auto;
    flex: 0 1 auto;
  }
}

.cart-line-pricing .price-old-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  justify-content: flex-start;
}

.cart-line-pricing .badge-off:not(.badge-off--club-tier) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 20px;
  padding: 4px 6px 0;
  border: 0.688px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 4px;
}

.cart-line-pricing .badge-off.badge-off--club-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 20px;
  padding: 4px 6px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 4px;
}

.cart-line-pricing .price-strike {
  color: var(--color-placeholder);
  font-size: 14px;
  line-height: 20px;
  text-decoration: line-through;
}

.cart-line-pricing .price-now {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.cart-line-pricing .price-now small {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

/* Cart page stepper — same pattern as header dropdown, ~2 steps larger */
.cart-line-qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 116px;
  min-width: 116px;
  padding: 4px 6px;
  border: 1px solid #f4f4f6;
  border-radius: 999px;
  background: #f4f4f6;
  direction: ltr;
}

.cart-line-qty button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f4f6;
  color: #18191d;
  cursor: pointer;
}

.cart-line-qty button i {
  font-size: 18px;
}

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

.cart-line-qty button img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.cart-line-qty > span {
  min-width: 18px;
  color: #101114;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* Payment summary sidebar — Figma 2019:22782 */
.cart-summary {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 382px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e4e4e7;
  border-radius: 32px;
  background: #f4f4f5;
}

.cart-summary-mount {
  width: 100%;
  max-width: 382px;
  min-width: 0;
}

.cart-summary-mount > .cart-summary {
  width: 100%;
  max-width: none;
}

.cart-summary-mount.is-loading {
  pointer-events: none;
}

.cart-summary-skeleton-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-summary-skeleton-line {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e4e4e7 0%, #f4f4f5 50%, #e4e4e7 100%);
  background-size: 200% 100%;
  animation: cart-summary-shimmer 1.2s ease-in-out infinite;
}

.cart-summary-skeleton-line--short {
  width: 62%;
}

.cart-summary-loading-text {
  margin: 16px 0 0;
  color: #71717a;
  font-size: 13px;
}

@keyframes cart-summary-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (min-width: 992px) {
  .cart-page .cart-layout > .cart-summary,
  .cart-page .cart-layout > [data-cart-summary-desktop] {
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px - 24px);
    overflow: hidden;
  }

  .cart-page .cart-layout > .cart-summary > .cart-summary-inner,
  .cart-page .cart-layout > [data-cart-summary-desktop] > .cart-summary {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .cart-page .cart-layout > .cart-summary > .cart-summary-inner,
  .cart-page .cart-layout > [data-cart-summary-desktop] > .cart-summary > .cart-summary-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.cart-summary-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  padding: 0;
}

.cart-summary h2 {
  margin: 0;
  color: #09090b;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-align: right;
}

.cart-summary-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 0;
}

.cart-summary-row-label {
  flex: 1 1 auto;
  min-width: 0;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cart-summary-row-value {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  color: #27272a;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.cart-summary-row-value small {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.cart-summary-row-value del {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a1a1aa;
  font-weight: 500;
  text-decoration: line-through;
}

.cart-summary-row-value strong {
  color: #00a155;
  font-weight: 700;
}

.cart-summary-row--savings,
.cart-summary-row--savings .cart-summary-row-label,
.cart-summary-row--savings .cart-summary-row-value {
  color: #00a155;
}

/* Club tier savings — palette matches account + club-landing (--club-*) */
.cart-summary-row--special-tier {
  --cst-accent: var(--club-special);
  --cst-deep: var(--club-special-text);
  --cst-soft: var(--club-special-soft);
  --cst-mid: #dbeafe;
  --cst-border: color-mix(in srgb, var(--club-special) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-special) 14%, transparent);
  margin-block: 4px 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--cst-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cst-soft) 88%, #fff) 0%, #f8fafc 50%, var(--cst-mid) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 6px 18px var(--cst-glow);
}

.cart-summary-row--club-tier--bronze {
  --cst-accent: var(--club-gold-text);
  --cst-deep: var(--club-gold-pill-text);
  --cst-soft: var(--club-bronze-soft);
  --cst-mid: #ffedd5;
  --cst-border: color-mix(in srgb, var(--club-bronze) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-bronze) 14%, transparent);
}

.cart-summary-row--club-tier--silver {
  --cst-accent: var(--club-silver-text);
  --cst-deep: #374151;
  --cst-soft: var(--club-silver-soft);
  --cst-mid: #e5e7eb;
  --cst-border: color-mix(in srgb, var(--club-silver) 26%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-silver) 12%, transparent);
}

.cart-summary-row--club-tier--gold {
  --cst-accent: var(--club-gold-text);
  --cst-deep: var(--club-gold-pill-text);
  --cst-soft: var(--club-gold-soft);
  --cst-mid: #fef9c3;
  --cst-border: color-mix(in srgb, var(--club-gold) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-gold) 14%, transparent);
}

.cart-summary-row--club-tier--special {
  --cst-accent: var(--club-special);
  --cst-deep: var(--club-special-text);
  --cst-soft: var(--club-special-soft);
  --cst-mid: #dbeafe;
  --cst-border: color-mix(in srgb, var(--club-special) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-special) 14%, transparent);
}

.cart-summary-row--special-tier .cart-summary-row-label {
  color: var(--cst-deep);
  font-weight: 700;
}

.cart-summary-row--special-tier .cart-summary-row-value {
  color: var(--cst-accent);
  font-weight: 800;
}

.cart-summary-row--special-tier .cart-summary-row-value small {
  color: var(--cst-deep);
  font-weight: 600;
  opacity: 0.88;
}

.cart-summary-row--special-tier .cart-summary-percent {
  color: var(--cst-deep);
  font-weight: 700;
}

.cart-summary-percent {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cart-summary-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid #C9C9C9;
}

/* Figma 2019:22799 — discount code input */
.cart-summary-discount {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 8px;
}

.cart-summary-discount-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 24px;
  padding-inline-end: 4px;
}

.cart-summary-discount-label label {
  margin: 0;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
  white-space: nowrap;
}

.cart-summary-discount-field {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding-inline-end: 20px;
  border: 1px solid #d4d4d8;
  border-radius: 1000px;
  background: #fff;
  overflow: hidden;
  direction: ltr;
}

.cart-summary-discount-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #27272a;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
  direction: rtl;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.cart-summary-discount-field input:focus,
.cart-summary-discount-field input:focus-visible {
  outline: none;
  box-shadow: none;
}

.cart-summary-discount-field input::placeholder {
  color: #a1a1aa;
}

.cart-summary-discount-field:focus-within {
  border-color: #a1a1aa;
}

.cart-summary-discount-field button {
  flex: 0 0 auto;
  align-self: stretch;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #e4e4e7;
  border-radius: 1000px 0 0 1000px;
  background: #f4f4f5;
  color: #a1a1aa;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.cart-summary-discount-field button:focus,
.cart-summary-discount-field button:focus-visible {
  outline: none;
  box-shadow: none;
}

.cart-summary-discount-field button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cart-summary-discount-message {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
}

.cart-summary-discount-message.is-error {
  color: #dc2626;
}

.cart-summary-discount-message.is-success {
  color: #16a34a;
}

.cart-summary-row--coupon .cart-summary-row-value {
  color: #16a34a;
}

.cart-summary-total .cart-summary-row-label {
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cart-summary-total .cart-summary-row-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.cart-summary-total .cart-summary-row-value del {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: line-through;
}

.cart-summary-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 1000px;
  background: #020617;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-decoration: none;
  cursor: pointer;
}

button.cart-summary-submit {
  appearance: none;
}

.cart-summary-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-summary-note--muted {
  color: var(--color-placeholder);
}

.cart-summary-note--info {
  color: #52525b;
}

.cart-summary-note--info img {
  opacity: 0.85;
}

.cart-summary-note--muted img {
  opacity: 0.55;
  filter: grayscale(1);
}

.cart-summary-note span {
  width: 100%;
}

.cart-summary-note img,
.cart-summary-note i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.cart-summary-sheet-purchase-points {
  margin-top: 12px;
}

.cart-summary-purchase-points {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 1000px;
  background:
    linear-gradient(180deg, #fffaf3 0%, #fff5e8 100%) padding-box,
    linear-gradient(180deg, #f2a54d 0%, #f6c489 52%, #fdd1a2 100%) border-box;
  box-shadow:
    0 0 10px rgba(255, 162, 54, 0.12),
    0 2px 6px rgba(180, 83, 9, 0.06);
}

.cart-summary-purchase-points__coin {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(180, 83, 9, 0.2));
}

.cart-summary-purchase-points__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-summary-purchase-points__amount {
  margin: 0 2px;
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.cart-mobile-checkout-stack .cart-summary-purchase-points {
  padding: 8px 12px;
  border-radius: 14px;
}

.cart-mobile-checkout-stack .cart-summary-purchase-points__coin {
  width: 20px;
  height: 20px;
}

.cart-mobile-checkout-stack .cart-summary-purchase-points__text {
  font-size: 11px;
  line-height: 16px;
}

.cart-mobile-checkout-stack .cart-summary-purchase-points__amount {
  font-size: 12px;
  line-height: 16px;
}

.cart-summary-looper {
  position: absolute;
  top: -470px;
  left: -613px;
  z-index: 1;
  width: 1265px;
  height: 1112px;
  pointer-events: none;
  transform: rotate(-49.65deg);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .cart-page .cart-summary-looper {
    display: none !important;
  }

  .cart-summary-sheet.offcanvas-bottom {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }

  .cart-summary-sheet-inner,
  .cart-summary-sheet-body,
  .cart-summary-sheet-rows {
    width: 100%;
    box-sizing: border-box;
  }
}

.cart-summary-looper img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* Cart shelves — same markup as home `product-shelf--plain`, static grid instead of swiper */
.cart-page .cart-shelves {
  padding: 0;
}

.cart-page .cart-shelves .product-shelf--plain {
  margin-block: 0;
  padding: 48px 0;
  overflow: visible;
}

.cart-page .cart-shelves .product-shelf--plain + .product-shelf--plain {
  padding-top: 16px;
}

.cart-page .cart-shelves .product-shelf--plain > .site-container .section-head {
  margin-bottom: 16px;
}

.cart-page .cart-shelves .section-head--title-only {
  justify-content: flex-start;
}

.cart-page .cart-shelves .product-shelf--plain .products-swiper .swiper-slide {
  height: auto;
}

.cart-shelf-product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.cart-shelf-product-card-hit {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 24px;
  color: inherit;
  text-decoration: none;
}

.cart-shelf-product-card-hit:hover {
  color: inherit;
  text-decoration: none;
}

.cart-shelf-product-card .product-body {
  flex: 1;
}

.cart-shelf-product-meta {
  margin-top: auto;
  padding: 20px 16px 16px;
  border-top: 1px solid var(--color-border-soft);
}

.cart-page .cart-shelf-product-card .routine-result-add {
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.cart-page .cart-shelf-product-card .routine-result-add i {
  font-size: 24px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.cart-page .cart-shelf-product-card .routine-result-add:hover,
.cart-page .cart-shelf-product-card .routine-result-add:focus-visible,
.cart-page .cart-shelf-product-card:hover .routine-result-add {
  color: #fff;
  background: var(--color-black);
  border-color: var(--color-black);
}

.cart-page .cart-shelf-product-card .routine-result-add:hover i,
.cart-page .cart-shelf-product-card .routine-result-add:focus-visible i,
.cart-page .cart-shelf-product-card:hover .routine-result-add i {
  color: #fff;
}

.cart-trust-bar {
  margin-top: 56px;
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--color-border-soft);
}

.cart-trust-bar .site-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.cart-trust-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
}

.cart-trust-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Step 2 — shipping (Figma 629:16475) */
.cart-lines-wrap--shipping {
  gap: 24px;
}

.cart-shipping-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
}

.cart-shipping-card-title {
  margin: 0;
  color: #27272a;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: right;
}

.cart-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid #5e9e49;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(94, 158, 73, 0.05), rgba(94, 158, 73, 0.05)),
    #fff;
}

.cart-address-text {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
}

.cart-address-text p {
  margin: 0;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
}

.cart-address-map {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.cart-address-change {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  flex-direction: row;
  padding: 6px 10px;
  border: 0;
  border-radius: 1000px;
  background: transparent;
  color: #4a8138;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.cart-shipment-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.cart-shipment-badge {
  padding: 4.75px 12px 1px;
  border: 1px solid #e4e4e7;
  border-radius: 1000px;
  background: #fff;
  color: #27272a;
  font-size: 14px;
  font-weight: 200;
  line-height: 20px;
  white-space: nowrap;
  height: 28px;
}

.cart-shipment-products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cart-shipment-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 5px;
  border: 0.875px solid #e2e8f0;
  border-radius: 21px;
  background: #fff;
}

.cart-shipment-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 16px 16px 8px 8px;
  background: #f5faf3;
  overflow: hidden;
}

.cart-shipment-product-media img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-shipment-product-purchase-points {
  margin: -4px 7px 0;
}

.cart-shipment-product p {
  display: -webkit-box;
  margin: 0;
  padding: 0 7px;
  overflow: hidden;
  color: #27272a;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 36px;
}

.cart-shipment-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 9px 14px;
  border: 0.875px solid #f4f4f5;
  border-radius: 1000px;
  background:
    linear-gradient(90deg, rgba(244, 244, 245, 0.75), rgba(244, 244, 245, 0.75)),
    #fff;
  direction: ltr;
}

.cart-shipment-qty button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27272a;
  cursor: pointer;
}

.cart-shipment-qty button i {
  font-size: 16px;
}

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

.cart-shipment-qty button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.cart-shipment-qty > span {
  min-width: 12px;
  color: #27272a;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.cart-shipping-divider {
  margin: 8px 0 0;
  border: 0;
  border-top: 1px solid #e4e4e7;
}

.cart-shipping-mobile-only {
  display: none;
}

/* Mobile shipping — pickup & express (Digikala-style) */
.cart-shipping-card--pickup {
  gap: 12px;
  padding: 16px;
  border-color: #e4e4e7;
  background: #fff;
}

.cart-shipping-pickup-title {
  margin: 0;
  color: #27272a;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: right;
}

.cart-shipping-pickup-address {
  margin: 0;
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-shipping-pickup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-shipping-pickup-tags span {
  padding: 4px 10px;
  border: 1px solid #e4e4e7;
  border-radius: 1000px;
  background: #fafafa;
  color: #52525b;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.cart-shipping-express {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 55%, #fff 100%);
  border: 1px solid #dbeafe;
}

.cart-shipping-express-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.cart-shipping-express-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 1000px;
  background: #1e3a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.cart-shipping-express-title {
  margin: 0;
  color: #27272a;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.cart-shipping-express-meta {
  margin: 0;
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cart-shipping-express-meta small {
  font-size: 11px;
}

.cart-shipping-express-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-shipping-express-thumbs {
  display: flex;
  gap: 8px;
}

.cart-shipping-express-thumbs span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.cart-shipping-express-thumbs img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cart-shipping-express-select {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 1000px;
  background: #fff;
  color: #27272a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
}

.cart-shipment-product-variant {
  display: none;
  margin: 0;
  padding: 0 4px;
  color: #71717a;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

.cart-shipment-delivery-meta {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #f4f4f5;
}

.cart-shipment-delivery-when {
  margin: 0;
  color: #27272a;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: right;
}

.cart-shipment-fee {
  margin: 0;
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-shipment-fee del {
  margin-inline: 4px;
  color: #a1a1aa;
  text-decoration: line-through;
}

.cart-shipment-fee small {
  font-size: 11px;
}

.cart-shipment-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-shipment-text-btn,
.cart-shipment-change-method {
  padding: 0;
  border: 0;
  background: transparent;
  color: #52525b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
}

.cart-shipment-promo {
  color: #db2777;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
}

.cart-shipment-change-method {
  align-self: flex-start;
  color: #3f3f46;
  font-weight: 600;
}

.cart-shipping-mobile-summary {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
}

.cart-shipping-mobile-summary-title {
  margin: 0;
  color: #09090b;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: right;
}

.cart-delivery-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-delivery-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-delivery-cost {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.cart-delivery-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
}

.cart-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.cart-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}

.cart-date-chip span {
  color: #27272a;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.cart-date-chip strong {
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.cart-date-chip.is-active {
  border-color: #5e9e49;
  background:
    linear-gradient(90deg, rgba(94, 158, 73, 0.05), rgba(94, 158, 73, 0.05)),
    #fff;
}

.cart-time-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.cart-time-option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

.cart-time-option span {
  color: #27272a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.cart-time-option input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #27272a;
}

/* Step 3 — checkout (Figma 629:19498) */
.cart-lines-wrap--checkout {
  gap: 24px;
}

.cart-checkout-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
}

.cart-checkout-block--order {
  border-radius: 24px;
}

.cart-checkout-block-title {
  margin: 0;
  color: #27272a;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: right;
}

.cart-pay-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-pay-option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.cart-pay-option:has(input:checked) {
  border-color: #5e9e49;
  background:
    linear-gradient(90deg, rgba(94, 158, 73, 0.05), rgba(94, 158, 73, 0.05)),
    #fff;
}

.cart-pay-option-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.cart-pay-option-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.cart-pay-option-logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.cart-pay-option-copy strong {
  display: block;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.cart-pay-option-copy span {
  display: block;
  margin-top: 4px;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.cart-pay-option input[type='radio'] {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #5e9e49;
  cursor: pointer;
}

.cart-pay-option.is-excluded {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #fecaca;
  background: #fffafa;
}

.cart-pay-option.is-excluded input[type='radio'] {
  cursor: not-allowed;
}

.cart-pay-option.is-excluded .cart-pay-option-copy span {
  color: #dc2626;
}

.cart-shipping-methods-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 48px;
}

.cart-shipping-methods-empty,
.cart-shipping-methods-loading {
  margin: 0;
  padding: 16px;
  border: 1px dashed #e4e4e7;
  border-radius: 12px;
  background: #fafafa;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}

.cart-shipping-methods-loading {
  border-style: solid;
  border-color: #e4e4e7;
  background: #fff;
}

.cart-pay-option-meta {
  display: block;
  margin-top: 6px;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.cart-checkout-order-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-checkout-info-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.cart-checkout-info-row--products {
  align-items: flex-start;
}

.cart-checkout-info-row-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.cart-checkout-info-row-copy small {
  display: block;
  color: #71717a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.cart-checkout-info-row-copy p {
  margin: 4px 0 0;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.cart-checkout-info-row-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cart-checkout-order-products {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.cart-checkout-order-products-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
}

.cart-checkout-order-products-head strong {
  color: #3f3f46;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.cart-checkout-order-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.cart-checkout-order-thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 102px;
  height: 102px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(94, 158, 73, 0.1);
  border-radius: 16px;
  background: #fff;
}

.cart-checkout-order-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-checkout-mobile-summary {
  display: none;
}

.cart-page--step-checkout .cart-summary-submit--pay {
  background: #00c16a;
  color: #fff;
}

.cart-mobile-checkout-submit--pay {
  background: #00c16a !important;
  color: #fff !important;
}

button.cart-mobile-checkout-submit {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

/* Payment result — Figma 629:20434 / 629:20745 (no header/footer) */
.cart-payment-result {
  background: #fff;
}

.cart-payment-result-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  overflow: hidden;
}

.cart-payment-result-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cart-payment-result-looper {
  position: absolute;
  top: -1170px;
  left: -465px;
  width: 2624px;
  height: 2651px;
  transform: rotate(-49.65deg);
  opacity: 0.35;
}

.cart-payment-result-looper img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.cart-payment-result-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(608px, 55vh);
}

.cart-payment-result--success {
  --cart-payment-result-progress-duration: 5s;
}

.cart-payment-result--success .cart-payment-result-glow {
  background: linear-gradient(180deg, rgba(0, 193, 106, 0.1) 0%, rgba(0, 193, 106, 0) 100%);
}

.cart-payment-result--failed .cart-payment-result-glow {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0) 100%);
}

.cart-payment-result-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 58px;
  width: min(504px, 100%);
  padding: 40px;
  border: 1px solid #fff;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 0 24px rgba(14, 55, 0, 0.04);
}

.cart-payment-result-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% - 10px);
  max-width: 494px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #f4f4f5;
  transform: translateX(-50%);
  overflow: hidden;
}

.cart-payment-result-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: #00c16a;
  transform: scaleX(0);
  transform-origin: inline-start center;
}

.cart-payment-result--success .cart-payment-result-progress-fill {
  animation: cart-payment-result-progress-fill var(--cart-payment-result-progress-duration, 5s) linear forwards;
}

@keyframes cart-payment-result-progress-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-payment-result--success .cart-payment-result-progress-fill {
    animation: none;
    transform: scaleX(1);
  }
}

.cart-payment-result-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cart-payment-result-icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-pill);
}

.cart-payment-result--success .cart-payment-result-icon-ring {
  background: rgba(0, 193, 106, 0.1);
}

.cart-payment-result--failed .cart-payment-result-icon-ring {
  background: rgba(239, 68, 68, 0.1);
}

.cart-payment-result-icon-core {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-pill);
}

.cart-payment-result--success .cart-payment-result-icon-core {
  background: rgba(0, 193, 106, 0.1);
}

.cart-payment-result--failed .cart-payment-result-icon-core {
  background: rgba(239, 68, 68, 0.1);
}

.cart-payment-result-icon-core i {
  font-size: 48px;
  line-height: 1;
}

.cart-payment-result--success .cart-payment-result-icon-core i {
  color: #00a155;
}

.cart-payment-result--failed .cart-payment-result-icon-core i {
  color: #dc2626;
}

.cart-payment-result-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cart-payment-result-copy h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.cart-payment-result--success .cart-payment-result-copy h1 {
  color: #00a155;
}

.cart-payment-result--failed .cart-payment-result-copy h1 {
  color: #dc2626;
}

.cart-payment-result-copy p {
  margin: 0;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.cart-payment-result-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cart-payment-result-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e4e7;
}

.cart-payment-result-detail-label {
  flex: 1;
  min-width: 0;
  color: #27272a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.cart-payment-result-detail-value {
  flex-shrink: 0;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
}

.cart-payment-result-detail-value--price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-payment-result-detail-value--price small {
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cart-payment-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.cart-payment-result-badge--success {
  border-color: rgba(0, 193, 106, 0.1);
  background: rgba(0, 193, 106, 0.1);
  color: #00a155;
}

.cart-payment-result-badge--failed {
  border-color: rgba(239, 68, 68, 0.1);
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.cart-payment-result-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cart-payment-result-btn--secondary {
  background: rgba(244, 244, 245, 0.75);
  color: #27272a;
}

.cart-payment-result-btn--primary {
  border-color: #020617;
  background: #020617;
  color: #fff;
}

.cart-payment-result-actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.cart-payment-result-actions .cart-payment-result-btn {
  flex: 1;
  min-width: 0;
}

/* Address modal — Figma 2030:38541 */
.cart-address-modal .modal-dialog.cart-address-modal-dialog {
  width: calc(100% - 32px);
  max-width: 724px;
  margin: 16px auto;
}

.cart-address-modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cart-address-modal .modal-header.cart-address-modal-header,
.cart-address-offcanvas .offcanvas-header.cart-address-modal-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 16px;
  border-bottom: 1px solid #f4f4f5;
  background: #fff;
}

.cart-address-modal-title.modal-title {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #09090b;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.cart-address-modal-close {
  position: absolute;
  top: 13px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #e4e4e7;
  border-radius: 1000px;
  background:
    linear-gradient(90deg, rgba(244, 244, 245, 0.75), rgba(244, 244, 245, 0.75)),
    #fff;
  cursor: pointer;
}

.cart-address-modal .modal-body.cart-address-modal-body {
  padding: 16px;
  background: rgba(244, 244, 245, 0.5);
}

.cart-address-modal-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 24px 24px 42px;
  border: 1px solid #f4f4f5;
  border-radius: 24px;
  background: #fff;
}

.cart-address-modal-intro h3 {
  margin: 0 0 12px;
  color: #09090b;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: right;
}

.cart-address-modal-intro p {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.cart-address-modal-tabs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  border-bottom: 1px solid #e4e4e7;
}

.cart-address-modal-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 24px 11px;
  border: 0;
  border-bottom: 1px solid #e4e4e7;
  background: transparent;
  cursor: pointer;
}

.cart-address-modal-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-address-modal-tab-label {
  color: #71717a;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.cart-address-modal-tab:has(.cart-address-modal-tab-input:checked) {
  border-bottom: 1.5px solid #5e9e49;
  padding-bottom: 10.5px;
}

.cart-address-modal-tab:has(.cart-address-modal-tab-input:checked) .cart-address-modal-tab-label {
  color: #4a8138;
  font-weight: 300;
  font-family: IRANSans, Dana, sans-serif;
}

.cart-address-modal-tab:has(.cart-address-modal-tab-input:focus-visible) {
  outline: 2px solid #5e9e49;
  outline-offset: 2px;
}

.cart-address-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cart-address-modal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cart-address-modal-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cart-address-field label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 0 4px 4px 0;
  color: #09090b;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cart-address-required {
  color: #dc2626;
  font-weight: 600;
}

.cart-address-field input,
.cart-address-field select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #d4d4d8;
  border-radius: 1000px;
  background: #fff;
  color: #27272a;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
}

.cart-address-field input::placeholder {
  color: #a1a1aa;
}

.cart-address-field input:focus,
.cart-address-field input:focus-visible,
.cart-address-field select:focus,
.cart-address-field select:focus-visible {
  outline: none;
  border-color: #a1a1aa;
}

.cart-address-field input.is-invalid,
.cart-address-field select.is-invalid,
.cart-address-combobox-toggle.is-invalid {
  border-color: #dc2626;
}

.cart-address-field .invalid-feedback.js-field-error {
  display: none;
  margin: 6px 4px 0 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
}

.cart-address-field .invalid-feedback.js-field-error.d-block {
  display: block;
}

.cart-address-select-wrap {
  position: relative;
}

.cart-address-field select {
  appearance: none;
  padding-inline-end: 44px;
  cursor: pointer;
}

.cart-address-field select[data-cart-address-searchable] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.cart-address-field select:invalid,
.cart-address-field select option[value=""] {
  color: #a1a1aa;
}

.cart-address-field select:valid {
  color: #27272a;
}

.cart-address-select-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.cart-address-combobox {
  position: relative;
  width: 100%;
}

.cart-address-combobox-toggle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 44px 12px 20px;
  border: 1px solid #d4d4d8;
  border-radius: 1000px;
  background: #fff;
  color: #27272a;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
  cursor: pointer;
}

.cart-address-combobox-toggle.is-placeholder {
  color: #a1a1aa;
}

.cart-address-combobox.is-open .cart-address-combobox-toggle,
.cart-address-combobox-toggle:focus,
.cart-address-combobox-toggle:focus-visible {
  outline: none;
  border-color: #a1a1aa;
}

.cart-address-combobox.is-disabled .cart-address-combobox-toggle {
  opacity: 0.6;
  cursor: not-allowed;
}

.cart-address-combobox-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.12);
}

.cart-address-combobox.is-open .cart-address-combobox-panel {
  display: flex;
}

.cart-address-combobox-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f4f4f5;
  border-radius: 0;
  background: #fff;
  color: #27272a;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.cart-address-combobox-search:focus,
.cart-address-combobox-search:focus-visible {
  outline: none;
}

.cart-address-combobox-search::placeholder {
  color: #a1a1aa;
}

.cart-address-combobox-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.cart-address-combobox-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3f3f46;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
  cursor: pointer;
}

.cart-address-combobox-option:hover,
.cart-address-combobox-option.is-active {
  background: rgba(94, 158, 73, 0.08);
  color: #4a8138;
}

.cart-address-combobox-option.is-selected {
  background: rgba(94, 158, 73, 0.12);
  color: #4a8138;
  font-weight: 600;
}

.cart-address-combobox-empty {
  margin: 0;
  padding: 16px 12px;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.cart-address-field-hint {
  margin: 4px 0 0;
  padding: 0 4px;
  color: #52525b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-address-modal-empty {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
}

.cart-address-modal-tabpanel[hidden] {
  display: none !important;
}

.cart-address-modal-tabpanel:not([hidden]) {
  display: block;
  width: 100%;
}

.cart-address-saved-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cart-address-saved-option-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.cart-address-saved-option-wrap:has(.cart-address-saved-input:checked) {
  border-color: #5e9e49;
  background:
    linear-gradient(90deg, rgba(94, 158, 73, 0.05), rgba(94, 158, 73, 0.05)),
    #fff;
}

.cart-address-saved-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

.cart-address-saved-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #5e9e49;
  cursor: pointer;
}

.cart-address-saved-option-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.cart-address-saved-option-text {
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
}

.cart-address-saved-edit {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e9e49;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.cart-address-saved-empty {
  margin: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
}

.cart-address-modal .modal-footer.cart-address-modal-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #f4f4f5;
  background: #fff;
}

.cart-address-modal-submit {
  padding: 12px 24px;
  border: 0;
  border-radius: 1000px;
  background: #020617;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.cart-address-modal-cancel {
  padding: 12px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 1000px;
  background: #fff;
  color: #3f3f46;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

/* Address offcanvas — mobile bottom sheet (Bootstrap offcanvas-bottom) */
.cart-address-offcanvas.offcanvas-bottom {
  --bs-offcanvas-height: min(92dvh, 838px);
  z-index: 1055;
  height: min(92dvh, 838px);
  max-height: min(92dvh, 838px);
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.cart-address-offcanvas.offcanvas.show {
  display: flex;
  flex-direction: column;
}

.cart-address-offcanvas-sheet {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.cart-address-offcanvas-handle {
  flex: 0 0 auto;
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 1000px;
  background: #e4e4e7;
}

.cart-address-offcanvas .offcanvas-header {
  flex: 0 0 auto;
  padding-top: 8px;
}

.cart-address-offcanvas-body.offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(244, 244, 245, 0.5);
  -webkit-overflow-scrolling: touch;
}

.cart-address-offcanvas-footer.cart-address-modal-footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  justify-content: flex-end;
  display: flex;
}

body:has(#cartAddressOffcanvas.show) .mobile-bottom-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile cart checkout bar + summary sheet (cart index) */
.cart-mobile-checkout-stack {
  display: none;
}

.cart-mobile-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.cart-summary-sheet.offcanvas-bottom {
  --bs-offcanvas-height: auto;
  --bs-offcanvas-width: 100%;
  z-index: 1055;
  width: 100%;
  max-width: 100%;
  max-height: min(85dvh, 520px);
  margin-inline: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.cart-summary-sheet.offcanvas.show {
  display: flex;
  flex-direction: column;
}

.cart-summary-sheet-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(85dvh, 520px);
}

.cart-summary-sheet-handle {
  flex-shrink: 0;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 1000px;
  background: #e4e4e7;
}

.cart-summary-sheet-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px 16px;
  border-bottom: 1px solid #f4f4f5;
}

.cart-summary-sheet-title {
  margin: 0;
  color: #09090b;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.cart-summary-sheet-close {
  position: absolute;
  top: 10px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 1000px;
  background: #fff;
  cursor: pointer;
}

.cart-summary-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.cart-summary-sheet-alert {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
}

.cart-summary-sheet-alert ul {
  width: 100%;
}

.cart-summary-sheet-alert .cart-summary-purchase-points {
  width: 100%;
  max-width: none;
}

.cart-summary-sheet-alert p {
  margin: 0;
  width: 100%;
  color: #3f3f46;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-align: right;
}

.cart-summary-sheet-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary-sheet-row-label {
  color: #52525b;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

.cart-summary-sheet-row-value {
  flex-shrink: 0;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.cart-summary-sheet-row-value small {
  font-size: 12px;
  font-weight: 400;
}

.cart-summary-sheet-row-value del {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 6px;
  color: #a1a1aa;
  font-weight: 400;
  text-decoration: line-through;
}

.cart-summary-sheet-row-value strong {
  color: #00a155;
  font-weight: 700;
}

.cart-summary-sheet-row--savings {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 161, 85, 0.08);
}

.cart-summary-sheet-row--savings .cart-summary-sheet-row-label,
.cart-summary-sheet-row--savings .cart-summary-sheet-row-value {
  color: #008a4a;
  font-weight: 600;
}

.cart-summary-sheet-row--savings .cart-summary-sheet-row-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-summary-sheet-row--special-tier {
  --cst-accent: var(--club-special);
  --cst-deep: var(--club-special-text);
  --cst-soft: var(--club-special-soft);
  --cst-mid: #dbeafe;
  --cst-border: color-mix(in srgb, var(--club-special) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-special) 14%, transparent);
  margin-block: -8px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--cst-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cst-soft) 88%, #fff) 0%, #f8fafc 50%, var(--cst-mid) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 6px 18px var(--cst-glow);
}

.cart-summary-sheet-row--club-tier--bronze {
  --cst-accent: var(--club-gold-text);
  --cst-deep: var(--club-gold-pill-text);
  --cst-soft: var(--club-bronze-soft);
  --cst-mid: #ffedd5;
  --cst-border: color-mix(in srgb, var(--club-bronze) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-bronze) 14%, transparent);
}

.cart-summary-sheet-row--club-tier--silver {
  --cst-accent: var(--club-silver-text);
  --cst-deep: #374151;
  --cst-soft: var(--club-silver-soft);
  --cst-mid: #e5e7eb;
  --cst-border: color-mix(in srgb, var(--club-silver) 26%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-silver) 12%, transparent);
}

.cart-summary-sheet-row--club-tier--gold {
  --cst-accent: var(--club-gold-text);
  --cst-deep: var(--club-gold-pill-text);
  --cst-soft: var(--club-gold-soft);
  --cst-mid: #fef9c3;
  --cst-border: color-mix(in srgb, var(--club-gold) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-gold) 14%, transparent);
}

.cart-summary-sheet-row--club-tier--special {
  --cst-accent: var(--club-special);
  --cst-deep: var(--club-special-text);
  --cst-soft: var(--club-special-soft);
  --cst-mid: #dbeafe;
  --cst-border: color-mix(in srgb, var(--club-special) 28%, transparent);
  --cst-glow: color-mix(in srgb, var(--club-special) 14%, transparent);
}

.cart-summary-sheet-row--special-tier .cart-summary-sheet-row-label {
  color: var(--cst-deep);
  font-weight: 600;
}

.cart-summary-sheet-row--special-tier .cart-summary-sheet-row-value {
  color: var(--cst-accent);
  font-weight: 700;
}

.cart-summary-sheet-row--special-tier .cart-summary-sheet-row-value small {
  color: var(--cst-deep);
  font-weight: 500;
  opacity: 0.88;
}

.cart-summary-sheet-row--special-tier .cart-summary-percent {
  color: var(--cst-deep);
  font-weight: 600;
}

.cart-summary-sheet-row--total .cart-summary-sheet-row-label {
  color: #09090b;
  font-weight: 600;
}

.cart-summary-sheet-row--total .cart-summary-sheet-row-value {
  font-size: 16px;
  font-weight: 700;
}

.cart-summary-sheet-row--total .cart-summary-sheet-row-value del {
  margin-inline-end: 6px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}

.cart-summary-sheet-footer {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f4f4f5;
}

.cart-summary-sheet-dismiss {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #d4d4d8;
  border-radius: 1000px;
  background: #fff;
  color: #09090b;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

body:has(#cartSummarySheet.show) .mobile-bottom-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

