/* =====================================================================
   MAYFIELD FARM SHOP — Global Stylesheet
   Plain CSS, no frameworks. Desktop container fixed at 1200px.
   Sections: 1) Tokens  2) Base  3) Layout  4) Header/Nav  5) Footer
             6) Buttons  7) Paper panels  8) Product cards  9) Forms
            10) Checkout timeline  11) Page-specific  12) Responsive
   ===================================================================== */

/* ---------- 1) DESIGN TOKENS ---------- */
:root {
  /* Brand colours */
  --dark-green: #00473b;
  --teal: #6e969a;
  --brown: #93705d;
  --terracotta: #cb8967;
  --orange: #e87722;
  --sage: #c0c1b5;
  --pink-bg: #f2e1d9;
  --off-white: #faf7f5;
  --white: #ffffff;
  --black: #000000;

  /* Type */
  --font-head: "Arbutus Slab", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --font-hand: "Shadows Into Light", cursive;

  /* Spacing scale */
  --sp-1: 6px;
  --sp-2: 12px;
  --sp-3: 18px;
  --sp-4: 24px;
  --sp-5: 30px;
  --sp-6: 44px;
  --sp-7: 64px;

  /* Misc */
  --container: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 6px 22px rgba(40, 30, 20, 0.08);
  --shadow-sm: 0 2px 8px rgba(40, 30, 20, 0.07);
}

/* ---------- 2) BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--black);
  background: var(--pink-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

/* Page title — Arbutus Slab SemiBold ~54px teal */
.page-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.05;
  color: var(--teal);
  margin: 0;
}

/* Panel heading — Arbutus Slab Regular ~38px black */
.panel-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 var(--sp-3);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  color: var(--dark-green);
}

/* ---------- 3) LAYOUT ---------- */
.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  /* padding: 0 20px; */
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-bottom: var(--sp-7);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 var(--sp-5);
}

.page-head .page-title {
  flex: 0 1 auto;
}
.page-head .btn {
    flex: none;
    background: #fff;
}

/* Right-side actions in the portal page head: logged-in portal-nav buttons
   (Farm Shop / My Deliveries / My Subscriptions) + the address switcher. */
.page-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}
.mf-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
/* On the shop page head, the portal buttons sit on the right of the title. */
.shop-page .page-head .mf-portal-nav {
  margin-left: auto;
}
/* Mobile: the call (2026-08-26) wants the SAME buttons visible on every
   page on mobile too — compact row under the title, 44px touch targets. */
@media (max-width: 768px) {
  .page-head .mf-portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .page-head .mf-portal-nav .btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    justify-content: center;
    font-size: 11px;
    padding: 10px 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .page-head .page-head-actions { width: 100%; }
}

/* Delivery-address switcher sitting in the portal page head (right), replacing
   the old cross-link button + separate address bar to save vertical space.
   Only rendered when the customer has >1 address (see page.php). */
.page-head .mf-address-switch {
    flex: 0 1 420px;
    min-width: 240px;
    max-width: 460px;
    margin-bottom: 8px;
}
.page-head .mf-address-switch .ids-address-select-wrap {
    min-width: 0;
    max-width: none;
}
.mf-product .page-head .btn {
    min-width: 150px;
    height: 40px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--terracotta);
    color: var(--terracotta);
    font-size: 14px;
    letter-spacing: 0.22em;
    font-weight: 700;
    border-radius: 8px;
}
.row {
  display: flex;
  gap: var(--sp-4);
}

.col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.between {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.muted {
  color: #000000
}

/* ---------- 4) HEADER + NAV ---------- */
.site-header {
  position: relative;
  height: 210px; /* Andy's design header depth — panel needs the room */
  background: var(--white);
  box-shadow: -5px 20px 20px 20px #34343433;
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Centre logo, ~220px wide  [REPLACE assets/logo.png] */
.logo {
  width: 210px;
  height: auto;
  margin-top: 0;
}

/* Left delivery panel (vertically centred; "order online" label removed) */
.order-online {
  position: absolute;
  top: 0; /* hangs from the very top of the page, per Andy's design */
  left: 0px;
  width: 256px;
  background: var(--pink-bg);
  /* drop-shadow traces the wavy edge; box-shadow drew a hard band behind it */
  box-shadow: none;
  filter: drop-shadow(0 5px 7px rgba(52, 52, 52, 0.18));
  padding: 16px 18px 22px;
  text-align: center;
  border: 0; /* design shows no side borders */
  z-index: 3; /* above .nav-wrap (z-index 2) so the buttons + wavy edge stay visible */
}

.order-online::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  width: 100%;
  height: 100%;
  background-image: url(../img/bottomLine-2.png);
  background-repeat: repeat-x;
  background-size: auto 15px;
  background-position: bottom center;
  pointer-events: none;
  z-index: 2;
}

.order-online .hand {
  display: block;
  margin-bottom: var(--sp-2);
  /* transform: rotate(-3deg); */
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-online .hand::before {
  content: '';
  width: 40px;
  z-index: 999;
  border: 1px dotted #c0c1b5;
  position: absolute;
  top: 15px;
  left: 0px;
  border-spacing: 3px;
}

.order-online .hand img {
  display: block !important;
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;

  margin-bottom: 10px;
}

.order-online .hand::after {
  content: '';
  width: 40px;
  z-index: 999;
  border: 1px dotted #c0c1b5;
  position: absolute;
  top: 15px;
  right: 0px;
  border-spacing: 3px;
  /* letter-spacing: 60px; */
}

.order-online .stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.order-online .btn-block {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
}

/* Right-hand phone + login, vertically centred */
.header-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

/* Shop entry panel — left of the centred logo, both guest (2 buttons) and
   logged-in (1 button). Uses .order-online for the panel frame + wavy border. */
.header-shop-choice {
  position: absolute;
  top: 0; /* hangs from the page top per Andy's design (was vertically centred) */
  left: 0px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* "order online" label — black chunky hand script per design zoom */
.mf-order-label {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 6px;
}

/* Choice buttons: outlined (not filled) to match Andy's design — less dominant,
   same weight as the rest of the header chrome. */
.header-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  background: transparent;
  color: var(--terracotta);
  font-weight: 700;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--terracotta);
  letter-spacing: 0.25em;
}

.login-link {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

a.login-link.edit-details {
  color: var(--terracotta);
  font-family: "Open Sans", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 4px 14px !important;
  background: transparent !important;
  border: 1px solid var(--terracotta) !important;
  border-radius: 4px !important;
}

.login-link:hover {
  color: var(--dark-green);
}

/* Nav bar — teal pill, 1200 wide, ~40px tall */
.nav-wrap {
  position: relative;
  z-index: 2;
  top: -8px; /* -20 grazed the order-online wavy edge */
}

.main-nav {
  height: 40px;
  background: var(--teal);
  border-radius: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0px 0 0px;
  color: var(--white);
  gap: 15px;
}

.nav-home {
  color: var(--white);
  transition: background .15s;
  width: 60px !important;
  height: 35px !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 16px;
  box-shadow: inset 0px 0px 5px #547475;
}

.nav-home:hover,
.nav-icon:hover {
  background: rgba(255, 255, 255, .18);
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.nav-right {
  color: var(--white);
  transition: background .15s;
  border-radius: 100px !important;
  justify-content: center !important;
  padding: 7px 25px;
  box-shadow: inset 0px 0px 5px #547475;
}

.nav-right .nav-icon {

  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

span.separator {
  color: #dedfd8;
  line-height: 14px;
  font-size: 14px;
}

.nav-icon .badge {
  position: absolute;
  transform: translate(12px, -12px);
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- 5) FOOTER ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-7);
  /* background: var(--dark-green); */
  color: var(--white);
  padding: 90px 0 40px;
}

/* Curved wave top edge (inline SVG, pink fill cutting into green) */
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Decorative swirl on the right [REPLACE with brand swirl SVG if available] */
.site-footer::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100px;
  width: 570px;
  height: 300px;
  opacity: .12;
  pointer-events: none;
  background: url(../img/flourish.svg);
  filter: brightness(0) invert(1) !important;
  opacity: 0.28 !important;
  /* max-width: 300px !important; */
  background-repeat: no-repeat;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--sp-6);
  position: relative;
  z-index: 2;
}

