/**
 * Sketch UI Universal Control Bar Styles
 */

 .sketch {
    transition: all 0.1s ease-in;
 }

.sketch-ui-control-bar {
    --button-size: 28px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .35);
    color: #000000;
    padding: 20px;
    font-size: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-direction: row;
    width: 100%;
    /* border: 1px solid #fff; */
    /* overflow: hidden; */
    @media (max-width: 768px) {
        flex-direction: column;
        align-items: start;
        gap: 6px;
    }
}

.sketch-ui-control-bar > div {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 5px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--neutral-semi-light);

    /* overflow: hidden; */
}

.sketch-ui-control-bar label {
    height: var(--button-size);
    width: var(--button-size);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    
}

.sketch-ui-control-bar label:after {
    content: '';
    position: absolute;
    right: -4px;
    height: 8px;
    width: 8px;
    background-color: #444444;
    z-index: 1;
    transform: rotate(45deg);
}

.sketch-ui-control-bar label svg {
    border-radius: 4px 0 0 4px;
    width: 100%;
    height: 100%;
    shape-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    text-rendering: optimizeLegibility;
    background-color: #444444;
    color: #ffffff;
    z-index: 2;
    padding: 2px;
}

.sketch-ui-control-bar button {
    width: calc(var(--button-size) + 10px);
    height: var(--button-size);
    border: 0px solid #ccc;
    font-size: 12px;
    cursor: pointer;
    text-transform: capitalize;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    font-weight: 600;
    will-change: transform;
    transition: transform 0.1s ease;

    &.active {
        font-size: 0;
    }

    &.active:after {
        content: '✓';
        font-size: 20px;
        line-height: 19px;
        border-radius: 100px;
        color: #ffffff;
        position: absolute;
        inset: 4px;
        /* border: 1px solid #ffffff; */
    }

    &.bg--ultra-light::after,
    &.bg--light::after {
        color: #000000;
    }
}

.sketch-ui-control-bar button:last-child {
    border-radius: 0 4px 4px 0;
}

.sketch-ui-control-bar button:hover {
    transform: translateY(-1px);
}