/* Step Progress Bar - Variables */
:root {
    --wcdl-completed: linear-gradient(135deg, #FF7E00, #E64500);      /* Orange for completed steps */
    --wcdl-active: linear-gradient(135deg, #FF7E00, #E64500);          /* Orange for active step */
    --wcdl-pending: #fef6ec;         /* Light beige for pending steps */
    --wcdl-text: #333333;            /* Dark text */
    --wcdl-text-light: #666666;      /* Medium gray text */
    --wcdl-background: #ffffff;      /* White background */
    --wcdl-shadow: none;             /* No shadow */
    --wcdl-transition: all 0.3s ease;
  }
  
  /* Container */
  .wcdl-container.wcdl-sleek {
    background: var(--wcdl-background);
    border: none;
    border-radius: 16px;
    margin: 20px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: none;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative; /* Ensure proper positioning context */
    overflow: visible; /* Allow markers to be visible */
  }
  
  /* Minicart progress container */
  .wcdl-minicart-progress .wcdl-container.wcdl-sleek {
    margin: 10px 0;
  }
  
  /* Headline */
  .wcdl-headline {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--wcdl-text);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
  }
  
  /* Minicart headline adjustments */
  .wcdl-minicart-progress .wcdl-headline {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  /* Step Progress Bar Container */
  .wcdl-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px; /* Add space for markers above */
  }
  
  /* Minicart progress bar adjustments */
  .wcdl-minicart-progress .wcdl-bar {
    margin-top: 30px; /* Less space needed in minicart */
  }
  
  /* Progress Track - The background */
  .wcdl-track {
    height: 20px;
    background: var(--wcdl-pending);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 100%;
    border: none;
  }
  
  /* Progress Fill - The completed portion */
  .wcdl-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--wcdl-completed);
    transition: width 0.8s ease-out;
    z-index: 2;
    border-radius: 10px 0 0 10px;
  }
  
  /* Threshold markers */
  .wcdl-threshold-marker {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: white;
    z-index: 3;
    transform: translateX(-1px);
  }
  
  /* Minicart threshold marker adjustments */
  .wcdl-minicart-progress .wcdl-threshold-marker {
    width: 1px;
  }
  
  /* Step Checkpoints */
  .wcdl-check {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    transition: var(--wcdl-transition);
    transform: translateX(-50%);
    min-width: 60px; /* Ensure minimum width for alignment */
    max-width: 80px; /* Limit width to prevent overflow */
    top: -5px;
  }
  
  /* Step Markers */
  .wcdl-marker {
    width: 42px;
    height: 20px;
    background: white;
    border: 1px solid var(--wcdl-pending);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: var(--wcdl-transition);
    margin-bottom: 8px;
    transform: translateY(-22px);
 
  }
  
  /* Minicart marker adjustments */
  .wcdl-minicart-progress .wcdl-marker {
    width: 40px;
    height: 20px;
    transform: translateY(-20px);
  }
  
  /* Completed step */
  .wcdl-check.is-ok .wcdl-marker {
    background: var(--wcdl-completed);
    border-color: var(--wcdl-completed);
    color: white;
  }
  
  /* Active step */
  .wcdl-check.is-next .wcdl-marker {
    background: white;
    border-color: var(--wcdl-active);
    color: var(--wcdl-active);
    border-width: 1px;

    transform: translateY(-22px) scale(1.05);
  }
  
  /* Minicart active marker adjustments */
  .wcdl-minicart-progress .wcdl-check.is-next .wcdl-marker {
    transform: translateY(-20px) scale(1.05);
  }
  
  /* Percentage text */
  .wcdl-percent {
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    display: block;
    text-align: center;
    letter-spacing: -0.01em;
  }

  /* Completed step percent text */
  .wcdl-check.is-ok .wcdl-percent {
    color: white;
  }

  /* Active step percent text */
  .wcdl-check.is-next .wcdl-percent {
    color: var(--wcdl-active);
  }
  
  /* Step labels */
  .wcdl-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--wcdl-text);
    text-align: center;
    white-space: nowrap;
    transition: var(--wcdl-transition);
    margin-top: 8px;
    transform: translateY(-2px);
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  
  /* Minicart label adjustments */
  .wcdl-minicart-progress .wcdl-label {
    font-size: 10px;
    margin-top: 6px;
    transform: translateY(-4px);
  }
  
  /* Pending step label */
  .wcdl-check:not(.is-ok):not(.is-next) .wcdl-label {
    color: var(--wcdl-text-light);
    font-weight: 500;
  }
  
  /* Active step label */
  .wcdl-check.is-next .wcdl-label {
    color: var(--wcdl-active);
    font-weight: 700;
  }