.footer-grid .hand {
  font-size: 38px;
  display: block;
  margin-bottom: var(--sp-2);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: var(--sp-3);
}

.footer-col p,
.footer-col a {
  font-size: 17px;
  line-height: 1.7;
  color: #d9e3df;
}

.footer-col a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 14px;
  color: #b9c7c1;
  letter-spacing: .04em;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- 6) BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter .15s, background .15s, color .15s;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-brown {
  background: var(--brown);
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-green {
  background: var(--dark-green);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: #fff;
  filter: none;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  font-size: 16px;
  padding: 17px 30px;
}

.btn-sm {
  font-size: 12px;
  padding: 9px 15px;
  letter-spacing: .18em;
}

/* ---------- ITEM CARD (subscription / delivery item with meta rows) ---------- */
/* .item-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.item-card .pc-img {
  aspect-ratio: 4 / 3;
}

.item-card .ic-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.item-card .ic-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.meta-list .mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.meta-list .mlbl {
  color: #000;
  font-size: 17px;
}

.meta-list .mval {
  font-weight: 700;
  font-size: 17px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.status-sub {
  background: var(--dark-green);
  color: #fff;
}

.status-oneoff {
  background: var(--sage);
  color: var(--dark-green);
} */
/* ---------- ITEM CARD (subscription / delivery item with meta rows) ---------- */
.item-card {
  position: relative;
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.item-card .pc-img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #efe7dd;
}

.item-card .ic-body {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.item-card .ic-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.meta-list .mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--sage);
}

.meta-list .mrow:last-child {
  border-bottom: 0;
}

.meta-list .mlbl {
  color: #000;
  font-size: 20px;
  line-height: 1.5;
}

.meta-list .mval {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
}

.status-sub,
.status-oneoff {
  background: transparent;
  color: #000;
}
/* =========================================================
   MY DELIVERIES PAGE
   Parent: #ids-deliveries-list
   ========================================================= */

#ids-deliveries-list main {
  padding-bottom: 0;
}


#ids-deliveries-list .page-head {
  /* margin: 28px 0 18px; */
  align-items: center;
}

#ids-deliveries-list .page-title {
  color: var(--teal);
}

#ids-deliveries-list .page-head .btn {
    min-width: 150px;
    height: 40px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--terracotta);
    color: var(--terracotta);
    font-size: 14px;
    letter-spacing: 0.22em;
    font-weight: 700;
    border-radius: 8px;
}
/* delivery outer panels */
#ids-deliveries-list .paper-panel {
  padding: 30px 30px 30px;
  margin-bottom: 30px;
  background: var(--off-white);

  border-top: 0;
}
#ids-deliveries-list .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -7px;
    width: auto;
    height: 10px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 216px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
#ids-subscriptions-list .paper-panel {

    margin-bottom: 30px;
 
}
#ids-subscriptions-list .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -7px;
    width: auto;
    height: 10px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 214px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
/* #ids-subscriptions-list::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -9px;
    width: auto;
    height: 12px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 248px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
} */
/* top row */
#ids-deliveries-list .paper-panel > .between {
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

#ids-deliveries-list .paper-panel > .muted {
  margin: 0 0 20px !important;
  font-size: 14px;
  color: var(--teal);
}
#ids-deliveries-list .pc-divider {
    margin-bottom: 20px;
}
/* action buttons */
#ids-deliveries-list .tag-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#ids-deliveries-list .tag-actions .btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

#ids-deliveries-list .tag-actions .btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

#ids-deliveries-list .tag-actions .btn-brown {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

#ids-deliveries-list .tag-actions .btn-outline {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* cards grid */
#ids-deliveries-list .grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* item card detail */
#ids-deliveries-list .item-card {
  min-height: 270px;
}

#ids-deliveries-list .item-card .pc-divider {
  background: var(--teal);
  margin: 2px 0;
}

#ids-deliveries-list .item-card .qty {
  gap: 4px;
}

#ids-deliveries-list .item-card .qty button {
  width: 17px;
  height: 17px;
  min-width: 17px;
  background: var(--pink-bg);
  color: #000;
  font-size: 12px;
  padding: 0;
}

#ids-deliveries-list .item-card .qty input {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  font-size: 12px;
}

/* skip button inside cards */
#ids-deliveries-list .item-card .btn-outline {
    height: 40px;
    margin-top: 6px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 0.18em;
    font-weight: 700;
}

/* delivery card */
#ids-deliveries-list .grid-3 > .item-card[style] {
  justify-content: flex-start !important;
  align-items: stretch !important;
  background: #fff !important;
  border: 0 !important;
}

#ids-deliveries-list .grid-3 > .item-card[style] .van {
  width: 100% !important;
  height: 82px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #b89a88 !important;
  color: #fff !important;
}

#ids-deliveries-list .grid-3 > .item-card[style] .ic-body {
  text-align: left !important;
  align-items: stretch !important;
  padding: 8px 10px 12px !important;
}

#ids-deliveries-list .grid-3 > .item-card[style] .ic-title {
  border-bottom: 1px solid var(--teal);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

#ids-deliveries-list .grid-3 > .item-card[style] .mval {
  display: block;
  text-align: right;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

#ids-deliveries-list .grid-3 > .item-card[style] .muted {
  font-size: 13px !important;
  line-height: 1.35;
  color: #000 !important;
  text-align: left;
}

/* delivery instruction strip */
#ids-deliveries-list .delivery-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px !important;
  padding: 9px 12px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

#ids-deliveries-list .delivery-strip .van {
  width: 26px;
  height: 26px;
  background: transparent;
  color: var(--teal);
  border-radius: 0;
}

#ids-deliveries-list .delivery-strip .lbl {
  display: inline-block;
  margin-right: 8px;
  font-size: 10px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--teal) !important;
  font-weight: 700 !important;
}

#ids-deliveries-list .delivery-strip div {
  font-size: 11px;
  line-height: 1.3;
}

#ids-deliveries-list .delivery-strip .btn {
  height: 22px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

/* skipped item */
#ids-deliveries-list .skip-wrap {
  position: relative;
  overflow: hidden;
}

#ids-deliveries-list .skip-wrap.skipped-on .item-card {
  filter: none;
  opacity: 0.35;
}

#ids-deliveries-list .skip-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(250, 247, 245, 0.72); */
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  z-index: 3;
  border-radius: 0;
  pointer-events: none;
}

#ids-deliveries-list .skip-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    background: rgb(147 112 93 / 19%);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

