.menuItem {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.15s;

    &:hover {
        color: var(--text);
        background: var(--bg-hover);
    }

    &.active {
        color: var(--accent);
        background: var(--bg-active);
        font-weight: 500;
    }
}

.form {
    composes: form from '@common/assets/ui.module.css';
}

.formGroup {
    composes: formGroup from '@common/assets/ui.module.css';
}

.formGroupFill {
    flex: 1;
}

.label {
    composes: label from '@common/assets/ui.module.css';
}

.selectMultiline {
    flex: 1;
    overflow-y: auto;
}

.selectMultiline optgroup {
    padding-block: 4px;
}

.selectMultiline option {
    padding-block: 4px;
    padding-inline-start: 16px;
}

.input {
    composes: input from '@common/assets/ui.module.css';
}

.select {
    composes: select from '@common/assets/ui.module.css';
}

.textarea {
    composes: textarea from '@common/assets/ui.module.css';
    resize: none;
    font-size: inherit;
    line-height: 1.5;
    flex: 1;
    min-height: unset;
}

.buttonSecondary {
    composes: buttonSecondary from '@common/assets/ui.module.css';
}

.buttonPrimary {
    composes: buttonPrimary from '@common/assets/ui.module.css';
    color: var(--accent-text);
}

.buttonDanger {
    composes: buttonDanger from '@common/assets/ui.module.css';
}

.inputRow {
    composes: inputRow from '@common/assets/ui.module.css';
}

.inputRow .input {
    flex: 1;
}

.iconButton {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    min-width: 40px;

    &:hover {
        background: var(--bg-hover);
    }
}

.divider {
    composes: divider from '@common/assets/ui.module.css';
}

.tokenList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tokenItem {
    composes: badge from '@common/assets/ui.module.css';
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tokenRemoveButton {
    composes: badgeRemove from '@common/assets/ui.module.css';
    padding: 0 2px;
}

.emptyText {
    composes: empty from '@common/assets/ui.module.css';
}

.labelHint {
    font-weight: normal;
    color: var(--text-muted);
    margin-left: 8px;
}

@media (max-width: 600px) {
    .menuItem {
        flex: 1;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        padding: 8px;
        font-size: 13px;
    }
}
