﻿:root {
    --dnet-chips-icon-height: 20px;
    --dnet-chips-icon-width: 20px;
    --dnet-chips-icon-background-size-md: 1.25em;
    --dnet-chips-icon-background-size-md: 1em;
    --dnet-chips-icon-background-size-sm: 0.875em;
    --dnet-chips-icon-background-size-xs: 0.625em;
    --dnet-chips-sm-font-size: var(--dnet-component-sm-font-size);
    --dnet-chips-border-radius: var(--dnet-component-border-radius);
    --dnet-chips-padding: 7px 12px;
}

.dnet-chip-list-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin: -4px;
}

.dnet-chip-list-wrapper input.dnet-input-element, .dnet-chip-list-wrapper .dnet-standard-chip {
    margin: 4px;
}

.dnet-standard-chip.dnet-chip-with-trailing-icon {
    padding: 7px 7px 8px 12px;
}

.dnet-chip.dnet-standard-chip {
    background-color: #e0e0e0;
    color: rgba(0,0,0,.87);
}

.dnet-standard-chip {
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    padding: var(--dnet-chips-padding);
    border-radius: var(--dnet-chips-border-radius);
    align-items: center;
    cursor: default;
    min-height: 32px;
    height: 1px;
}

.dnet-chip {
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dnet-chip {
    font-size: var(--dnet-chips-sm-font-size);
    font-weight: 500;
}

.dnet-chip.dnet-standard-chip .dnet-chip-remove {
    color: rgba(0,0,0,.87);
    opacity: .4;
}

.dnet-standard-chip .dnet-chip-remove, .dnet-standard-chip .dnet-chip-trailing-icon {
    margin-left: 8px;
    margin-right: 0;
}

.dnet-standard-chip .dnet-chip-remove, .dnet-standard-chip .dnet-chip-trailing-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dnet-standard-chip .dnet-chip-remove {
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    background: none;
}

.dnet-chips-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: var(--dnet-chips-icon-width);
    height: var(--dnet-chips-icon-width);
}

.dnet-chips-icon {
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1em;
    height: 1em;
    width: 1em;
    cursor: pointer;
    color: #5f6368;
}

.dnet-chips-icon-remove {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'><path fill-rule='evenodd' clip-rule='evenodd' d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z'/></svg>");
}
