@use '../../../styles/mat-selectors' as ms;

.adf-card-view-textitem {
    .adf-textitem-error {
        &::before {
            display: none;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style-type: none;

            li {
                margin: 0;
                padding: 0;
            }
        }
    }

    .adf-textitem-action {
        width: 30px;
        height: 30px;
        padding: 0;
        line-height: 20px;
        color: var(--adf-theme-foreground-text-color-025);

        &:hover,
        &:focus {
            color: var(--adf-theme-foreground-text-color);
        }

        #{ms.$mat-button-touch-target} {
            width: 30px;
            height: 30px;
        }
    }

    #{ms.$mat-form-field-icon-suffix} {
        position: absolute;
        right: 1px;
        bottom: 7px;
    }

    .adf-textitem-chip-list-container {
        #{ms.$mat-form-field-label} {
            margin-top: 6px;
        }

        .adf-property-value {
            margin-left: 0;
        }
    }

    .adf-textitem-clickable {
        background: none;
        border: none;
        margin: 0;
        cursor: pointer;
        width: 100%;
        padding: 3px 0 0;

        .adf-textitem-action:hover {
            color: var(--adf-theme-foreground-text-color);
        }

        .adf-property-field {
            #{ms.$mat-input-element} {
                color: var(--theme-primary-color);
                cursor: pointer;
            }
        }
    }

    .adf-property-value-not-editable {
        color: var(--adf-metadata-property-panel-title-color);
    }

    input.adf-property-value:disabled,
    textarea.adf-property-value:disabled {
        user-select: none;
        pointer-events: none;
    }

    .adf-property-value-has-icon-suffix {
        padding-right: 34px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.adf-card-textitem-field-container {
    padding-top: 5px;
}
