/* Public vendor order page. --accent is injected inline per vendor. */
:root{
  --cream:#f5f1e4; --card:#fffdf6; --ink:#3f4231; --muted:#77785f;
  --accent:#6f8040; --accent-dark:#5c6a35; --accent-soft:#e7ead9; --line:#d9dcc4;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Nunito',system-ui,sans-serif; background:var(--cream); color:var(--ink);
  line-height:1.5; -webkit-font-smoothing:antialiased}
.wrap{max-width:560px; margin:0 auto; padding:24px 18px 60px}

.head{text-align:center; margin:6px 0 20px}
.head h1{font-family:'Playfair Display',serif; color:var(--accent-dark);
  font-size:clamp(32px,8vw,48px); margin:2px 0 8px; line-height:1.02}
.head .sub{display:inline-block; background:var(--accent); color:#fff; font-weight:700;
  letter-spacing:.4px; font-size:13px; padding:6px 16px; border-radius:20px}
.head .tag{font-family:'Dancing Script',cursive; font-size:20px; color:var(--accent); margin-top:14px}
.head .desc{color:var(--muted); font-size:15px; margin-top:10px}

.card{background:var(--card); border:1px solid var(--line); border-radius:20px;
  padding:22px 20px; box-shadow:0 10px 30px rgba(0,0,0,.06)}

label.field{display:block; margin:16px 0 6px; font-weight:700; color:var(--accent-dark); font-size:14px}
label.field:first-child{margin-top:0}
.req{color:var(--accent)}
input[type=text],input[type=tel],input[type=date],input[type=email],input[type=number],textarea,select{
  width:100%; font-family:inherit; font-size:16px; color:var(--ink); background:#fff;
  border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; outline:none; transition:.15s}
textarea{resize:vertical; min-height:70px}
input:focus,textarea:focus,select:focus{border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,0,0,.06)}

/* Invoice opt-in card */
.invoice-box{margin-top:18px; border:1.5px solid var(--line); border-radius:14px; background:#fff;
  padding:15px 16px; transition:border-color .18s, background .18s}
