.wrapper { position: relative; width: 100%; /* Dropdown indicator icon */ &::after { --icon-size: 11px; content: ''; position: absolute; top: 0; bottom: 0; inset-inline-end: 9px; width: var(--icon-size); background-color: var(--color-text-tertiary); pointer-events: none; mask-image: url("data:image/svg+xml;utf8,"); mask-position: right center; mask-size: var(--icon-size); mask-repeat: no-repeat; } &:has(.select:focus-visible)::after { background-color: var(--color-text-secondary); } &:has(.select:disabled)::after { background-color: var(--color-text-disabled); } } .select { appearance: none; box-sizing: border-box; display: block; width: 100%; height: 41px; padding-inline-start: 10px; padding-inline-end: 30px; font-family: inherit; font-size: 14px; color: var(--color-text-primary); background: var(--color-bg-secondary); border: 1px solid var(--color-border-primary); border-radius: 4px; outline: 0; @media screen and (width <= 600px) { font-size: 16px; } &:focus-visible { outline: var(--outline-focus-default); outline-offset: -1px; } &:disabled { color: var(--color-text-disabled); border-color: transparent; cursor: not-allowed; } [data-has-error='true'] & { border-color: var(--color-border-error); } }