/* MMG fulfilment date: the picker in the planner's flow and style (docs/superpowers/specs/2026-11-17-fd-picker-b.md; approved mock docs/superpowers/mocks/2026-11-17-fd-picker/).
   The planner's own stylesheet (mmg-storefront, loaded under the switches) draws the tiles, folded rows, day strip, slots and calendar; this file is only what is the picker's:
   it takes the card, the title and the loading overlay of the old picker away, reserves the geometry of every part so nothing moves after load, restyles the Occasion row
   (the planner keys those rules on its own data attribute, which the picker must not print), sizes the calendar to 44px, and draws the compact side cart summary.
   Everything is scoped to [data-mmg-fd-style="planner"]; with every switch off this file is not loaded. */

.mmg-fd[data-mmg-fd-style="planner"] {
  display: block;
  margin: 0 0 30px;
}

/* The old card, its outline, shadow and padding, and the side cart's variant of them, go: the picker sits on the page with nothing around it. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-card,
.mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-card {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-title {
  margin: 0 0 4px;
  color: var(--mmg-planner-ink);
  font-family: var(--mmg-font-serif, 'Noto Serif', 'Noto Serif Fallback', Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-title:focus {
  outline: 0;
}

/* The checkout form's id rules (#wfacp-e-form .mmg-fd-title at 16px, #wfacp-e-form .mmg-fd-card with its outline) beat the class rules above. */
#wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-title {
  font-size: 20px;
  line-height: 26px;
}

#wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-card {
  outline: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] {
  --mmg-planner-body: var(--mmg-font-sans, 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --mmg-planner-serif: var(--mmg-font-serif, 'Noto Serif', 'Noto Serif Fallback', Georgia, serif);
}

/* The loading lock keeps its job (no taps on stale dates) without the shimmer; the attention pulse of the old card is gone with the card. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-loading-overlay {
  background: transparent;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-loading-overlay::after,
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd-attention .mmg-fd-card {
  animation: none;
}

/* ---- The tiles, as the planner's panel draws them -------------------------------------------------------------------------------------------------------- */

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="types"] .mmg-planner__type {
  height: 88px;
  padding: 16px;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="types"] .mmg-planner__type-name {
  font-size: 18px;
  line-height: 22px;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="types"] .mmg-planner__type.is-on::before,
.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="types"] .mmg-planner__type.is-on::after {
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
}

/* The side cart's folded row replaces its tiles. */
.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="types"][hidden] {
  display: none;
}

/* ---- Geometry reserved before the script draws (the page may be cached): bones, no shimmer, no caption --------------------------------------------------- */

/* The groups are 16px apart (the editor's 8px gap and 8px more): the address group starts that far under the tiles, its field at the top of the 102px (the 10px left over is under it), and the date group is 8px lower under it. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .mmg-fd-part-address,
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--cart .mmg-fd-part-address {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 102px;
  margin-top: 8px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address + .mmg-fd-part-date {
  margin-top: 8px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address.is-bone {
  border-radius: 16px;
  background: var(--mmg-planner-cream-100);
  /* With no script the bone goes after 8 seconds and the slot stays empty. */
  animation: mmg-fd-bone-out 0s 8s forwards;
}

@keyframes mmg-fd-bone-out {
  to {
    background: transparent;
  }
}

