/* =============================================================
   Commission Sale Feature Styles
   Banner + Multi-Step Modal
   ============================================================= */

/* --- Commission Banner --- */
.commission-banner {
    background: linear-gradient(135deg, rgba(211, 255, 2, .08), rgba(211, 255, 2, .03));
    border: 1px solid rgba(211, 255, 2, .15);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.commission-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.commission-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(211, 255, 2, .1);
    color: var(--yellow-color, #D3FF01);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.commission-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.commission-text strong {
    font-size: 1.4rem;
    color: #fff;
}

.commission-text span {
    font-size: 1.1rem;
    color: #A1A5B7;
}

.commission-btn {
    white-space: nowrap;
    flex-shrink: 0;
}


/* --- Modal: Sale Car Option Cards (Step 1) --- */
.sale-car-option {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #262626;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .2s;
    margin-bottom: 8px;
}

.sale-car-option:hover {
    border-color: var(--yellow-color, #D3FF01);
    background: rgba(211, 255, 2, .05);
}

.sale-car-option img {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #353535;
}

.sale-car-option .sco-info {
    flex: 1;
}

.sale-car-option .sco-title {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
}

.sale-car-option .sco-price {
    font-size: .78rem;
    color: var(--yellow-color, #D3FF01);
    font-weight: 600;
}

.sale-car-option .sco-chevron {
    color: #A1A5B7;
    font-size: .75rem;
}


/* --- Modal: Sale Source Buttons (Step 2) --- */
.sale-source-btn {
    padding: 16px 20px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 600 !important;
    font-size: .92rem !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    background: #262626 !important;
    color: #fff !important;
    transition: all .2s !important;
    position: relative;
    width: 100%;
    text-align: start;
}

.sale-source-btn:hover {
    border-color: var(--yellow-color, #D3FF01) !important;
    background: rgba(211, 255, 2, .08) !important;
}

.sale-source-btn.sale-inside {
    border-color: rgba(211, 255, 2, .3) !important;
}

.sale-source-btn.sale-inside:hover {
    background: rgba(211, 255, 2, .15) !important;
    border-color: var(--yellow-color, #D3FF01) !important;
}

.sale-preferred {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--yellow-color, #D3FF01);
    color: #1A191B;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}


/* --- Modal: External Source Toggles (Step 3) --- */
.ext-source-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ext-source-toggle .toggle-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #262626;
    color: #A1A5B7;
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.ext-source-toggle .toggle-btn:hover {
    border-color: rgba(211, 255, 2, .4);
    color: #fff;
}

.ext-source-toggle .toggle-btn.active {
    border-color: var(--yellow-color, #D3FF01);
    background: rgba(211, 255, 2, .1);
    color: var(--yellow-color, #D3FF01);
}

.commission-notes-textarea {
    width: 100%;
    min-height: 80px;
    background: #262626;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    font-size: .85rem;
    resize: vertical;
    margin-bottom: 16px;
    transition: border-color .2s;
}

.commission-notes-textarea:focus {
    border-color: var(--yellow-color, #D3FF01);
    outline: none;
}


/* --- Modal: Selected Car Summary Bar --- */
.selected-car-summary {
    padding: 12px;
    background: #262626;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: .88rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-car-summary img {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: #353535;
}

.selected-car-summary .scs-title {
    font-weight: 600;
    font-size: .85rem;
}

.selected-car-summary .scs-price {
    font-size: .78rem;
    color: var(--yellow-color, #D3FF01);
    font-weight: 600;
}


/* --- Modal: Payment Summary (Step 4 - mojaz style) --- */
.commission-pay-specs {
    display: flex;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.commission-pay-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.commission-pay-specs .spec-item .spec-label {
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
}

.commission-pay-specs .spec-item .spec-value {
    font-size: .85rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.commission-pay-section h5 {
    font-size: 1rem;
}

.commission-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: .92rem;
}

.commission-pay-row.total-row {
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.commission-pay-row .total-amount {
    font-weight: 800;
    color: var(--yellow-color, #D3FF01);
    font-size: 1.1rem;
}

.commission-pay-row .total-label {
    font-weight: 700;
    font-size: .95rem;
}

.payment-badg-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-badg {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #262626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-badg img {
    height: 35px;
    width: auto;
}


/* --- Modal: Step Indicator --- */
.commission-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 0 10px;
}

.commission-stepper .step {
    display: flex;
    align-items: center;
    gap: 0;
}

.commission-stepper .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, .15);
    color: #A1A5B7;
    background: transparent;
    transition: all .25s;
    flex-shrink: 0;
}

.commission-stepper .step-num.active {
    border-color: var(--yellow-color, #D3FF01);
    color: #1A191B;
    background: var(--yellow-color, #D3FF01);
}

.commission-stepper .step-num.done {
    border-color: var(--yellow-color, #D3FF01);
    color: var(--yellow-color, #D3FF01);
    background: rgba(211, 255, 2, .1);
}

.commission-stepper .step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, .1);
    transition: background .25s;
}

.commission-stepper .step-line.done {
    background: var(--yellow-color, #D3FF01);
}


/* --- Modal: Back Button --- */
.commission-back-btn {
    background: none;
    border: none;
    color: #A1A5B7;
    cursor: pointer;
    padding: 4px 8px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}

.commission-back-btn:hover {
    color: #fff;
}


/* --- Modal: Step Label --- */
.commission-step-label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    font-size: .92rem;
    color: #fff;
}


/* --- Skeleton Loader --- */
.commission-skeleton {
    background: linear-gradient(90deg, #262626 25%, #353535 50%, #262626 75%);
    background-size: 200% 100%;
    animation: commission-shimmer 1.5s infinite;
    border-radius: 10px;
    height: 60px;
    margin-bottom: 8px;
}

@keyframes commission-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* --- Responsive --- */
@media (max-width: 600px) {
    .commission-banner {
        flex-direction: row;
        align-items: center;
        padding: 10px 14px;
        gap: 10px;
        margin-bottom: 10px;
    }

    .commission-banner-content {
        flex-direction: row;
        gap: 8px;
    }

    .commission-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .commission-icon svg {
        width: 16px;
        height: 16px;
    }

    .commission-text strong {
        font-size: .78rem;
    }

    .commission-text span {
        font-size: .58rem;
    }

    .commission-btn {
        padding: 6px 12px !important;
        font-size: .72rem !important;
    }

    .sale-preferred {
        position: static;
        transform: none;
        margin-inline-start: auto;
    }

    .ext-source-toggle {
        flex-direction: column;
    }

    .commission-pay-specs {
        flex-direction: column;
        gap: 8px;
    }
}
