/* =========================================================
   1) KOLORY (#model-kolor)
   ========================================================= */
#model-kolor .color-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    align-items: flex-end;
    /* całość przy prawej krawędzi */
}

#model-kolor .color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    padding: 2px 0;
    cursor: pointer;
    text-align: right;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    color: inherit;
    box-shadow: none !important;
}

/* Podpis: domyślnie ukryty, pokazuj dla aktywnego */
#model-kolor .color-label {
    font-size: 14px;
    line-height: 1.25;
    display: none;
    color: inherit;
}

#model-kolor .color-row[data-active] .color-label {
    display: inline-block;
}

/* Kółko z kolorem + ring */
#model-kolor .color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dot-bg);
    border: none;
    position: relative;
    z-index: 1;
}

#model-kolor .color-dot::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}

#model-kolor .color-row[data-active] .color-dot::after {
    border-color: var(--e-global-color-accent, #ff0022);
}

/* Dostępność: focus klawiaturą */
#model-kolor .color-row:focus-visible .color-dot::after {
    outline: 2px solid var(--e-global-color-accent, #ff0022);
    outline-offset: 2px;
}

/* =========================================================
   2) WIZUALIZACJA (#model-wizualizacja)
   ========================================================= */
#model-wizualizacja img {
    max-height: 410px;
    object-fit: contain;
}

/* =========================================================
   3) PARAMETRY (#model-dane) – kontenery, nagłówek, strzałki
   ========================================================= */
#model-dane .vehicle-stats {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    /* dla strzałek */
    padding: 0 20px;
    /* trochę miejsca na strzałki */
}

/* Nagłówek + tytuł konfiguracji */
#model-dane .vs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#model-dane .vs-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: inherit;
}

/* Strzałki */
#model-dane .vs-arrow {
    all: initial;
    font-family: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    user-select: none;
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

#model-dane .vs-arrow-left {
    left: 0;
}

#model-dane .vs-arrow-right {
    right: 0;
}

#model-dane .vs-arrow:hover {
    color: var(--e-global-color-accent, #ff0022);
}

/* Separator */
#model-dane .vs-separator {
    height: 1px;
    background: linear-gradient(to right, #9b9b9b, #404040);
    margin: 10px 0 20px;
}

/* =========================================================
   4) PARAMETRY – siatka i elementy
   ========================================================= */
#model-dane .vs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

#model-dane .vs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#model-dane .vs-label {
    font-size: 13px;
    line-height: 1.3;
    color: #666;
    margin-bottom: 6px;
    text-align: center;
}

#model-dane .vs-value {
    font-size: 28px;
    font-weight: 700;
    color: inherit;
}

/* =========================================================
   5) ANIMACJE (slide+fade) – keyframes global, użycie lokalne
   ========================================================= */
#model-dane .vs-grid,
#model-dane .vs-title {
    will-change: transform, opacity;
}

@keyframes vs-leave-left {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(16px)
    }
}

@keyframes vs-leave-right {
    from {
        opacity: 1;
        transform: translateX(0)
    }

    to {
        opacity: 0;
        transform: translateX(-16px)
    }
}

@keyframes vs-enter-left {
    from {
        opacity: 0;
        transform: translateX(-16px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes vs-enter-right {
    from {
        opacity: 0;
        transform: translateX(16px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

#model-dane .vs-leave-left {
    animation: vs-leave-left .18s ease both;
}

#model-dane .vs-leave-right {
    animation: vs-leave-right .18s ease both;
}

#model-dane .vs-enter-left {
    animation: vs-enter-left .22s ease both;
}

#model-dane .vs-enter-right {
    animation: vs-enter-right .22s ease both;
}

/* (opcjonalnie) mniejsze ruchy dla prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    #model-dane .vs-leave-left,
    #model-dane .vs-leave-right,
    #model-dane .vs-enter-left,
    #model-dane .vs-enter-right {
        animation: none !important;
    }
}

/* =========================================================
   6) RWD
   ========================================================= */
@media (max-width: 640px) {
    #model-dane .vs-grid {
        gap: 16px;
    }
}