.invoice-box.on{border-color:var(--accent); background:var(--accent-soft)}
.invoice-row{display:flex; align-items:flex-start; gap:13px; cursor:pointer; margin:0; user-select:none}
.invoice-row input{position:absolute; opacity:0; width:0; height:0}
.invoice-check{flex:0 0 auto; width:24px; height:24px; border-radius:8px; border:2px solid var(--line);
  background:#fff; display:grid; place-items:center; transition:.15s; margin-top:1px}
.invoice-check::after{content:""; width:11px; height:6px; margin-top:-2px;
  border-left:2.5px solid #fff; border-bottom:2.5px solid #fff;
  transform:rotate(-45deg) scale(0); transition:transform .15s}
.invoice-row input:checked + .invoice-check{background:var(--accent); border-color:var(--accent)}
.invoice-row input:checked + .invoice-check::after{transform:rotate(-45deg) scale(1)}
.invoice-row input:focus-visible + .invoice-check{box-shadow:0 0 0 3px rgba(0,0,0,.08)}
.invoice-text b{display:block; color:var(--accent-dark); font-size:15px; font-weight:800; line-height:1.3}
.invoice-text small{display:block; color:var(--muted); font-size:12.5px; margin-top:2px}
.invoice-box #cemail{margin-top:13px; display:none}
.invoice-box.on #cemail{display:block}

/* Products */
.products{display:grid; gap:10px}
.product{display:flex; flex-direction:column; align-items:stretch; gap:0; border:1.5px solid var(--line);
  border-radius:14px; padding:12px 14px; background:#fff}
.product-main{display:flex; align-items:center; gap:12px}
.product .info{flex:1; min-width:0}
.product .info b{color:var(--accent-dark); font-size:15px; display:block}
.product .info small{color:var(--muted); font-size:13px}
.product .price{font-weight:800; color:var(--ink); white-space:nowrap}

/* Per-product option + "Add to order" block */
.product-add{margin-top:12px; padding-top:12px; border-top:1px dashed var(--line)}
.opt-label{font-size:11px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px}
.opt-pills{display:flex; flex-wrap:wrap; gap:8px}
.pill{position:relative}
.pill input{position:absolute; opacity:0; inset:0; cursor:pointer; margin:0}
.pill span{display:inline-block; border:1.5px solid var(--line); border-radius:999px; padding:7px 15px;
  font-size:14px; font-weight:700; color:var(--accent-dark); background:#fff; cursor:pointer; transition:.15s}
.pill input:checked + span{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.pill input:focus-visible + span{outline:2px solid var(--accent); outline-offset:2px}

.add-row{display:flex; align-items:center; gap:10px; margin-top:12px}
.add-btn{flex:1; border:1.5px solid var(--accent); background:var(--accent-soft); color:var(--accent-dark);
  border-radius:11px; padding:10px 14px; font-weight:800; font-size:14px; cursor:pointer; transition:.15s}
.add-btn:hover{background:var(--accent); color:#fff}
.add-btn:active{filter:brightness(.96)}

/* Category tabs */
.cat-tabs{display:flex; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; margin-bottom:12px}
.cat-tabs::-webkit-scrollbar{height:0}
.cat-tab{flex:0 0 auto; border:1.5px solid var(--line); background:#fff; color:var(--accent-dark);
  border-radius:999px; padding:8px 16px; font-weight:800; font-size:14px; cursor:pointer; white-space:nowrap; transition:.15s}
.cat-tab:hover{border-color:var(--accent)}
.cat-tab.active{background:var(--accent); border-color:var(--accent); color:#fff}
.cat-panel{display:none}
.cat-panel.active{display:block}

/* One consolidated order cart */
.cart{margin-top:16px; border:1.5px solid var(--accent); border-radius:14px; background:var(--accent-soft); padding:12px 14px}
.cart[hidden]{display:none}
.cart-head{font-size:11px; font-weight:800; color:var(--accent-dark); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px}
.cart-lines{list-style:none; margin:0; padding:0; display:grid; gap:6px}
.cart-lines li{display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:7px 8px 7px 12px; font-size:14px}
.cart-lines .cl-q{font-weight:800; color:var(--accent-dark)}
.cart-lines .cl-name{flex:1; min-width:0; font-weight:700; color:var(--ink)}
.cart-lines .cl-opt{font-weight:700; color:var(--muted)}
.cart-lines .cl-price{font-weight:800; color:var(--ink); white-space:nowrap}
.cart-lines .cl-rm{border:none; background:transparent; color:var(--muted); font-size:15px; font-weight:800;
  width:26px; height:26px; border-radius:8px; cursor:pointer; line-height:1; flex-shrink:0}
.cart-lines .cl-rm:hover{background:rgba(0,0,0,.08); color:var(--accent-dark)}

/* Customer tickboxes */
.checks{display:grid; gap:9px; margin-bottom:4px}
.check{display:flex; align-items:center; gap:11px; cursor:pointer; font-size:14px; color:var(--ink)}
.check input{position:absolute; opacity:0; width:0; height:0}
.check-box{width:21px; height:21px; border:1.5px solid var(--line); border-radius:6px; background:#fff; flex:0 0 auto; position:relative; transition:.15s}
.check input:checked + .check-box{background:var(--accent); border-color:var(--accent)}
.check input:checked + .check-box::after{content:''; position:absolute; left:7px; top:3px; width:5px; height:10px;
  border:solid #fff; border-width:0 2.5px 2.5px 0; transform:rotate(45deg)}
.check input:focus-visible + .check-box{outline:2px solid var(--accent); outline-offset:2px}

/* Tip */
.tip-row{display:flex; flex-wrap:wrap; gap:8px}
.tip-btn{border:1.5px solid var(--line); background:#fff; color:var(--accent-dark); border-radius:12px;
  padding:10px 16px; font-weight:800; font-size:14px; cursor:pointer; transition:.15s}
.tip-btn:hover{border-color:var(--accent)}
.tip-btn.on{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.tip-clear{color:var(--muted); border-color:transparent; font-weight:700}
.tip-custom{margin-top:10px; max-width:220px}
.tip-custom::-webkit-outer-spin-button,
.tip-custom::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
.tip-custom{-moz-appearance:textfield}

/* Stepper */
.qty{display:flex; align-items:center; border:1.5px solid var(--line); border-radius:11px; overflow:hidden}
.qty button{width:38px; height:38px; border:none; background:var(--accent-soft); color:var(--accent-dark);
  font-size:20px; font-weight:700; cursor:pointer; line-height:1}
.qty button:active{filter:brightness(.95)}
.qty input{width:44px; text-align:center; border:none; border-left:1.5px solid var(--line);
  border-right:1.5px solid var(--line); font-weight:800; font-size:15px; border-radius:0}

/* Option pills */
.opts{display:grid; gap:10px}
.opt{position:relative}
.opt input{position:absolute; opacity:0; inset:0; cursor:pointer; margin:0}
.opt .box{display:flex; justify-content:space-between; gap:8px; border:1.5px solid var(--line);
  border-radius:14px; padding:12px 14px; cursor:pointer; background:#fff; transition:.15s}
.opt .box b{color:var(--accent-dark); font-size:15px}
.opt .box small{color:var(--muted); font-size:13px}
.opt input:checked + .box{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(0,0,0,.05)}

.total{margin-top:22px; display:flex; justify-content:space-between; align-items:center;
  background:var(--accent-dark); color:#fff; border-radius:16px; padding:16px 20px}
.total span{font-weight:600; font-size:15px; opacity:.9}
.total b{font-size:30px; font-family:'Playfair Display',serif}
.breakdown{font-size:13px; color:var(--muted); margin-top:8px; text-align:center}

.submit{width:100%; margin-top:16px; border:none; cursor:pointer; background:var(--accent); color:#fff;
  font-family:inherit; font-weight:800; font-size:17px; padding:16px; border-radius:14px;
  transition:.15s; display:flex; align-items:center; justify-content:center; gap:10px}
.submit:hover{filter:brightness(1.05)}
.submit:active{transform:translateY(1px)}
.submit svg{width:22px; height:22px; fill:#fff}
.note{text-align:center; font-size:12px; color:var(--muted); margin-top:12px}
.err{color:#a3432b; font-size:13px; margin-top:8px; text-align:center; min-height:18px; font-weight:600}

.foot{text-align:center; margin-top:24px; font-family:'Dancing Script',cursive; font-size:18px; color:var(--accent)}
.powered{text-align:center; margin-top:26px; font-size:13px; color:var(--muted)}
.powered a{color:var(--accent-dark); font-weight:700}
