/* ===========================================================
   Taxi-Hut  Anfrage-Widget  v4.0
   SVI selektori su vezani za #thw-launch / #thw-panel,
   da ih style.css sajta ne moze pregaziti.
   =========================================================== */

/* ---- tvrdi reset samo unutar widgeta ---- */
#thw-launch,#thw-launch *,#thw-panel,#thw-panel *{
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  border:0;
  outline:0;
  float:none !important;
  text-transform:none;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  -webkit-tap-highlight-color:transparent}
#thw-launch button,#thw-panel button,#thw-panel input,#thw-panel a{
  font:inherit;color:inherit;background:none;box-shadow:none;text-decoration:none;
  border-radius:0;appearance:none;-webkit-appearance:none}

/* ═══════════ LAUNCHER ═══════════ */
#thw-launch{position:fixed !important;left:24px !important;bottom:24px !important;z-index:99997}
#thw-launch #thw-fab{position:relative;display:flex !important;align-items:center;gap:13px;cursor:pointer;
  background:linear-gradient(135deg,#f3c468,#DCA54A 55%,#c48f33) !important;
  border-radius:60px !important;padding:12px 26px 12px 12px !important;text-align:left;
  box-shadow:0 12px 34px rgba(220,165,74,.42),0 3px 10px rgba(0,0,0,.55) !important;
  transition:transform .18s cubic-bezier(.34,1.5,.64,1),box-shadow .2s}
#thw-launch #thw-fab:hover{transform:translateY(-3px)}
#thw-launch #thw-fab:active{transform:scale(.97)}
#thw-launch #thw-ico{width:48px !important;height:48px !important;border-radius:50% !important;
  background:rgba(26,18,6,.15) !important;flex:0 0 48px;
  display:grid !important;place-items:center !important;place-content:center !important}
#thw-launch #thw-ico svg{width:27px !important;height:27px !important;fill:#1a1206 !important;
  display:block !important;grid-area:1/1}
#thw-launch #thw-txt{display:flex !important;flex-direction:column;gap:2px}
#thw-launch #thw-fab b{color:#140e04 !important;font-size:17px !important;font-weight:900 !important;
  line-height:1.15 !important;letter-spacing:.3px}
#thw-launch #thw-fab i{color:rgba(20,14,4,.75) !important;font-size:12.5px !important;
  font-weight:700 !important;font-style:normal !important;line-height:1.2}
#thw-launch #thw-fab::after{content:"";position:absolute;inset:-5px;border-radius:60px;
  border:2px solid rgba(220,165,74,.5);animation:thw-ring 2.6s ease-out infinite;pointer-events:none}
@keyframes thw-ring{0%{transform:scale(.97);opacity:.85}70%{transform:scale(1.06);opacity:0}100%{opacity:0}}

/* ═══════════ PANEL ═══════════ */
#thw-panel{position:fixed !important;left:24px;bottom:24px;width:420px;max-width:calc(100vw - 48px);
  height:min(680px,calc(100vh - 48px));background:#101010 !important;border:1px solid #2a2a2a !important;
  border-radius:24px !important;overflow:hidden !important;box-shadow:0 30px 80px rgba(0,0,0,.75);
  display:flex !important;flex-direction:column;z-index:99999;
  opacity:0;transform:translateY(20px) scale(.97);pointer-events:none;
  transition:opacity .22s ease,transform .22s cubic-bezier(.34,1.3,.64,1)}
#thw-panel.thw-open{opacity:1;transform:none;pointer-events:auto}

#thw-panel #thw-head{background:linear-gradient(135deg,#efbe64,#DCA54A 60%,#c99235) !important;
  padding:15px 16px !important;display:flex !important;align-items:center;gap:12px;flex:0 0 auto}
#thw-panel #thw-av{width:46px !important;height:46px !important;border-radius:50% !important;
  background:#171310 !important;flex:0 0 46px;position:relative;
  display:grid !important;place-items:center !important;place-content:center !important}
#thw-panel #thw-av svg{width:26px !important;height:26px !important;fill:#DCA54A !important;
  display:block !important;grid-area:1/1}
#thw-panel #thw-av::after{content:"";position:absolute;right:0;bottom:1px;width:12px;height:12px;
  border-radius:50%;background:#38c172;border:2.5px solid #DCA54A}
#thw-panel .thw-ttl{flex:1 1 auto;min-width:0}
#thw-panel .thw-ttl h3{font-size:18px !important;font-weight:900 !important;color:#1a1206 !important;
  line-height:1.15 !important}
#thw-panel .thw-ttl p{font-size:12.5px !important;color:rgba(26,18,6,.76) !important;
  margin-top:3px !important;font-weight:700 !important;line-height:1.2}
