/* BASE */

.button {
    display: flex;
    box-sizing: border-box;
    background-color: rgb(74, 74, 74);
    pointer-events: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    height: 40px;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    padding: 0;
    overflow: hidden;
}

.button:hover {
    background-color: rgb(102, 102, 102);
}

.button:active {
    background-color: rgb(51, 51, 51);
    transform: translateY(1px);
}

.button.disabled {
    background-color: rgb(50, 50, 50);
    color: rgb(100, 100, 100);
    cursor: not-allowed;
    pointer-events: none;
}

/* TRAY-BUTTON */

.tray-button {
    border-radius: 10px;
    flex-grow: 1;
    margin: 2px;
}

.tray-button--expanded {

}

.tray-button--collapsed {
    
}

/* TRAY-BUTTON */

.suggestion-button {
    flex-grow: 1;
    height: 32px;
    border-radius: 24px;
    max-width: 100%;
    min-width: 0
}

/* BUTTON-TEXT */

.button-text-sector {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.tray-button .button-text-sector {
    height: 40px;
    width: auto;
    padding-left: 4px;
    padding-right: 12px;
    margin-right: 12px;
}

.tray-button--collapsed .button-text-sector {
    width: 0;
    padding: 0;
    margin: 0;
}

.suggestion-button .button-text-sector {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    min-width: 0;
    height: 32px;
    padding: 0 6px 0 8px;
}

.button-text {
    color: rgb(255, 255, 255);
    white-space: nowrap;
    font-family: 'Exo2', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    text-overflow: ellipsis;
}

.button:hover .button-text {
    opacity: 0.9;
}

.button.disabled .button-text {
    opacity: 0.4;
}

.suggestion-button .button-text {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: start;
}

/* BUTTON-ICON */

.button-icon-sector {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.tray-button .button-icon-sector {
    height: 40px;
    min-width: 40px;
    flex-grow: 1;
}

.tray-button:not(.tray-button--collapsed):has(.button-text-sector) .button-icon-sector {
    flex-grow: 0;
}

.tray-button--collapsed .button-icon-sector {
    flex-grow: 1;
}

.suggestion-button .button-icon-sector {
    width: 32px;
    height: 32px;
}

.button-icon {
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.button:hover .button-icon {
    opacity: 0.9;
}

.button.disabled .button-icon {
    opacity: 0.4;
}

/* COLORS */

.red-button {}

.red-button:hover {
    background-color: rgb(236, 49, 49);
}

.red-button:active {
    background-color: rgb(118, 24, 24);
}

.orange-button {}

.orange-button:hover {
    background-color: rgb(255, 80, 0);
}

.orange-button:active {
    background-color: rgb(127, 40, 0);
}

.yellow-button {}

.yellow-button:hover {
    background-color: rgb(255, 212, 59);
}

.yellow-button:active {
    background-color: rgb(127, 106, 29);
}