/* With no address suggestions the group is the typed street, postcode and town with its Check button: 172px, held from the print so opening it moves nothing. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .mmg-fd-part-address.is-typed,
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--cart .mmg-fd-part-address.is-typed {
  min-height: 172px;
}

/* The tile lines' bones (the planner draws them on an empty line) go the same way when the first read never answers. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__type-line:empty::before {
  animation: mmg-fd-bone-out 0s 8s forwards;
}

/* The address slot's folded rows fill its 102px; the open field leaves 10px. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address .mmg-planner__sec.is-folded,
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address .mmg-planner__sum {
  height: 102px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address .mmg-planner__sum-val,
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address .mmg-planner__sum-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
}

/* Date & time: a strip of one tile row, slots of the configured row count, and the message row, all held before and after the read.
   The reserve is what the script paints: the label row 16 + 8, the strip 64, the day label 4 + 16 + 6, the slot rows, the message row 48 (8 + two lines). */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-date:not(.is-ready) {
  min-height: calc(16px + 8px + 64px + 26px + var(--mmg-fd-slot-rows, 1) * 48px + 48px);
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__strip {
  min-height: 64px;
}

/* "Tomorrow" at 12px is 55px: the planner's 56px minimum leaves it 54 inside the tile's border, which clipped it at a 320px screen. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__day {
  min-width: 58px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__slots {
  min-height: calc(var(--mmg-fd-slot-rows, 1) * 48px);
  align-content: flex-start;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--checkout .mmg-planner__slots[aria-busy="true"] .mmg-planner__bone--slot {
  background: linear-gradient(var(--mmg-planner-cream-200), var(--mmg-planner-cream-200)) center / 56% 8px no-repeat,
              var(--mmg-planner-cream-100);
}

@media (prefers-reduced-motion: no-preference) {
  .mmg-fd[data-mmg-fd-style="planner"].mmg-fd--checkout .fd-reveal-slots > .mmg-planner__slot {
    animation: mmg-fd-slots-in 160ms ease-out;
  }
}

@keyframes mmg-fd-slots-in {
  from { opacity: .25; }
}

/* The component's paragraph reset (.mmg-fd p) would take the label's 4px above and 6px below. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__slotday {
  min-height: 16px;
  margin: 4px 0 6px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-msgrow {
  min-height: 48px;
  padding-top: 8px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-msgrow > * {
  margin-top: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__note,
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__muted {
  margin: 0;
  color: var(--mmg-planner-ink-muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---- Calendar arrows and days at 44px (the shipped planner has 36 and 40; changing the shared file is a planner change) ----------------------------------- */

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-nav {
  width: 44px;
  height: 44px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-day {
  height: 44px;
  line-height: 42px;
}

/* ---- The Occasion row: always a folded row with the native select laid over it (the planner keys this on its own attribute) --------------------------------- */

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] {
  position: relative;
  min-height: 60px;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] .mmg-planner__select {
  position: absolute;
  inset: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] .mmg-planner__select::after {
  display: none;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] .mmg-planner__selectbox {
  height: 100%;
  border-radius: 12px;
  background: none;
  color: transparent;
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] .mmg-planner__selectbox option {
  color: var(--mmg-planner-ink);
}

.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-sec="occasion"] .mmg-planner__selectbox:focus-visible {
  outline: 2px solid var(--mmg-planner-ink);
  outline-offset: -2px;
}

/* The checkout's slot: the storefront mounts its own Occasion field here; the row is the planner's folded row. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-occasion-slot:empty {
  display: none;
}

/* Side cart: show the address within the folded delivery summary. */

.mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-part-address,
.mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-title {
  display: none;
}

/* The row is not a card inside the side cart's section: the section (the picker's card, below) is the box, so the row has no border, fill, radius or side padding of its own. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-sum--cart .mmg-planner__sum {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-sum--cart .mmg-planner__sum-main {
  gap: 0;
}

/* The summary text is a size down so "Tomorrow 19 Nov, 12 PM – 3 PM" shows whole beside Change at 320px. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-sum--cart .mmg-planner__sum-val {
  font-size: 14px;
  line-height: 20px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-sum--cart .mmg-planner__sum-sub {
  font-size: 13px;
  line-height: 18px;
}

/* At 320px the 14px line has no room to spare beside Change, and a longer slot ("10 AM – 12 PM") would cut. */
@media (max-width: 340px) {
  .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-sum--cart .mmg-planner__sum-val {
    font-size: 13px;
  }
}

.mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] {
  margin: 0;
  padding: 0;
}

