@use '../variables' as vars;
@use 'sass:map';

.mat-button-toggle-group {
    height: 36px;
    border-radius: 4px;
    border: none;

    .mat-button-toggle {
        margin-left: -1px;
        color: map.get(vars.$colors-grey, 100);
        font-weight: bold;
        border: 1px solid map.get(vars.$colors-grey, 20);

        &.mat-button-toggle-checked {
            color: map.get(vars.$colors-electric-blue, 100);
            border: 1px solid map.get(vars.$colors-electric-blue, 100) !important;
            background: white;
            z-index: 1;

            &:hover {
                border: 1px solid map.get(vars.$colors-electric-blue, 100) !important;
                color: map.get(vars.$colors-electric-blue, 100);
                background: white;
                z-index: 1;
                height: 100%;
            }
        }

        &:hover {
            background: white;
            box-sizing: border-box;
            border: 1px solid map.get(vars.$colors-electric-blue, 100) !important;
            color: map.get(vars.$colors-grey, 100);
            height: 100%;
            z-index: 1;
            .mat-button-toggle-focus-overlay {
                opacity: 0 !important;
            }
        }

        button {
            height: 36px;
            line-height: 36px;
        }

        span {
            padding: 0 vars.$padding-m;
            height: 36px;
            line-height: 36px;
            &.mat-button-toggle-focus-overlay {
                opacity: 0;
            }
        }
    }
    .mat-button-toggle:first-of-type {
        border-bottom-left-radius: vars.$border-radius;
        border-top-left-radius: vars.$border-radius;
        margin-left: 0 !important;
    }
    .mat-button-toggle:last-of-type {
        border-bottom-right-radius: vars.$border-radius;
        border-top-right-radius: vars.$border-radius;
    }
}
