$productDataKey = 'productData';
if (isset ($cookies[$productDataKey]))
.second__wrapper {
width: 200px;
background: yellow;
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.5s ease;
}
.qwe {
min-height: 25px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.second__wrapper.open {
grid-template-rows: 1fr;
}
.second__wrapper.open .qwe{
white-space: wrap;
}