/* The side cart's section is the box, full width (the dense variant's card, with its hairline above and its 16px sides): the row's cream fill is this section's. */
@layer mmg-fd {
  .mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-card {
    background: var(--mmg-planner-cream-50) !important;
  }

  .mmg-fd-fkcart .mmg-fd[data-mmg-fd-style="planner"] .mmg-fd-card:has(.mmg-fd-sum--cart) {
    padding-block: 8px !important;
  }
}

/* The planner's own folded-row rule keys on its data attribute too: a folded group is its row and nothing else. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sec.is-folded {
  margin: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__struck {
  color: var(--mmg-planner-ink-muted);
  text-decoration: line-through;
}

/* The action word of a folded row is underlined whether the row is empty (Add) or set (Change); the planner's empty row leaves it plain. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum.is-empty .mmg-planner__sum-act {
  color: var(--mmg-planner-ink);
  font-weight: 600;
  text-decoration: underline;
}

/* The Occasion row says "Optional" in the weight of a chosen occasion. */
.mmg-fd[data-mmg-fd-style="planner"] [data-mmg-fd-part="occasion"] .mmg-planner__sum.is-empty .mmg-planner__sum-val {
  color: var(--mmg-planner-ink);
  font-weight: 600;
}

/* The address fields keep their cream fill while focused (the mock's typing frame) and wear the picker's inset 2px ink ring, not the planner sheet's transparent field and outside ring. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__input:focus {
  background: var(--mmg-planner-cream-100);
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__input:focus-visible {
  outline: 2px solid var(--mmg-planner-ink);
  outline-offset: -2px;
}

/* ---- The address suggestions: a bordered box over the content below the field, a line between the rows, the map credit as its last row ------------------------------------------------------------ */

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__form {
  position: relative;
}

