:root {
    --save-button-bg: #008000;
    --save-button-fc: #ffffff;
    --clear-button-bg: #ffa500;
    --clear-button-fc: #ffffff;
    --close-button-bg: #ff0000;
    --close-button-fc: #ffffff;
    --header-text-color: #ffffff;
    --header-text-align: left;
    --header-bg: #414141;
    --picker-bg: #fff;
    --picker-selection-bg: #0000ff;
    --picker-selection-fc: #fff;
    --picker-max-width: 400px;
    --picker-min-width: 350px;
}

.nj-picker .nj-ampm-container {
    padding: 0 0.5em 0.5em 0.5em;
}

    .nj-picker .nj-ampm-container .nj-ampm-wrapper {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 0.5em;
    }

.nj-overlay {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.nj-picker {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

    .nj-picker .nj-picker-container {
        background: var(--picker-bg);
        max-width: var(--picker-max-width);
        min-width: var(--picker-min-width);
        width: 50%;
        z-index: 10;
        border-radius: 4px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
        overflow: hidden;
        padding-left: 5px;
        padding-right: 5px;
    }

    .nj-picker .nj-section-header {
        margin-bottom: 4px;
        font-weight: bold;
        text-transform: capitalize;
        float: left;
        width: 60px;
        padding-top: 15px;
    }

    .nj-picker .nj-item {
        /* border: 1px solid #ccc; */
        padding: 0.2em;
        text-align: center;
        border-radius: 4px;
    }

        .nj-picker .nj-item:hover {
            cursor: pointer;
            background: rgba(0, 0, 0, 0.1);
        }

        .nj-picker .nj-item[disabled] {
            opacity: 0.5;
            cursor: not-allowed;
            background: inherit !important;
        }

        .nj-picker .nj-item.selected {
            background: #AFE6EA;
            color: #222;
            border-color: #AFE6EA;
        }

    .nj-picker.nj-picker-show {
        display: flex !important;
    }

        .nj-picker.nj-picker-show .nj-picker-container {
            animation: zoomin-picker 0.4s;
        }

@-webkit-keyframes zoomin-picker {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@-moz-keyframes zoomin-picker {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@-ms-keyframes zoomin-picker {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomin-picker {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.nj-picker .nj-action-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: -9.8em;
    border-top: 1px solid #ccc;
}

    .nj-picker .nj-action-container .nj-action-button {
        padding: 0.8em;
        text-align: center;
        color: #fff;
        cursor: pointer;
    }

    .nj-picker .nj-action-container .nj-action-save {
        /* background: var(--save-button-bg); */
        color: blue;
        /* border: 1px solid #ccc; */
        /* margin: 5px 20px; */
    }

    .nj-picker .nj-action-container .nj-action-clear {
        /* background: var(--clear-button-bg); */
        color: #222;
    }

    .nj-picker .nj-action-container .nj-action-close {
        /* background: var(--close-button-bg); */
        color: #222;
    }

.nj-picker .nj-header-container {
    padding: 0.8em;
    background: var(--header-bg);
    color: var(--header-text-color);
    text-align: var(--header-text-alig);
}

.nj-picker .nj-hours-container {
    padding: 0.5em;
    margin: 10px;
}

    .nj-picker .nj-hours-container .nj-hours-wrapper {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-gap: 0.2em;
        width: calc(100% - 60px);
        /* float: right; */
        /* clear: both; */
    }

.nj-picker .nj-minutes-container {
    padding: 0 0.5em 0.5em 0.5em;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

    .nj-picker .nj-minutes-container .nj-minutes-wrapper {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-gap: 0.2em;
        width: calc(100% - 60px);
    }

.nj-minutes-container .nj-section-header {
    padding-top: 0;
}

.nj-picker .nj-custom-container {
    padding: 0 0.5em 0.5em 0.5em;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

    .nj-picker .nj-custom-container .nj-custom-wrapper {
        display: grid;
        /*grid-template-columns: repeat(12, 1fr);
        grid-gap: 0.2em;
        width: calc(100% - 60px);*/
    }

.nj-custom-container .nj-section-header {
    padding-top: 10px;
}

/* Fix for mobile*/
@media only screen and (max-width: 768px) {
    .nj-picker .nj-section-header {
        width: 100%;
        padding-top: 0;
        text-align: center;
    }

    nj-picker .nj-hours-container {
        margin: auto;
    }

    .nj-picker .nj-minutes-container {
        padding-top: 10px;
    }

    .nj-picker .nj-hours-container .nj-hours-wrapper {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 0.3em;
        width: 100%;
    }

    .nj-picker .nj-minutes-container .nj-minutes-wrapper {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 0.3em;
        width: 100%;
    }
}