#ids-deliveries-list .skip-overlay .btn {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
    height: 40px;
    padding: 0 12px;
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 0.14em;
    pointer-events: auto;
}
/* ---------- 7) PAPER PANELS (wavy bottom edge) ---------- */
.paper-panel {
  position: relative;
  background: var(--off-white);
  box-shadow: var(--shadow);
  box-shadow: -3px 5px 6px rgba(40, 30, 20, 0.08);
  /* border-radius: var(--radius-lg) var(--radius-lg) 0 0; */
  padding: var(--sp-5);
  margin-bottom: 26px;
  border: 2px solid #bcb0a9;
  width: 100%;
  border-bottom: 0;
  border-top: 0;
}
.shop-page .paper-panel {
    margin-bottom: 30px;
    padding-top: 10px;
}
.shop-page .section-head h2 {
    font-weight: 400;
}
.paper-panel.first-checkout-panel {
  border-radius: 0;
  top: -20px;
  padding-top: 60px;
  border: 0;
}

.paper-panel.first-checkout-panel h3.tl-title {
  color: #6f979b;
}

.paper-panel.first-checkout-panel::after {
  display: none;
}

/* Zig-zag / torn bottom edge */
/* .paper-panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -14px;
  height: 14px;
  background:
    linear-gradient(-45deg, transparent 66%, var(--off-white) 67%) 0 0,
    linear-gradient( 45deg, transparent 66%, var(--off-white) 67%) 0 0;
  background-size: 22px 14px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 4px 4px rgba(40,30,20,.05));
} */
.paper-panel::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -7px;
  width: auto;
  height: 8px;
  background-image: url("../img/bg-shape-zigzag.png");
  background-repeat: repeat-x;
  background-size: auto 178px;
  background-position: bottom center;
  pointer-events: none;
  z-index: 2;
}
.mf-product-extra .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -9px;
    width: auto;
    height: 10px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 214px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
.shop-page .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
  bottom: -8px;
    width: auto;
    height: 12px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 250px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
.paper-panel.flat::after {
  display: none;
}

.paper-panel.flat {
  border-radius: var(--radius-lg);
}

/* ---------- 8) PRODUCT CARDS ---------- */
.product-card {
  position: relative;
  background: var(--white);
  /* border-radius: var(--radius-lg); */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .pc-img {
    /* aspect-ratio: 1 / 1; */
    background: #efe7dd;
    object-fit: cover;
    width: 100%;
    height: 250px;
}

.product-card .pc-body {
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.pc-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}

.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.pc-price {
  font-weight: 600;
  font-size: 22px;
}

/* Keep cards in a row aligned when a product name wraps to two lines: reserve
   two lines of title height so the divider + price/add row line up regardless
   of a 1- or 2-line name. */
.pc-title {
  min-height: 2.4em;
}
.product-card .pc-body .pc-row:last-child {
  margin-top: auto;
}

/* Design product page: the size is chosen on the shop, so hide the size
   selector (and its "Clear" link) when a variation is pre-selected from a
   by-size card. WooCommerce still pre-selects the variation, so the price and
   Add-to-basket work as normal. */
body.mf-size-preselected table.variations,
body.mf-size-preselected .woocommerce-variation-add-to-cart .reset_variations,
body.mf-size-preselected a.reset_variations {
  display: none !important;
}

/* Size badge shown in short description when arriving from a by-size shop card */
.mf-size-badge {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--teal, #5a8a82);
}
.mf-size-badge strong {
  font-weight: 600;
}

.pc-divider {
  height: 1px;
  background: var(--sage);
  border: 0;
  margin: 4px 0;
}

.pc-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

.pc-add:hover {
  background: var(--dark-green);
}

/* Label chip (e.g. Free Delivery) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 500; 
  letter-spacing: .12em;
  text-transform: capitalize; 
  /* padding: 6px 12px; */
  border-radius: 20px;
}

.chip-green {
  background: var(--dark-green);
}

/* Skipped overlay */
.skip-wrap {
  position: relative;
}

.skip-overlay {
  display: none;
}

.skip-wrap.skipped-on .product-card {
  filter: grayscale(.4);
  opacity: .5;
}

/* .skip-wrap.skipped-on .skip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 71, 59, .6);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  z-index: 3;
  border-radius: var(--radius-lg);
} */

.skip-overlay span {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: .04em;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  /* border: 1px solid var(--sage); */
  border-radius: var(--radius);
  /* overflow: hidden; */
  gap: 5px;
  /* background: #fff; */
}

.qty button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink-bg);
  font-size: 20px;
  cursor: pointer;
  color: var(--dark-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.qty button:hover {
  background: var(--pink-bg);
}

.qty input {
  width: 30px;
  height: 28px;
  border: 0;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Grids */
.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Odd number of products in a 2-up shop grid (e.g. a size category with 3
   items): centre the lone last card at one-column width so the row isn't
   lopsided with an empty half beside it. */
.shop-page .grid-2 > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - (var(--sp-5) / 2));
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- 9) FORMS ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-3);
}

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #000;
}

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 35px;
  height: 44px;
  border: 1px solid var(--sage);
  border-radius: 7px;
  background: #fff;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--black);
  font-weight: 700;
}

textarea.input {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
  resize: vertical;
}

.input::placeholder {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  color: #b3ada4;
}

.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(110, 150, 154, .18);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* Radio option rows */
/* .radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.radio-row.selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(110, 150, 154, .25);
}

.radio-row input {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
}

.radio-row .ro-title {
  font-weight: 700;
}

.radio-row .ro-price {
  margin-left: auto;
  font-weight: 700;
} */

/* Accordion */
.accordion {
  border-top: 1px solid var(--sage);
}

.acc-item {
  border-bottom: 1px solid var(--sage);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--black);
  text-align: left;
}

.acc-head .pm {
  font-size: 26px;
  color: var(--teal);
  line-height: 1;
}

.acc-body {
  display: none;
  padding: 0 4px 18px;
  font-size: 16px;
  color: #5b5249;
}

.acc-item.open .acc-body {
  display: block;
}

.acc-item.open .pm {
  transform: rotate(45deg);
}
 /* =========================================================
   PRODUCT DETAIL PAGE - NEW DESIGN OVERRIDE
   Paste at very END of styles.css
   Parent: .mf-product
   ========================================================= */

.mf-product .product-detail {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas:
    "gallery summary"
    "desc    summary";
  gap: 26px 44px;
  align-items: start;
}
.mf-product .product-detail > .pd-gallery     { grid-area: gallery; }
.mf-product .product-detail > .paper-panel    { grid-area: summary; }
.mf-product .product-detail > .pd-description { grid-area: desc; }

/* Short description, moved under the image. Plain text block (not a card).
   Matches Andy's body palette: Open Sans, black (#000), line-height 1.5 —
   not a muted grey, so it reads as the same type as the rest of the design. */
.mf-product .pd-description {
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  max-width: 640px;
}
.mf-product .pd-description p { margin: 0 0 12px; }
.mf-product .pd-description a { color: var(--teal); word-break: break-word; }

.mf-product .product-detail > .paper-panel {
  padding: 22px;
  background: var(--off-white);
}

.mf-product .product-detail > .paper-panel .panel-title {
  font-size: 30px !important;
  line-height: 1.15;
  margin: 0 0 10px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sage);
}

.mf-product .product-detail > .paper-panel .muted {
  display: none;
}

.mf-product .pd-price {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--sage);
}

/* Quantity row */
.mf-product .product-detail > .paper-panel .field[style] {
  max-width: none !important;
  margin: 0 0 18px !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.mf-product .product-detail > .paper-panel .field[style] label {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
}

.mf-product .product-detail .qty {
  gap: 7px;
}

.mf-product .product-detail .qty button {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--pink-bg);
  color: #000;
  font-size: 14px;
}

.mf-product .product-detail .qty input {
  width: 32px;
  height: 24px;
  font-size: 14px;
  border-radius: 7px;
}

