/* Texas Bee Haus – Simple Syrup Calculator styles */
.tbh-syrup{
  --tbh-gold: var(--tbh-gold, #FFB347);
  --tbh-gold2: var(--tbh-gold2, #FFD700);
  --tbh-ink: var(--tbh-ink, #E9EEFC);
  --tbh-muted: var(--tbh-muted, #B9C3DD);
  --tbh-bodybg: var(--tbh-bodybg, #0f1a30);
  --tbh-cardbg: var(--tbh-cardbg, #0b1222);

  --tbh-line: rgba(255,255,255,.10);
  --tbh-shadow: 0 18px 40px rgba(0,0,0,.25);
  --tbh-radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
.tbh-syrup *{ box-sizing:border-box; }
.tbh-syrup__card{
  background:linear-gradient(180deg, rgba(255,179,71,.10), rgba(255,215,0,.06) 40%, rgba(255,255,255,.02));
  border:1px solid var(--tbh-line);
  border-radius:var(--tbh-radius);
  box-shadow:var(--tbh-shadow);
  overflow:hidden;
  color:var(--tbh-ink);
}
.tbh-syrup__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px; gap:12px;
  background:linear-gradient(90deg, var(--tbh-header1), var(--tbh-header2));
  border-bottom:1px solid var(--tbh-line);
}
.tbh-syrup__brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.tbh-syrup__logo{
  width:44px; height:44px; display:grid; place-items:center; border-radius:14px;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  font-size:22px;
}
.tbh-syrup__title{ font-weight:800; letter-spacing:.2px; line-height:1.1; }
.tbh-syrup__subtitle{ color:rgba(233,238,252,.75); font-size:13px; margin-top:2px; }
.tbh-syrup__badge{
  font-size:12px; padding:6px 10px; border-radius:999px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.14);
  color:var(--tbh-ink); white-space:nowrap;
}
.tbh-syrup__body{ padding:18px; background:color-mix(in srgb, var(--tbh-bodybg) 70%, transparent); }

.tbh-syrup__topbar{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-bottom:14px; padding:10px 12px;
  border:1px solid var(--tbh-line); border-radius:16px;
  background:color-mix(in srgb, var(--tbh-cardbg) 65%, transparent);
}
.tbh-syrup__chips{ display:flex; gap:8px; flex-wrap:wrap; }
.tbh-syrup__chip{
  appearance:none; border:1px solid rgba(255,255,255,.16);
  background:rgba(0,0,0,.22);
  color:var(--tbh-ink);
  padding:8px 10px; border-radius:999px;
  font-weight:800; font-size:12px;
  cursor:pointer;
}
.tbh-syrup__chip:hover{ filter:brightness(1.06); }
.tbh-syrup__chip.is-active{ border-color:rgba(255,215,0,.55); background:rgba(255,179,71,.18); }
.tbh-syrup__topbarHint{ color:rgba(233,238,252,.75); font-size:12px; }

.tbh-syrup__grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }
.tbh-syrup__field{
  padding:14px; border:1px solid var(--tbh-line);
  border-radius:16px; background:color-mix(in srgb, var(--tbh-cardbg) 70%, transparent);
}
.tbh-syrup__field--span2{ grid-column:1 / -1; }
.tbh-syrup__label{ display:block; font-weight:700; font-size:13px; margin-bottom:10px; }
.tbh-syrup__miniLabel{ color:rgba(233,238,252,.75); font-size:12px; font-weight:700; margin-bottom:6px; }
.tbh-syrup__help{ color:rgba(233,238,252,.72); font-size:12px; margin-top:8px; line-height:1.35; }
.tbh-syrup__row{ display:flex; gap:10px; align-items:center; }
.tbh-syrup__input{
  flex:1; padding:12px 12px; border-radius:14px;
  border:1px solid rgba(0,0,0,.18);
  background:#ffffff;
  color:#000000;
  outline:none;
}
.tbh-syrup__input::placeholder{ color: rgba(0,0,0,.55); }
.tbh-syrup__input::placeholder{ color: rgba(0,0,0,.55); }
.tbh-syrup__input:focus{
  border-color:rgba(255,215,0,.55);
  box-shadow:0 0 0 4px rgba(255,215,0,.12);
}
.tbh-syrup__select{
  padding:12px 12px; border-radius:14px;
  border:1px solid rgba(0,0,0,.18);
  background:#ffffff;
  color:#000000;
  outline:none;
}
.tbh-syrup__input::placeholder{ color: rgba(0,0,0,.55); }
.tbh-syrup__select--full{ width:100%; }
.tbh-syrup__select:focus{
  border-color:rgba(255,215,0,.55);
  box-shadow:0 0 0 4px rgba(255,215,0,.12);
}
.tbh-syrup__subfields{ margin-top:10px; }

.tbh-syrup__plannerGrid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; align-items:start; }
.tbh-syrup__plannerActions{ grid-column:1 / -1; }

.tbh-syrup__actions{
  position:relative;
  display:flex; flex-wrap:wrap; gap:10px; margin-top:14px;
}
.tbh-syrup__btn{
  padding:12px 14px; border-radius:14px;
  border:1px solid rgba(255,215,0,.45);
  background:linear-gradient(180deg, rgba(255,215,0,.30), rgba(255,179,71,.22));
  color:var(--tbh-ink); font-weight:900; cursor:pointer;
}
.tbh-syrup__btn:hover{ filter:brightness(1.05); }
.tbh-syrup__btn:disabled{ opacity:.55; cursor:not-allowed; }
.tbh-syrup__btn--ghost{
  background:rgba(0,0,0,.20);
  border-color:rgba(255,255,255,.16);
  color:var(--tbh-ink);
}
.tbh-syrup__toast{
  position:absolute; right:0; top:-6px;
  transform:translateY(-100%);
  background:rgba(0,0,0,.75);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-size:12px;
  max-width:min(420px, 95%);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
}

.tbh-syrup__result{
  margin-top:14px; padding:14px; border-radius:16px;
  border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.22);
}
.tbh-syrup__resultHeader{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:10px; }
.tbh-syrup__resultTitle{ font-weight:900; letter-spacing:.2px; }
.tbh-syrup__resultMeta{ color:rgba(233,238,252,.72); font-size:12px; }
.tbh-syrup__resultGrid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
.tbh-syrup__resultItem{
  padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.10);
  background:rgba(15,26,48,.35);
}
.tbh-syrup__resultItem--span2{ grid-column:1 / -1; }
.tbh-syrup__resultLabel{ color:rgba(233,238,252,.72); font-size:12px; font-weight:700; margin-bottom:6px; }
.tbh-syrup__resultValue{ font-size:18px; font-weight:900; letter-spacing:.2px; }
.tbh-syrup__resultSmall{ color:rgba(233,238,252,.72); font-size:12px; margin-top:6px; }
.tbh-syrup__note{ margin-top:10px; color:rgba(233,238,252,.72); font-size:12px; line-height:1.4; }

.tbh-syrup__print{ display:none; }
@media (max-width: 780px){
  .tbh-syrup__grid{ grid-template-columns:1fr; }
  .tbh-syrup__plannerGrid{ grid-template-columns:1fr; }
  .tbh-syrup__actions{ flex-direction:column; }
}
@media print{
  body *{ visibility:hidden !important; }
  .tbh-syrup__print, .tbh-syrup__print *{ visibility:visible !important; }
  .tbh-syrup__print{
    display:block !important;
    position:fixed; left:0; top:0; right:0; bottom:0;
    background:#fff !important;
    padding:24px !important;
  }
  .tbh-syrup__printCard{
    max-width:760px; margin:0 auto;
    border:1px solid #ddd; border-radius:14px; padding:18px;
    color:#111 !important;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  }
  .tbh-syrup__printHeader{ display:flex; gap:14px; align-items:center; border-bottom:1px solid #eee; padding-bottom:12px; margin-bottom:12px; }
  .tbh-syrup__printLogo{ width:56px; height:56px; border-radius:12px; display:grid; place-items:center; background:#f6f6f6; overflow:hidden; }
  .tbh-syrup__printLogo img{ max-width:100%; max-height:100%; display:block; }
  .tbh-syrup__printTitle{ font-size:20px; font-weight:900; }
  .tbh-syrup__printSub{ font-size:12px; color:#444; margin-top:2px; }
  .tbh-syrup__printGrid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .tbh-syrup__printItem{ border:1px solid #eee; border-radius:12px; padding:12px; }
  .tbh-syrup__printLabel{ font-size:12px; color:#555; font-weight:700; margin-bottom:6px; }
  .tbh-syrup__printValue{ font-size:18px; font-weight:900; }
  .tbh-syrup__printSmall{ font-size:12px; color:#555; margin-top:6px; }
  .tbh-syrup__printFooter{ margin-top:10px; font-size:12px; color:#555; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .tbh-syrup__printNote{ margin-top:12px; font-size:12px; color:#444; line-height:1.4; }
}


/* Mode switch */
.tbh-syrup__mode{display:flex;gap:10px;flex-wrap:wrap;}
.tbh-syrup__modeOpt{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;border:1px solid rgba(0,0,0,.12);background:#fff;color:#000;cursor:pointer;user-select:none;}
.tbh-syrup__modeOpt input{accent-color:var(--tbh-gold);}
