.theme-color-select-wrap {
    position: relative;
    width: 100%;
}

.theme-color-select-wrap select.theme-color-select {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.theme-color-select__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 6px 34px 6px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
}

.theme-color-select__toggle:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 0 2px rgba(102, 175, 233, 0.35);
}

.theme-color-select__toggle::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #667085;
}

.theme-color-select__swatch {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    flex: 0 0 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.theme-color-select__swatch.is-default {
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 4px,
        #f9fafb 4px,
        #f9fafb 8px
    );
}

.theme-color-select__label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-color-select__hex {
    font-size: 11px;
    opacity: 0.8;
    font-family: Consolas, Monaco, monospace;
    flex: 0 0 auto;
}

.theme-color-select__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.theme-color-select-wrap.is-open .theme-color-select__menu {
    display: block;
}

.theme-color-select__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
}

.theme-color-select__option:hover,
.theme-color-select__option.is-active {
    filter: brightness(0.96);
    box-shadow: inset 3px 0 0 #111827;
}

.theme-color-select__option.is-selected {
    font-weight: 700;
}

html[data-theme="dark"] .theme-color-select__toggle {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

html[data-theme="dark"] .theme-color-select__menu {
    background: #111827;
    border-color: #374151;
}
