/* Checkout Progress Bar */
.checkout-progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 240px;
}

.checkout-progress-bar {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.checkout-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--highlight-color, #d54928) 0%, #f07052 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: progressPulse 2.5s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.checkout-progress-steps {
  display: flex;
  align-items: center;
  width: 100%;
}

.progress-step {
  font-size: 0.8rem;
  color: #9ca3af;
  transition: all 0.3s ease;
  width: 33.333%;
}

.progress-step:nth-child(1) {
  text-align: left;
}

.progress-step:nth-child(2) {
  text-align: center;
}

.progress-step:nth-child(3) {
  text-align: right;
}

.progress-step a,
.progress-step em {
  font-style: normal;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.progress-step.active a,
.progress-step.active em {
  color: var(--secondary-color, #000b3b);
  font-weight: 500;
}

.progress-step.current a,
.progress-step.current em {
  color: var(--highlight-color, #d54928);
  font-weight: 600;
}

.progress-step a:hover {
  color: var(--highlight-color, #d54928);
}

/* Hide old step indicator elements */
#checkout_steps > br,
#checkout_steps > img {
  display: none;
}

.checkout-progress-glow {
  display: none;
}

#confirmationBox {
  position: absolute;
  top: -5px;
  z-index: 10000000;
}

#hslogo {
  cursor: pointer;
}

body:has(#headsecure) .countdown-box:not(.hidden) {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  width: 100%;
}
body:has(#headsecure) {
  padding-top: 0;
}

.hide {
  display: none;
}

.show {
  display: block;
  padding-top: 10px;
}

.confirmation-content {
  background: #ffffff;
  max-width: 520px;
  min-width: 395px;
  position: absolute;
  z-index: 10000000;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.exit-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.exit-savings {
  margin: 0;
  font-size: 1.3rem;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.dflex {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.conf_btn {
  border: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.stay_btn {
  background: linear-gradient(180deg, #d54928 0%, #c54020 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(213, 73, 40, 0.25);
}

.stay_btn:hover {
  background: linear-gradient(180deg, #de6027 0%, #d54928 100%);
  transform: translateY(-2px);
  color: var(--light-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 8px 12px -2px rgba(213, 73, 40, 0.3);
}

.leave_btn {
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.leave_btn:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.confirmation-content::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  bottom: 100%;
  left: 40px;
  border: 0.75rem solid transparent;
  border-top: none;
  border-bottom-color: #e2e8f0;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

@media only screen and (max-width: 600px) {
  #confirmationBox {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
  }
  .confirmation-content {
    border-radius: 0;
    margin: 0;
    border-left: 0;
    border-right: 0;
    width: 100%;
    padding: 1.5rem;
    max-width: 100%;
  }
  .exit-title {
    font-size: 1.7rem;
  }
  .exit-savings {
    font-size: 1.25rem;
  }
  .dflex {
    flex-direction: column;
    gap: 0.75rem;
  }
  .conf_btn {
    font-size: 1.4rem;
  }
  .show {
    padding-top: 0;
  }
  
  /* Progress bar mobile */
  .checkout-progress-container {
    min-width: 100%;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .checkout-progress-bar {
    height: 5px;
    border-radius: 3px;
  }
  
  .checkout-progress-fill {
    border-radius: 3px;
  }
  
  .checkout-progress-steps {
    margin-top: 0.25rem;
  }
  
  .progress-step {
    font-size: 0.75rem;
  }
  
  #checkout_info {
    width: 100%;
    text-align: center;
    float: none !important;
    margin: 0.5rem 0 !important;
  }
  
  #checkout_info strong {
    display: inline-block !important;
    margin-bottom: 0.25rem;
  }
  
  #checkout_steps {
    margin: 0 !important;
    text-indent: 0 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
  }
}
