/* Same panel look as the Blocks editor (.mc-block-points-editor in styles.min2.css). */
.mc-scale-segments {
    margin-top: 6px;
    padding: 14px 16px 4px;
    border: 1px solid var(--deepBorder);
    border-radius: 10px;
    background-color: var(--thinGray);
}

.mc-scale-segments .mc-scale-segments-title {
    margin: 0 0 12px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

.mc-scale-segment {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--lightBorder);
    border-left: 4px solid var(--segment-color, var(--hardGray));
    border-radius: 8px;
    background-color: var(--cardBG);
}

.mc-scale-segment-index {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    /* Lines the badge up with the inputs, below their labels. */
    margin-top: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--headingColor);
    background-color: var(--thinGray);
}

.mc-scale-segment-range {
    flex: auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mc-scale-segment-range > .mc-label-field-group {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

.mc-scale-segment-arrow {
    flex-shrink: 0;
    margin-top: 34px;
    font-size: 18px;
    color: var(--textColor);
    opacity: .6;
}

.mc-scale-segment .mc-scale-segment-color {
    flex-shrink: 0;
    width: auto;
    margin-bottom: 0;
}

/* Swatch sized to match the 40px inputs beside it. */
.mc-scale-segment-color .mc-color-picker {
    display: flex;
    align-items: center;
    height: 40px;
}

@media (max-width: 575px) {
    .mc-scale-segment {
        flex-wrap: wrap;
    }

    .mc-scale-segment-range {
        flex-basis: calc(100% - 42px);
    }

    .mc-scale-segment .mc-scale-segment-color {
        margin-left: 42px;
    }
}
