/* Foodbooki: one clear offer, using the site's black, warm white and yellow. */
.term-foodbooki #primary.content-area {
  box-sizing: border-box;
  max-width: 1440px;
  padding-inline: clamp(20px, 3vw, 40px);
  width: 100%;
}

.term-foodbooki .wm-foodbook-category-offer {
  background: #111;
  box-sizing: border-box;
  color: #fff;
  margin: 48px auto 64px;
  max-width: 1280px;
  min-height: 470px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  padding-right: min(39%, 450px);
  position: relative;
}

.term-foodbooki .wm-foodbook-category-offer::before {
  background: #fdf06f;
  content: "";
  display: block;
  height: 5px;
  margin-bottom: 24px;
  width: 70px;
}

.term-foodbooki .wm-foodbook-category-offer h2 {
  color: #fff;
  font-family: var(--wp--preset--font-family--heading-font);
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: .92;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.term-foodbooki .wm-foodbook-category-offer p {
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.6;
  max-width: 61ch;
}

.term-foodbooki .wm-foodbook-category-offer h2 + p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.term-foodbooki .wm-foodbook-category-cta,
.wm-foodbook-buy {
  background: #fdf06f;
  border: 2px solid #fdf06f;
  color: #111 !important;
  display: inline-block;
  font-family: var(--wp--preset--font-family--heading-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.2;
  padding: 16px 22px;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.term-foodbooki .wm-foodbook-category-cta:hover,
.term-foodbooki .wm-foodbook-category-cta:focus-visible,
.wm-foodbook-buy:hover,
.wm-foodbook-buy:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #111 !important;
}

.term-foodbooki .wm-foodbook-category-cover {
  bottom: -70px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
  margin: 0;
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  transform: rotate(5deg);
  width: min(29%, 310px);
}

.term-foodbooki .wm-foodbook-category-cover img {
  display: block;
  height: auto;
  width: 100%;
}

.term-foodbooki .wm-foodbook-category-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.term-foodbooki .wm-foodbook-category-more {
  color: #fff;
  font-size: 1rem;
  text-underline-offset: 4px;
}

/* One product is presented in the offer above; more use the native cards. */
.term-foodbooki ul.products:has(> li.product:only-child) {
  display: none;
}

.term-foodbooki .wm-foodbook-category-shell {
  margin-bottom: 0;
}

.term-foodbooki .woocommerce-products-header {
  margin-bottom: 0;
}

/* ponytail: this category has one title; restore sorting when it gains more. */
.term-foodbooki .woocommerce-result-count,
.term-foodbooki .woocommerce-ordering {
  display: none;
}

.single-product .wm-foodbook-content {
  box-sizing: border-box;
  left: 50%;
  max-width: none;
  position: relative;
  transform: translateX(-50%);
  width: min(1400px, calc(100vw - 64px));
}

.single-product .wm-foodbook-content section {
  box-sizing: border-box;
  margin: 0;
  padding: clamp(52px, 6vw, 84px) clamp(24px, 5vw, 70px);
}

.single-product .wm-foodbook-content p {
  font-size: 1.04rem;
  line-height: 1.72;
  max-width: 72ch;
}

.wm-foodbook-kicker {
  font-family: var(--wp--preset--font-family--heading-font);
  font-size: .76rem !important;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.wm-foodbook-content h2 {
  font-size: clamp(2.15rem, 4.8vw, 4.6rem);
  letter-spacing: -.05em;
  line-height: .98;
  margin: 0 0 28px;
  max-width: 17ch;
  text-transform: uppercase;
}

.wm-foodbook-lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.55 !important;
}

.wm-foodbook-band,
.wm-foodbook-end {
  background: #111;
  color: #fff;
}

/* Extend the background while keeping the existing content width. */
.single-product .wm-foodbook-content :is(.wm-foodbook-band, .wm-foodbook-end) {
  box-shadow: 0 0 0 100vmax #111;
  clip-path: inset(0 -100vmax);
}

.single-product .wm-foodbook-content .wm-foodbook-fit {
  box-shadow: 0 0 0 100vmax #f2f2ef;
  clip-path: inset(0 -100vmax);
}

.wm-foodbook-band .wm-foodbook-kicker,
.wm-foodbook-end .wm-foodbook-kicker {
  color: #fdf06f;
}

.wm-foodbook-band h2,
.wm-foodbook-end h2 {
  color: #fff;
}

.wm-foodbook-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.wm-foodbook-grid article {
  border: 1px solid #111;
  padding: clamp(22px, 2.5vw, 32px);
}

.wm-foodbook-grid article + article {
  border-left: 0;
}

.wm-foodbook-grid span {
  display: block;
  font-family: var(--wp--preset--font-family--heading-font);
  font-size: .85rem;
  letter-spacing: .14em;
  margin-bottom: 30px;
}

.wm-foodbook-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.wm-foodbook-grid article p {
  font-size: .98rem;
  margin-bottom: 0;
}

.wm-foodbook-fit {
  background: #f2f2ef;
}

.wm-foodbook-faq > div {
  border-top: 1px solid #111;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  padding: 20px 0;
}

.wm-foodbook-faq h3,
.wm-foodbook-faq p {
  margin: 0;
}

.wm-foodbook-end .wm-foodbook-buy {
  margin-top: 18px;
}

.postid-1571 .wp-block-woocommerce-product-details ~ .wp-block-heading,
.postid-1571 .wp-block-woocommerce-product-details ~ .wp-block-woocommerce-product-collection {
  display: none;
}

.postid-1571 .woocommerce.product > .wp-block-group,
.postid-1571 .woocommerce.product .woocommerce-tabs,
.postid-1571 .woocommerce-Tabs-panel {
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .postid-1571,
  .term-foodbooki {
    --wp--custom--gap--horizontal: 20px;
  }

  .term-foodbooki .wm-foodbook-category-offer {
    margin: 32px auto 40px;
    min-height: 0;
    padding: 32px 20px 0;
  }

  .term-foodbooki .wm-foodbook-category-offer h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  .term-foodbooki .wm-foodbook-category-cover {
    bottom: auto;
    margin: 36px auto -45px;
    position: relative;
    right: auto;
    transform: rotate(3deg);
    width: min(64%, 260px);
  }

  .single-product .wm-foodbook-content {
    width: calc(100vw - 32px);
  }

  .single-product .wm-foodbook-content section {
    padding: 36px 12px;
  }

  .wm-foodbook-content :is(h2, h3) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .wm-foodbook-content h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.05;
  }

  .wm-foodbook-content p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .wm-foodbook-grid {
    margin-top: 24px;
  }

  .wm-foodbook-grid article {
    padding: 20px;
  }

  .wm-foodbook-grid span {
    margin-bottom: 18px;
  }

  .wm-foodbook-grid,
  .wm-foodbook-faq > div {
    grid-template-columns: 1fr;
  }

  .wm-foodbook-grid article + article {
    border-left: 1px solid #111;
    border-top: 0;
  }
}
