.trays-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 120;
}

/* tray-box */

.tray-box {
    position: absolute;
    display: flex;
    bottom: 14px;
    width: 280px;
    height: 50px;
    box-sizing: border-box;
    pointer-events: auto;
}

.tray-box--left {
    left: 0;
    flex-direction: row;
    justify-content: flex-start;
}

.tray-box--right {
    right: 0;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* tray */

.tray {
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
    background-color: rgb(56, 56, 56);
    border: 1px solid rgb(66, 66, 66);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    padding: 2px;
}

.tray--left {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 3px;
}

.tray--right {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 3px;
}

/* tray-sector */

.tray-sector {
    display: flex;
    box-sizing: border-box;
    min-width: 40px;
    overflow: hidden;
    flex-grow: 1;
    flex-basis: auto;
    position: relative;
}

.tray-sector--persistent {
    flex-shrink: 0;
    z-index: 2;
}

.tray-sector--collapsible {
    flex-shrink: 1;
    max-width: 184px;
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: max-width 0.3s ease, margin 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.tray--collapsed .tray-sector--collapsible {
    max-width: 40px;
    opacity: 0;
    visibility: hidden;
    transition: max-width 0.3s ease, margin 0.3s ease, opacity 0.3s ease, visibility 0s 0.5s;
}

.tray--left.tray--collapsed .tray-sector--collapsible {
    margin-left: -40px;
}

.tray--right.tray--collapsed .tray-sector--collapsible {
    margin-right: -40px;
}

/* tray-toggle */

.tray-toggle {
    display: flex;
    flex: 0 0 48px;
    transition: flex-basis 0.5s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    box-sizing: border-box;
    padding: 4px;
    align-items: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.tray-toggle--left {
    flex-direction: row;
}

.tray-toggle--right {
    flex-direction: row-reverse;
}

.tray-toggle--expanded {
    flex-basis: 230px;
}

.tray-toggle--collapsed {
    flex-basis: 48px;
}

.tray-toggle--expanded:hover {
    flex-basis: 214px;
}

.tray-toggle--collapsed:hover {
    flex-basis: 62px;
}

.tray-toggle--left:hover {
    box-shadow: inset 6px 0 6px -7px rgba(0, 0, 0, 0.5);
}

.tray-toggle--right:hover {
    box-shadow: inset -6px 0 6px -7px rgba(0, 0, 0, 0.5);
}

/* tray-toggle-icon */

.tray-toggle-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
    opacity: 0;
    transform: rotate(0deg);
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.5s ease;
    user-select: none;
}

.tray-toggle:hover .tray-toggle-icon {
    opacity: 0.7;
}

.tray-toggle--collapsed .tray-toggle-icon {
    transform: rotate(0deg);
}

.tray-toggle--expanded .tray-toggle-icon {
    transform: rotate(180deg);
}
