/* The header cart has bounded space; the full cart keeps its complete breakdown. */
.ps-shoppingcart.dropdown #blockcart-content {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: var(--igcb-mini-max-height, calc(100vh - 155px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@supports (height: 100dvh) {
  .ps-shoppingcart.dropdown #blockcart-content {
    max-height: var(--igcb-mini-max-height, calc(100dvh - 155px));
  }
  .ps-shoppingcart.side-cart #blockcart-content { max-height: 100dvh; }
}
.ps-shoppingcart.dropdown #blockcart-content .cart-products {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.ps-shoppingcart.dropdown #blockcart-content > :not(.cart-products) { flex-shrink: 0; }
#blockcart-content .igcb-cart-summary {
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.3;
}
#blockcart-content .igcb-cart-summary > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#blockcart-content .igcb-cart-summary > div:first-child > strong:first-child {
  font-size: 10px;
  line-height: 1.35;
}
#blockcart-content .igcb-cart-summary .igcb-summary-amount {
  font-size: 21px;
  white-space: nowrap;
}
#blockcart-content .igcb-cart-summary .igcb-summary-lines { display: none; }
#blockcart-content .igcb-cart-summary > p {
  font-size: 10px;
  line-height: 1.35;
  margin: 6px 0 0;
}
#blockcart-content .cart-buttons { flex-shrink: 0; }
@media (max-height: 600px) {
  .ps-shoppingcart.dropdown #blockcart-content .cart-subtotals,
  .ps-shoppingcart.dropdown #blockcart-content .cart-totals { padding-top: 8px; padding-bottom: 8px; }
}
