/* driver_warnings styles */
.name.driver_warning,
.surname_short.driver_warning
{
    box-sizing: border-box;
}

.name.driver_warning
{
    padding-right: 20px; 
}

.surname_short.driver_warning
{
    padding-right: 70px; 
}


.name > span,
.surname_short > span
{
    position: absolute;
    width: auto;
    height: 130%;
    aspect-ratio: 1/1;
    right:0px;
    top: -15%;

    display: none;
    align-items: center;
    justify-content: center;
    font-style: normal!important;
    max-width: 21px;
}

.name.driver_warning > span,
.surname_short.driver_warning > span
{
    display: flex;
}


.name:before,
.surname_short:before
{
    content: "";
    position: absolute;
    width: 100%;
    height: 130%;
    top: -15%;
    left: 0%;
    opacity: 0;
    transition: opacity ease 0.5s;
    background-color: var(--warning);
    z-index: -1;
    display: block;


}


.name.driver_warning:before,
.surname_short.driver_warning:before
{
    opacity: 1;
}