/* White subscription box */
.mf-product .product-detail .col {
  background: #fff;
  padding: 14px;
  margin: 0 0 18px !important;
  gap: 0 !important;
}

/* Radio rows like target */
.mf-product .product-detail .radio-row {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 9px 0;
  gap: 12px;
      display: flex;
    align-items: center;
}

.mf-product .product-detail .radio-row.selected {
  border: 0;
  box-shadow: none;
}

.mf-product .product-detail .radio-row input {
  width: 26px;
  height: 26px;
  accent-color: #000;
}

.mf-product .product-detail .radio-row .ro-title {
  font-size: 15px;
  font-weight: 400;
  color: #000;
}

.mf-product .product-detail .radio-row .ro-price {
  display: none;
}

/* Frequency field */
.mf-product .product-detail > .paper-panel > .field:not([style]) {
  margin-left: 50px;
  margin-bottom: 16px;
}

.mf-product .product-detail > .paper-panel > .field:not([style]) label {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
  margin-bottom: 6px;
}

.mf-product .product-detail > .paper-panel > .field:not([style]) .input {
  height: 34px;
  min-height: 34px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Subscription details button */
.mf-product .product-detail .login-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 235px;
  height: 30px;
  margin: 0 auto 22px !important;
  background: #f7f2ef;
  border-radius: 7px;
  color: #000;
  font-family: var(--font-body) !important;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.mf-product .product-detail .login-link::before {
  content: "\21C4";
  margin-right: 28px;
  color: var(--teal);
  font-size: 24px;
  line-height: 1;
}

/* Add to basket */
.mf-product .product-detail .btn-teal.btn-block {
  height: 44px;
  font-size: 15px;
  letter-spacing: 0.2em;
  background: var(--teal);
  border-color: var(--teal);
}

/* Accordion target style */
.mf-product .product-detail .accordion {
  margin-top: 24px !important;
  border-top: 1px solid var(--sage);
}

.mf-product .product-detail .acc-item {
  border-bottom: 1px solid var(--sage);
}

.mf-product .product-detail .acc-head {
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0;
    text-transform: none;
}

.mf-product .product-detail .acc-head .pm {
  font-family: var(--font-body);
  font-size: 18px;
  color: #000;
}

.mf-product .product-detail .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -8px;
    width: auto;
    height: 11px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 242px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
/* Mobile */
@media (max-width: 768px) {
  .mf-product .product-detail {
    grid-template-columns: 1fr;
    /* image → buy box → description (buy box stays near the top) */
    grid-template-areas: "gallery" "summary" "desc";
  }
#ids-subscriptions-list .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -6px;
    width: auto;
    height: 10px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 184px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
  /* .mf-product .pd-image {
    display: none;
  }

  .mf-product .page-head {
    display: none;
  } */
.mf-product  .container {
    width: 100%;
    padding: 0 20px;
}
.mf-product .product-detail > .paper-panel {
    padding: 22px 15px;
}
}

/* ---------- 10) CHECKOUT TIMELINE ---------- */
.timeline {
  position: relative;
}

.tl-step {
  position: relative;
  /* padding-left: 78px; */
  margin-bottom: 15px;
  display: flex;
  gap: 30px;
}

/* .tl-step::before { 
  content: "";
  position: absolute;
  left: 23px; top: 8px; bottom: -26px;
  width: 3px;
  background: var(--teal);
  opacity: .4;
} */
.tl-step:last-child::before {
  display: none;
}

.tl-num {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-direction: column;
}

.tl-number {
  position: relative;
  left: 0;
  top: 0;
  width: 70px;
  height: 69px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mf-checkout-line {
  width: 2px !important;
  flex: 1 !important;
  background: #72989c !important;
  margin-top: 10px !important;
}

.tl-step.active .tl-number {
  background: var(--teal);
  color: #fff;
}

.tl-title {
  font-family: var(--font-head);
  font-size: 38px;
  margin-bottom: var(--sp-3);
  padding-bottom: 5px;
  line-height: 38px;
  color: #5a5a5a;
}

.tl-step.active .tl-title,
.tl-step.completed .tl-title {
  color: #000;
}

.product-items {
  flex-direction: column;
  align-items: stretch;
}

button.btn.btn-lg.submit-pay {
  background: var(--teal);
  padding: 10px 25px;
}

.product-info-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 62%;
  width: 62%;
  justify-content: space-between;
}

.product-frequency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.product-info-name {
  width: 36%;
  flex: 0 0 36%;
}

.product-info-name span {
  font-size: 24px;
}

.product-title {
  font-weight: 700;
  font-size: 24px;
}

.btn-block.update-basket {
  background: transparent;
  border: 2px solid;
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ---------- 11) PAGE-SPECIFIC HELPERS ---------- */
/* Order summary (checkout right column) */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 20px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 28px;
  padding-top: 12px;
  margin-top: 6px;
  border-top: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.promo {
  display: flex;
  gap: 10px;
  margin-bottom: var(--sp-4);
}

.promo input {
  border-radius: 7px;
}

.promo button {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--pink-bg);
  background: var(--pink-bg);
  color: #000;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 36px;
}

/* Delivery instruction strip */
.ids-portal .mf-delivery-tile .mf-delivery-tile-note {
    font-size: 20px !important;
    color: #000;
    line-height: 1.35;
    margin-top: 8px;
}
.delivery-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--off-white);
  border: 1px dashed var(--teal);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
}

.delivery-strip .van {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section eyebrow heading with rule */
.section-head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-5) 0 var(--sp-4);
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  color: var(--black);
  white-space: nowrap;
}
.section-head.bestseller-head {
    justify-content: space-between;
        margin-top: 0;
    margin-bottom: 0;

}
.shop-page .section-head {
    margin-top: 10px;
    margin-bottom: 10px;
}
.shop-page  {
  
    padding-bottom: 0;
}
section.from-farm-eggs.paper-panel .section-head {
    margin-bottom: 0;
}
.bestseller-head  .chip.chip-green {
    background: transparent;
    color: var(--teal);
    font-size: 30px;
    letter-spacing: 0;
    font-family: var(--font-head);
}
/* .section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--sage);
} */

/* Style guide swatches */
.swatch {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.swatch .sw-color {
  height: 90px;
}

.swatch .sw-meta {
  padding: 10px 12px;
  font-size: 13px;
}

.swatch .sw-meta b {
  display: block;
  font-size: 14px;
}

/* Delivery date heading */
/* .delivery-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.delivery-head h3 {
  font-family: var(--font-head);
  font-size: 30px;
}

.delivery-head .price {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--teal);
} */
/* Delivery date heading */
.delivery-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0;
}

.delivery-head h3 {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: #000;
}

.delivery-head .price {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1;
  color: var(--teal);
}
.tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Large subscription product card */
/* .sub-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-4);
  align-items: center;
}

.sub-card .pc-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
}

.sub-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: var(--sp-2) 0;
}

.sub-meta .lbl {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 700;
}

.sub-meta .val {
  font-size: 18px;
  font-weight: 700;
} */
/* Large subscription product card */
.sub-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-4);
  align-items: center;
}

.sub-card .pc-img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius);
}

.sub-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: var(--sp-2) 0;
}

.sub-meta .lbl {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 700;
}

.sub-meta .val {
  font-size: 18px;
  font-weight: 700;
}

/* =========================================================
   MY SUBSCRIPTION PAGE
   Parent: #ids-subscriptions-list
   ========================================================= */

#ids-subscriptions-list main {
  padding-bottom: 0;
}

