/* Step Progress Bar - Variables */
:root {
    --wcdl-completed: linear-gradient(135deg, #10A4ED, #0078B3);      /* Orange for completed steps */
    --wcdl-active: linear-gradient(135deg, #10A4ED, #0078B3);         /* 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: 70px 0;
    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: 8px;
    letter-spacing: -0.02em;
  }
  
  /* Subheadline */
  .wcdl-subheadline {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--wcdl-text-light);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
  }
  
  /* Minicart headline adjustments */
  .wcdl-minicart-progress .wcdl-headline {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  /* Minicart subheadline adjustments */
  .wcdl-minicart-progress .wcdl-subheadline {
    font-size: 12px;
    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: 70px; /* Increased minimum width for better spacing */
    max-width: 90px; /* Increased max width to accommodate larger amounts */
    top: -5px;
  }
  
  /* Step Markers */
  .wcdl-marker {
    width: 50px;
    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: 10px;
    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: 11px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--wcdl-background);
    text-align: center;
    white-space: nowrap;
    transition: var(--wcdl-transition);
    margin-top: 8px;
    transform: translateY(-2px);
    overflow: visible; /* Allow text to be visible */
    width: 100%;
    padding: 0 2px; /* Small padding to prevent text cutoff */
  }
  
  /* 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;
  }

  /* Checkout Popup Styles */
  .wcdl-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

  .wcdl-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: wcdl-popup-slide-in 0.3s ease-out;
  }

  @keyframes wcdl-popup-slide-in {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .wcdl-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .wcdl-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wcdl-text);
  }

  .wcdl-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
  }

  .wcdl-popup-close:hover {
    background: #f5f5f5;
    color: #666;
  }

  .wcdl-popup-body {
    padding: 24px;
  }

  .wcdl-savings-highlight {
    text-align: center;
    margin-bottom: 20px;
  }

  .wcdl-current-tier {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
  }

  .wcdl-current-tier .wcdl-label {
    display: block;
    font-size: 14px;
    color: var(--wcdl-text-light);
    margin-bottom: 4px;
  }

  .wcdl-current-tier .wcdl-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--wcdl-text);
  }

  .wcdl-next-tier {
    padding: 20px;
    background: linear-gradient(135deg, #10A4ED, #0078B3);
    border-radius: 12px;
    color: white;
  }

  .wcdl-next-tier .wcdl-label {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
    opacity: 0.9;
  }

  .wcdl-discount-badge {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .wcdl-savings-text {
    font-size: 14px;
    opacity: 0.9;
  }

  .wcdl-popup-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }

  .wcdl-btn {
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600 !important;
    font-size: 14px !important;
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: block;
  }

  .wcdl-btn-primary {
    background: linear-gradient(135deg, #10A4ED, #0078B3);
    color: white;
  }

  .wcdl-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 164, 237, 0.3);
    color: white;
    text-decoration: none;
  }

  .wcdl-btn-secondary {
    background: #f8f9fa;
    color: var(--wcdl-text-light);
    border: 1px solid #e9ecef;
  }

  .wcdl-btn-secondary:hover {
    background: #e9ecef;
    color: var(--wcdl-text);
  }

  @media (min-width: 480px) {
    .wcdl-popup-actions {
      flex-direction: row;
    }
  }

  /* Popup Footer Styles */
  .wcdl-popup-footer {
    padding-top: 15px;
  }

  /* Checkbox Container */
  .wcdl-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--wcdl-text-light);
    user-select: none;
    margin: 0;
  }

  .wcdl-checkbox-container:hover {
    color: var(--wcdl-text);
  }

  /* Hide default checkbox */
  .wcdl-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  /* Custom checkbox */
  .wcdl-checkmark {
    height: 18px;
    width: 18px;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }


  /* Checkbox checked state */
  .wcdl-checkbox:checked ~ .wcdl-checkmark {
    background: linear-gradient(135deg, #10A4ED, #0078B3);
    border: none;
  }

  /* Checkmark icon */
  .wcdl-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  /* Show checkmark when checked */
  .wcdl-checkbox:checked ~ .wcdl-checkmark:after {
    display: block;
  }


  /* Popup headline */
.wcdl-popup-headline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.wcdl-popup-headline h3 {
    margin: 0;
    font-size: 1.3em;
    line-height: 1.3;
    font-weight: 700;
}
.wcdl-popup-icon {
    font-size: 1.4em;
    flex-shrink: 0;
    line-height: 1.3;
}
.wcdl-popup-subtext {
    margin: 0 0 16px;
    color: #555;
    font-size: 0.95em;
}

/* Suggestions block */
.wcdl-popup-suggestions {
    background: #f5f8ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.wcdl-suggestions-label {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wcdl-suggestions-list {
    margin: 0;
    padding-left: 18px;
}
.wcdl-suggestions-list li {
    margin-bottom: 6px;
    font-size: 0.95em;
    line-height: 1.4;
}
.wcdl-suggestions-list li:last-child {
    margin-bottom: 0;
}
.wcdl-tier-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Reseller tip */
.wcdl-popup-reseller-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-style: italic;
    color: #444;
    font-size: 0.9em;
    margin-bottom: 20px;
}

