/* Public and embedded Bestellijst components; shared account/price/stock/button
 * and quantity sources own their respective visual treatments. */
body.ffehbo-order-lists-page .cmsmasters-headline,
body.ffehbo-order-lists-page .cmsmasters-post__title {
  display: none;
}
body.ffehbo-order-lists-page.cmsmasters-content-layout-fullwidth .cmsmasters-main__outer {
  width: var(--cmsmasters-main-content-width);
  max-width: 100%;
  margin-inline: auto;
  padding: 0 var(--cmsmasters-main-content-padding-right) var(--cmsmasters-main-content-padding-bottom) var(--cmsmasters-main-content-padding-left);
}
body.ffehbo-order-lists-page .cmsmasters-content { width: 100%; }
.ffehbo-order-lists {
  --ffehbo-list-surface: var(--e-global-color-background, var(--cmsmasters-colors-bg));
  --ffehbo-list-line: var(--e-global-color-border, var(--cmsmasters-colors-bd));
  --ffehbo-list-text: var(--e-global-color-secondary, var(--cmsmasters-colors-secondary));
  --ffehbo-list-muted: var(--cmsmasters-colors-text);
  width: 100%;
  min-width: 0;
  color: var(--ffehbo-list-text);
  font-family: var(--ffehbo-font-family);
  font-size: var(--ffehbo-font-size-body);
  line-height: var(--ffehbo-line-height-body);
}
.ffehbo-order-lists *, .ffehbo-order-lists *::before, .ffehbo-order-lists *::after { box-sizing: border-box; }
.ffehbo-order-lists [hidden] { display: none !important; }
/* Header, grid and card geometry come from the WooCommerce shop archive. */
.ffehbo-order-lists--archive.ffehbo-shop-archive { padding: 0; margin: 0; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-shell { padding: 0; margin: 0; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-shell--root .ffehbo-category-intro { height: auto !important; max-height: none; align-items: stretch; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-shell--root .ffehbo-category-intro__text { justify-content: flex-start; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-shell--root .ffehbo-category-intro--no-image { grid-template-columns: minmax(0, 1fr) !important; height: auto !important; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-section { margin: 24px 0 0; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-category-intro__icon { background: transparent; box-shadow: none; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-category-intro__icon::before,
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-category-intro__icon::after { content: none; display: none; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-shell--root .ffehbo-category-intro__icon img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
/* One inset aligns the photo with the title, description and CTA. */
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-order-list-card { --ffehbo-list-card-inset: clamp(18px, 2vw, 24px); min-width: 0; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-card__media { width: calc(100% - 2 * var(--ffehbo-list-card-inset)) !important; margin: var(--ffehbo-list-card-inset) var(--ffehbo-list-card-inset) 0 !important; border-radius: 14px; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-card__body { padding-inline: var(--ffehbo-list-card-inset) !important; }
.ffehbo-order-list-card__badge { position: absolute; z-index: 1; top: 8px; right: 8px; pointer-events: none; background: var(--e-global-color-primary, var(--cmsmasters-colors-primary)); color: var(--e-global-color-secondary, var(--cmsmasters-colors-secondary)); }
.ffehbo-order-list-card__badge-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; background: currentColor; mask: url("../images/icons/refill.svg") center / contain no-repeat; -webkit-mask: url("../images/icons/refill.svg") center / contain no-repeat; }
@media (max-width: 767px) {
  .ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-order-list-card { --ffehbo-list-card-inset: 24px; }
}
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-card__description { font-size: var(--ffehbo-font-size-body); line-height: var(--ffehbo-line-height-body); min-height: 0; overflow-wrap: anywhere; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-card__title { overflow-wrap: anywhere; }
.ffehbo-order-lists--archive.ffehbo-shop-archive .ffehbo-shop-category-card__button { --ffehbo-button-min-height: 44px; }
.ffehbo-order-lists__empty { padding: 32px; border: 1px solid var(--ffehbo-list-line); border-radius: 22px; background: var(--ffehbo-list-surface); }
.ffehbo-order-lists__empty h2 { margin: 0 0 12px; }
.ffehbo-order-lists__empty p { margin: 0 0 20px; }
.ffehbo-order-lists__products { overflow: hidden; border: 1px solid var(--ffehbo-list-line); border-radius: 22px; background: var(--ffehbo-list-surface); }
.ffehbo-order-list-product {
  display: grid;
  grid-template-columns: 22px 80px minmax(160px, 1fr) minmax(100px, auto) minmax(328px, auto);
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
  padding: 24px;
  border-bottom: 1px solid var(--ffehbo-list-line);
}
.ffehbo-order-list-product:last-child { border-bottom: 0; }
.ffehbo-order-list-product__select input { width: 20px; height: 20px; margin: 0; accent-color: var(--ffehbo-list-text); cursor: pointer; }
.ffehbo-order-list-product__select input:disabled { cursor: default; }
.ffehbo-order-list-product__image { display: block; width: 80px; height: 80px; border-radius: 14px; overflow: hidden; }
.ffehbo-order-list-product__image img { width: 100%; height: 100%; object-fit: contain; }
.ffehbo-order-list-product__info { min-width: 0; }
.ffehbo-order-list-product h3 { margin: 0 0 8px; font-family: var(--ffehbo-font-family-compact-title); font-size: var(--ffehbo-font-size-compact-title); font-weight: var(--ffehbo-font-weight-compact-title); line-height: var(--ffehbo-line-height-compact-title); overflow-wrap: anywhere; }
.ffehbo-order-list-product__recommended { display: block; margin: 0 0 8px; color: var(--ffehbo-list-muted); font-size: var(--ffehbo-font-size-label); line-height: var(--ffehbo-line-height-compact); overflow-wrap: anywhere; }
.ffehbo-order-list-product__stock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ffehbo-order-list-product__label { display: block; margin: 0 0 6px; color: var(--ffehbo-list-muted); font-size: var(--ffehbo-font-size-label); line-height: var(--ffehbo-line-height-compact); }
.ffehbo-order-list-product__price { min-width: 0; }
.ffehbo-order-lists .price { color: var(--ffehbo-list-text); font-size: var(--ffehbo-font-size-card-price); font-weight: 700; line-height: var(--ffehbo-line-height-compact); }
.ffehbo-order-list-product__price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ffehbo-order-lists .price .amount { color: inherit; font-size: inherit; }
.ffehbo-order-lists .price .woocommerce-price-suffix { display: block; width: 100%; color: var(--ffehbo-list-muted); font-size: var(--ffehbo-font-size-meta); }
.ffehbo-order-list-product__purchase { min-width: 0; }
.ffehbo-order-list-product__controls { --ffehbo-purchase-height: 44px; display: flex; align-items: stretch; gap: 0; }
.ffehbo-order-list-product__controls > .ffehbo-button {
  --ffehbo-button-min-height: var(--ffehbo-purchase-height);
  --ffehbo-button-padding: 0 12px;
  --ffehbo-button-radius: 0 999px 999px 0;
  flex: 1;
  min-width: 0;
  min-height: var(--ffehbo-purchase-height);
  border-radius: var(--ffehbo-button-radius);
  white-space: normal;
}
.ffehbo-order-list-product__controls > .quantity[hidden] + .ffehbo-button { --ffehbo-button-radius: 999px; }
.ffehbo-order-list-product__error { grid-column: 3 / -1; margin: 0; color: var(--woocommerce-red, var(--ffehbo-list-text)); font-size: var(--ffehbo-font-size-label); }
.ffehbo-order-lists__feedback { margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--ffehbo-list-line); border-radius: 14px; background: var(--ffehbo-list-surface); }
.ffehbo-order-lists__summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px; border: 1px solid var(--ffehbo-list-line); border-radius: 22px; background: var(--ffehbo-list-surface); }
.ffehbo-order-lists__summary-copy { min-width: 0; }
.ffehbo-order-lists__summary p { margin: 0 0 6px; }
.ffehbo-order-lists__summary small { display: block; color: var(--ffehbo-list-muted); font-size: var(--ffehbo-font-size-meta); line-height: var(--ffehbo-line-height-compact); }
.ffehbo-order-lists__summary .price { margin-inline-start: 8px; }
.ffehbo-order-lists .ffehbo-button::before,
.ffehbo-order-lists .ffehbo-button:before,
.ffehbo-order-lists .ffehbo-button::after,
.ffehbo-order-lists .ffehbo-button:after { content: none !important; display: none !important; }
.ffehbo-order-lists a:focus-visible, .ffehbo-order-lists input:focus-visible { outline: 2px solid var(--ffehbo-list-text); outline-offset: 3px; }
@media (max-width: 1150px) {
  .ffehbo-order-list-product { grid-template-columns: 22px 80px minmax(0, 1fr); }
  .ffehbo-order-list-product__info { grid-column: 3 / -1; }
  .ffehbo-order-list-product__price { grid-column: 2 / 3; }
  .ffehbo-order-list-product__purchase { grid-column: 3; grid-row: 2; }
  .ffehbo-order-list-product__error { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .ffehbo-order-lists__empty { padding: 24px; }
  .ffehbo-order-list-product { grid-template-columns: 44px 56px minmax(0, 1fr); gap: 16px 12px; padding: 20px 16px; }
  .ffehbo-order-list-product__image { width: 56px; height: 56px; }
  .ffehbo-order-list-product__info { grid-column: 3; }
  .ffehbo-order-list-product__price { grid-column: 1 / -1; grid-row: 2; }
  .ffehbo-order-list-product__purchase { grid-column: 1 / -1; grid-row: 3; }
  .ffehbo-order-list-product__controls > .ffehbo-button { min-width: 0; flex: 1; }
  .ffehbo-order-list-product__error { grid-column: 1 / -1; }
  .ffehbo-order-lists__summary { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px; }
  .ffehbo-order-lists__bulk { width: 100%; }
}

/* Compact shortcode navigation keeps its own navigation language. */
.ff-ehbo-suite-bestellijsten-nav-list { list-style: none; margin: 0; padding: 0; }
.ff-ehbo-suite-bestellijsten-nav-item { margin: 0; }
.ff-ehbo-suite-bestellijsten-nav-link { display: inline-block; padding: .4rem .75rem; border-left: 2px solid transparent; color: inherit; text-decoration: none; }
.ff-ehbo-suite-bestellijsten-nav-link b { font-weight: inherit; }
.ff-ehbo-suite-bestellijsten-nav-link.is-current-bestellijst { border-color: currentColor; }

.ffehbo-order-lists__summary:has(+ .ffehbo-order-lists__products) { margin: 0 0 24px; }

/* Touch controls retain compact desktop geometry and shared visual roles. */
.ffehbo-order-list-product__select-hit { display: inline-flex; align-items: center; justify-content: center; margin: 0; cursor: pointer; }
@media (max-width: 760px), (pointer: coarse) {
  .ffehbo-order-list-product__select-hit { width: 44px; height: 44px; }
}
@media (min-width: 761px) and (pointer: coarse) {
  .ffehbo-order-list-product__select-hit { margin-inline-start: -11px; }
}

/* A list's own product image remains fully visible inside the shared header. */
.ffehbo-order-lists .ffehbo-account-page-hero--order-list-image .ffehbo-account-page-hero__media img { object-fit: contain; padding: 20px; }
.ffehbo-order-lists .ffehbo-account-page-hero--order-list-image .ffehbo-account-page-hero__media { background: white; }
.ffehbo-order-lists__summary-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 1 auto; min-width: 0; }
.ffehbo-order-lists__selection { margin: 0; }
@media (max-width: 760px) {
  .ffehbo-order-lists__summary-actions { width: 100%; }
}
.ffehbo-order-lists__selection label { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-family: var(--ffehbo-font-family); font-size: var(--ffehbo-font-size-label); font-weight: var(--cmsmasters-text-font-weight); line-height: var(--ffehbo-line-height-compact); text-transform: none; letter-spacing: normal; cursor: pointer; }
.ffehbo-order-lists__selection input { width: 20px; height: 20px; margin: 12px; accent-color: var(--ffehbo-list-text); }
