.color-selector {
    position: relative;
}

.color-selector > summary {
    list-style: none;
}

.color-selector > summary::-webkit-details-marker {
    display: none;
}

.color-selector__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    cursor: pointer;
}

.color-selector__trigger:hover {
    background: rgba(15, 23, 42, 0.06);
}

.color-selector__trigger.annotation-selection-action {
    width: 2.25rem;
    height: 2.25rem;
}

.color-selector__indicator {
    font-weight: 600;
    line-height: 1;
    color: #475569;
    border-bottom: 3px solid currentColor;
}

.color-selector__palette {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    width: 180px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.color-selector__palette--end {
    right: 0;
    left: auto;
}

.color-selector__swatches {
    display: grid;
    grid-template-columns: repeat(6, 22px);
    gap: 6px;
    margin-bottom: 9px;
}

.color-selector__heading {
    margin: 1px 0 6px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.color-selector__swatch {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 0.25rem;
    cursor: pointer;
}

.color-selector__swatch:hover {
    outline: 2px solid rgba(var(--na-primary-rgb, 0, 170, 255), 0.45);
    outline-offset: 1px;
}

.color-selector__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 28px;
    padding: 4px 6px;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: #334155;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.color-selector__option:hover {
    background: rgba(15, 23, 42, 0.06);
}

.color-selector__input {
    width: 24px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
