/******************************************************************************
*  Copyright (C) 2021 Broadcom.
*  The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*  See LICENSE for terms and conditions.
******************************************************************************/

*, *:before, *:after {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: inherit;
}
::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--bui-neutral-background-color);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--bui-neutral-background-color);
}

.bui-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    margin: -1px !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.bui-disabled, .bui-disabled * {
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.bui-inherit {
    --bui-static-foreground-color: inherit;
    --bui-static-background-color: inherit;
    --bui-static-border-color: inherit;
    --bui-focus-foreground-color: inherit;
    --bui-focus-background-color: inherit;
    --bui-focus-border-color: inherit;
    --bui-focus-shadow-color: inherit;
    --bui-hover-foreground-color: inherit;
    --bui-hover-background-color: inherit;
    --bui-hover-border-color: inherit;
    --bui-active-foreground-color: inherit;
    --bui-active-background-color: inherit;
    --bui-active-border-color: inherit;
}

/***************************************************************************************/
/* Shapes */

.bui-shape-default {
    border-radius: var(--bui-border-radius);
}

.bui-shape-square {
    border-radius: 0;
}

.bui-shape-round {
    padding: var(--bui-padding-top-bottom) !important;
    border-radius: 50%;
}
.bui-shape-round:after {
    content: '';
    padding-top: 100%;
}

.bui-shape-pill {
    border-radius: 100vh;
}

/***************************************************************************************/
/* Transitions */

/* Fade */
.bui-fade-enter-active,
.bui-fade-leave-active {
    transition: opacity .25s ease;
}
.bui-fade-enter-from,
.bui-fade-leave-to {
    opacity: 0;
}

/* Expand */
.bui-expand-enter-from,
.bui-expand-leave-to {
    max-height: 0;
}
.bui-expand-enter-to,
.bui-expand-leave-from {
    max-height: 1000px;
}
.bui-expand-leave-active {
    overflow: hidden;
    transition: max-height .25s cubic-bezier(0, 1, 0, 1);
}
.bui-expand-enter-active {
    overflow: hidden;
    transition: max-height 1s ease-in-out;
}
