/* =========================================
   1. HIDE/SHOW LOGIC
   ========================================= */
.ik-flow-h,
.lz-timeline {
    display: none !important;
}
.lz-timeline.lz-generated {
    display: block !important;
}


/* =========================================
   2. MAIN TIMELINE WIDGET
   ========================================= */
.lz-timeline {
  padding: 14px 1px 0; 
  background: #f8f8f8;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.lz-steps {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; position: relative; margin-bottom: 14px;
}
.lz-steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 22px;
  height: 2px; background: #e4e4e4; z-index: 0;
}
.lz-step {
  flex: 1 1 0; text-align: center; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.lz-ico {
  width: 44px; height: 44px; border-radius: 50%; background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; flex-shrink: 0;
}
.lz-date { display: block; font-weight: 700; color: #111; font-size: 15px; line-height: 1.2; }
.lz-label { display: block; color: #9a9a9a; font-size: 13px; line-height: 1.2; margin-top: 2px; }

/* Trigger Bar */
.lz-trigger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-left: -16px; margin-right: -16px; padding: 12px 0;
  background: #fffbf2; border-top: 1px solid #f2e8c9; color: #b38b09;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.lz-trigger:hover { background: #f9f2de; color: #947200; }
.lz-trigger .lz-chevron { font-size: 10px; opacity: 0.8; margin-top: 1px; }


/* =========================================
   3. BOTTOM SHEET MODAL (Fixed)
   ========================================= */
.lz-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999999;
  
  /* Flexbox Centers the sheet */
  display: flex;
  align-items: flex-end; /* Mobile default: Bottom aligned */
  justify-content: center; /* Horizontally centered */
  
  /* Start Hidden */
  opacity: 0; 
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lz-overlay.open { 
  opacity: 1; 
  pointer-events: auto; 
}

.lz-sheet {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  
  /* Start Position: Pushed down */
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When overlay is open, bring sheet up */
.lz-overlay.open .lz-sheet {
  transform: translateY(0);
}

.lz-sheet-header {
  padding: 15px; text-align: center; position: relative; border-bottom: 1px solid #eee;
}
.lz-sheet-handle {
  width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 10px;
}
.lz-sheet-title { font-weight: 700; font-size: 16px; margin: 0; color: #333; }
.lz-sheet-close {
  position: absolute; right: 15px; top: 15px; font-size: 24px; line-height: 1;
  cursor: pointer; padding: 5px; color: #999;
}
.lz-sheet-content { overflow-y: auto; padding: 20px 20px 40px; }


/* =========================================
   4. VERTICAL LADDER
   ========================================= */
.ipl-step { position: relative; padding-bottom: 24px; display: flex; gap: 15px; }
.ipl-step:last-child { padding-bottom: 0; }
.ipl-step::before {
  content: ""; position: absolute; left: 7px; top: 20px; bottom: -4px;
  width: 2px; background: #e0e0e0;
}
.ipl-step:last-child::before { display: none; }
.ipl-marker {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; z-index: 1;
  background: #fff; border: 2px solid #e0e0e0;
}
.ipl-step.active .ipl-marker { border-color: #111; background: #111; box-shadow: 0 0 0 3px rgba(0,0,0,0.1); }
.ipl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lz-sheet .ipl-label { font-weight: 700; font-size: 15px; color: #333; }
.lz-sheet .ipl-time { font-size: 13px; color: #111; font-weight: 600; white-space: nowrap; }
.lz-sheet .ipl-sub { font-size: 13px; color: #888; margin-top: 2px; line-height: 1.4; }
.lz-sheet .ipl-step.active .ipl-label { color: #000; }
.lz-sheet .ipl-step.future .ipl-label { color: #777; }
