.period {
    position: relative;

    &__btn--default {
        padding: 0;
        border: none;
        background-color: transparent;
        cursor: pointer;
        text-align: left;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
}

.period-control {
    $this: &;
    position: relative;

    &__button {
        position: relative;
        width: 60px;
        font-size: 1rem;
        color: inherit;
        text-align: center;

        &:not(#{$this}__button--disabled) {
            &:focus {

                &:after {
                    content: '';
                    position: absolute;
                    bottom: -8px;
                    left: 0;
                    width: 100%;
                    height: 1px;
                    background-color: deepskyblue;
                }
            }
        }
    }

    &__arrow {
        margin-left: 10px;
        font-size: 12px;
        color: rgba(0, 0, 0, 0.4);
    }
}

.period-selector {
    position: absolute;
    top: calc(50% - 50px);
    right: calc(-50% + -50px);
    max-width: 135px;
    width: 150px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    background-color: #f5f5f5;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
    z-index: 201;

    &__button {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        line-height: 48px;

        &--active {
            color: deepskyblue;
        }

        &:focus {
            background-color: rgb(238, 238, 238);
        }
    }
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 200;
}
