/* ============================================
   Redeem CDK — Minimal Custom Styles
   (Uses site's native Bootstrap theme)
   ============================================ */

/* ---------- Stepper / Timeline ---------- */
.cdk-stepper {
    margin-top: 20px;
    position: relative;
    padding-left: 32px;
}

.cdk-step {
    position: relative;
    padding-bottom: 20px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.cdk-step:last-child {
    padding-bottom: 0;
}

.cdk-step::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.cdk-step:last-child::before {
    display: none;
}

.cdk-step-dot {
    position: absolute;
    left: -32px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.cdk-step-dot i {
    font-size: 9px;
    display: none;
}

/* Active */
.cdk-step.active {
    opacity: 1;
}

.cdk-step.active .cdk-step-dot {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    animation: cdk-pulse 1.5s infinite;
}

.cdk-step.active::before {
    background: linear-gradient(to bottom, #0d6efd, #dee2e6);
}

/* Completed */
.cdk-step.completed {
    opacity: 0.65;
}

.cdk-step.completed .cdk-step-dot {
    border-color: #198754;
    background: #198754;
}

.cdk-step.completed .cdk-step-dot i.fa-check {
    display: block;
    color: #fff;
}

.cdk-step.completed::before {
    background: #198754;
}

/* Failed */
.cdk-step.failed {
    opacity: 1;
}

.cdk-step.failed .cdk-step-dot {
    border-color: #dc3545;
    background: #dc3545;
}

.cdk-step.failed .cdk-step-dot i.fa-times {
    display: block;
    color: #fff;
}

.cdk-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cdk-step-detail {
    font-size: 0.75rem;
    color: #6c757d;
}

.cdk-step.active .cdk-step-detail {
    color: #0d6efd;
}

.cdk-step.failed .cdk-step-detail {
    color: #dc3545;
}

/* ---------- Shimmer ---------- */
.cdk-shimmer-bar {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    background-size: 200% 100%;
    animation: cdk-shimmer 1.4s infinite;
    margin-top: 8px;
    display: none;
}

.cdk-shimmer-bar.show {
    display: block;
}

/* ---------- Animations ---------- */
@keyframes cdk-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.2);
    }

    50% {
        box-shadow: 0 0 10px 3px rgba(13, 110, 253, 0.2);
    }
}

@keyframes cdk-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ---------- Check button inline ---------- */
.input-group .btn-check-cdk,
.input-group .btn-check-user {
    min-width: 90px;
}

/* ---------- Validation badge inline ---------- */
.cdk-badge-status {
    font-size: 0.7rem;
    vertical-align: middle;
    margin-left: 6px;
}

/* ---------- Product info ---------- */
.cdk-product-info {
    display: none;
    margin-top: 8px;
}

.cdk-product-info.show {
    display: flex;
    align-items: center;
    gap: 8px;
}