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

@include c.host('search') {
display: flex;
align-items: center;
box-sizing: border-box;
height: 56px;
padding: 0 56px 0 60px;
border-radius: v.shape('full');
background-color: t.color('surface-container-high');
color: t.color('on-surface-variant');
white-space: nowrap;
overflow: hidden;
@include m.typography('body-large');

&::before {
content: attr(placeholder);
}

&[value]:not([value=''])::before {
content: attr(value);
color: t.color('on-surface');
}
}

@include c.declarations('search') {
display: none;
}
