/* Customer ordering on the website and in the installed portal. */
#customer {
 --cw-forest:#244b38;
 --cw-cream:#fffbee;
 --cw-gold:#ffda56;
 --cw-edge:#d5dbcd;
}
#customer :is(#customer-actions,#cw-repeat-slot,#cw-home-schedule,.cw-disclosure,#cw-mobile-cart,#cw-minimum-progress)[hidden],
#customer #cw-cart-panel:not([open]) {display:none!important}
#customer #cw-repeat-hint:empty,#customer #cw-cart-feedback:empty {display:none}
#customer #customer-actions {padding:clamp(16px,2.5vw,28px);background:var(--cw-cream)}
#customer .cw-entry-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#customer .cw-entry-heading h2 {margin:2px 0 0;color:var(--cw-forest);line-height:1.25}
#customer .cw-actions {grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px}
#customer #cw-repeat-slot {grid-column:auto}
html body .shell #customer #customer-actions .cw-action {
 display:flex;align-items:center;gap:14px;width:100%;min-height:82px;padding:13px 15px;
 border:1px solid transparent;border-radius:15px;box-shadow:none;text-align:left;
}
#customer :is(#customer-actions,#cw-catalog-switch) [data-cw-catalog="retail"] {background:var(--cw-forest);color:#fffbee}
#customer :is(#customer-actions,#cw-catalog-switch) [data-cw-catalog="food"] {background:var(--cw-gold);color:#273d2f}
html body #customer #customer-actions #reorder-latest {background:#80452e;color:#fff2bc}
#customer #customer-actions .cw-action>span {display:block;flex:1;min-width:0}
#customer #customer-actions .cw-action strong {font-size:clamp(17px,1.55vw,21px);line-height:1.28;color:inherit}
html body .shell #customer #customer-actions .cw-action small {margin:3px 0 0;font-size:14px!important;line-height:1.35!important;color:inherit}
#customer #customer-actions .cw-action>svg:first-child {
 width:40px;height:40px;flex:0 0 40px;padding:8px;border:0;border-radius:50%;box-shadow:none;
 background:#e6efde;color:var(--cw-forest);
}
#customer #customer-actions #reorder-latest>svg:first-child {background:#f8d477;color:#57351e}
#customer #customer-actions [data-cw-catalog="food"]>svg:first-child {background:#fff1b7}
#customer #customer-actions .cw-action>svg.cw-chevron {
 width:15px;height:15px;flex:0 0 15px;margin-left:auto;padding:0;border:0;background:none;color:inherit;box-shadow:none;
}
#customer .cw-account-links {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px 12px;margin:12px 0 0}
#customer .cw-account-links .cw-text-button {min-height:44px}

