/* Keep the wider coupon field; all cart actions share the compact field height. */
#js-order-cart {
  --zl-cart-control-height: calc(0.5rem + 0.9375rem * 1.5 + 2px);
}
#js-order-cart .wa-coupon-section:not(.is-active) .wa-inactive-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
#js-order-cart .wa-coupon-section .js-coupon-code,
#js-order-cart .wa-coupon-section .flexdiscount-coupon-code {
  flex: 1 1 14rem;
  width: 14rem;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
#js-order-cart .wa-coupon-section .js-coupon-code,
#js-order-cart .wa-coupon-section .flexdiscount-coupon-code,
#js-order-cart .wa-coupon-section .btn,
#js-order-cart .wa-affiliate-section .btn {
  box-sizing: border-box !important;
  height: var(--zl-cart-control-height) !important;
  min-height: 0 !important;
  max-width: 100%;
  white-space: normal;
}

/* Flexdiscount supplies the visible coupon form on these storefronts. */
#js-order-cart .flexdiscount-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}
#js-order-cart .flexdiscount-form > div {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
}
#js-order-cart .flexdiscount-form > .col-12 {
  grid-column: 1 / -1;
}
#js-order-cart .flexdiscount-form .flexdiscount-coupon-code {
  width: 100%;
}
@media (max-width: 374px) {
  #js-order-cart .flexdiscount-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