#ids-subscriptions-list .subscription-page-head {
  /* margin: 28px 0 18px; */
  align-items: center;
}

#ids-subscriptions-list .page-title {
  color: var(--teal);
}


#ids-subscriptions-list .subscription-deliveries-btn {
    min-width: 150px;
    height: 40px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--terracotta);
    color: var(--terracotta);
    font-size: 14px;
    letter-spacing: 0.22em;
    font-weight: 700;
    border-radius: 8px;
}
#ids-subscriptions-list .subscription-panel {
  padding: 30px 30px 30px;
  background: var(--off-white);

  border-top: 0;
  margin-bottom: 30px;
}

#ids-subscriptions-list .subscription-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 0;
}
#ids-subscriptions-list .pc-divider {
    margin-bottom: 20px;
}
#ids-subscriptions-list .subscription-actions .btn {
  height: 34px;
  padding: 0 26px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.18em;
}

#ids-subscriptions-list .subscription-add-btn {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

#ids-subscriptions-list .subscription-edit-btn {
  background: var(--brown);
  color: #fff;
  border-color: var(--brown);
}

#ids-subscriptions-list .subscription-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

#ids-subscriptions-list .subscription-card {
  background: #fff;
  padding: 0 0 18px;
}

#ids-subscriptions-list .subscription-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin-bottom: 12px;
}

#ids-subscriptions-list .subscription-title {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  color: #000;
  margin: 0 12px 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
}

#ids-subscriptions-list .subscription-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--sage);
    font-size: 20px;
    line-height: 1.5;
}

#ids-subscriptions-list .subscription-info-row span {
  color: #000;
  font-weight: 400;
}

#ids-subscriptions-list .subscription-info-row strong {
  color: #000;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

#ids-subscriptions-list .subscription-qty-row {
  align-items: center;
}

#ids-subscriptions-list .subscription-card .qty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#ids-subscriptions-list .subscription-card .qty button {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--pink-bg);
    color: #000;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0px;
}
#ids-subscriptions-list .subscription-card .qty input {
    width: 34px;
    height: 26px;
    font-size: 14px;
    border-radius: 5px;
}

#ids-subscriptions-list .subscription-frequency-row {
  border-bottom: 0;
}

#ids-subscriptions-list .subscription-frequency-select {
  width: 220px;
  height: 32px;
  min-height: 32px;
  padding: 0 26px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#ids-subscriptions-list .subscription-cancel-btn {
  width: calc(100% - 24px);
  height: 40px;
  margin: 8px 12px 0;
  padding: 0 16px;
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  border-radius: 5px;
  font-size: 14px;
  letter-spacing: 0.18em;
}
/* Two column product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}

.pd-image {
  /* [REPLACE main product image] */
  width: 100%;
  /* aspect-ratio: 1; */
  border-radius: var(--radius-lg);
  background: #efe7dd;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.pd-price {
  font-family: var(--font-head);
  font-size: 40px;
  color: var(--dark-green);
}

/* Checkout two-column */
/* .checkout-layout { display: grid; grid-template-columns: 650px 420px; gap: 30px; align-items: start; } */
.checkout-layout {
  display: grid;
  grid-template-columns: 750px 420px;
  gap: 30px;
  align-items: start;
  top: -20px;
  position: relative;
}
  .mobile-menu-toggle {
  display: none;
}

.mobile-menu-panel {
  display: none;
}
/* =========================================================
   EDIT SUBSCRIPTION ACCOUNT PAGE
   Parent: .mf-edit-account
   ========================================================= */

.mf-edit-account main {
  padding-bottom: 0;
}


.mf-edit-account .edit-account-head {
  /* margin: 24px 0 30px; */
  align-items: center;
}

.mf-edit-account .page-title {
  color: var(--teal);
}

.mf-edit-account .edit-account-back-btn {
    min-width: 150px;
    height: 40px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--terracotta);
    color: var(--terracotta) !important;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0.18em;
    line-height: 16px;
    font-weight: 700;
}

.mf-edit-account .edit-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.mf-edit-account .edit-account-grid .edit-account-grid-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.mf-edit-account .edit-account-panel {
  padding: 30px 30px 30px;
  margin-bottom: 0;
  background: var(--off-white);
  /* border-left: 0;
  border-right: 0; */
  border-top: 0;
}
.mf-edit-account .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -7px;
    width: auto;
    height: 10px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 220px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
.mf-edit-account .edit-account-panel .panel-title {
  font-size:30px;
  line-height: 1.15;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--sage);
  color: #000;
}

.mf-edit-account .edit-account-panel .field {
  margin-bottom: 12px;
  gap: 0;
}

.mf-edit-account .edit-account-panel .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mf-edit-account .edit-account-panel .input,
.mf-edit-account .edit-account-panel textarea.input {
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: #fff;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #000;
}

.mf-edit-account .edit-account-panel textarea.input {
  height: 74px;
  min-height: 74px;
  padding: 10px;
  resize: vertical;
}

.mf-edit-account .edit-account-panel .input::placeholder,
.mf-edit-account .edit-account-panel textarea.input::placeholder {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9b4ad;
}

.mf-edit-account .edit-confirm-btn, .mf-edit-account .edit-cancel-btn {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 0.2em;
        line-height: 40px;
}

.mf-edit-account .edit-confirm-btn {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.mf-edit-account .edit-cancel-btn {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.mf-edit-account .edit-small-panel {
  padding-bottom: 26px;
}

.mf-edit-account .edit-help-text {
  margin: 8px 0 14px;
  font-size: 14px;
  line-height: 1.35;
  color: #000;
  font-weight: 500;
}

.mf-edit-account .edit-info-block {
  margin-bottom: 10px;
}

.mf-edit-account .edit-info-block h3 {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 3px;
  color: #000;
}

.mf-edit-account .edit-info-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #000;
    font-weight: 500;
}

.mf-edit-account .payment-method-copy {
  margin-top: 14px;
}

.mf-edit-account .card-field {
  position: relative;
}

.mf-edit-account .card-field .input {
  padding-right: 72px;
}

.mf-edit-account .card-icons {
  position: absolute;
  right: 6px;
  top: 15px;
  display: flex;
  gap: 2px;
}

.mf-edit-account .card-icons span {
  width: 16px;
  height: 10px;
  display: block;
  border-radius: 2px;
  background: var(--teal);
  border: 1px solid #fff;
}

.mf-edit-account .card-icons span:nth-child(2) {
  background: var(--orange);
}

.mf-edit-account .card-icons span:nth-child(3) {
  background: #e5e5e5;
  border-color: var(--sage);
}

.mf-edit-account .payment-panel {
  min-height: 0;
}

.mf-edit-account .cancel-panel {
  padding-bottom: 26px;
}

/* .mf-edit-account .reset-password-panel {
  grid-column: 1 / 2;
} */
/* ---------- 12) RESPONSIVE ---------- */
@media (max-width: 1600px) {
  .tl-title {
    font-size: 28px;
    line-height: 28px;
  }
}

@media (max-width: 1240px) {
  .container {
    width: 100%;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .mf-edit-account .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
.mf-edit-account main {
    padding-bottom: 30px;
}
.mf-edit-account .edit-account-head {
    flex-direction: column;
    align-items: self-start;
    gap: 10px;
    margin: 20px 0 20px;
}

  .mf-edit-account .page-title {
    font-size: 36px;
  }

  /* .mf-edit-account .edit-account-back-btn {
    min-width: auto;
    height: 32px;
    padding: 0 14px;
    font-size: 8px;
  } */

  .mf-edit-account .edit-account-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mf-edit-account .edit-account-panel {
    padding: 20px 18px 26px;
  }

  .mf-edit-account .edit-account-panel .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mf-edit-account .reset-password-panel {
    grid-column: auto;
  }
  /* Mobile audit 2026-09-02: single-line ellipsis made shop card titles
     ambiguous ("Extra La…" = both Tray AND Box). Wrap to two lines instead;
     min-height keeps 1- and 2-line cards aligned. */
  .pc-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: calc(2 * 1.25em);
}
.pc-add {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 15px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
}
.pc-price {
    font-weight: 600;
    font-size: 16px;
}
.shop-page .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -5px;
    width: auto;
    height: 7px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 150px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
.paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -5px;
    width: auto;
    height: 7px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 160px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
.mf-edit-account .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -5px;
    width: auto;
    height: 7px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 150px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
    #ids-deliveries-list .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  #ids-deliveries-list .page-head {
    flex-direction: row;
    align-items: center;
    margin: 24px 0 16px;
  }

  #ids-deliveries-list .page-title {
    font-size: 36px;
  }

  #ids-deliveries-list .page-head .btn {
    min-width: auto;
    height: 34px;
    padding: 0 14px;
    font-size: 9px;
  }

  #ids-deliveries-list .paper-panel {
    padding: 16px 14px 24px;
    margin-bottom: 34px;
  }