#thw-panel .thw-hbtn{width:40px !important;height:40px !important;border-radius:50% !important;
  background:rgba(26,18,6,.13) !important;cursor:pointer;flex:0 0 40px;
  display:grid !important;place-items:center !important;color:#1a1206 !important;
  font-size:26px !important;line-height:1 !important;transition:background .15s}
#thw-panel .thw-hbtn:hover{background:rgba(26,18,6,.27) !important}
#thw-panel .thw-hbtn svg{width:19px !important;height:19px !important;fill:#1a1206 !important;display:block}

#thw-panel #thw-prog{height:4px;background:#1d1d1d;flex:0 0 4px}
#thw-panel #thw-prog i{display:block;height:100%;width:0;background:#DCA54A;transition:width .35s ease}

/* ── telo ── */
#thw-panel #thw-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;
  padding:18px 16px !important;background:#0e0e0e !important;
  display:flex !important;flex-direction:column;gap:12px}
#thw-panel #thw-body::-webkit-scrollbar{width:6px}
#thw-panel #thw-body::-webkit-scrollbar-thumb{background:#303030;border-radius:3px}

#thw-panel .thw-line{display:flex !important;gap:9px;align-items:flex-end;
  max-width:88%;min-width:0;align-self:flex-start}
#thw-panel .thw-line.thw-r{align-self:flex-end;flex-direction:row-reverse;max-width:86%}
#thw-panel .thw-mini{width:30px !important;height:30px !important;border-radius:50% !important;
  background:#1c1c1c !important;border:1px solid #2f2f2f !important;flex:0 0 30px;
  display:grid !important;place-items:center !important;margin-bottom:2px !important}
#thw-panel .thw-mini svg{width:16px !important;height:16px !important;fill:#DCA54A !important;display:block}

#thw-panel .thw-msg{
  padding:15px 19px !important;
  border-radius:18px !important;
  font-size:16px !important;line-height:1.55 !important;
  white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:100%;
  display:block !important;animation:thw-up .25s ease}
@keyframes thw-up{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#thw-panel .thw-bot{background:#1b1b1b !important;color:#f1f1f1 !important;
  border:1px solid #2b2b2b !important;border-bottom-left-radius:6px !important}
#thw-panel .thw-me{background:linear-gradient(135deg,#efbe64,#DCA54A) !important;color:#1a1206 !important;
  font-weight:800 !important;border-bottom-right-radius:6px !important}
#thw-panel .thw-typing{display:flex !important;gap:5px;background:#1b1b1b !important;
  border:1px solid #2b2b2b !important;padding:17px 19px !important;border-radius:18px !important;
  border-bottom-left-radius:6px !important}
#thw-panel .thw-typing i{width:8px;height:8px;border-radius:50%;background:#5e5e5e;animation:thw-b 1.2s infinite}
#thw-panel .thw-typing i:nth-child(2){animation-delay:.18s}
#thw-panel .thw-typing i:nth-child(3){animation-delay:.36s}
@keyframes thw-b{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-5px)}}

#thw-panel .thw-card{background:#161616 !important;border:1px solid #2d2d2d !important;
  border-left:4px solid #DCA54A !important;border-radius:14px !important;
  padding:16px 19px !important;font-size:15px !important;color:#c8c8c8 !important;
  line-height:2 !important;animation:thw-up .3s ease}
#thw-panel .thw-card b{color:#fff !important;font-weight:800 !important}
#thw-panel .thw-ok{display:flex !important;align-items:flex-start;gap:12px;
  background:rgba(56,193,114,.1) !important;border:1px solid rgba(56,193,114,.4) !important;
  border-radius:14px !important;padding:16px 19px !important;animation:thw-up .3s ease}
#thw-panel .thw-ok svg{width:27px !important;height:27px !important;fill:#38c172 !important;flex:0 0 27px}
#thw-panel .thw-ok span{font-size:15.5px !important;color:#ddf5e9 !important;line-height:1.55 !important}
#thw-panel .thw-ok b{color:#fff !important;font-size:16px !important}

/* ── donja zona ── */
#thw-panel #thw-foot{border-top:1px solid #222 !important;background:#131313 !important;
  padding:14px !important;flex:0 0 auto;max-height:62%;overflow-y:auto}
#thw-panel #thw-foot::-webkit-scrollbar{width:6px}
#thw-panel #thw-foot::-webkit-scrollbar-thumb{background:#303030;border-radius:3px}

#thw-panel .thw-lbl{font-size:12px !important;font-weight:800 !important;color:#8c8c8c !important;
  text-transform:uppercase !important;letter-spacing:.8px;margin:2px 2px 9px !important}