/* The same Help disclosure moves between the home and catalog headings. */
#customer :is(#cw-home-help-slot,#cw-order-help-slot) {position:relative;align-self:center}
#customer .cw-disclosure {margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#customer .cw-disclosure>summary {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 10px;
 color:var(--cw-forest);font:650 15px/1.35 'Work Sans',Arial,sans-serif;cursor:pointer;list-style:none;border:0;
}
#customer .cw-disclosure>summary::-webkit-details-marker {display:none}
#customer .cw-disclosure>summary::after {
 content:'';width:7px;height:7px;flex:0 0 7px;padding:0;border:solid currentColor;border-width:0 2px 2px 0;border-radius:0;
 background:none;box-shadow:none;transform:translateY(-2px) rotate(45deg);
}
#customer .cw-disclosure[open]>summary::after {transform:translateY(2px) rotate(225deg)}
#customer .cw-help-options {
 position:absolute;z-index:6;top:100%;right:0;width:min(342px,calc(100vw - 72px));padding:14px;
 border:1px solid var(--cw-edge);border-radius:14px;background:#fffdf6;box-shadow:0 8px 24px #193b2a26;
}
#customer .cw-help-options .contact-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
#customer .cw-help-options .contact-actions .button {min-width:0;min-height:44px;padding:7px 4px;gap:5px;font-size:14px!important}
#customer .cw-help-options #cw-order-help {display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:12px 0 0}
#customer .cw-help-options #cw-order-help button {min-height:44px}
#customer .cw-schedule-strip {
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;margin:0 0 14px;padding:8px 14px;
 border:1px solid #d4dece;border-radius:13px;background:#eef2e8;color:var(--cw-forest);
}
#customer .cw-schedule-strip:has(>.cw-disclosure[open]) {grid-template-columns:minmax(0,1fr)}
#customer .cw-schedule-strip>.cw-disclosure[open]>summary {justify-content:flex-start;padding-left:0}
#customer .cw-home-dates p {margin:3px 0;font-size:15px;line-height:1.4}
#customer .cw-home-dates p+p {font-size:14px}
#customer .cw-schedule-strip .delivery-plan-following {margin:6px 0;padding:6px 0 0;border-top:1px solid var(--cw-edge)}
#customer #cw-home-schedule .customer-delivery-plan {background:transparent;border:0;padding:4px 0;margin:0}
#customer #cw-home-schedule .customer-delivery-plan :is(h3,p) {margin:3px 0}
#customer :is(#cw-entry-reminders,#cw-order-reminders) {margin:0}
#customer :is(#cw-entry-reminders,#cw-order-reminders)>.cutoff-actions {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));gap:6px;margin:0 0 6px;max-width:none;
}
#customer .cw-schedule-strip .cutoff-reminder-prompt {display:none}
#customer .cw-schedule-strip :is(.email-reminder-form,.my-reminders-panel) {grid-column:1/-1;max-width:none}
#customer .cw-schedule-strip :is(.cutoff-calendar,.cutoff-tool) {min-width:0}
#customer .cw-schedule-strip .cutoff-tool {width:100%}

#customer .cw-order-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:start;margin:0}
#customer .cw-order-toolbar .cw-order-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 14px;margin:0;padding:0}
html body .shell #customer .cw-order-heading>.cw-menu-button {
 position:static;display:inline-flex;align-items:center;gap:9px;min-height:50px;padding:10px 19px;margin:0;
 border:1px solid #b19436;border-radius:12px;background:var(--cw-gold);box-shadow:0 2px 0 #bfa647;
 color:#293d2d;font:700 18px/1.2 'Work Sans',Arial,sans-serif;
}
html body .shell #customer .cw-order-heading>.cw-menu-button:hover {background:#ffdf6e;color:#293d2d}
#customer .cw-menu-button svg {display:block;width:20px;height:20px}
#customer .cw-catalog-switch {grid-column:1/-1;display:flex;width:100%;max-width:420px;gap:4px;padding:4px;border:1px solid var(--cw-edge);border-radius:14px;background:#edf1e8}
#customer .cw-catalog-switch button {
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 flex:1;min-width:0;min-height:46px;padding:5px;border:1px solid transparent;border-radius:10px;
 cursor:pointer;font:400 clamp(13px,3.7vw,16px)/1.2 'Capriola',sans-serif;
}
#customer .cw-catalog-switch button>svg {
 box-sizing:border-box;width:26px;height:26px;flex:0 0 26px;padding:3px;border:1px solid;border-radius:50%;color:var(--green);
 stroke-linecap:round;stroke-linejoin:round;
}
#customer .cw-catalog-switch button[aria-pressed="true"]>span {text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
#customer .cw-catalog-switch button:hover>span {text-decoration:underline;text-underline-offset:4px}
#customer .cw-catalog-switch button:focus-visible {outline:3px solid var(--cw-forest);outline-offset:1px}
#customer .cw-catalog-switch[hidden],#customer #customer-actions [data-cw-catalog][hidden] {display:none!important}
#customer .cw-order-toolbar:has(.cw-catalog-switch:not([hidden])) #cw-order-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#customer .cw-order-heading h2 {margin:0;font-size:clamp(25px,2.7vw,34px);line-height:1.2;color:var(--cw-forest)}
#customer .cw-order-schedule {grid-column:1/-1;margin:2px 0 12px}
#customer #customer-order .cw-order-toolbar #route-alert {margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--cw-forest)}
#customer .cw-order-deadlines {display:flex;flex-wrap:wrap;gap:3px 18px}
#customer .cw-order-deadlines>div {display:flex;align-items:baseline;flex-wrap:wrap;column-gap:5px}
html body .shell #customer .cw-order-deadlines :is(span,strong) {display:inline;margin:0;color:var(--cw-forest);font-size:14px!important;line-height:1.4!important}
#customer .cw-order-deadlines span {font-weight:650}
#customer .cw-order-deadlines strong {font-weight:500}
#customer .cw-catalog-toolbar {display:block}
#customer #customer-order .cw-catalog-toolbar .catalog-tools {
 display:grid;grid-template-columns:minmax(0,1.5fr) minmax(110px,1fr) minmax(95px,.8fr)!important;
 align-items:end;gap:10px;margin:0 0 12px;padding:0;border:0;background:transparent;box-shadow:none;
}
#customer #cw-filter-fields {display:contents}
#customer #cw-filter-toggle {display:none}
#customer #customer-order .catalog-tools label {grid-column:auto;min-width:0;margin:0}
#customer #customer-order .catalog-tools :is(input,select) {
 box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:2px 0 0;padding:9px 11px;
 border:1px solid #a7b2a0;border-radius:9px;background-color:#fffdf7;color:#283c2f;font-size:16px;
}
#customer #customer-order .catalog-tools select {padding-right:26px}
#customer-order .catalog-collection[aria-label="Retail packs"]>.catalog-collection-heading {display:none}

