/* MMColorWheel — component styles, shared by the desktop and the mobile configurator.
   Sizing is driven by the container width: the component never sets a fixed pixel width. */

/* Spectrum, then the hex preview underneath it */
.mm-wheel{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.mm-wheel-canvas-box{
    position: relative;
    touch-action: none; /* the canvas handles the drag itself, the page must not scroll */
}

.mm-wheel-canvas{
    display: block;
    border-radius: 4px;
    cursor: crosshair;
}

.mm-wheel-cursor{
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.mm-wheel-preview{
    display: flex;
    align-items: center;
}

.mm-wheel-swatch{
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #c6c6c6;
}

/* Editable: typing a valid code jumps straight to that color */
.mm-wheel-hex{
    width: 90px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid #c6c6c6;
    border-radius: 3px;
    background: #ffffff;
    color: #454545;
    font-size: 14px;
    text-align: center;
    cursor: text;
}

.mm-wheel-hex:focus{
    outline: 2px solid #454545;
    outline-offset: 1px;
}
