@use '../abstract/base' as base;
@use '../abstract/functions' as f;
@use '../abstract/mixins' as m;
@use '../abstract/theme' as t;
@use '../abstract/variables' as v;
@use 'config' as c;

@include c.host('list') {
display: block;
padding: 8px 0;
background-color: t.color('surface');
border-radius: var(--#{base.$prefix}-list-item-shape-outer, v.shape('large'));
}

@include c.declarations('list') {
display: block;
height: f.density(56px, 36px);
overflow: hidden;

&[supporting-text],
&[overline] {
height: f.density(72px, 36px);
}

&[kind='divider'] {
height: 1px;
}

&[kind='subheader'] {
height: auto;
padding: 16px 16px 8px;
@include m.typography('label-large');
}
}
