aside {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: right;
    align-items: end;
    padding: 1rem;
}

aside * {
    line-height: 0;
}

#cs_toggle:checked~aside {
    height: 100%;
    width: 100%;
}

#cs_toggle:checked~aside #cs_bg {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .3);
    z-index: -1;
}

aside .cs_wrapper {
    display: flex;
    justify-content: end;
    align-items: center;
    border-radius: 10rem;
    box-shadow: 0 10px 1rem rgba(0, 0, 0, 0.6);
    justify-self: end;
}

aside .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    aspect-ratio: 1;
}

#cs_toggle~aside .cs_sub {
    display: none;
}

#cs_toggle:checked~aside .cs_sub {
    display: flex;
}

.cs_main {
    background: linear-gradient(to bottom, #ffd166, #ffb301);
    transition-duration: .2s;
    padding: .8rem;
    cursor: pointer;
}

.cs_main .cs_main_text {
    color: #1c1b1c;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: right;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    transition-duration: .2s;
    direction: rtl;
    user-select: none;
}

.cs_main .cs_main_text img {
    width: 6rem;
}

#cs_toggle:checked~aside .cs_main .cs_main_text {
    max-width: 10rem;
    padding-left: .5rem;
}

.cs_sub {
    background: linear-gradient(to top, #161922, #424651);
    color: white;
}

.cs_sub .icon {
    padding: 1rem;
}

.cs_sub .cs_sub_text {
    padding-left: 1.5rem;
    padding-right: .5rem;
}

.cs_sub .cs_sub_text img {
    width: 3.5rem;
}