.ids-portal .mf-del-strip-icon img {
    width: 50px;
}
#ids-deliveries-list .paper-panel > .between {
    flex-direction: column;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
}

#ids-deliveries-list .tag-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

  #ids-deliveries-list .tag-actions .btn {
    width: 100%;
  }

 
#ids-deliveries-list .grid-3 {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.meta-list .mlbl {
    color: #000;
    font-size: 16px;
    line-height: 1.5;
}
.meta-list .mval {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
}
.status-pill {

    font-size: 14px;

}
  #ids-deliveries-list .item-card .pc-img {
    height: 100px;
  }
  .ids-portal .mf-delivery-tile .mf-delivery-tile-head {
    height: 100px;
    background: #b89a88;
}
.ids-portal .mf-delivery-tile .mf-delivery-tile-note {
    font-size: 16px !important;
    color: #000;
    line-height: 1.35;
    margin-top: 8px;
}
#ids-deliveries-list .paper-panel > .muted {
    margin: 10px 0px 10px !important;

}

#ids-deliveries-list .skip-overlay span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: rgb(147 112 93 / 19%);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}
.ids-portal .mf-del-strip-text {
    order: inherit !important;
}
.ids-subscription-page-theme .ids-theme-subscriptions-list {
    gap: 12px;
    /* padding: 20px 20px !important; */
}
  .tag-actions .ids-open-add-modal {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  /* 2nd row left: Skip delivery */
  .tag-actions .ids-skip-all-btn {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  /* 2nd row right: Move delivery */
  .tag-actions .ids-move-delivery-btn {
    grid-column: 2 / 3;
    grid-row: 2;
  }
.ids-portal .mf-delivery-strip {
    flex-wrap: nowrap !important;
    gap: 5px !important;
}
  #ids-deliveries-list .delivery-strip {
    align-items: flex-start;
  }

  #ids-deliveries-list .delivery-strip .btn {
    flex: 0 0 auto;
  }
    #ids-subscriptions-list .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  #ids-subscriptions-list .subscription-page-head {
    flex-direction: row;
    align-items: center;
    margin: 24px 0 16px;
  }

  #ids-subscriptions-list .page-title {
    font-size: 36px;
  }

  #ids-subscriptions-list .subscription-deliveries-btn {
    min-width: auto;
    height: 34px;
    padding: 0 16px;
    font-size: 10px;
  }

  #ids-subscriptions-list .subscription-panel {
    padding: 18px 14px 28px;
  }