html body .shell #customer #customer-order .cw-product-row {
 display:grid;grid-template-columns:68px minmax(0,1fr) auto 132px;
 grid-template-areas:"art description price quantity";align-items:center;gap:10px 14px;
 margin:0 0 10px;padding:12px 14px;border:1px solid var(--cw-edge);border-radius:14px;background:#fffdf7;
}
#customer #customer-order .cw-product-row .product-art {grid-area:art;align-self:start;display:grid;place-items:center;width:100%;min-width:0;height:80px;padding:4px;border-radius:9px;background:#f5f1e4}
#customer #customer-order .cw-product-row .product-art img {width:100%;height:72px;object-fit:contain;display:block;margin:0}
#customer #customer-order .cw-product-row .cw-image-link {
 position:relative;align-content:center;border:1px solid #dddac9;cursor:zoom-in;text-decoration:none;
}
#customer #customer-order .cw-product-row .cw-image-link[data-cw-size="regular"] img {width:78%;height:56px}
#customer #customer-order .cw-product-row .cw-image-link[data-cw-size="large"] img {width:94%;height:67px}
/* The square Tallow Spelt thumbnails include more clear margin than their size peers. */
#customer #customer-order .cw-product-row .cw-image-link img[src*="/product-media/20261118/tallow-spelt-regular-thumb.webp"] {scale:1.06551}
#customer #customer-order .cw-product-row .cw-image-link img[src*="/product-media/20261118/tallow-spelt-large-thumb.webp"] {scale:1.11365}
#customer .cw-image-link:hover {border-color:var(--cw-forest)}
#customer .cw-image-link:focus-visible,#customer #cw-product-image-dialog button:focus-visible {outline:3px solid #84601e;outline-offset:2px}
#customer .cw-zoom-icon {
 position:absolute;right:-2px;bottom:-2px;width:19px;height:19px;padding:3px;border-radius:50%;color:white;
 background:var(--cw-forest);box-shadow:0 0 0 1px #fffdf7;pointer-events:none;
}
/* In the Squarespace frame only a portion of the catalog is on screen. */
#customer #cw-product-image-dialog[open] {
 --cw-photo-visible-height:min(var(--portal-view-height,100dvh),calc(min(var(--portal-view-bottom,100dvh),100dvh) - var(--portal-view-top,0px)));
 display:flex;flex-direction:column;position:fixed;inset:auto;left:50%;
 top:calc(var(--portal-view-top,0px) + var(--cw-photo-visible-height)/2);transform:translate(-50%,-50%);
 width:min(620px,calc(100% - 24px));height:min(650px,calc(var(--cw-photo-visible-height) - 16px));
 max-width:none;max-height:none;margin:0;padding:clamp(10px,2vw,18px);box-sizing:border-box;overflow:auto;
 border:1px solid var(--cw-edge);border-radius:16px;background:#fffdf7;color:var(--cw-forest);
}
#customer #cw-product-image-dialog::backdrop {background:rgb(23 39 29 / 67%)}
#customer #cw-product-image-dialog header {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
#customer #cw-product-image-dialog h2 {margin:0;font-size:clamp(18px,2.2vw,24px);color:var(--cw-forest)}
#customer #cw-product-image-dialog .cw-package-description {margin:0 0 12px;color:#435442;font-size:1rem;line-height:1.45}
#customer #cw-product-image-dialog button {flex:none;min-height:44px;padding:8px 16px;border-radius:10px;background:var(--cw-forest);color:#fffbee}
#customer #cw-product-image-dialog .cw-photo-stage {flex:1;display:grid;place-items:center;grid-template:minmax(0,1fr)/minmax(0,1fr);min-height:0}
#customer #cw-product-image-dialog img {display:block;width:100%;height:100%;object-fit:contain}
#customer #cw-product-image-dialog .cw-photo-controls {display:flex;align-items:center;justify-content:space-between;gap:4px 10px;flex-wrap:wrap;margin-top:8px}
#customer #cw-product-image-dialog .cw-photo-controls [role="group"] {display:flex;gap:4px;flex-wrap:wrap}
#customer #cw-product-image-dialog .cw-photo-controls button {padding:6px 12px;border:1px solid var(--cw-forest)}
#customer #cw-product-image-dialog .cw-photo-controls button[aria-pressed="false"] {background:transparent;color:var(--cw-forest)}
#customer #cw-product-image-dialog .cw-photo-controls a {display:inline-flex;align-items:center;min-height:44px;color:var(--cw-forest);text-decoration:underline}
#customer #cw-product-image-dialog [hidden] {display:none!important}
#customer #customer-order .cw-product-row .product-copy {grid-area:description;min-width:0}
#customer #customer-order .cw-product-row .prod-name {margin:0;color:#283c2f;font-size:17px!important;line-height:1.35!important}
#customer .cw-product-tags {display:flex;align-items:center;gap:5px}
#customer .cw-new-product {display:inline-block;padding:3px 8px;border-radius:999px;background:#285d40;color:#fffdf7;font:700 14px/1.2 'Work Sans',Arial,sans-serif;vertical-align:middle}
#customer #customer-order .cw-product-tags .catalog-name-badge {width:24px;height:24px;margin:0}
#customer .cw-size {display:inline-block;margin:4px 0 2px;padding:2px 8px;border-radius:6px;background:#f3e6bc;color:#453e27;font:650 13px/1.5 'Work Sans',Arial,sans-serif}
#customer #customer-order .cw-product-row :is(.prod-meta,.prod-upc) {margin:2px 0 0;color:#49574b;font-size:13px!important;line-height:1.4!important}
#customer #customer-order .cw-product-row .prod-price {grid-area:price;margin:0;text-align:left;color:var(--cw-forest);font-weight:750;font-variant-numeric:tabular-nums}
#customer #customer-order .cw-product-row .prod-price small {font-size:12px!important;color:#526154}
#customer #customer-order .cw-product-row .smallqty {grid-area:quantity;min-width:0;justify-self:end}
#customer #customer-order .cw-product-row .smallqty label {margin:0 0 3px;color:#445547;font-size:13px!important}
#customer #customer-order .cw-quantity {display:grid;grid-template-columns:44px minmax(36px,1fr) 44px;width:130px;min-height:44px;border:1px solid #a7b2a0;border-radius:10px}
#customer #customer-order .cw-quantity :is(button,input) {width:100%;min-width:0;min-height:44px;margin:0;padding:0;text-align:center}
#customer #customer-order .cw-quantity button {background:#edf1e6;color:var(--cw-forest);border:0;box-shadow:none}
#customer #customer-order .cw-quantity button[data-cw-quantity="1"] {background:var(--cw-forest);color:#fff6c9}
#customer #customer-order .cw-quantity button:disabled {opacity:.5}
#customer #customer-order .cw-quantity :focus-visible {outline:3px solid #967122;outline-offset:-3px}
#customer #customer-order .cw-coming-soon .product-copy {grid-column:2/-1}

