/* Farms2Tables shared white and sage palette. */
:root{--f2t-page:#dfe8d7;--f2t-surface:#fff;--f2t-sage:#ceddc2;--f2t-border:#bdccb2;--f2t-ink:#203b2c;--f2t-muted:#56674e;--f2t-action:#315c36}
body{background:var(--f2t-page);color:var(--f2t-ink)}
.auth-story{background:var(--f2t-surface);color:var(--f2t-ink);border-right:1px solid var(--f2t-border)}
.auth-story h1,.auth-story .logo{color:var(--f2t-ink)}
.auth-story p{color:var(--f2t-muted)}
.auth-content{background:var(--f2t-page)}
.auth-story .farms2tables-logo{padding:0;border-radius:0;background:transparent}
.auth-story .logo span{color:var(--f2t-action)}
aside,.admin-menu,.admin-header{background:var(--f2t-surface)}
.role-choice{background:var(--f2t-surface);border-color:var(--f2t-border)}
.role-choice:hover{background:#edf2e8;border-color:var(--f2t-action)}
input,select,textarea{accent-color:var(--f2t-action)}
@media(max-width:850px){.auth-story{border-right:0;border-bottom:1px solid var(--f2t-border)}}

/* Position the landing introduction near the top of its panel. */
.auth-shell.signup-options .auth-story{
  justify-content:flex-start;
  padding-top:clamp(28px,4vh,44px);
}
.auth-shell.signup-options .auth-story h1{
  margin-top:28px;
}

/* Match the account-choice landing page to the sign-in dimensions. */
.auth-shell.signup-options{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.signup-options .auth-content{padding:60px 7vw}
.signup-options .auth-card{max-width:440px}
.signup-options .auth-story{padding-left:6vw;padding-right:6vw}
.signup-options .auth-story h1{font-size:58px;line-height:1.1}
@media(max-width:850px){
  .auth-shell.signup-options{grid-template-columns:1fr}
  .signup-options .auth-story{padding-left:30px;padding-right:30px}
  .signup-options .auth-story h1{font-size:35px}
  .signup-options .auth-content{padding:32px 22px}
}

/* Keep the landing brand block aligned with the sign-in brand block. */
.auth-shell.signup-options .auth-story{
  justify-content:center;
  padding-top:9vw;
  padding-bottom:9vw;
}
.auth-shell.signup-options .auth-story h1{margin-top:70px}
@media(max-width:850px){
  .auth-shell.signup-options .auth-story{padding-top:30px;padding-bottom:30px}
  .auth-shell.signup-options .auth-story h1{margin-top:28px}
}
.duplicate-product-button{margin:4px 4px 4px 0}

/* Product names and descriptions use the full available form width. */
#farmer-add-product-form label:has(>input[name="name"]),
#farmer-add-product-form label:has(>textarea[name="description"]),
#admin-add-product-form label:has(>input[name="name"]),
#admin-add-product-form label:has(>textarea[name="description"]),
#catalog-edit-form label:has(>input[name="name"]),
#catalog-edit-form label:has(>textarea[name="description"]){
  grid-column:1 / -1;
  width:100%;
  min-width:0;
}
#farmer-add-product-form input[name="name"],
#farmer-add-product-form textarea[name="description"],
#admin-add-product-form input[name="name"],
#admin-add-product-form textarea[name="description"],
#catalog-edit-form input[name="name"],
#catalog-edit-form textarea[name="description"]{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.product-weight-toggle{grid-column:1 / -1;align-items:center}.product-weight-toggle>span:first-child{flex:1;line-height:1.5}.inactive-product-field{opacity:.55}.inactive-product-field input,.inactive-product-field select{background:#edf0e9;cursor:not-allowed}
.duplicate-product-button{padding-left:8px;padding-right:8px;font-size:12px;white-space:nowrap}
.unsaved-changes-dialog{width:min(480px,94vw);padding:28px;border:1px solid #bdccb2;border-radius:12px;background:#fff;color:#203b2c;max-height:90vh;overflow:auto}.unsaved-changes-dialog::backdrop{background:rgba(20,35,24,.5)}.unsaved-changes-dialog h2{margin-top:0;font:26px Georgia}.unsaved-changes-dialog p{color:#56674e;line-height:1.6}.unsaved-changes-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}

#portal-message-banner{margin:18px 28px 0;padding:16px 20px;background:#244932;border:1px solid #244932;border-left:5px solid #244932;border-radius:8px;color:#fff;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.portal-banner-form+.portal-banner-form{margin-top:24px;padding-top:18px;border-top:1px solid #bdccb2}.portal-banner-form textarea{width:100%;box-sizing:border-box}@media(max-width:650px){#portal-message-banner{margin:14px 16px 0;padding:14px}}

.driver-directions{display:inline-flex;align-items:center;min-height:44px;color:#315c36;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

.product-srp{font-size:12px;line-height:1.5;color:#647160;margin:5px 0}.product-srp strong{font-weight:600;color:#36503a}

#buyer-price-change-dialog{width:460px;max-width:92vw;max-height:90vh;overflow:auto;padding:26px;border:1px solid #bdccb2;border-radius:12px;color:#244932;font:14px/1.6 Arial,sans-serif}#buyer-price-change-dialog h2{font:26px/1.2 Georgia,serif}#buyer-price-change-dialog>button{float:right;margin-top:12px}

.driver-en-route{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}.driver-en-route small{font-size:12px}.buyer-sms-preferences{margin-top:20px}.buyer-sms-preferences .same-address{align-items:flex-start}.buyer-sms-preferences .same-address>input{width:auto;flex:0 0 auto}.buyer-sms-preferences .same-address>span{line-height:1.5}.sms-history td{overflow-wrap:anywhere}

/* Shared favorite hearts: bare icon, consistent shape and size. */
body .product-favorite,
body .product-favorite:hover,
body .product-favorite.is-favorite,
body .farmer-favorite-stat,
body .farmer-favorite-stat:hover,
body .admin-card-favorites>button,
body .admin-card-favorites>button:hover{
background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#ad4052!important;filter:none!important;
}
body .product-favorite svg,
body .farmer-favorite-stat svg,
body .admin-card-favorites>button svg{width:22px;height:22px;flex-shrink:0;display:block;overflow:visible}
body .product-favorite svg path,
body .farmer-favorite-stat svg path,
body .admin-card-favorites>button svg path{stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
body .product-favorite:focus-visible,
body .farmer-favorite-stat:focus-visible,
body .admin-card-favorites>button:focus-visible{outline:2px solid #ad4052;outline-offset:3px}

.today-dispatch-table .dispatch-scans{white-space:nowrap}.today-dispatch-table .dispatch-scans .secondary{padding:7px 9px;font-size:12px;min-width:0}

#admin-order-details th .table-sort{background:none;border:0;padding:0;color:inherit;font:inherit;font-weight:inherit;text-align:left;white-space:nowrap;cursor:pointer}#admin-order-details th .table-sort:focus-visible{outline:2px solid #315c36;outline-offset:4px}

/* Compact, clearly selected weekday controls for delivery zone editing. */
#delivery-zone-form .delivery-day-picker{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 0}
#delivery-zone-form .delivery-day-choice{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;margin:0;padding:7px 10px;border:1px solid #bdccb2;border-radius:6px;background:#fff;font-size:14px;line-height:1.2;cursor:pointer}
#delivery-zone-form .delivery-day-choice input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:#315c36}
#delivery-zone-form .delivery-day-choice:has(input:checked){background:#d2dfc7;border-color:#315c36;color:#203b2c}
#delivery-zone-form .delivery-day-choice:focus-within{outline:2px solid #d79e36;outline-offset:2px}
#delivery-zone-form #zone-days-summary{margin:8px 0 0;font-size:12px}
#custom-pricing-form [data-custom-value][hidden]{display:none!important}
.custom-pricing-offers [data-custom-qty]{height:40px;min-height:40px;padding:7px 9px;border:1px solid #bdccb2;border-radius:6px;font:inherit;vertical-align:middle;margin:0 8px 0 0}
.custom-pricing-offers [data-custom-add]{min-height:40px;vertical-align:middle}
#packed-weight-dialog{width:min(850px,calc(100vw - 32px));max-height:90vh;overflow:auto}
#packed-weight-dialog input[type=number]{width:100%;min-height:44px}
