#jh-estimator,#jh-scheduler{max-width:980px;margin:0 auto}
.jh-title{margin:10px 0;color:#2E7D32}
.jh-block{background:#fff;border-radius:8px;padding:16px;margin:12px 0}
.jh-trailer-grid label{display:inline-block;margin:4px 12px 4px 0;padding:8px 10px;background:#f3f3f3;border-radius:6px;cursor:pointer}
.jh-cat{margin-bottom:10px}
.jh-toggle{display:block;width:100%;text-align:left;padding:8px;background:#eee;border:none;border-radius:4px;margin-bottom:6px;cursor:pointer}
.jh-items{display:none;padding:6px 8px;border-left:3px solid #2E7D32;background:#fafafa}
/* Make item checkboxes sit flush left, with text next to them */
/* ===== Estimator rows: checkbox | name | price ===== */
#jh-estimator .jh-items,
#jh-estimator .jh-item,
#jh-estimator .jh-item label { text-align: left !important; }

/* Use a 3-column grid so text never drifts right */
#jh-estimator .jh-item label{
  display: grid !important;
  grid-template-columns: auto 1fr auto; /* checkbox | name | price */
  align-items: center;
  column-gap: 10px;
  margin: 0; padding: 6px 0;
}

/* Checkbox flush-left */
#jh-estimator .jh-item input[type="checkbox"],
#jh-estimator .jh-marketing-consent input[type="checkbox"] { margin: 0; }

/* Price sticks to the right edge of the row */
#jh-estimator .jh-item .jh-price{
  margin: 0 !important;
  justify-self: end;
  white-space: nowrap;
}

/* Optional: tighten the item list look */
#jh-estimator .jh-items{ 
  display: none; padding: 8px 10px; 
  border-left: 3px solid #2E7D32; background:#fafafa;
}
#jh-estimator .jh-cat{ margin-bottom: 10px; }
#jh-estimator .jh-toggle{
  display:block; width:100%; text-align:left; cursor:pointer;
  padding:8px; margin-bottom:6px; background:#eee; border:none; border-radius:4px;
}

.jh-price{ margin-left:auto; }  /* keep the price on the far right */

.jh-total{font-weight:600;margin-top:8px}
#jh-estimator input,#jh-estimator textarea,#jh-scheduler input,#jh-scheduler textarea,#jh-scheduler select{display:block;width:100%;margin:8px 0;padding:8px}
#jh-save-estimate,#jh-create-checkout{background:#2E7D32;color:#fff;border:none;padding:10px 16px;border-radius:6px;cursor:pointer}
.jh-success{background:#d4edda;color:#155724;padding:8px;border-radius:6px}
.jh-error{background:#f8d7da;color:#721c24;padding:8px;border-radius:6px}
.jh-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.jh-btn{background:#e9ecef;color:#111;border:none;padding:10px 14px;border-radius:6px;cursor:pointer}
.jh-btn.primary{background:#2E7D32;color:#fff}
.jh-btn:hover{filter:brightness(0.96)}
.jh-subrow{margin-top:6px;font-weight:500}
.jh-min-note{background:#fff3cd;color:#664d03;padding:8px;border-radius:6px;margin-top:8px}
.jh-consent{display:block;margin:8px 0}
.jh-disclosure{font-size:.9rem;color:#666;margin:6px 0 0}
.jh-my-estimates .jh-table{width:100%;border-collapse:collapse}
.jh-my-estimates .jh-table th,.jh-my-estimates .jh-table td{
  border-bottom:1px solid #eee;padding:10px;text-align:left
}
.jh-my-estimates .button{background:#2E7D32;color:#fff;padding:6px 10px;border-radius:6px;text-decoration:none}
/* Busy overlay for estimator */
#jh-busy {
  position: fixed; inset: 0;
  display: none;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#jh-busy.on { display: flex; }
#jh-busy .jh-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: jhspin 1s linear infinite;
  margin-bottom: 10px;
}
#jh-busy .jh-busy-msg {
  color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@keyframes jhspin { to { transform: rotate(360deg); } }
#jh-scheduler .invalid {
  border-color:#c43 !important;
  outline: none;
}
#jh-scheduler .jh-field-hint {
  margin-top:4px;
  font-size:12px;
  color:#c43;
}

.jh-saving {
  display:flex; align-items:center; gap:8px;
}
.jh-spinner {
  width:16px; height:16px; border:2px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.6);
  border-radius:50%; display:inline-block;
  animation: jhspin 0.8s linear infinite;
}
@keyframes jhspin { to { transform: rotate(360deg); } }

.jh-nav-account a { display:flex; align-items:center; gap:.5rem; }
.jh-nav-avatar { border-radius:50%; }
.jh-area-ok { color: #155724; font-weight: 600; }
.jh-area-err { color: #721c24; font-weight: 600; }
.jh-area-warn { color: #856404; font-weight: 600; }
.jh-estimate-meta { background:#f7f7f7; padding:12px 16px; border-radius:8px; margin:12px 0; }
.jh-meta-list { margin:0; padding-left:18px; }
.jh-meta-list li { margin:4px 0; }

@media (max-width: 768px) {
  #jh-estimator, #jh-scheduler { padding: 0 10px; }
  
  .jh-trailer-grid { display: flex; flex-direction: column; }
  .jh-trailer-grid label { margin: 4px 0; }
  
  .jh-actions { flex-direction: column; }
  .jh-btn { width: 100%; }
  
  .jh-my-estimates .jh-table { font-size: 13px; }
  .jh-my-estimates .jh-table th, 
  .jh-my-estimates .jh-table td { padding: 6px; }
}

.jh-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;line-height:1.6}
.jh-badge-ok{background:#e6f4ea;color:#1e7e34;border:1px solid #c7e9d3}
.jh-badge-warn{background:#fff4e5;color:#8a5700;border:1px solid #ffe0b2}