html body .shell #customer #cw-mobile-cart:not([hidden]) {
 position:fixed;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 10px;
 inset:auto max(20px,calc((100% - 1240px)/2 + 22px)) 16px auto;
 box-sizing:border-box;width:clamp(270px,25vw,326px);min-height:0;padding:11px 13px;
 border:1px solid var(--cw-edge);border-radius:15px;background:#fffdf6;box-shadow:0 5px 24px #18332229;pointer-events:auto;
}
html body .shell #customer #cw-mobile-cart>.cw-mobile-summary {display:block;order:0;min-width:0;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none}
html body .shell #customer #cw-mobile-cart .cw-mobile-summary strong {color:var(--cw-forest);font-size:17px!important;line-height:1.25}
html body .shell #customer #cw-mobile-cart .cw-mobile-summary span {margin-top:3px;color:#71471f;font-size:13px;line-height:1.3}
html body .shell #customer #cw-mobile-cart.cw-minimum-met .cw-mobile-summary span {color:#27633e}
html body .shell #customer #cw-edit-items {min-height:46px;padding:9px 13px;border:0;border-radius:10px;background:var(--cw-forest);color:#fff0ad;box-shadow:none;font-size:15px;white-space:nowrap}
#customer #cw-minimum-progress {grid-column:1/-1;width:100%;height:5px;appearance:none;border:0;border-radius:4px;background:#e3e5d8;overflow:hidden;color:#a47422;accent-color:#a47422}
#customer #cw-minimum-progress::-webkit-progress-bar {background:#e3e5d8}
#customer #cw-minimum-progress::-webkit-progress-value {background:currentColor;border-radius:4px}
#customer #cw-minimum-progress::-moz-progress-bar {background:currentColor;border-radius:4px}
#customer #cw-mobile-cart.cw-minimum-met progress {color:#3b7049;accent-color:#3b7049}
/* Website embeds expand to their content. Use the host's visible window. */
html.jj-embedded body .shell #customer #cw-mobile-cart:not([hidden]) {
 bottom:max(calc(16px + env(safe-area-inset-bottom,0px)),calc(100dvh - var(--portal-view-bottom,100dvh) + 16px));
}
#customer #cw-cart-slot {min-width:0}
#customer #cw-cart-panel[open] {
 box-sizing:border-box;display:block;position:fixed;inset:var(--portal-view-top,0px) 0 auto auto;margin:0;
 width:min(420px,100%);max-width:100%;height:min(100dvh,var(--portal-view-height,100dvh),calc(var(--portal-view-bottom,100dvh) - var(--portal-view-top,0px)));max-height:none;overflow:auto;
 overscroll-behavior:contain;padding:0 18px 20px;border:1px solid var(--cw-edge);border-radius:16px 0 0 16px;background:#fffdf6;color:#283c2f;
 box-shadow:-5px 0 28px #1b392630;
}
#customer #cw-cart-panel::backdrop {background:rgb(23 39 29 / 38%)}
#customer #cw-cart-panel>header {position:sticky;inset-block-start:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fffdf6;padding:8px 0;border-bottom:1px solid var(--cw-edge)}
#customer #cw-cart-panel h2 {font-size:23px;margin:0;color:var(--cw-forest)}
#customer #cw-cart-panel #cw-close-cart {min-height:44px;color:var(--cw-forest)}
#customer #cw-cart-panel #cw-cart-details {display:block;position:static;margin:0;padding:10px 0 0;width:auto;border:0;background:none;box-shadow:none}
#customer #cw-cart-panel #cw-cart-title {display:none}
#customer #cw-cart-feedback {color:#803424;background:#fff1de;padding:8px 10px;border-radius:6px}
#customer :is(.cw-disclosure>summary,.cw-action,#cw-edit-items,#cw-filter-toggle,#cw-close-cart):focus-visible {outline:3px solid #84601e;outline-offset:3px}

