.cfh-widget{
  --cfh-primary:#2563eb;
  --cfh-secondary:#0f172a;
  --cfh-accent:#16a34a;
  --cfh-bg:#f8fafc;
  --cfh-surface:#ffffff;
  --cfh-text:#0f172a;
  --cfh-muted:#64748b;
  --cfh-border:#e2e8f0;
  max-width:1120px;
  margin:24px auto;
  padding:22px;
  box-sizing:border-box;
  font-family:inherit;
  color:var(--cfh-text);
  background:var(--cfh-bg);
  border:1px solid var(--cfh-border);
  border-radius:24px;
  box-shadow:0 18px 50px rgba(15,23,42,.08);
}
.cfh-location-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.cfh-location-box{position:relative;padding:22px;border:1px solid var(--cfh-border);border-radius:18px;background:var(--cfh-surface);box-shadow:0 8px 24px rgba(15,23,42,.045);overflow:hidden}
.cfh-location-box::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--cfh-primary),var(--cfh-accent))}
.cfh-section-title{font-size:18px;font-weight:800;letter-spacing:-.01em;margin:0 0 16px}
.cfh-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cfh-field label{display:block;font-size:12px;font-weight:800;color:var(--cfh-secondary);margin-bottom:7px}
.cfh-input-row{display:flex;gap:9px}
.cfh-optional-address{margin-top:13px}
.cfh-input{box-sizing:border-box;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--cfh-border);border-radius:12px;background:var(--cfh-surface);color:var(--cfh-text);font-size:14px;outline:none;transition:border-color .18s,box-shadow .18s,transform .18s}
.cfh-input:hover{border-color:#cbd5e1}
.cfh-input:focus{border-color:var(--cfh-primary);outline:3px solid var(--cfh-primary);outline-offset:1px}
.cfh-widget select.cfh-input{background:var(--cfh-surface)!important;color:var(--cfh-text)!important;color-scheme:light}
.cfh-widget select.cfh-input option{background:var(--cfh-surface);color:var(--cfh-text)}
.cfh-widget select.cfh-input:disabled{opacity:.6;cursor:not-allowed}
.cfh-icon-button{width:48px;min-width:48px;border:1px solid var(--cfh-border);background:var(--cfh-surface);border-radius:12px;font-size:22px;color:var(--cfh-secondary);cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.cfh-icon-button:hover{background:var(--cfh-bg);border-color:var(--cfh-primary);transform:translateY(-1px)}
.cfh-field-actions{margin-top:9px}
.cfh-link-button{background:none;border:0;padding:0;color:var(--cfh-primary);font-size:12px;font-weight:700;cursor:pointer}
.cfh-link-button:hover{text-decoration:underline}
.cfh-controls{display:grid;grid-template-columns:minmax(260px,340px) 220px 1fr;gap:14px;align-items:end;margin-top:18px}
.cfh-vehicle-field{min-width:0}
.cfh-calculate{min-height:48px;border:0;border-radius:12px;background:var(--cfh-secondary);color:#fff;font-weight:800;font-size:15px;cursor:pointer;padding:0 20px;box-shadow:0 8px 18px rgba(15,23,42,.14);transition:transform .18s,box-shadow .18s,opacity .18s}
.cfh-calculate:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.18)}
.cfh-message{min-height:20px;padding-bottom:11px;font-size:13px;color:var(--cfh-muted)}
.cfh-message.error{color:#b42318}.cfh-message.success{color:#067647}.cfh-message.info{color:#344054}
.cfh-result{margin-top:18px;border:1px solid var(--cfh-border);border-radius:18px;padding:20px;background:var(--cfh-surface);box-shadow:0 12px 30px rgba(15,23,42,.05)}
.cfh-result-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--cfh-border)}
.cfh-total-box{text-align:left;min-width:0}
.cfh-total-label{font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--cfh-muted);margin-bottom:5px}
.cfh-total-price{display:block;font-size:38px;line-height:1.05;letter-spacing:-.03em;color:var(--cfh-secondary)}
.cfh-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:360px}
.cfh-result[hidden]{display:none!important}
.cfh-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:16px}
.cfh-breakdown>div{padding:0 16px;border-right:1px solid var(--cfh-border)}
.cfh-breakdown>div:first-child{padding-left:0}.cfh-breakdown>div:last-child{border-right:0}
.cfh-breakdown>div span{display:block;font-size:11px;color:var(--cfh-muted);margin-bottom:6px}.cfh-breakdown>div strong{font-size:16px;color:var(--cfh-text)}
.cfh-disclaimer{margin:16px 0 0;font-size:11px;line-height:1.55;color:var(--cfh-muted)}
.cfh-request-button,.cfh-call-button{min-height:50px;border-radius:12px;font-size:14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s;white-space:nowrap}
.cfh-request-button{padding:0 18px;color:#fff;border:1px solid var(--cfh-accent);background:var(--cfh-accent);box-shadow:0 9px 22px rgba(16,24,40,.12)}
.cfh-call-button{padding:0 18px;color:var(--cfh-secondary);border:1px solid var(--cfh-border);background:var(--cfh-surface);box-shadow:0 6px 16px rgba(15,23,42,.05)}
.cfh-request-button:hover,.cfh-call-button:hover{transform:translateY(-1px)}
.cfh-call-button:hover{background:var(--cfh-bg);border-color:#cbd5e1;box-shadow:0 9px 20px rgba(15,23,42,.08)}
.cfh-button-icon{display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center;flex:0 0 19px}
.cfh-button-icon svg{width:19px;height:19px;fill:currentColor}
.cfh-map-section{margin-top:20px}.cfh-map{height:430px;border-radius:18px;overflow:hidden;border:1px solid var(--cfh-border);background:#eef2f5}.cfh-widget .leaflet-container{background:#e8edf2;font-family:inherit}
.cfh-widget .leaflet-control-attribution{font-size:9px}
.cfh-route-info{display:grid;grid-template-columns:190px 1fr;gap:18px;margin-top:12px;padding:14px 16px;border:1px solid var(--cfh-border);border-radius:14px;background:var(--cfh-bg)}
.cfh-route-info>div:first-child span{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--cfh-muted);margin-bottom:4px}.cfh-route-info>div:first-child strong{font-size:18px}.cfh-route-tolls{min-width:0}
.cfh-toll-title{font-size:12px;font-weight:800;margin-bottom:3px;color:var(--cfh-text)}.cfh-toll-item{display:flex;justify-content:space-between;gap:15px;padding:5px 0;font-size:12px}.cfh-toll-item small{color:var(--cfh-muted)}.cfh-route-no-toll{font-size:12px;color:var(--cfh-muted)}
.cfh-attribution{padding:8px 2px 0;text-align:right;font-size:10px;color:var(--cfh-muted)}

.cfh-request-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.cfh-request-modal[hidden]{display:none}.cfh-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.68);backdrop-filter:blur(4px)}
.cfh-modal-dialog{position:relative;z-index:1;width:min(700px,100%);max-height:min(92vh,840px);overflow:auto;background:var(--cfh-surface);border-radius:22px;box-shadow:0 30px 90px rgba(15,23,42,.28);padding:24px;color:var(--cfh-text);border:1px solid var(--cfh-border)}
.cfh-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.cfh-modal-eyebrow{display:block;font-size:10px;letter-spacing:.16em;font-weight:800;color:var(--cfh-primary);margin-bottom:6px}.cfh-modal-head h3{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.02em}.cfh-modal-close{width:40px;height:40px;border:1px solid var(--cfh-border);background:var(--cfh-surface);border-radius:12px;font-size:24px;line-height:1;cursor:pointer;color:var(--cfh-secondary)}
.cfh-modal-close:hover{background:var(--cfh-bg)}.cfh-request-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.cfh-request-summary>div{padding:15px 16px;border:1px solid var(--cfh-border);background:var(--cfh-bg);border-radius:14px}.cfh-request-summary span,.cfh-request-route span{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:var(--cfh-muted);margin-bottom:5px}.cfh-request-summary strong{font-size:21px;color:var(--cfh-secondary)}
.cfh-request-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.cfh-request-grid label em{color:#dc2626;font-style:normal}.cfh-request-route{display:grid;grid-template-columns:1fr 1fr 160px;gap:10px;margin-top:4px}.cfh-request-route>div{padding:12px 13px;background:var(--cfh-bg);border:1px solid var(--cfh-border);border-radius:12px;min-width:0}.cfh-request-route strong{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.cfh-request-help{margin:14px 0 0;color:var(--cfh-muted);font-size:12px;line-height:1.55}.cfh-form-error{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fef3f2;color:#b42318;font-size:12px}.cfh-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;position:sticky;bottom:0;padding-top:12px;background:linear-gradient(to bottom,transparent,var(--cfh-surface) 30%)}
.cfh-secondary-button{min-height:46px;padding:0 17px;border:1px solid var(--cfh-border);background:var(--cfh-surface);color:var(--cfh-text);border-radius:11px;font-weight:700;cursor:pointer}.cfh-whatsapp-button{min-height:46px;padding:0 20px;border:0;background:var(--cfh-accent);color:#fff;border-radius:11px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(16,24,40,.12)}
.cfh-widget .cfh-request-modal .cfh-input{background:var(--cfh-surface)!important;color:var(--cfh-text)!important}.cfh-widget .cfh-request-modal .cfh-input::placeholder{color:#94a3b8}.cfh-modal-open{overflow:hidden}
.cfh-powered-by{display:flex;justify-content:center;align-items:center;margin-top:18px;padding-top:14px;border-top:1px solid var(--cfh-border)}.cfh-powered-by a{display:inline-flex;align-items:center;gap:8px;color:var(--cfh-muted);text-decoration:none;font-size:11px;line-height:1.2;font-weight:600}.cfh-powered-by a:hover{color:var(--cfh-text)}.cfh-powered-by img{width:20px;height:20px;display:block;object-fit:contain;border-radius:5px;box-shadow:0 2px 8px rgba(16,24,40,.08)}.cfh-powered-by strong{font-weight:800;color:var(--cfh-text)}

@media (max-width:900px){
  .cfh-widget{padding:16px;border-radius:20px}
  .cfh-location-grid{grid-template-columns:1fr}
  .cfh-controls{grid-template-columns:1fr 1fr}.cfh-controls .cfh-message{grid-column:1/-1;padding-bottom:0}
  .cfh-result-main{grid-template-columns:1fr;gap:14px}.cfh-total-box{text-align:center}.cfh-total-price{font-size:34px}.cfh-result-actions{min-width:0;width:100%;grid-template-columns:1fr 1fr}
  .cfh-breakdown{grid-template-columns:1fr;gap:12px}.cfh-breakdown>div,.cfh-breakdown>div:first-child{padding:0;border-right:0}.cfh-route-info{grid-template-columns:1fr}.cfh-map{height:360px}
}
@media (max-width:620px){
  .cfh-widget{margin:12px auto;padding:12px;border-radius:18px}.cfh-location-box{padding:18px}.cfh-two-col{gap:9px}.cfh-section-title{font-size:17px}.cfh-input{min-height:46px;font-size:14px}.cfh-controls{grid-template-columns:1fr}.cfh-controls .cfh-message{grid-column:auto}.cfh-calculate{width:100%}
  .cfh-result{padding:16px}.cfh-result-actions{gap:8px}.cfh-request-button,.cfh-call-button{min-height:48px;padding:0 10px;font-size:13px;gap:7px}.cfh-button-icon,.cfh-button-icon svg{width:17px;height:17px;flex-basis:17px}.cfh-total-price{font-size:31px}
  .cfh-modal-dialog{padding:17px;border-radius:18px;max-height:94vh}.cfh-modal-head h3{font-size:21px}.cfh-request-grid,.cfh-request-summary,.cfh-request-route{grid-template-columns:1fr}.cfh-modal-actions{flex-direction:column-reverse}.cfh-secondary-button,.cfh-whatsapp-button{width:100%}
}
@media (max-width:430px){
  .cfh-result-actions{grid-template-columns:1fr}.cfh-request-button,.cfh-call-button{width:100%;min-height:50px;font-size:14px}.cfh-map{height:320px}.cfh-powered-by{margin-top:14px;padding-top:12px}.cfh-powered-by a{font-size:10px}
}
