/* ==========================================================================
   Product Variant Toggle — "czas realizacji" on product cards & detail pages
   ========================================================================== */

.z-variant-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Labels */
.z-variant-toggle__label {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', system-ui, sans-serif;
    line-height: 1.3;
    color: rgba(232, 228, 223, 0.45);
    cursor: pointer;
    transition: color 0.25s;
    user-select: none;
    text-align: center;
}

/* Left active = light grey, right active = green */
.z-variant-toggle__label[data-side="left"].z-variant-toggle__label--active {
    color: rgba(232, 228, 223, 0.8);
}

.z-variant-toggle__label[data-side="right"].z-variant-toggle__label--active {
    color: #27ae60;
}

.z-variant-toggle__label[data-side="left"]:hover {
    color: rgba(232, 228, 223, 0.8);
}

.z-variant-toggle__label[data-side="right"]:hover {
    color: #27ae60;
}

/* Switch track — default grey (standardowy) */
.z-variant-toggle__switch {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 24px;
    background: #888;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
}

.z-variant-toggle__switch:hover {
    background: #777;
}

/* Right = priorytetowy = green track */
.z-variant-toggle--right .z-variant-toggle__switch {
    background: #27ae60;
}

.z-variant-toggle--right .z-variant-toggle__switch:hover {
    background: #219a52;
}

/* Knob */
.z-variant-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.z-variant-toggle--right .z-variant-toggle__knob {
    left: 23px;
}

/* Responsive */
@media (max-width: 480px) {
    .z-variant-toggle {
        gap: 6px;
    }

    .z-variant-toggle__label {
        font-size: 11px;
    }

    .z-variant-toggle__switch {
        width: 38px;
        min-width: 38px;
        height: 22px;
    }

    .z-variant-toggle__knob {
        width: 16px;
        height: 16px;
    }

    .z-variant-toggle--right .z-variant-toggle__knob {
        left: 20px;
    }
}