@media (min-width:761px) and (max-width:1050px) {
 html body .shell #customer #customer-order .cw-product-row {
  grid-template-columns:58px minmax(0,1fr) 130px;grid-template-areas:"art description description" "art price quantity";
 }
}
@media (max-width:760px) {
 #customer .cw-actions {grid-template-columns:1fr;gap:9px}
 #customer .cw-order-deadlines {flex-direction:column;gap:3px}
 #customer .cw-schedule-strip {padding:7px 10px;gap:4px}
 #customer .cw-disclosure>summary {padding-inline:7px}
 #customer #customer-order .cw-catalog-toolbar .catalog-tools {grid-template-columns:minmax(0,1fr) auto!important;gap:6px 8px}
 #customer #cw-filter-toggle {display:block;min-height:44px;padding:8px 12px;border:1px solid #d4c49c;border-radius:9px;background:#f5ebd1;color:var(--cw-forest)}
 #customer #cw-filter-fields {grid-column:1/-1;display:none}
 #customer #cw-filter-toggle[aria-expanded="true"]+#cw-filter-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body .shell #customer #customer-order .cw-product-row {
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"description description" "price quantity";
  gap:9px;padding:12px;
 }
 #customer #customer-order .cw-product-row .product-art {grid-area:description;justify-self:start;width:65px;height:83px;z-index:0}
 #customer #customer-order .cw-product-row .product-copy {grid-area:description;min-height:83px;margin-left:76px}
 #customer #customer-order .cw-product-row .prod-price {align-self:end;padding-bottom:4px}
 #customer #customer-order .cw-product-row .smallqty {display:flex;align-items:center;gap:7px}
 #customer #customer-order .cw-product-row .smallqty label {margin:0}
 #customer #customer-order .cw-product-row .prod-price small {display:block}
 #customer .cw-has-cart-panel #cw-cart-slot {display:none}
 html body .shell #customer #cw-mobile-cart:not([hidden]) {inset-inline:10px;width:auto;max-width:520px;margin-inline:auto}
 html.cw-customer-active body .shell #customer[data-cw-view="order"] {padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))}
 #customer #cw-cart-panel[open] {
  top:auto;bottom:max(0px,calc(100dvh - var(--portal-view-bottom,100dvh)));width:100%;height:auto;
  max-height:min(86dvh,var(--portal-view-height,86dvh),calc(var(--portal-view-bottom,100dvh) - var(--portal-view-top,0px)));padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;
 }
}
@media (max-width:380px) {
 #customer #customer-order .cw-product-row .smallqty {display:block}
 #customer #customer-order .cw-product-row .smallqty label {display:block}
 #customer #customer-order .cw-product-row .product-art {width:55px}
 #customer #customer-order .cw-product-row .product-copy {margin-left:65px}
 #customer #customer-actions .cw-action>svg:first-child {width:34px;height:34px;flex-basis:34px;padding:6px}
}