#thw-panel .thw-chips{display:flex !important;flex-wrap:wrap;gap:9px}
#thw-panel .thw-chip{display:inline-flex !important;align-items:center;gap:9px;
  background:#1d1d1d !important;border:1.5px solid #3d3d3d !important;color:#ededed !important;
  border-radius:14px !important;padding:14px 18px !important;font-size:16px !important;
  font-weight:700 !important;cursor:pointer;min-height:54px;line-height:1.2 !important;
  transition:background .15s,border-color .15s,color .15s,transform .12s}
#thw-panel .thw-chip:hover{background:#DCA54A !important;border-color:#DCA54A !important;
  color:#1a1206 !important;transform:translateY(-2px)}
#thw-panel .thw-chip:disabled{opacity:.4;cursor:default;transform:none}
#thw-panel .thw-chip em{font-style:normal !important;font-size:20px !important;line-height:1 !important}
#thw-panel .thw-chip.thw-wide{width:100%;justify-content:flex-start}
#thw-panel .thw-chip.thw-sm{padding:10px 14px !important;min-height:44px;font-size:14.5px !important}
#thw-panel .thw-chip.thw-sm em{font-size:17px !important}

#thw-panel .thw-form{display:flex !important;flex-direction:column;gap:11px}
#thw-panel .thw-form input[type=text],
#thw-panel .thw-form input[type=tel]{
  width:100% !important;display:block !important;
  background:#1d1d1d !important;border:1.5px solid #3a3a3a !important;color:#fff !important;
  border-radius:15px !important;
  padding:17px 18px !important;
  font-size:17px !important;line-height:1.3 !important;min-height:58px;
  transition:border-color .15s,background .15s}
#thw-panel .thw-form input::placeholder{color:#6c6c6c !important;font-size:16px !important;opacity:1}
#thw-panel .thw-form input:focus{border-color:#DCA54A !important;background:#232323 !important}
#thw-panel .thw-cta{width:100% !important;display:block !important;
  background:linear-gradient(135deg,#efbe64,#DCA54A) !important;border-radius:15px !important;
  color:#1a1206 !important;padding:18px !important;font-size:18px !important;font-weight:900 !important;
  letter-spacing:.4px;cursor:pointer;min-height:60px;transition:filter .15s,transform .12s}
#thw-panel .thw-cta:hover{filter:brightness(1.08)}
#thw-panel .thw-cta:active{transform:scale(.985)}
#thw-panel .thw-cta:disabled{opacity:.55;cursor:default}
#thw-panel .thw-err{color:#ff8585 !important;font-size:14px !important;font-weight:600 !important;
  padding:0 4px !important}
#thw-panel .thw-hp{position:absolute !important;left:-9999px !important}
#thw-panel #thw-tel{display:flex !important;align-items:center;justify-content:center;gap:11px;
  background:linear-gradient(135deg,#efbe64,#DCA54A) !important;color:#1a1206 !important;
  border-radius:15px !important;padding:18px !important;font-size:17px !important;
  font-weight:900 !important;min-height:60px}
#thw-panel #thw-tel svg{width:20px !important;height:20px !important;fill:#1a1206 !important}
#thw-panel .thw-note{font-size:12.5px !important;color:#6c6c6c !important;text-align:center;
  margin-top:11px !important;line-height:1.55 !important}
#thw-panel .thw-back{background:none !important;color:#8c8c8c !important;font-size:14.5px !important;
  cursor:pointer;padding:8px 2px 0 !important;font-weight:700 !important;text-align:left}
#thw-panel .thw-back:hover{color:#DCA54A !important}

/* ═══════════ KALENDAR – preko celog prozora ═══════════ */
#thw-panel #thw-calov{position:absolute !important;left:0;right:0;top:0;bottom:0;z-index:7;
  background:#101010 !important;display:flex !important;flex-direction:column;
  padding:12px !important;gap:10px;animation:thw-up .2s ease}
#thw-panel #thw-calhead{display:flex !important;align-items:center;gap:10px;flex:0 0 auto;padding:2px !important}
#thw-panel #thw-calhead b{font-size:16px !important;font-weight:900 !important;color:#fff !important;flex:1}
#thw-panel #thw-calx{width:38px !important;height:38px !important;border-radius:11px !important;
  border:1.5px solid #3a3a3a !important;background:#1d1d1d !important;color:#bbb !important;
  font-size:21px !important;line-height:1 !important;cursor:pointer}
#thw-panel #thw-calx:hover{border-color:#DCA54A !important;color:#DCA54A !important}

#thw-panel .thw-cal{background:#191919 !important;border:1.5px solid #333 !important;
  border-radius:17px !important;padding:12px !important;
  flex:1 1 auto;min-height:0;display:flex !important;flex-direction:column}
