@use '../abstract/functions' as f;
@use '../abstract/mixins' as m;
@use '../abstract/theme' as t;

@mixin bar {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: f.get-z-index('fixed');
display: flex;
align-items: center;
box-sizing: border-box;
height: 64px;
padding: 0 12px 0 28px;
background-color: t.color('surface');
color: t.color('on-surface');
white-space: nowrap;
overflow: hidden;
@include m.typography('title-large');

&[type='center'] {
justify-content: center;
}

&[type='medium'],
&[type='large'] {
align-items: flex-end;
padding-left: 44px;
padding-bottom: 24px;
height: 112px;
@include m.typography('headline-small');
}

&[type='large'] {
padding-bottom: 28px;
height: 152px;
@include m.typography('headline-medium');
}

> [slot='leading'] {
order: -1;
}

> [slot='trailing'] {
order: 1;
margin-left: auto;
}
}
