/* Bag extras: "price on request" lines, compact quantity stepper in the bag drawer,
   and the catalogue-card "Add to bag" form. Loaded after app.css. */

/* Bag drawer: stepper sized to its content, not stretched across the row */
.bp-drawer-cart-line .bp-qty-stepper {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: .4rem 0 .15rem;
}
.bp-drawer-cart-line .bp-qty-stepper button { flex: none; width: 2.1rem; min-height: 2rem; }
.bp-drawer-cart-line .bp-qty-stepper input[type="number"] {
  flex: none;
  width: 2.9rem;
  min-width: 0;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.bp-drawer-cart-line .bp-qty-stepper input[type="number"]::-webkit-outer-spin-button,
.bp-drawer-cart-line .bp-qty-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bp-qty-stepper button[disabled] { opacity: .35; cursor: not-allowed; }

/* "Price on request" shown where a price would be */
.bp-drawer-cart-price.is-quote,
.bp-cart-line-quote {
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: right;
  max-width: 6.5rem;
}
.bp-bag-quote-note { margin: .25rem 0 .75rem; line-height: 1.5; }
.bp-pdp-quote-hint { margin: .6rem 0 1rem; font-size: .8125rem; opacity: .8; line-height: 1.5; }

/* Catalogue card: the Add to bag form fills the hover bar exactly like the old link did */
.bp-card-hover form { margin: 0; display: block; }
.bp-card-hover form .bp-btn { width: 100%; }

/* Touch screens: no hover bar, so show a small always-visible Add to bag under the price */
.bp-card-quickadd { display: none; margin-top: .6rem; position: relative; z-index: 2; }
.bp-card-quickadd form { margin: 0; }
@media (hover: none) {
  .bp-card-quickadd { display: block; }
  .bp-card-hover { display: none !important; }
}

/* Homepage category cards ("Shop your beauty"): every card is the same height, the photo area is
   the same size, the name starts at the same line and "Explore" sits at the same spot,
   whether the name wraps to two lines or the card has a short description or not. */
.bp-dept-card { grid-template-rows: auto 1fr; }
.bp-dept-media { aspect-ratio: 4 / 5; height: auto; }
.bp-dept-copy { display: flex; flex-direction: column; justify-content: flex-start; align-content: flex-start; height: 100%; }
.bp-dept-name { min-height: 2.6em; min-height: 2lh; }
.bp-dept-text { flex: 1 0 auto; }
.bp-dept-cta { margin-top: auto; }
