/* Keep the closed cart in normal panel flow; never slide its body offscreen. */
body.values-myprices-page #myprices-cart-floating {
  box-sizing: border-box;
  height: auto;
  max-height: calc(100vh - 40px);
  max-height: min(820px, calc(100dvh - 40px));
  transform: none;
  transition: none;
}
body.values-myprices-page #myprices-cart-toggle {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 76px;
  margin: 0;
  border-radius: 0;
  transform: none;
}
body.values-myprices-page #myprices-cart-toggle .shop-cart-toggle-arrow {
  display: inline;
  transform: none;
}
body.values-myprices-page #shop-cart-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body.values-myprices-page #shop-cart-body[hidden] { display: none !important; }
body.values-myprices-page #shop-cart-body > * { flex-shrink: 0; }
body.values-myprices-page #shop-cart-body .shop-cart-item {
  grid-template-columns: minmax(0, 1fr);
}
body.values-myprices-page #shop-cart-body .shop-cart-item-copy strong {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
body.values-myprices-page #shop-cart-body .shop-cart-item-controls {
  justify-content: space-between;
}
body.values-myprices-page #shop-cart-body .cart-qty-controls button,
body.values-myprices-page #shop-cart-body .cart-remove-btn,
body.values-myprices-page #shop-cart-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex: 0 0 auto;
}
body.values-myprices-page #shop-cart-body .cart-qty-controls { gap: 10px; }
body.values-myprices-page #shop-cart-body .cart-remove-btn { color: #b91c1c; background: #fff1f2; }
body.values-myprices-page #shop-cart-body .shop-cart-progress b { display: inline; }
body.values-myprices-page #shop-cart-body .shop-cart-progress li::after { display: none; }
body.values-myprices-page #shop-cart-body .shop-cart-section-heading { flex-wrap: wrap; }
body.values-myprices-page #shop-cart-body .shop-payment select,
body.values-myprices-page #shop-cart-body .shop-cart-extra textarea { min-width: 0; font-size: 16px; }
body.values-myprices-page #shop-cart-copy-btn {
  background: #047857;
  color: #fff;
}
body.values-myprices-page #shop-cart-copy-btn small { color: #e7fff2; }
body.values-myprices-page #shop-cart-copy-btn:disabled {
  background: #e2e8f0;
  color: #475569;
  opacity: 1;
}
body.values-myprices-page #shop-cart-copy-btn:disabled small { color: #475569; }

@media (max-width: 768px) {
  body.values-myprices-page.shop-cart-mobile-open { overflow: hidden; }
  body.values-myprices-page #myprices-cart-floating {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
  }
  body.values-myprices-page #myprices-cart-toggle {
    grid-template-columns: 38px minmax(0, 1fr) auto 16px;
    gap: 8px;
    min-height: 76px;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  }
  body.values-myprices-page #myprices-cart-toggle .shop-cart-toggle-total { display: flex; }
  body.values-myprices-page #myprices-cart-toggle .shop-cart-toggle-action { display: none; }
  body.values-myprices-page #shop-cart-body .shop-cart-progress li { flex-direction: column; gap: 4px; }
  body.values-myprices-page #shop-cart-body .shop-cart-progress b { font-size: .75rem; }
  body.values-myprices-page #shop-cart-body .shop-cart-item-copy strong { font-size: .95rem; }
  body.values-myprices-page #shop-cart-body .shop-cart-item-copy small { font-size: .8rem; }
}