#ids-subscriptions-list .subscription-actions {
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#ids-subscriptions-list .subscription-actions .btn {
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    letter-spacing: 0.14em;
}

  #ids-subscriptions-list .subscription-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #ids-subscriptions-list .subscription-img {
    height: 210px;
  }

  #ids-subscriptions-list .subscription-title {
    font-size: 18px;
  }

  #ids-subscriptions-list .subscription-info-row {
    font-size: 14px;
  }

  #ids-subscriptions-list .subscription-frequency-select {
    width: 180px;
  }
  .item-card .ic-title {
  
    font-size: 18px;
    line-height: 1.25;

}
   .site-header {
    height: 55px !important;
    min-height: 55px !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    border-top: 4px solid var(--dark-green) !important;
    border-bottom: 1px solid var(--teal) !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  .header-inner {
    height: 51px !important;
    min-height: 51px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    position: relative !important;
  }

  .order-online,
  .header-right {
    display: none !important;
  }

  .logo {
    width: 92px !important;
    max-width: 92px !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .nav-wrap {
    position: absolute !important;
    top: 5px !important;
    right: 10px !important;
    left: auto !important;
    width: auto !important;
    z-index: 1200 !important;
  }

  .nav-wrap .container {
    width: auto !important;
    padding: 0 !important;
  }

  .main-nav {
    width: auto !important;
    height: 51px !important;
    min-height: 51px !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .nav-home,
  .nav-links,
  .nav-right {
    display: none !important;
  }

 .mobile-menu-toggle {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--teal) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: absolute;
    right: 10px !important;
    left: auto !important;
    width: auto !important;
    z-index: 1200 !important;
}

  .mobile-menu-toggle i {
    pointer-events: none;
  }

  .mobile-menu-panel {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--teal);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    z-index: 999;
    padding: 14px;
  }

  .mobile-menu-panel.is-open {
    display: block;
  }

  .mobile-menu-panel a {
    display: block;
    padding: 13px 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-panel a:last-child {
    border-bottom: 0;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
  body {
    font-size: 18px;
  }

  .page-title {
    font-size: 36px;
  }
 .page-head .btn {
    min-width: 100% !important
}
.mf-product .pd-gallery img, .mf-product .pd-gallery img, .mf-product .woocommerce-product-gallery img {
    width: 100%;
    height: 300px;
    /* aspect-ratio: 16 / 9; */
    object-fit: cover;
    /* border-radius: var(--radius-lg); */
    background: #efe7dd;
    box-shadow: var(--shadow);
}
	.woocommerce-message {
    background: #edf4f1;
    border-left-color: var(--teal);
    margin: 0 20px;
}
  .panel-title {
    font-size: 28px;
  }

 .page-head {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0px;
    gap: 15px;
    width: 100%;
}

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }
.shop-page .grid-2, .shop-page .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
  .footer-grid {
    grid-template-columns: 1fr;
  }
.shop-page .paper-panel {
    margin-bottom: 30px;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
}
.bestseller-head  .chip.chip-green {
    background: transparent;
    color: var(--teal);
    font-size: 20px;
    letter-spacing: 0;
    font-family: var(--font-head);
}
  .order-online {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .sub-card {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .header-right {
    position: static;
    align-items: center;
  }

  .site-header {
    height: auto;
    padding: 20px 0;
  }

  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .timeline {
    padding: 0 15px;
  }
.footer-wave {

    display: none !important;
}
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background: var(--dark-green);
    color: var(--white);
    padding: 50px 20px 30px;
}
.site-footer::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50px;
    width: 120px;
    height: 200px;
    opacity: .12;
    pointer-events: none;
    background: url(../img/flourish.svg);
    filter: brightness(0) invert(1) !important;
    opacity: 0.28 !important;
    /* max-width: 300px !important; */
    background-repeat: no-repeat;
}
.footer-col-mobile{
  display: none;
}
.footer-bottom {

    margin-top: 0;
  
}
#ids-deliveries-list .skip-wrap.skipped-on .item-card {
    filter: none;
    opacity: 0.35;
    padding-bottom: 50px;
}
#ids-subscriptions-list::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -5px;
    width: auto;
    height: 7px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 150px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
   html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .mf-edit-account {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .mf-edit-account .container {
    width: 100% !important;
    max-width: 100% !important;
   
  }

  
  /* =========================
     Checkout Layout
     ========================= */

  .mf-checkout-main  {
    padding-bottom: 40px !important;
  }

  .mf-checkout-main .checkout-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    top: 0 !important;
    position: relative !important;
  }

  .mf-checkout-main .timeline {
    width: 100% !important;
    max-width: 100% !important;
  }

 .mf-checkout-main .page-head {
    width: 100% !important;
    max-width: 100% !important;
    margin: 22px 0 24px !important;
    padding: 0 !important;
  }

  .mf-checkout-main .page-title {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }

  .mf-checkout-main .page-head p {
    font-size: 16px !important;
  }

 .mf-checkout-main .tl-step {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-bottom: 26px !important;
  }

  .mf-checkout-main .tl-num {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  .mf-checkout-main .tl-number {
    width: 52px !important;
    height: 52px !important;
    font-size: 24px !important;
  }

  .mf-checkout-main .mf-checkout-line {
    max-width: 2px !important;
  }

  .mf-checkout-main .tl-step>.paper-panel {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 70px) !important;
    min-width: 0 !important;
    padding: 24px !important;
    /* overflow: hidden !important; */
  }

  .mf-checkout-main .paper-panel * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

 .mf-checkout-main .tl-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

 .mf-checkout-main .field-row,
  .mf-checkout-main .payment-card-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .mf-checkout-main .input,
  .mf-checkout-main select.input,
  .mf-checkout-main textarea.input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mf-checkout-main .checkout-form-actions {
    width: 100% !important;
  }

 .mf-checkout-main .checkout-form-actions .btn,
  .mf-checkout-main .step-form .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* =========================
     Basket / Order Summary Mobile
     ========================= */

  .mf-checkout-main aside {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mf-checkout-main aside .paper-panel.first-checkout-panel {
    width: 100% !important;
    max-width: 100% !important;
    top: 0 !important;
    margin-top: 24px !important;
    padding: 26px 20px !important;
    background: var(--off-white) !important;
    border: 0 !important;
  }

  .mf-checkout-main aside .paper-panel.first-checkout-panel::after {
    display: none !important;
  }

 .mf-checkout-main aside .tl-title {
    color: var(--teal) !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }

  .mf-checkout-main aside .tl-title span {
    font-size: 13px !important;
    color: #000 !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
  }

 .mf-checkout-main .promo {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  .mf-checkout-main .promo input {
    flex: 1 1 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12px !important;
  }

  .mf-checkout-main .promo button {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    font-size: 18px !important;
    background: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
  }

  .mf-checkout-main .summary-line {
    font-size: 14px !important;
    padding: 5px 0 !important;
  }

  .mf-checkout-main .summary-total {
    font-size: 16px !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    padding: 10px 0 !important;
    margin: 10px 0 18px !important;
    border-top: 1px solid var(--sage) !important;
    border-bottom: 1px solid var(--sage) !important;
  }

  /* Basket item exact mobile layout */
  .mf-checkout-main .product-items {
    display: grid !important;
    grid-template-columns: 106px 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: start !important;
    padding: 22px 0 !important;
  }

  .mf-checkout-main .product-items:first-of-type {
    padding-top: 12px !important;
  }

  .mf-checkout-main .product-items img {
    width: 106px !important;
    height: 88px !important;
    object-fit: cover !important;
    max-width: 106px !important;
  }

  .mf-checkout-main .product-info-content {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .mf-checkout-main .product-info-content>.between:first-child {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .mf-checkout-main .product-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
  }

  .mf-checkout-main .pc-price {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  .mf-checkout-main .product-info-content>.between:not(:first-child) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .mf-checkout-main .product-info-name {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .mf-checkout-main .product-info-name span {
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: #000 !important;
  }

  .mf-checkout-main.product-info-btn {
    width: auto !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .mf-checkout-main .qty {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
  }

  .mf-checkout-main .qty button {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 18px !important;
    background: var(--pink-bg) !important;
    color: #000 !important;
    border-radius: 50% !important;
  }

  .mf-checkout-main .qty input {
    width: 32px !important;
    height: 28px !important;
    font-size: 14px !important;
    border: 1px solid var(--sage) !important;
    border-radius: 4px !important;
  }

 .mf-checkout-main .product-info-btn .btn-sm {
    width: auto !important;
    min-width: 78px !important;
    max-width: none !important;
    height: 34px !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    white-space: nowrap !important;
    color: var(--terracotta) !important;
    border-color: var(--terracotta) !important;
    background: transparent !important;
  }

 .mf-checkout-main .product-frequency {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mf-checkout-main .product-frequency .product-info-name {
    flex: 0 0 auto !important;
  }

 .mf-checkout-main .frequency-select {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 0 28px 0 10px !important;
  }

  .mf-checkout-main .update-basket {
    width: 100% !important;
    height: 38px !important;
    margin-top: 22px !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    background: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
  }

  .mf-checkout-main aside .paper-panel.first-checkout-panel .pc-divider {
    height: 1px;
    background: var(--teal);

  }
 /* Main subscription page wrapper */
  #ids-subscriptions-list {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
  }

  /* Page container */
  #ids-subscriptions-list .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* White/paper panel */
  #ids-subscriptions-list .subscription-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px 28px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* IMPORTANT: Cards grid one column on mobile */
  #ids-subscriptions-list .subscription-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr)!important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Each card full width */
  #ids-subscriptions-list .subscription-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: visible;
  }

  /* Image should not push card width */
  #ids-subscriptions-list .subscription-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100px !important;
    object-fit: cover;
  }

  /* Product title */
  #ids-subscriptions-list .subscription-title {
    font-size: 18px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
        white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Rows inside card */
  #ids-subscriptions-list .subscription-info-row {
    font-size: 14px !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  #ids-subscriptions-list .subscription-info-row strong {
    font-size: 16px !important;
    white-space: nowrap;
  }

  /* Frequency row fix */
  #ids-subscriptions-list .subscription-frequency-row {
    align-items: center;
  }

  #ids-subscriptions-list .subscription-frequency-select {
    width: 180px !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Cancel button */
  #ids-subscriptions-list .subscription-cancel-btn {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
  #ids-deliveries-list .paper-panel::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -7px;
    width: auto;
    height: 7px;
    background-image: url("../img/bg-shape-zigzag.png");
    background-repeat: repeat-x;
    background-size: auto 162px;
    background-position: bottom center;
    pointer-events: none;
    z-index: 2;
}
}


/* =========================================================
   CHECKOUT PAGE MOBILE ONLY
   Parent: .mf-edit-account
   Paste this at the END of styles.css
   ========================================================= */

@media (max-width: 480px) {

  /* .mf-edit-account .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  } */
 .mf-checkout-main aside .paper-panel.first-checkout-panel .pc-divider {
    height: 1px;
    background: var(--teal);

  }

  .mf-checkout-main .tl-step {
    gap: 8px !important;
  }

  .mf-checkout-main .tl-num {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }

  .mf-checkout-main .tl-number {
    width: 46px !important;
    height: 46px !important;
    font-size: 22px !important;
  }

  .mf-checkout-main .tl-step>.paper-panel {
    max-width: calc(100% - 56px) !important;
    padding: 22px 16px !important;
  }

  .mf-checkout-main .page-title {
    font-size: 36px !important;
  }

  .mf-checkout-main .tl-title {
    font-size: 24px !important;
  }

  .mf-checkout-main aside .tl-title {
    font-size: 30px !important;
  }

  .mf-checkout-main .product-items {
    grid-template-columns: 104px 1fr !important;
    gap: 16px !important;
  }

  .mf-checkout-main .product-items img {
    width: 104px !important;
    height: 88px !important;
    max-width: 104px !important;
  }

 .mf-checkout-main .product-title,
 .mf-checkout-main .pc-price,
  .mf-checkout-main .product-info-name span {
    font-size: 16px !important;
  }

  .mf-checkout-main .product-info-btn {
    gap: 6px !important;
  }

  .mf-checkout-main.qty input {
    width: 38px !important;
  }

 .mf-checkout-main .product-info-btn .btn-sm {
    min-width: 74px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* =========================================================
   ORDER RECEIVED PAGE
   The default 54px page-title is too tall when 3 action buttons sit
   beside it — stack vertically and shrink the font.
   ========================================================= */
.mf-order-received .page-head {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.mf-order-received .page-title {
  font-size: 36px;
}

.mf-order-received .page-head-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* =========================================================
   FLOATING "GO TO YOUR CART" BUTTON (shop pages, cart non-empty)
   The header basket count is easy to miss — this is the prominent
   affordance. Orange = the action colour (matches Proceed to Checkout).
   ========================================================= */
.mf-cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 24px;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(40, 30, 20, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.mf-cart-fab:hover,
.mf-cart-fab:focus {
  background: var(--brown);
  color: #fff;
  transform: translateY(-2px);
}
.mf-cart-fab svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.mf-cart-fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  background: #fff;
  color: var(--orange);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .mf-cart-fab {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
    padding: 15px 20px;
  }
}

/* =========================================================
   GLOBAL MOBILE HEADER + MENU
   Paste at END of styles.css
   ========================================================= */

/* Touch targets: footer links must hit 44px minimum on mobile
   (WCAG 2.5.8 / Apple HIG). Inline-flex keeps the text baseline
   unchanged while extending the tappable box. */
@media (max-width: 768px) {
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}




/* Current-page nav link gets a darker pill, per Andy's design. */
.main-nav .nav-links a.is-current {
  background: rgba(0, 40, 35, 0.28);
  border-radius: 999px;
  padding: 7px 16px;
}

/* design: active nav pill carries a faint white outline */
.main-nav .nav-links a.is-current {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* WC wraps order number/date/status in <mark> — kill the default yellow */
.woocommerce-MyAccount-content mark {
  background: transparent;
  color: var(--teal);
  font-weight: 700;
}

/* ===== My Account landing (Andy's design 2026-08-25) ===== */
.mf-dash-welcome {
  font-size: 17px;
  margin: 0 0 var(--sp-4);
}

.mf-dash-panel {
  margin-bottom: var(--sp-5);
}

.mf-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.mf-dash-table th {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sage);
}

.mf-dash-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8e2da;
  vertical-align: middle;
}

.mf-dash-table tr:last-child td { border-bottom: 0; }

.mf-dash-id { color: var(--terracotta); font-weight: 600; }

.mf-dash-plan {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #6b6b6b;
  background: var(--pink-bg);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 6px;
}

.mf-dash-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #274a4d;
  background: #cfdedf;
  border-radius: 999px;
  padding: 4px 12px;
}

.mf-dash-pill--payment_failed,
.mf-dash-pill--cancelled { background: #f3d9d3; color: #7a2c1c; }
.mf-dash-pill--paused { background: #efe6cf; color: #6b5426; }

.mf-dash-view { font-size: 12px; padding: 8px 18px; }

.mf-dash-viewall { margin: var(--sp-3) 0 0; }

.mf-dash-empty { color: #4a4436; margin: var(--sp-2) 0 0; }

@media (max-width: 700px) {
  /* stack rows as cards on mobile — no horizontal scroll */
  .mf-dash-table thead { display: none; }
  .mf-dash-table, .mf-dash-table tbody, .mf-dash-table tr, .mf-dash-table td { display: block; width: 100%; }
  .mf-dash-table tr { border-bottom: 1px solid var(--sage); padding: 10px 0; }
  .mf-dash-table td { border: 0; padding: 4px 0; }
}

/* dashboard View buttons: the account-content link colour bled through */
.mf-dash-panel a.ids-btn.ids-btn-primary { color: #fff; }
.mf-dash-panel a.ids-btn.ids-btn-primary:hover { color: #fff; filter: brightness(1.06); }

/* Mobile portal/account pages (Nikhil 2026-09-02): the H1 must sit BELOW the
   nav buttons + address switcher, just above the content — with the title on
   top, the three buttons read as sub-options of the page instead of siblings. */
@media (max-width: 768px) {
  .page-head.mf-portal-head,
  .page-head.mf-account-head {
    flex-direction: column;
    align-items: stretch;
  }
  .page-head.mf-portal-head .page-head-actions,
  .page-head.mf-account-head .page-head-actions { order: 1; }
  .page-head.mf-portal-head .page-title,
  .page-head.mf-account-head .page-title {
    order: 2;
    margin-top: var(--sp-3);
  }
}

/* ===== Mobile audit 2026-09-02: touch targets + footer legal row ===== */
@media (max-width: 768px) {
  /* hamburger + qty steppers to comfortable tap sizes */
  .mobile-menu-toggle { width: 44px !important; height: 44px !important; }
  .qty button,
  #ids-deliveries-list .item-card .qty button,
  .quantity .plus, .quantity .minus {
    min-width: 40px;
    min-height: 40px;
  }
  /* small action buttons flagged in the sweep */
  .ids-btn, .btn-sm, .mf-edit-instr, .mf-reset-instr,
  .ids-addr-edit, .ids-addr-archive, #ids-add-address-btn {
    min-height: 44px;
  }
  /* footer legal row: wrap cleanly instead of the © line colliding with links */
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
  }
  .footer-bottom span[style] { margin-left: 0 !important; width: 100%; }
}

/* ---------------------------------------------------------------------------
   Mobile portal fixes (client feedback 2026-10-09, Gemma's phone testing):
   #5 the delivery item cards stayed multi-column on phones (the ID-scoped
   #ids-deliveries-list .grid-3 above has no responsive override and beats the
   plugin's .ids-portal .grid-3 rule), so the quantity +/- stepper was clipped
   by the narrow card. Single-column at phone width gives the stepper room.
   #4 the subscription frequency <select> rendered too narrow to show
   "Every N weeks" — give it room to show the full label on mobile.
   --------------------------------------------------------------------------- */
@media (max-width: 600px) {
  #ids-deliveries-list .grid-3 { grid-template-columns: 1fr !important; gap: 16px; }
  .ids-portal .item-card .qty { gap: 6px; flex-wrap: nowrap; }
  /* Subscription product cards go single-column on phones so the frequency
     <select> ("Every N weeks") is readable — it was clipped to one letter in
     the deliberately 2-up mobile layout (#ids-subscriptions-list rule below
     forces repeat(2,1fr) !important at <=768px; this wins at phone width). */
  #ids-subscriptions-list .subscription-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .ids-portal .subscription-frequency-select { width: auto; min-width: 150px; max-width: 220px; font-size: 11px; }
}
