:root{--purple:#4c0876;--violet:#6d00ae;--pink:#ec0064;--ink:#24132f;--line:#e1e1e6;--muted:#6b6874}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Arial,Helvetica,sans-serif;background:#fff}a{text-decoration:none;color:inherit}.main-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 2.5%;background:#fff;border-bottom:1px solid #eee}.logo{display:flex;align-items:center;white-space:nowrap;font-size:27px;font-weight:800;color:#35104f}.logo b,.footer-logo b{color:#f00861}.main-nav,.account-actions{display:flex;align-items:center;gap:19px;flex-wrap:wrap}.main-nav a{font-size:14px;font-weight:700;color:#35104f}.main-nav .rescue-nav{background:#e5f8e5;color:#087b24;border-radius:24px;padding:11px 14px}.main-nav .fridge-nav{background:#f2eff5;border-radius:24px;padding:11px 14px}.account-actions a{font-weight:700;font-size:14px;padding:10px 15px;border-radius:10px}.login-btn{border:1.5px solid #42116a}.signup-btn{background:var(--violet);color:white!important}#share-food-main{max-width:1600px;margin:auto;padding:0 18px 18px}.share-intro{display:flex;align-items:center;gap:20px;min-height:132px;padding:12px 24px 10px;overflow:hidden;border-bottom:1px solid #f0f0f0}.intro-symbol{font-size:80px;line-height:1;color:var(--purple);font-weight:700}.intro-copy{flex:1;min-width:0}.share-intro h1{font-size:clamp(27px,3vw,44px);line-height:1.15;margin:0 0 8px;color:#380657}.share-intro p{font-size:clamp(14px,1.5vw,20px);margin:0}.intro-produce{width:240px;height:126px;object-fit:cover;object-position:center;border-radius:14px}.share-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:10px;margin-top:12px}.share-sidebar,.share-form-card{border:1px solid #e7e7eb;border-radius:20px;background:#fff;box-shadow:0 2px 7px #2010200c}.share-sidebar{padding:26px 22px;min-height:540px}.share-steps{padding:0;margin:0;list-style:none}.share-steps li{display:flex;align-items:center;gap:15px;padding:13px 14px;margin-bottom:8px;border-radius:12px;font-size:18px}.share-steps li.active{background:#f1e7f8}.step-number{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;border:1.5px solid #b6b6c1;color:#282433;font-size:20px;font-weight:700}.active .step-number{background:var(--violet);color:white;border-color:var(--violet)}.review-notice{display:flex;gap:12px;margin-top:38px;padding:18px 14px;border-radius:12px;background:#f2f2f4;font-size:16px;line-height:1.5}.review-notice p{margin:0}.shield{font-size:36px;line-height:1;color:#42116a}.share-form-card{padding:20px 25px 25px}.share-form-card h2{margin:0 0 22px;color:#380657;font-size:30px}.form-content{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:26px}.form-fields{min-width:0}.field{margin-bottom:20px}.field>label,.photo-field>label:first-child,.listing-type legend{display:block;font-size:17px;font-weight:700;color:#3a0c55;margin-bottom:9px}.field input:not([type=radio]),.field select,.field textarea{display:block;width:100%;border:1.5px solid #c9cad4;border-radius:9px;padding:12px 14px;background:#fff;font:16px Arial,sans-serif;color:#24212b}.field textarea{resize:vertical;min-height:90px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.listing-type{border:0;padding:0;margin:0;min-width:0}.listing-type .radio-line{display:flex;align-items:center;gap:10px;font-weight:400;color:#222;font-size:17px}.radio-line input{accent-color:var(--violet);width:19px;height:19px}.type-note{font-size:12px;color:var(--muted);margin:7px 0 0 29px}.counter{display:block;text-align:right;font-size:13px;color:var(--muted);margin-top:4px}.photo-field{text-align:center}.photo-field>label:first-child{text-align:left}.photo-preview{padding:7px;border:1px solid #dedee5;border-radius:12px}.photo-preview img{display:block;width:100%;height:175px;object-fit:cover;border-radius:8px}.upload-button{display:block;margin-top:12px;padding:11px 8px;border:1.5px solid #c9c6d3;border-radius:10px;color:#42116a;font-weight:700;cursor:pointer}.photo-field input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.photo-field small{display:block;margin-top:9px;font-size:12px}.form-actions{display:flex;justify-content:flex-end;gap:18px;align-items:center;margin-top:26px}.cancel-button,#continue-step-2{border-radius:10px;font-size:16px;font-weight:700;padding:14px 22px;min-height:49px}.cancel-button{border:1.5px solid #4b1474;color:#3b0c58;min-width:145px;text-align:center}#continue-step-2{border:0;background:#6900a7;color:#fff;cursor:pointer}.share-footer{border-top:1px solid #e4e4e8;margin:0 18px;padding:17px 2% 22px}.footer-line{display:flex;align-items:center;gap:26px;justify-content:space-between;max-width:1540px;margin:auto}.footer-logo{display:flex;align-items:center;font-size:22px;font-weight:800;white-space:nowrap;color:#35104f}.footer-logo svg{width:28px;height:35px}.footer-tagline{font-size:15px;font-style:italic;white-space:nowrap}.share-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:0}.share-footer nav a{padding:0 14px;border-left:1px solid #aaa;font-size:13px;white-space:nowrap}.share-footer nav a:first-child{border-left:0}@media(max-width:1100px){.main-header{flex-wrap:wrap}.main-nav{order:3;width:100%;justify-content:center}.share-layout{grid-template-columns:260px minmax(0,1fr)}.form-content{grid-template-columns:minmax(0,1fr) 190px}.footer-line{flex-wrap:wrap}}@media(max-width:760px){.share-layout{grid-template-columns:1fr}.share-sidebar{min-height:0}.share-steps{display:flex;flex-wrap:wrap}.share-steps li{font-size:14px}.review-notice{margin-top:12px}.intro-produce{display:none}.intro-symbol{font-size:50px}.form-content{grid-template-columns:1fr}.two-fields{grid-template-columns:1fr}.photo-field{max-width:330px}.form-actions{flex-wrap:wrap}.share-intro{padding:20px 5px}.share-form-card{padding:20px}.share-footer nav a{padding:6px 10px}}
/* Step 2: scoped additions; Step 1 and existing styles are unchanged */
#pickup-form[hidden],#food-details-form[hidden]{display:none!important}
.pickup-intro{font-size:18px;margin:-10px 0 26px;color:#30133e}
.pickup-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:34px;row-gap:16px}
.pickup-grid .field{margin-bottom:0}
.pickup-grid .field>label,.pickup-location legend{font-size:17px;font-weight:700;color:#3a0c55;margin-bottom:9px}
.pickup-grid .field input:not([type=radio]),.pickup-grid .field select,.pickup-grid .field textarea{display:block;width:100%;border:1.5px solid #c9cad4;border-radius:9px;padding:12px 14px;background:white;font:16px Arial,sans-serif;color:#24212b;min-height:48px}
.pickup-location{padding:0;border:0;min-width:0}
.pickup-location .radio-line{display:flex;gap:10px;align-items:center;font-size:16px;margin:8px 0;line-height:1.3}
.pickup-instructions{grid-column:1/-1}
.pickup-instructions textarea{resize:vertical;min-height:88px!important}
.pickup-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:42px}
.pickup-actions button{font-size:16px;font-weight:700;padding:14px 20px;border-radius:10px;cursor:pointer;min-height:50px}
.pickup-back{background:white;border:1.5px solid #4b1474;color:#3b0c58}
.pickup-next{background:#6900a7;border:1.5px solid #6900a7;color:white}
.share-steps li.completed .step-number{background:#f1fff1;border-color:#8ae975;color:#251934}
.share-steps li.completed::after{content:'✓';color:#14651d;background:#91ec62;font-weight:800;border-radius:50%;padding:2px 8px;margin-left:auto}
.step-3-status{margin-top:14px;color:#4c0876;font-size:14px}
@media(max-width:760px){.pickup-grid{grid-template-columns:1fr}.pickup-instructions{grid-column:auto}.pickup-actions{flex-direction:column;align-items:stretch}.pickup-actions button{width:100%}}

/* FRIDGE24_PHOTO_EDITOR_V1: additions scoped to photo controls */
.photo-tools[hidden],.photo-editor[hidden]{display:none!important}
.photo-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.photo-tools button,.photo-editor button{border:1px solid #c9c6d3;border-radius:8px;background:#fff;color:#42116a;padding:9px 11px;font:600 13px Arial,sans-serif;cursor:pointer}
.photo-tools button:hover,.photo-editor button:hover{border-color:#6900a7}
.photo-editor{position:fixed;inset:0;background:#1c1427b8;z-index:9999;display:grid;place-items:center;padding:16px}
.photo-editor-panel{width:min(95vw,740px);max-height:95vh;overflow:auto;background:white;border-radius:16px;padding:22px;color:#24132f}
.photo-editor-panel h2{margin:0 0 8px;font-size:24px}
.photo-editor-panel p{margin:0 0 12px;color:#6b6874}
#photo-editor-canvas{display:block;width:100%;height:auto;max-height:58vh;object-fit:contain;background:#eee;border-radius:9px;touch-action:none;cursor:grab}
.photo-editor-controls,.photo-editor-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.photo-editor-controls input{flex:1;min-width:120px;accent-color:#6900a7}
.photo-editor-actions{justify-content:flex-end}
#photo-save{background:#6900a7;color:white;border-color:#6900a7}


/* FRIDGE24_STEP3_V1 — additive review-only styling */
#review-form[hidden]{display:none!important}
.f24-review-intro{margin:-8px 0 20px;font-size:16px;line-height:1.5}
.f24-review-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}
.f24-review-left{min-width:0}.f24-review-panel,.f24-listing-preview{border:1px solid #d4d3dd;border-radius:14px;overflow:hidden;margin-bottom:14px;background:#fff}
.f24-review-panel header{display:flex;align-items:center;justify-content:space-between;background:#f2f2f5;padding:11px 15px;color:#2e0b4c;font-size:19px}
.f24-review-panel header button{border:0;background:none;color:#6200a1;font-weight:bold;cursor:pointer;font-size:15px}
.f24-food-summary{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1fr);gap:15px;padding:14px;font-size:14px;overflow-wrap:anywhere}
.f24-food-summary img{width:120px;height:110px;object-fit:cover;border-radius:9px}.f24-food-summary p,.f24-pickup-summary p{margin:0 0 9px;line-height:1.4}
.f24-food-summary>div:last-child{border-left:1px solid #ddd;padding-left:13px}
.f24-pickup-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:15px;font-size:14px;overflow-wrap:anywhere}
.f24-pickup-summary>div+div{border-left:1px solid #ddd;padding-left:14px}
.f24-ready{margin:12px;padding:13px;border-radius:10px;background:#f2f2f5;display:flex;gap:12px;align-items:center;color:#530083;font-size:26px}.f24-ready span{font-size:16px;color:#24132f}.f24-ready small{display:block;margin-top:4px;font-size:13px}
.f24-review-actions{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.f24-review-actions button{padding:13px 15px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}
#review-back{border:1.5px solid #4c0876;color:#4c0876;background:white}#review-submit{border:0;background:#6d00ae;color:white}
.f24-listing-preview h3{margin:0;padding:14px;background:#f2f2f5;color:#2e0b4c;font-size:19px}.f24-preview-content{padding:14px;font-size:14px;overflow-wrap:anywhere}
.f24-preview-photo{position:relative}.f24-preview-photo img{display:block;width:100%;height:170px;object-fit:cover;border-radius:10px}.f24-preview-photo span{position:absolute;right:8px;top:8px;background:#159a14;color:#fff;border-radius:20px;padding:5px 10px;font-weight:bold}
.f24-preview-content h4{font-size:19px;color:#35065a;margin:12px 0 8px}.f24-preview-content>span{background:#eeeaf2;padding:5px 10px;border-radius:14px}.f24-preview-content p{line-height:1.45;margin:11px 0}.f24-preview-content strong{display:inline-block;background:#e6f7df;color:#08752b;border-radius:20px;padding:8px 12px}
#review-status:not([hidden]){padding:14px;border:1px solid #c7b1da;border-radius:9px;background:#f7f1fb;line-height:1.5}
@media(max-width:1100px){.f24-review-layout{grid-template-columns:1fr}.f24-listing-preview{max-width:420px}}
@media(max-width:650px){.f24-food-summary,.f24-pickup-summary{grid-template-columns:1fr}.f24-food-summary>div:last-child,.f24-pickup-summary>div+div{border-left:0;padding-left:0}.f24-review-actions{flex-direction:column}}


/* FRIDGE24_QUANTITY_PICKUP_APPROVED_V1 */

/* New quantity section only — preserve existing form styles. */
#quantity-pickup-section {
  grid-column: 1 / -1;
  margin-top: 14px;
  margin-bottom: 16px;
}

#quantity-pickup-section h3 {
  margin: 0 0 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f2e5f8;
  color: #4c0876;
  font-size: 22px;
  font-weight: 800;
}

#quantity-pickup-section > p:not(#food-quantity-preview) {
  margin: 0 0 16px;
  color: #42116a;
  font-size: 15px;
}

#quantity-pickup-section .two-fields {
  display: contents;
}

#quantity-pickup-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 12px;
}

#quantity-pickup-section h3,
#quantity-pickup-section > p {
  grid-column: 1 / -1;
}

#quantity-pickup-section .field {
  min-width: 0;
  margin-bottom: 0;
}

#quantity-pickup-section .field label {
  font-size: 14px;
  font-weight: 700;
  color: #4c0876;
  min-height: 34px;
}

#quantity-pickup-section .field input,
#quantity-pickup-section .field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#food-quantity-preview {
  margin: 8px 0 0;
  padding: 17px 20px;
  border-radius: 12px;
  background: #f2e5f8;
  color: #4c0876;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 900px) {
  #quantity-pickup-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #quantity-pickup-section {
    grid-template-columns: 1fr;
  }
}


/* FRIDGE24_QUANTITY_APPROVED_FINISH */
#quantity-pickup-section {
  display: block;
  grid-column: 1 / -1;
  margin-top: 14px;
}

#quantity-pickup-section .f24-quantity-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f2e5f8;
  border-radius: 12px;
  margin-bottom: 18px;
}

#quantity-pickup-section .f24-quantity-heading h3 {
  margin: 0;
  padding: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 21px;
  color: #4c0876;
}

#quantity-pickup-section .f24-quantity-heading p {
  margin: 0 0 0 auto;
  font-size: 14px;
  color: #42116a;
}

#quantity-pickup-section .f24-quantity-icon {
  font-size: 30px;
  color: #6d00aa;
}

#quantity-pickup-section .f24-quantity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#quantity-pickup-section .f24-quantity-grid .field {
  min-width: 0;
  margin: 0;
}

#quantity-pickup-section .f24-quantity-grid label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4c0876;
  margin-bottom: 10px;
}

#quantity-pickup-section .f24-quantity-grid input,
#quantity-pickup-section .f24-quantity-grid select {
  width: 100%;
  box-sizing: border-box;
}

#quantity-pickup-section .f24-quantity-preview-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f2e5f8;
  color: #4c0876;
}

#quantity-pickup-section .f24-quantity-preview-bar strong {
  font-size: 18px;
  white-space: nowrap;
  padding-right: 22px;
  border-right: 1px solid #c6a7d7;
}

#quantity-pickup-section #food-quantity-preview {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 1000px) {
  #quantity-pickup-section .f24-quantity-heading,
  #quantity-pickup-section .f24-quantity-preview-bar {
    flex-wrap: wrap;
  }

  #quantity-pickup-section .f24-quantity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  #quantity-pickup-section .f24-quantity-grid {
    grid-template-columns: 1fr;
  }
}


/* FRIDGE24_STEP3_QUANTITY_CARD_V1 */
#review-quantity-summary {
  margin: 16px !important;
  padding: 18px !important;
  background: #f5ebfa !important;
  border: 1px solid #ead7f4;
  border-radius: 14px !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#review-quantity-summary > strong {
  grid-column: 1 / -1;
  font-size: 17px;
  color: #4c0876;
  margin-bottom: 4px;
}

#review-quantity-summary > p {
  margin: 0 !important;
  padding: 13px 10px;
  background: white;
  border: 1px solid #e8d9ef;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

#review-quantity-summary > p > b {
  font-size: 12px;
  color: #694477;
  line-height: 1.4;
}

#review-quantity-summary > p > span {
  font-size: 17px;
  font-weight: 700;
  color: #4c0876;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  #review-quantity-summary {
    grid-template-columns: 1fr;
  }
}
