/* Progress Steps */
.checkout-progress {
    max-width: 350px;
    margin: 0 auto 40px;

    @include s {
        max-width: 260px;
    }
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: "";
    position: absolute;
    top: 35%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 50%;
    height: 1px;
    background: #f0f0f0;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 35%;
    left: 0;
    height: 2px;
    z-index: 2;
    transition: width 0.5s ease;
    width: 66.66%;
}

.step {
    text-align: center;

    .uk-icon {
        background: #fff;
        color: var(--bg-light-13);
        border: 3px solid var(--bg-light-13);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 3;
        transition: all 0.3s ease;
        margin: 0 auto 16px;
        opacity: 0.4;
    }
}

.step.step-completed .uk-icon {
    background-color: #5cb85c;
    border-color: #5cb85c;
    transform: scale(1.1);
    color: #fff;
    opacity: 1;
}

.step.active .uk-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    color: #fff;
    opacity: 1;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--secondary-color);
}

/* Cards */
.checkout-card {
    border: 1px solid var(--border-color);
    border-radius: var(--br-16);
    padding: 26px 24px;
    background-color: #fff;

    @include s {
        padding: 16px;
    }
}

.order-summary-card {
    background-color: var(--bg-light-10);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.0225rem;
    color: var(--secondary-color);
}

/* Session Details */
.session-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.session-detail:last-child {
    border-bottom: none;
}

.session-detail .detail-value {
    text-align: right;
    font-weight: 600;
    color: var(--secondary-color);
}

.trainer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trainer-details h4 {
    margin: 0;
    font-weight: 700;
}

.trainer-details p {
    margin: 0;
    font-size: 0.9rem;
}

/* Payment Methods */
.payment-method {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: var(--bg-light-2);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: var(--bg-light-10);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--br-8);
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        border-radius: var(--br-8);
    }
}

.payment-info {
    h4 {
        margin: 0;
        font-weight: 600;
    }
    p {
        margin: 0;
        font-size: 0.9rem;
    }
}

.payment-btn {
    line-height: 54px;
    font-size: 0.9375rem;
}

/* Invoice Summary */
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.invoice-total {
    border-bottom: none;
    border-top: 2px solid var(--border-color-8);
    margin-top: 1rem;
    padding-top: 1rem;
}

.order-summary-card {
    .uk-heading-line > ::after,
    .uk-heading-line > ::before {
        border-color: var(--border-color-8);
    }
}

.invoice-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.total-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Wallet Toggle */
.wallet-option {
    background: linear-gradient(270deg, var(--primary-color) 0%, var(--primary-color-3) 100%);
    border-radius: var(--br-16);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

    h4 {
        color: #fff;
        margin-bottom: 0;
        font-weight: 600;
    }

    p {
        color: var(--bg-light-4);
        margin-top: 0;
        margin-bottom: 0;
    }
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: rgba(0, 0, 0, 0.5);
}

.toggle-switch.active::before {
    transform: translateX(30px);
}

.uk-margin-left-auto {
    margin-left: auto;
}

/* info-card */
.info-card {
    border: 1px solid var(--border-color);
    border-radius: var(--br-16);
    padding: 32px 24px;
    background-color: #fff;

    .info-card-inner {
        max-width: 70%;
        margin: 0 auto;

        @include s {
            max-width: 100%;
        }
    }

    h2 {
        font-size: 1.3125rem;
        margin-bottom: 10px;
    }

    p {
        margin-top: 10px;
    }
}

.happen-next {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: li-counter;

    li {
        counter-increment: li-counter;
        position: relative;
        padding-left: 42px;
        margin-bottom: 20px;
        &:last-child {
            margin-bottom: 0;
        }

        &:before {
            content: counter(li-counter); /* Display the counter number */
            position: absolute;
            left: 0;
            top: 7px;
            background: var(--primary-color);
            color: #fff;
            font-weight: 500;
            border-radius: 50%; /* Make it circular */
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }
    }

    span {
        display: block;
    }

    .next-item {
        font-weight: 600;
        font-size: 1rem;
        color: var(--secondary-color);
    }
}
