/* HayOrder v1.1.39 – definitive order-detail footer + timeline override */

/* The v1.1.39 selectors deliberately outrank older order-detail/mobile rules. */
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-history-section{
  margin-top:16px!important;
  padding:20px!important;
  border-radius:18px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
  flex-wrap:wrap!important;
  margin:0 0 16px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading span{
  display:block!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:.15em!important;
  text-transform:uppercase!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading h3{
  margin:6px 0 0!important;
  font-size:24px!important;
  line-height:1.1!important;
  font-weight:820!important;
  letter-spacing:-.025em!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading small{
  font-size:12px!important;
  line-height:1.45!important;
  color:var(--detail-muted,#98a7b5)!important;
}

body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  scrollbar-width:auto!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
  position:relative!important;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:start!important;
  align-content:start!important;
  gap:10px!important;
  width:auto!important;
  min-width:0!important;
  min-height:108px!important;
  margin:0!important;
  padding:15px!important;
  border:1px solid rgba(116,140,166,.18)!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,rgba(31,42,54,.68),rgba(20,28,38,.72))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 24px rgba(0,0,0,.08)!important;
  opacity:1!important;
  overflow:hidden!important;
  flex:none!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event::before,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event::after{
  display:none!important;
  content:none!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-dot{
  position:static!important;
  display:block!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  flex:0 0 14px!important;
  margin:2px 0 0!important;
  border:2px solid rgba(126,151,176,.36)!important;
  border-radius:50%!important;
  background:#17212b!important;
  box-shadow:none!important;
  transform:none!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event>div{
  display:block!important;
  min-width:0!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
  display:block!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.3!important;
  font-weight:780!important;
  letter-spacing:-.01em!important;
  color:#eef3f7!important;
  overflow-wrap:anywhere!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
  display:block!important;
  margin:6px 0 0!important;
  font-size:11px!important;
  line-height:1.45!important;
  font-weight:500!important;
  color:#96a6b4!important;
  overflow-wrap:anywhere!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event.is-done{
  border-color:rgba(54,213,142,.22)!important;
  background:linear-gradient(180deg,rgba(29,83,62,.27),rgba(19,39,34,.45))!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event.is-done .ho-timeline-dot{
  border-color:#36d58e!important;
  background:#36d58e!important;
  box-shadow:0 0 0 4px rgba(54,213,142,.10)!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event.is-cancelled{
  border-color:rgba(237,111,122,.25)!important;
  background:rgba(91,39,48,.24)!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event.is-cancelled .ho-timeline-dot{
  border-color:#ed6f7a!important;
  background:#ed6f7a!important;
  box-shadow:0 0 0 4px rgba(237,111,122,.10)!important;
}

/* Desktop: all available actions in one row. */
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-modal-footer{
  position:sticky!important;
  bottom:0!important;
  z-index:8!important;
  display:block!important;
  min-height:0!important;
  margin:0!important;
  padding:14px 18px max(14px,env(safe-area-inset-bottom))!important;
  border-top:1px solid var(--detail-line,rgba(111,137,161,.22))!important;
  background:rgba(13,22,32,.99)!important;
  box-shadow:0 -12px 30px rgba(0,0,0,.20)!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-action-caption{
  display:none!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons{
  display:grid!important;
  grid-template-columns:minmax(250px,1.4fr) minmax(210px,1fr) minmax(210px,1fr)!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>form,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho54-print{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons button,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  margin:0!important;
  padding:10px 16px!important;
  border-radius:14px!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:820!important;
  letter-spacing:-.01em!important;
  white-space:normal!important;
  text-align:center!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
  background:#f4f6f8!important;
  border-color:#f4f6f8!important;
  color:#17212b!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print svg{
  color:#17212b!important;
}

@media(max-width:1000px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* End devices: primary action full width, cancel + print below. */
@media(max-width:700px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-history-section{
    margin-top:12px!important;
    padding:15px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading{
    align-items:flex-start!important;
    margin-bottom:13px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading h3{
    font-size:22px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading small{
    font-size:11px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
    min-height:96px!important;
    padding:12px!important;
    border-radius:13px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
    font-size:13px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
    font-size:10.5px!important;
  }

  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-modal-footer{
    padding:12px 12px max(12px,env(safe-area-inset-bottom))!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-primary-form{
    grid-column:1/-1!important;
    grid-row:1!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-cancel-form{
    grid-column:1!important;
    grid-row:2!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-print-button{
    grid-column:2!important;
    grid-row:2!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons button,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
    min-height:56px!important;
    padding:10px 9px!important;
    font-size:14px!important;
  }
}

@media(max-width:430px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
    min-height:88px!important;
  }
}


/* HayOrder v1.1.39 – refined footer alignment + cleaner responsive timeline */
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-history-section{
  padding:18px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading{
  margin-bottom:15px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
  gap:12px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
  min-height:112px!important;
  padding:16px 16px 14px!important;
  border-radius:16px!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
  font-size:13.5px!important;
  line-height:1.28!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
  margin-top:7px!important;
  font-size:11px!important;
  line-height:1.5!important;
}

/* Desktop: compact action row aligned to the right. */
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-modal-footer{
  padding:14px 18px max(14px,env(safe-area-inset-bottom))!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
  gap:10px!important;
  width:100%!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>form,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-print-button{
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-primary-form{order:1!important}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-cancel-form{order:2!important}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-print-button{order:3!important}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons button,
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
  width:auto!important;
  min-width:220px!important;
  min-height:52px!important;
  padding:10px 22px!important;
  border-radius:14px!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-primary-form button{
  min-width:260px!important;
}

@media(max-width:1180px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons button,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
    min-width:200px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-primary-form button{
    min-width:230px!important;
  }
}
@media(max-width:1000px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-history-section{
    padding:15px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading{
    align-items:flex-start!important;
    margin-bottom:12px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-section-heading h3{
    font-size:22px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event{
    min-height:98px!important;
    padding:12px!important;
    grid-template-columns:16px minmax(0,1fr)!important;
    gap:9px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-dot{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event strong{
    font-size:13px!important;
    line-height:1.26!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho-timeline-event small{
    margin-top:5px!important;
    font-size:10.5px!important;
    line-height:1.45!important;
  }

  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-modal-footer{
    padding:12px 12px max(12px,env(safe-area-inset-bottom))!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;
    gap:8px!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-primary-form{
    grid-column:1/-1!important;
    order:1!important;
    width:100%!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-cancel-form{
    grid-column:1!important;
    order:2!important;
    width:100%!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons>.ho68-print-button{
    grid-column:2!important;
    order:3!important;
    width:100%!important;
  }
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons button,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho68-footer-buttons .ho54-print{
    width:100%!important;
    min-width:0!important;
    min-height:56px!important;
    padding:10px 12px!important;
    white-space:normal!important;
    text-align:center!important;
  }
}
@media(max-width:430px){
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho54-timeline.has-cancellation,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid,
  body #orders-ajax-root.ho-orders-139 .ho124-detail .ho55-timeline-frame .ho136-timeline-grid.has-cancellation{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