/* The box is out of the flow: it hangs 8px under the field (44px, and the gap) and over whatever follows, so the list, its skeleton and its no-match line never push Date & time.
   998 clears the theme's bottom bar (997). */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest {
  position: absolute;
  top: 44px;
  right: 0;
  left: 0;
  z-index: 998;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--mmg-planner-cream-200);
  border-radius: 16px;
  background: #fff;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__opt {
  margin: 0;
  padding: 7px 14px;
  border-radius: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__opt + .mmg-planner__opt {
  border-top: 1px solid var(--mmg-planner-cream-200);
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__help {
  padding: 12px 14px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__attr {
  position: static;
  padding: 0 14px;
  border-top: 1px solid var(--mmg-planner-cream-200);
  background: none;
}

/* Only "Enter manually" to show (Change refills the field with the saved street): a plain line in flow where the fee line was, on the fee line's indent, with no box and no height of its own;
   the link keeps its 44px tap area, which hangs below the line. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest.is-plain {
  position: static;
  margin-top: 4px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest.is-plain .mmg-planner__help {
  justify-content: flex-start;
  gap: 0;
  padding: 0 0 0 17px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest.is-plain .mmg-planner__help .mmg-planner__link {
  align-items: flex-start;
  margin: 0 0 -24px;
}

/* "Remove address" has the 44px tap area the other links have, and no more height than its line: the link's box is 44px, 4px above its line and 20px below it. The field and the suggestion
   box sit above the part that hangs over them, so a tap on either is theirs. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__link[data-mmg-fd-act="addr-remove"] {
  display: inline-flex;
  align-items: flex-start;
  min-height: 44px;
  padding-top: 4px;
  margin: -4px 0 -20px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__smart {
  position: relative;
  z-index: 1;
}

/* The rows still on their way are the loaded rows' shape (a 56px row, the 14px sides, a line between): the pin's dot and the two text bars, so the list replaces them with nothing moving. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__bone--opt {
  box-sizing: border-box;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  padding: 0 14px;
  border-radius: 0;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__bone--opt::before {
  justify-self: center;
  background: var(--mmg-planner-cream-200);
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__suggest .mmg-planner__bone--opt + .mmg-planner__bone--opt {
  height: 57px;
  border-top: 1px solid var(--mmg-planner-cream-200);
}

/* The component's paragraph reset (.mmg-fd p) would take the planner's own spacing of these two lines, and the fee line's 17px (it starts on the pin) with it. */
.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__hint {
  margin-top: 4px;
  padding-left: 17px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__msg:not(:empty) {
  margin-top: 12px;
}

.mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: var(--mmg-planner-brown);
  color: var(--mmg-planner-cream-50);
  font-size: 15px;
  font-weight: 600;
}

/* ---- Product page, v11 (docs/superpowers/specs/2026-11-18-fd-picker-v11.md; mock docs/superpowers/mocks/2026-11-18-fd-picker-v11/): every rule below is under .mmg-fd--product, so the cart page, the side cart and the checkout draw as before ---- */

/* The quiet row under the address field (or under Check): the way into the other entry, and Remove address, as muted 14px links with the 44px tap area. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-editrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -2px;
}

/* The old "Remove address" rule (a 44px box hanging below its line) is for the cart page: in the quiet row the link is its own 44px line. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-editrow .fd-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--mmg-planner-ink-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Check is 12px under the typed fields (the mock's rule; the message paragraph between them is empty and has no height). */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .mmg-planner__typed ~ .mmg-planner__action {
  margin-top: 12px;
}

/* More dates and Cancel, side by side in the Date & time heading. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

/* The suggestion box hangs under the quiet row (where it would sit in the flow) over what follows, with a soft shadow: loading, loaded and no match never move Date & time. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .mmg-planner__suggest {
  top: auto;
  margin-top: 12px;
  box-shadow: 0 10px 28px rgba(47, 44, 40, 0.16);
}

/* With the keyboard open the list belongs to the sheet's scrolling content. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product > .mmg-nav-pdp-sheet.is-address-keyboard .mmg-planner__suggest {
  position: static;
}

/* "No match for ..." is one muted line in a small box. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .mmg-planner__suggest .mmg-planner__help {
  font-size: 14px;
  line-height: 20px;
}

/* Four waiting rows in a loaded row's shape: a 22px pin, two bars, 7px 14px padding and the line between rows (the suggest rules above), static, no caption. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt {
  min-height: 57px;
  cursor: default;
  pointer-events: none;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:first-child {
  min-height: 56px;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-sk-pin {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mmg-planner-cream-200);
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-sk-body {
  display: block;
  flex: 1;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-sk-bar {
  display: block;
  border-radius: 6px;
  background: var(--mmg-planner-cream-100);
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-sk-bar--main {
  height: 14px;
  margin: 4px 0;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-sk-bar--more {
  height: 12px;
  margin: 4px 0;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(1) .fd-sk-bar--main { width: 52%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(2) .fd-sk-bar--main { width: 44%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(3) .fd-sk-bar--main { width: 58%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(4) .fd-sk-bar--main { width: 48%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(1) .fd-sk-bar--more { width: 72%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(2) .fd-sk-bar--more { width: 80%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(3) .fd-sk-bar--more { width: 66%; }
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product .fd-skopt:nth-child(4) .fd-sk-bar--more { width: 76%; }

/* The folded Date & time row is one fixed height whatever its sub-line (label, value and two lines under them), so no fold moves Occasion; the sub-line wraps to two lines, never an ellipsis. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product [data-mmg-fd-part="date"] .mmg-planner__sec.is-folded,
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product [data-mmg-fd-part="date"] .mmg-planner__sum {
  height: 100px;
}

.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product [data-mmg-fd-part="date"] .mmg-planner__sum-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
}

/* 16px between every group: Occasion is 8px under the date group, and the editor's own 8px gap is the rest. */
.mmg-fd[data-mmg-fd-style="planner"].mmg-fd--product [data-mmg-fd-part="occasion"] {
  margin-top: 8px;
}

/* ---- Checkout: FunnelKit paints every button[type=button] in its form (`body #wfacp-e-form button[type="button"]:not(.white):not(.black)`, and a grey slab for [disabled]);
   an id selector beats the planner's class rules. The planner's buttons state their paint again here, in the component's first-declared layer (mmg-fulfilment-date.css), where an
   !important declaration beats the page's whatever its selector. Each value is the planner stylesheet's own; only the checkout form is touched. --------------------------------- */
@layer mmg-fd {
  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] button {
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--mmg-planner-ink) !important;
    font-weight: 400 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__type, .mmg-planner__day, .mmg-planner__slot) {
    border-radius: 16px !important;
    background-color: var(--mmg-planner-tile) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__type {
    padding: 16px !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__slot {
    padding: 0 8px !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum {
    min-height: 60px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background-color: var(--mmg-planner-cream-50) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum:not(.is-static):hover {
    background-color: var(--mmg-planner-cream-100) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-day {
    border-radius: 12px !important;
    background-color: var(--mmg-planner-tile) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-nav {
    border-radius: 999px !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__use {
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 22px !important;
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__link {
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sechead .mmg-planner__link {
    min-height: 44px !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__outline {
    padding: 0 20px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__action {
    padding: 0 18px !important;
    border-radius: 22px !important;
    background-color: var(--mmg-planner-brown) !important;
    color: var(--mmg-planner-cream-50) !important;
    font-weight: 600 !important;
  }

  /* The states: chosen (a tinted tile with its ring), closed (crossed out), muted and today in the calendar, a disabled arrow. */
  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__type, .mmg-planner__day, .mmg-planner__slot, .mmg-planner__cal-day).is-on,
  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day, .mmg-planner__cal-day).is-tapped {
    background-color: var(--mmg-planner-accent-soft) !important;
    box-shadow: inset 0 0 0 1px var(--mmg-planner-accent) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day, .mmg-planner__slot, .mmg-planner__cal-day):is(.is-on, .is-tapped) {
    font-weight: 700 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day, .mmg-planner__slot).is-gone {
    background-image: linear-gradient(to top right, transparent calc(50% - 0.75px), rgba(85, 80, 74, 0.55) calc(50% - 0.75px), rgba(85, 80, 74, 0.55) calc(50% + 0.75px), transparent calc(50% + 0.75px)),
      linear-gradient(to bottom right, transparent calc(50% - 0.75px), rgba(85, 80, 74, 0.55) calc(50% - 0.75px), rgba(85, 80, 74, 0.55) calc(50% + 0.75px), transparent calc(50% + 0.75px)) !important;
    color: var(--mmg-planner-ink-muted) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-day.is-muted {
    background: none !important;
    color: var(--mmg-planner-ink-muted) !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-day.is-today {
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__cal-nav:disabled {
    color: var(--mmg-planner-ink-muted) !important;
  }

  /* The type of everything in the form is FunnelKit's too (it resets every descendant's size, weight and spacing): the planner's labels state theirs again, so "Tomorrow" fits its tile. */
  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__type-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__type.is-on .mmg-planner__type-name {
    font-weight: 700 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__type-line {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day-top, .mmg-planner__day-mon) {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__day-num {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day.is-on, .mmg-planner__day.is-tapped) .mmg-planner__day-num {
    font-weight: 700 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__label, .mmg-planner__sum-lab) {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    letter-spacing: 1.2px !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__slot, .mmg-planner__link, .mmg-planner__action, .mmg-planner__use, .mmg-planner__sum-act, .mmg-planner__sum-sub) {
    font-size: 15px !important;
    line-height: 20px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum-act {
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum-sub {
    font-weight: 400 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum-sub.is-fee {
    font-weight: 600 !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] .mmg-planner__sum-val {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 22px !important;
    letter-spacing: normal !important;
  }

  #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__note, .mmg-planner__muted, .mmg-planner__orderby, .mmg-planner__error) {
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: normal !important;
  }

  @media (hover: hover) {
    #wfacp-e-form .mmg-fd[data-mmg-fd-style="planner"] :is(.mmg-planner__day, .mmg-planner__slot, .mmg-planner__cal-day):not(.is-on):not(.is-tapped):not(.is-gone):not(.is-muted):hover {
      background-color: var(--mmg-planner-cream-200) !important;
    }
  }
}