#thw-panel .thw-cal-top{display:flex !important;align-items:center;justify-content:space-between;
  margin-bottom:10px !important;flex:0 0 auto}
#thw-panel .thw-cal-top b{font-size:17px !important;font-weight:800 !important;color:#fff !important}
#thw-panel .thw-nav{width:42px !important;height:40px !important;border-radius:12px !important;
  border:1.5px solid #3d3d3d !important;background:#1f1f1f !important;color:#DCA54A !important;
  font-size:22px !important;line-height:1 !important;cursor:pointer;font-weight:800 !important}
#thw-panel .thw-nav:hover:not(:disabled){background:#DCA54A !important;color:#1a1206 !important}
#thw-panel .thw-nav:disabled{opacity:.3;cursor:default}
#thw-panel .thw-dow{display:grid !important;grid-template-columns:repeat(7,1fr);gap:4px;
  margin-bottom:5px !important;flex:0 0 auto}
#thw-panel .thw-dow span{text-align:center;font-size:12px !important;font-weight:800 !important;
  color:#777 !important;padding:3px 0 !important}
#thw-panel .thw-grid{display:grid !important;grid-template-columns:repeat(7,1fr);gap:4px;
  flex:1 1 auto;min-height:0;align-content:stretch}
#thw-panel .thw-day{border-radius:11px !important;border:1px solid transparent !important;
  background:#222 !important;color:#e8e8e8 !important;font-size:15.5px !important;
  font-weight:700 !important;cursor:pointer;transition:.12s;min-height:38px;
  display:grid !important;place-items:center !important}
#thw-panel .thw-day:hover:not(:disabled):not(.thw-off){background:#2e2e2e !important;border-color:#DCA54A !important}
#thw-panel .thw-day.thw-off{background:transparent !important;cursor:default;color:transparent !important}
#thw-panel .thw-day:disabled{color:#3f3f3f !important;background:#171717 !important;cursor:default}
#thw-panel .thw-day.thw-today{border-color:#555 !important}
#thw-panel .thw-day.thw-sel{background:linear-gradient(135deg,#efbe64,#DCA54A) !important;
  color:#1a1206 !important;border-color:#DCA54A !important}

#thw-panel .thw-time{display:flex !important;align-items:center;justify-content:center;gap:14px;
  flex:0 0 auto;background:#191919 !important;border:1.5px solid #333 !important;
  border-radius:17px !important;padding:10px !important}
#thw-panel .thw-tcol{display:flex !important;flex-direction:column;align-items:center;gap:5px}
#thw-panel .thw-tbtn{width:46px !important;height:38px !important;border-radius:11px !important;
  border:1.5px solid #3d3d3d !important;background:#242424 !important;color:#DCA54A !important;
  font-size:22px !important;font-weight:800 !important;line-height:1 !important;cursor:pointer}
#thw-panel .thw-tbtn:hover{background:#DCA54A !important;color:#1a1206 !important}
#thw-panel .thw-tval{min-width:56px;text-align:center;font-size:27px !important;font-weight:900 !important;
  color:#fff !important;font-variant-numeric:tabular-nums;line-height:1.1 !important}
#thw-panel .thw-tsep{font-size:25px !important;font-weight:900 !important;color:#DCA54A !important}
#thw-panel .thw-tcap{font-size:10.5px !important;font-weight:800 !important;color:#777 !important;
  text-transform:uppercase !important;letter-spacing:.6px}
#thw-panel #thw-calov .thw-cta{flex:0 0 auto;padding:16px !important;min-height:56px}

/* ═══════════ MOBILNO ═══════════ */
@media (max-width:560px){
  #thw-launch{left:14px !important;bottom:14px !important}
  #thw-launch #thw-fab{padding:9px 18px 9px 9px !important;gap:10px}
  #thw-launch #thw-ico{width:40px !important;height:40px !important;flex:0 0 40px}
  #thw-launch #thw-ico svg{width:23px !important;height:23px !important}
  #thw-launch #thw-fab b{font-size:14.5px !important}
  #thw-launch #thw-fab i{font-size:11px !important}
  #thw-panel{left:0;right:0;bottom:0;top:0;width:100%;max-width:100%;height:100%;
    border-radius:0 !important;border:0 !important}
  #thw-panel #thw-body{padding:16px 14px !important}
  #thw-panel #thw-foot{max-height:72%}
  #thw-panel #thw-calov{padding:10px !important;gap:8px}
}
@media (max-width:380px){
  #thw-launch #thw-fab b{font-size:13.5px !important}
  #thw-launch #thw-fab i{font-size:10.5px !important}
  #thw-launch #thw-ico{width:36px !important;height:36px !important;flex:0 0 36px}
}
