.colpick {
    accent-color: var(--colpick-colour, #000);
    border-radius: 5px;
    border: 2px solid var(--colpick-colour, #000);
    padding: 3px;
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: #444;
    color: #fff;
    box-shadow: 0 3px 10px #000;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 20px;
}

.colpick-tabbed {
    width: 100%;
    margin-bottom: 3px;
}
.colpick-tabbed-container {
    border: 2px solid var(--colpick-colour, #000);
    border-radius: 5px 5px 0 0;
    height: 234px;
    overflow: auto;
    scrollbar-width: thin;
}
.colpick-tabbed-list {
    background-color: #222;
    border-radius: 0 0 5px 5px;
    overflow: auto;
}

.colpick-tab-button {
    background: #333;
    color: #fff;
    border-radius: 0;
    border-width: 0;
    display: inline-block;
    padding: 3px 5px;
    height: 24px;
    margin-right: 1px;
    cursor: pointer;
}
.colpick-tab-button:hover {
    background: #444;
    border-color: #444;
}
.colpick-tab-button:focus {
    border-color: #fff;
}
.colpick-tab-button-active {
    background: var(--colpick-colour, #000);
    border-color: var(--colpick-colour, #000);
    color: var(--colpick-text, #000);
}

.colpick-middle-row {
    width: 100%;
    margin-bottom: 3px;
    height: 60px;
}

.colpick-colour-preview-container {
    display: inline-block;
    width: 60px;
    height: 60px;
    vertical-align: middle;
}
.colpick-colour-preview {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background: var(--colpick-colour, #000);
}

.colpick-values-container {
    display: inline-block;
    vertical-align: middle;
}

.colpick-values-child {
    display: block;
    padding: 2px 3px;
    margin: 1px;
    margin-left: 31px;
    cursor: text;
}
.colpick-values-child-label {
    font-weight: 700;
    width: 40px;
    display: inline-block;
    margin-right: 6px;
    text-align: right;
}
.colpick-values-child-input {
    display: inline-block;
    border: 1px solid #222;
    background: #333;
    border-radius: 0;
    color: #fff;
    padding: 1px;
    width: 100px;
    outline-style: none;
}
.colpick-values-child-input:focus {
    border-color: #777;
}

.colpick-buttons-container {
    text-align: right;
    margin: 1px;
}
.colpick-buttons-container-inner {
    text-align: left;
    display: inline-block;
}

.colpick-buttons-button {
    border-radius: 5px;
    background: #222;
    border-width: 0;
    color: #fff;
    font-size: 1.1em;
    line-height: 1.2em;
    padding: 3px 10px;
    margin-left: 5px;
    cursor: pointer;
}
.colpick-buttons-button:focus {
    box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #fff;
}
.colpick-buttons-button-submit {
    font-weight: 700;
    color: var(--colpick-text, #fff);
    background: var(--colpick-colour, #000);
}

.colpick-tab-container {}
.colpick-tab-container-inactive {
    display: none !important;
}

.colpick-tab-presets-container {
    width: 100%;
    max-width: 280px;
    padding: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.colpick-presets-option {
    display: block;
    flex-shrink: 0;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}
.colpick-presets-option:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px #000, inset 0 0 0 1px #000;
}
.colpick-presets-option-active {
    box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #fff;
}

.colpick-tab-grid-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.colpick-grid-option {
    display: block;
    border: 0;
    width: 23px;
    height: 23px;
    z-index: 1;
    cursor: cell;
}
.colpick-grid-option:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px #000, inset 0 0 0 1px #000;
    z-index: 3;
}
.colpick-grid-option-active {
    box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #fff;
    z-index: 2;
}

.colpick-slider {
    margin: 0 2px;
}
.colpick-slider-gradient {
    width: 100%;
    height: 6px;
}
.colpick-slider-name {
    font-weight: 700;
    margin: 0 2px;
}
.colpick-slider-value-slider-container {
    display: inline-block;
    width: 200px;
    margin: 4px;
}
.colpick-slider-value-slider {
    accent-color: var(--colpick-slider-colour, var(--colpick-colour, #000));
    width: 100%;
    margin: 0;
}
.colpick-slider-value-input-container {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    width: 64px;
}
.colpick-slider-value-input {
    display: inline-block;
    border: 1px solid #222;
    background: #333;
    border-radius: 0;
    color: #fff;
    padding: 1px;
    width: 50px;
    outline-style: none;
}
.colpick-slider-value-input:focus {
    border-color: #777;
}
.colpick-slider-red .colpick-slider-value-input:focus {
    border-color: #f00;
}
.colpick-slider-green .colpick-slider-value-input:focus {
    border-color: #0f0;
}
.colpick-slider-blue .colpick-slider-value-input:focus {
    border-color: #00f;
}
