
:root{
  --black:#0b0b0b;
  --ink:#141414;
  --muted:#6e6e6e;
  --line:#e8e8e8;
  --soft:#f7f7f5;
  --white:#fff;
  --green:#1fad59;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
body{overflow:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.topbar{
  height:48px;background:#0b0b0b;color:#fff;display:flex;align-items:center;justify-content:space-between;
  padding:0 18px;position:relative;z-index:1000;border-bottom:1px solid #1d1d1d
}
.brand{display:flex;gap:5px;align-items:center;font-size:17px;letter-spacing:.02em}
.brand strong{font-weight:900}.brand span{font-weight:400;color:#dedede}
.track-button{background:#fff;color:#111;border:0;border-radius:6px;padding:8px 12px;font-size:12px;font-weight:700;cursor:pointer}
.tracking-shell{min-height:calc(100vh - 48px);display:grid;grid-template-columns:minmax(430px,34vw) minmax(0,1fr);align-items:start}
.left-panel{background:#fff;border-right:1px solid #ddd;min-width:0;overflow:visible}
.panel-scroll{height:auto;overflow:visible}
.panel-scroll::-webkit-scrollbar{width:7px}.panel-scroll::-webkit-scrollbar-thumb{background:#aaa;border-radius:8px}
.tracking-head{padding:24px 20px 18px;border-bottom:1px solid var(--line)}
.section-label{margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:10px;color:#676767}
.tracking-id-row{display:flex;align-items:center;gap:8px}.tracking-id-row h1{margin:0;font-size:21px;letter-spacing:-.02em;word-break:break-all}
.copy-button{width:32px;height:32px;border:0;background:#f2f2f2;border-radius:6px;cursor:pointer}
.active-row{margin-top:10px;display:flex;align-items:center;gap:10px;color:#777;font-size:11px}
.active-pill{background:#e8f7ec;color:#178140;border-radius:999px;padding:4px 9px;font-weight:800}
.product-box{margin:14px 20px;padding:14px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;gap:12px}
.product-icon{width:42px;height:42px;border-radius:8px;background:#f2f2f2;display:grid;place-items:center;font-size:22px}
.product-box strong{display:block;font-size:14px;margin-bottom:4px}.product-box span{display:block;font-size:11px;color:#777}
.current-box{margin:0 20px 16px;padding:16px;background:#f7f7f5;border:1px solid #e8e8e6;border-radius:9px}
.current-box h2{margin:0;font-size:19px}.current-box p{margin:6px 0 0;font-size:12px;line-height:1.5;color:#555}
.timeline{padding:4px 20px 4px}
.event{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;position:relative;padding:0 0 21px}
.event:not(:last-child)::before{content:"";position:absolute;left:7px;top:16px;bottom:-2px;width:1px;border-left:1px dashed #c6c6c6}
.event-dot{width:15px;height:15px;border-radius:50%;border:2px solid #111;background:#fff;position:relative;z-index:2;margin-top:2px}
.event:first-child .event-dot{background:#111;box-shadow:0 0 0 4px #efefef}
.event-body strong{display:block;font-size:13px;margin-bottom:3px}.event-body span{display:block;font-size:11px;color:#666;line-height:1.45}
.event time{display:block;font-size:10px;color:#858585;margin-top:5px}
.parcel-card{margin:10px 20px 22px;padding:16px;border:1px solid var(--line);border-radius:9px}
.parcel-card h3{margin:0 0 12px;font-size:13px}.parcel-card dl{margin:0}
.parcel-card dl div{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;padding:8px 0;border-top:1px solid #efefef}
.parcel-card dt{font-size:11px;color:#777}.parcel-card dd{margin:0;text-align:right;font-size:11px;font-weight:650}
.faq-section{padding:24px 20px;background:#111;color:#fff}
.faq-section h2{margin:0 0 14px;font-size:18px}
.faq-card{background:#fff;color:#111;border-radius:6px;padding:8px 14px}
.faq-card details{border-bottom:1px solid #ececec}.faq-card details:last-child{border-bottom:0}
.faq-card summary{list-style:none;cursor:pointer;padding:14px 4px;font-size:12px;font-weight:800;display:flex;justify-content:space-between;gap:12px}
.faq-card summary::-webkit-details-marker{display:none}.faq-card summary::after{content:"+"}.faq-card details[open] summary::after{content:"−"}
.faq-card p{margin:0;padding:0 4px 14px;font-size:11px;line-height:1.55;color:#555}
.footer{padding:24px 20px 28px;background:#fff}.footer h3{margin:0 0 10px;font-size:16px}.footer p{font-size:11px;line-height:1.6;color:#666;max-width:370px}
.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:18px 0}.footer-links a{font-size:11px;color:#555}.footer small{color:#888;font-size:9px}
.map-panel{position:sticky;top:48px;height:calc(100vh - 48px);background:#e8e8e8;min-width:0;align-self:start}
#map{position:absolute;inset:0}
.map-last-seen{position:absolute;z-index:500;top:16px;left:16px;background:#fff;border:1px solid #ddd;border-radius:7px;padding:10px 12px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.map-last-seen span{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:8px;color:#777;font-weight:800;margin-bottom:3px}.map-last-seen strong{font-size:11px}
.map-card{position:absolute;z-index:500;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff;border:1px solid #ddd;border-radius:8px;padding:14px 16px;box-shadow:0 14px 38px rgba(0,0,0,.15);min-width:205px;pointer-events:none}
.map-card strong,.map-card span,.map-card small{display:block}.map-card strong{font-size:13px;margin-bottom:3px}.map-card span{font-size:11px}.map-card small{font-size:9px;color:#777;margin-top:6px}
.current-pin{background:#111;border:4px solid #fff;border-radius:50%;width:28px;height:28px;box-shadow:0 3px 12px rgba(0,0,0,.35)}
.history-pin{background:#fff;border:3px solid #111;border-radius:50%;width:13px;height:13px}
.modal{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:20px}.modal[hidden]{display:none}
.modal-panel{background:#fff;width:min(440px,100%);padding:26px;border-radius:10px;position:relative}.modal-panel h2{margin:0 0 16px}
.modal-panel form{display:flex;gap:9px}.modal-panel input{flex:1;border:1px solid #ccc;border-radius:6px;padding:11px}
.modal-panel form button{background:#111;color:#fff;border:0;border-radius:6px;padding:11px 14px;font-weight:750;cursor:pointer}
.modal-close{position:absolute;top:10px;right:14px;border:0;background:none;font-size:26px;cursor:pointer}
@media(max-width:900px){
  body{overflow:auto}.tracking-shell{height:auto;display:flex;flex-direction:column}.left-panel{order:1;border-right:0}.panel-scroll{height:auto;overflow:visible}
  .map-panel{order:0;height:52vh;min-height:390px}.topbar{position:sticky;top:0}
}
@media(max-width:520px){
  .tracking-shell{display:flex}.map-panel{height:46vh;min-height:330px}.tracking-head{padding:20px 16px}.product-box,.current-box,.parcel-card{margin-left:16px;margin-right:16px}
  .timeline{padding-left:16px;padding-right:16px}.faq-section,.footer{padding-left:16px;padding-right:16px}.tracking-id-row h1{font-size:18px}
}


/* Default tracking landing page */
.landing-page{
  min-height:calc(100vh - 48px);
  display:grid;
  place-items:center;
  padding:32px 20px;
  background:#fff;
}
.landing-page[hidden]{display:none}
.landing-inner{
  width:min(560px,100%);
  text-align:center;
}
.landing-brand{
  display:flex;
  justify-content:center;
  gap:6px;
  align-items:center;
  font-size:25px;
  letter-spacing:.025em;
  margin-bottom:42px;
}
.landing-brand strong{font-weight:900}
.landing-brand span{font-weight:400;color:#555}
.landing-kicker{
  margin:0 0 10px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:10px;
  font-weight:800;
  color:#777;
}
.landing-inner h1{
  margin:0;
  font-size:42px;
  letter-spacing:-.04em;
}
.landing-copy{
  max-width:470px;
  margin:16px auto 26px;
  color:#686868;
  font-size:14px;
  line-height:1.65;
}
.landing-form{
  display:flex;
  gap:9px;
  padding:7px;
  border:1px solid #d5d5d5;
  border-radius:9px;
  background:#fff;
  box-shadow:0 12px 34px rgba(0,0,0,.06);
}
.landing-form input{
  flex:1;
  min-width:0;
  border:0;
  outline:none;
  padding:13px 12px;
  font-size:14px;
}
.landing-form button{
  border:0;
  border-radius:6px;
  background:#111;
  color:#fff;
  padding:12px 18px;
  font-weight:800;
  cursor:pointer;
}
.landing-help{
  margin-top:13px;
  color:#8a8a8a;
  font-size:10px;
}

/* Search loader */
.tracking-loader{
  position:fixed;
  inset:0;
  z-index:3000;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(5px);
}
.tracking-loader[hidden]{display:none}
.loader-card{
  width:min(320px,calc(100% - 36px));
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding:28px 24px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.12);
}
.loader-card strong,.loader-card span{display:block}
.loader-card strong{font-size:15px;margin-top:14px}
.loader-card span{font-size:11px;color:#777;margin-top:6px}
.loader-spinner{
  width:34px;
  height:34px;
  margin:auto;
  border-radius:50%;
  border:3px solid #e5e5e5;
  border-top-color:#111;
  animation:kronoo-spin .8s linear infinite;
}
@keyframes kronoo-spin{to{transform:rotate(360deg)}}

@media(max-width:520px){
  .landing-inner h1{font-size:34px}
  .landing-form{flex-direction:column;padding:9px}
  .landing-form button{width:100%}
}

/* V3 desktop scrolling + marker fixes */
.leaflet-container{background:#eef1ea}
.current-location-tooltip{
  background:#111!important;
  color:#fff!important;
  border:0!important;
  border-radius:5px!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
  font-size:11px!important;
}
.current-location-tooltip:before{border-top-color:#111!important}
.product-copy{min-width:0}
.product-copy strong{white-space:normal;overflow-wrap:anywhere}
#customerLine{font-size:11px;color:#777}

/* Keep the map fixed on desktop while the entire left side / page can scroll. */
@media(min-width:901px){
  .tracking-shell{overflow:visible}
  .left-panel{min-height:calc(100vh - 48px)}
  .map-panel{position:sticky;top:48px;height:calc(100vh - 48px)}
  .panel-scroll{overflow:visible;height:auto}
}

/* On smaller screens the map becomes part of normal document flow. */
@media(max-width:900px){
  .map-panel{position:relative;top:auto;height:52vh;min-height:390px}
}


/* V4 map marker: Versend-style blue ring with white centre */
.kronoo-map-pin{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#fff;
  border:7px solid #2563eb;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.kronoo-last-seen-tooltip{
  background:#fff!important;
  color:#222!important;
  border:0!important;
  border-radius:10px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.18)!important;
  padding:11px 16px!important;
  font-size:12px!important;
  font-weight:600!important;
}
.kronoo-last-seen-tooltip:before{
  border-top-color:#fff!important;
}


/* V5 map interaction */
.map-card{display:none!important}

.map-last-seen{
  padding:10px 13px!important;
}
.map-last-seen strong{
  font-size:11px!important;
}

/* Black outer ring with white centre */
.kronoo-map-pin{
  width:30px!important;
  height:30px!important;
  border-radius:50%!important;
  background:#fff!important;
  border:7px solid #111!important;
  box-shadow:0 4px 12px rgba(0,0,0,.20)!important;
  cursor:pointer;
}

/* Tooltip used for the marker interaction */
.kronoo-marker-tooltip{
  background:#fff!important;
  color:#222!important;
  border:0!important;
  border-radius:9px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.18)!important;
  padding:10px 14px!important;
  font-size:12px!important;
  font-weight:700!important;
}
.kronoo-marker-tooltip:before{
  border-top-color:#fff!important;
}


/* Live API error state — never show demo shipment data */
.tracking-error-page{
  min-height:calc(100vh - 48px);
  display:grid;
  place-items:center;
  padding:32px 20px;
  background:#fff;
}
.tracking-error-page[hidden]{display:none}
.tracking-error-card{
  width:min(520px,100%);
  text-align:center;
  padding:42px 30px;
  border:1px solid #e6e6e6;
  border-radius:10px;
  background:#fff;
  box-shadow:0 16px 44px rgba(0,0,0,.06);
}
.tracking-error-card h1{
  margin:0;
  font-size:32px;
  letter-spacing:-.035em;
}
.tracking-error-card p:not(.section-label){
  margin:14px auto 24px;
  max-width:420px;
  color:#6d6d6d;
  font-size:13px;
  line-height:1.65;
}
.error-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin:0 auto 20px;
  border:2px solid #111;
  border-radius:50%;
  font-weight:900;
  font-size:20px;
}
.tracking-error-card button{
  border:0;
  border-radius:6px;
  background:#111;
  color:#fff;
  padding:12px 17px;
  cursor:pointer;
  font-weight:800;
}


/* Mobile Leaflet reliability fix */
@media(max-width:900px){
  .tracking-shell{
    display:flex;
    flex-direction:column;
    width:100%;
    min-height:0;
  }
  .map-panel{
    order:0;
    position:relative;
    top:auto;
    width:100%;
    height:420px;
    min-height:420px;
    flex:0 0 420px;
    overflow:hidden;
    background:#eef1ea;
  }
  #map{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    min-height:420px;
    display:block;
    background:#eef1ea;
  }
  .left-panel{order:1;width:100%}
}

@media(max-width:520px){
  .map-panel{
    height:360px;
    min-height:360px;
    flex-basis:360px;
  }
  #map{
    min-height:360px;
  }
  .map-last-seen{
    top:12px;
    left:12px;
    max-width:calc(100% - 70px);
  }
  .leaflet-control-zoom{
    margin-top:12px!important;
    margin-left:12px!important;
  }
}
