.site-mini-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(49, 91, 73, 0.22);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 18px 42px rgba(44, 35, 24, 0.18);
  backdrop-filter: blur(10px);
}

.site-mini-cart[hidden] {
  display: none;
}

.site-mini-cart div {
  display: grid;
  flex: 1;
  gap: 2px;
}

.site-mini-cart span {
  color: var(--muted, #6f6254);
  font-size: 0.82rem;
  font-weight: 850;
}

.site-mini-cart strong {
  color: var(--leaf, #315b49);
  font-size: 1.05rem;
}

.site-mini-cart .btn {
  white-space: nowrap;
}

html.has-site-mini-cart body {
  padding-bottom: var(--site-mini-cart-space, 128px);
}

html.has-site-mini-cart .chat-bubble {
  bottom: calc(var(--site-mini-cart-space, 128px) + env(safe-area-inset-bottom));
}

html.has-site-mini-cart .chat-window {
  bottom: calc(var(--site-mini-cart-space, 128px) + 62px + env(safe-area-inset-bottom));
  max-height: min(460px, calc(100dvh - var(--site-mini-cart-space, 128px) - 86px));
}

.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.cart-page-lines,
.cart-page-section-lines {
  display: grid;
  gap: 10px;
}

.cart-page-block {
  display: grid;
  gap: 14px;
}

.cart-page-block + .cart-page-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line, rgba(49, 91, 73, 0.18));
}

.cart-page-block h3,
.cart-page-checkout h3 {
  margin-bottom: 0;
}

.cart-rule-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(49, 91, 73, 0.16);
  border-radius: 10px;
  background: rgba(245, 248, 223, 0.72);
  color: var(--muted, #6f6254);
  line-height: 1.45;
}

.cart-rule-note.is-products {
  background: rgba(255, 246, 231, 0.72);
}

.cart-page-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(49, 91, 73, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.cart-page-line.has-media {
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
}

.cart-page-thumb {
  display: block;
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(49, 91, 73, 0.16);
  border-radius: 10px;
  background: rgba(245, 248, 223, 0.72);
  text-decoration: none;
}

.cart-page-thumb:focus-visible {
  outline: 3px solid rgba(217, 234, 114, 0.92);
  outline-offset: 3px;
}

.cart-page-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-copy {
  min-width: 0;
}

.cart-page-line strong,
.cart-page-line span {
  display: block;
}

.cart-page-line small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #6f6254);
  line-height: 1.35;
}

.cart-page-stepper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cart-page-stepper button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line, rgba(49, 91, 73, 0.18));
  border-radius: 999px;
  background: #fff;
  color: var(--leaf, #315b49);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.cart-page-stepper output {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.cart-page-price {
  color: var(--leaf, #315b49);
  font-weight: 950;
  white-space: nowrap;
}

.cart-page-remove {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--rose, #9d3f2e);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  padding: 0;
}

.cart-page-summary {
  display: grid;
  gap: 12px;
}

.cart-page-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(49, 91, 73, 0.18));
  color: var(--leaf, #315b49);
  font-weight: 950;
}

.cart-page-actions {
  display: grid;
  gap: 10px;
}

.combined-breakdown {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(49, 91, 73, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.combined-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted, #6f6254);
}

.combined-breakdown strong {
  color: var(--leaf, #315b49);
  white-space: nowrap;
}

.combined-breakdown .combined-grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(49, 91, 73, 0.16);
  color: var(--leaf, #315b49);
  font-weight: 950;
}

.combined-shipping {
  display: grid;
  gap: 8px;
}

.cart-page-checkout .check-row {
  align-items: flex-start;
}

.cart-page-checkout.is-disabled .paypal-button-stack,
.cart-page-checkout.is-disabled .check-row,
.cart-page-checkout.is-disabled .combined-shipping {
  opacity: 0.56;
}

.footer-links .footer-action {
  border-color: rgba(157, 63, 46, 0.32);
  background: rgba(255, 246, 231, 0.92);
  color: var(--rose, #9d3f2e);
  font-weight: 950;
}

.cart-page-empty {
  margin: 0;
  color: var(--muted, #6f6254);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .cart-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-mini-cart {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    border-radius: 14px;
  }

  .cart-page-line {
    grid-template-columns: 1fr;
  }

  .cart-page-line.has-media {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .cart-page-thumb {
    width: 72px;
  }

  .cart-page-line.has-media .cart-page-stepper,
  .cart-page-line.has-media .cart-page-price,
  .cart-page-line.has-media .cart-page-remove {
    grid-column: 1 / -1;
  }

  .cart-page-price {
    white-space: normal;
  }
}
