

.scheme-price-ui {
    display: none;
    position: absolute;
    z-index: 30;
    color: #14223d;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.scheme-price-mode {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dee5ed;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(20, 34, 61, 0.18);
    white-space: nowrap;
}

.scheme-price-mode-label {
    color: #77718a;
    transition: color 0.2s ease;
}

.scheme-price-mode-label.active {
    color: #7f63c7;
    font-weight: bold;
}

.scheme-price-mode-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.scheme-price-mode-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.scheme-price-mode-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    background: #d8d2e8;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.scheme-price-mode-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(20, 34, 61, 0.35);
    transition: transform 0.2s ease;
}

.scheme-price-mode-checkbox:checked + .scheme-price-mode-slider {
    background: #af7fde;
}

.scheme-price-mode-checkbox:focus + .scheme-price-mode-slider {
    box-shadow: 0 0 0 2px rgba(127, 99, 199, 0.25);
}

.scheme-price-mode-checkbox:checked + .scheme-price-mode-slider:before {
    transform: translateX(20px);
}

.scheme-price-legend {
    display: none;
    min-width: 125px;
    max-height: 330px;
    margin-top: 8px;
    padding: 8px 10px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dee5ed;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(20, 34, 61, 0.18);
    float: right;
}

.scheme-price-legend-item {
    display: flex;
    align-items: center;
    min-height: 24px;
    white-space: nowrap;
}

.scheme-price-legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border: 1px solid rgba(20, 34, 61, 0.12);
}

.scheme-price-legend-value {
    min-width: 48px;
}
