.mc-color-picker {
    position: relative;
    display: inline-block;
}

.mc-color-swatch {
    padding: 5px;
    background: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
    display: inline-block;
    cursor: pointer;
    line-height: 0;
}

.mc-color-swatch:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.mc-color-chip {
    display: block;
    width: 36px;
    height: 14px;
    border-radius: 2px;
}

.mc-color-popover {
    position: absolute;
    z-index: 5;
}

/* Click-away catcher. It is a button so it can't be focused into the tab order
 * the way a bare div with a click handler ends up being treated. */
.mc-color-cover {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}
