
.icon-btn.text-tool {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #000000;
}

.icon-btn.text-tool.is-active {
    background: #c992b8;
    border-color: #c992b8;
    color: #ffffff;
}

.text-size-chip {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 12px;
    
    border: 2px solid var(--control-border);
    background: var(--control-bg);
}

.text-size-chip__value {
    min-width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
}


.font-chip {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: 12px;
    border: 2px solid var(--control-border);
    background: var(--control-bg);
    color: #000000;
}

.font-chip__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.font-chip__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    padding: 0 18px 0 0;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    outline: none;
}

.font-chip__chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: inherit;
}


.font-dropdown-panel {
    position: fixed;
    min-width: 160px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    padding: 6px 0;
}

.font-dropdown-panel.hidden {
    display: none !important;
}

.font-dropdown-panel[role="menu"] .font-dropdown-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.font-dropdown-panel[role="menu"] .font-dropdown-option:hover {
    background: #f3f4f6;
}

.font-dropdown-panel[role="menu"] .font-dropdown-option.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
