.kgk-schedule {
    margin: 24px 0;
}

.kgk-schedule .main-window {
    max-width: 100%;
    min-height: 105px;
    padding: 30px 20px;
    margin: 0 auto;
    background: linear-gradient(90deg, #17438d 23%, #5e87cd 90%);
    box-sizing: border-box;
}

.kgk-schedule .limitation-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}

.kgk-schedule .form-title {
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.kgk-schedule__field {
    position: relative;
    display: block;
    flex: 1 1 190px;
    min-width: 150px;
    max-width: 100%;
    margin: 0;
}

.kgk-schedule__field span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.kgk-schedule__field input {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 15px;
    border: none;
    border-radius: 20px;
    background-color: #e7e7e7;
    color: #444;
    font-size: 14px;
    line-height: 40px;
    outline: none;
}

.kgk-schedule__field input::placeholder {
    color: #999;
}

.kgk-schedule__field::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 0;
    height: 0;
    margin-top: -2px;
    border-color: #888 transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0;
    pointer-events: none;
}

.kgk-schedule__field:focus-within input {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.kgk-schedule__button,
.kgk-schedule .Search-Button {
    flex: 0 0 auto;
    min-width: 110px;
    height: 40px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.kgk-schedule__button:hover,
.kgk-schedule__button:focus,
.kgk-schedule .Search-Button:hover,
.kgk-schedule .Search-Button:focus {
    animation: schedule-pulse .8s infinite;
    outline: none;
}

.kgk-schedule__button.is-loading {
    opacity: .72;
    pointer-events: none;
}

.kgk-schedule__suggest {
    position: absolute;
    z-index: 20;
    right: 0;
    left: 0;
    top: calc(100% + 4px);
    display: none;
    max-height: 220px;
    overflow: auto;
    border: 1px solid transparent;
    border-radius: 0 0 20px 20px;
    background-color: #e7e7e7;
    box-shadow: 0 12px 24px rgba(22, 34, 51, .18);
}

.kgk-schedule__suggest.is-open {
    display: block;
}

.kgk-schedule__option {
    padding: 8px 14px;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.kgk-schedule__option:hover,
.kgk-schedule__option:focus {
    background-color: #5897fb;
    color: #fff;
    outline: none;
}

.kgk-schedule__option small {
    display: block;
    margin-top: 2px;
    color: inherit;
    opacity: .75;
    font-size: 12px;
}

.kgk-schedule__result {
    margin-top: 25px;
}

.kgk-schedule__notice {
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #eee;
    background: #fff;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.kgk-schedule__notice--empty {
    color: #8a3a3a;
}

.kgk-schedule__table-wrap {
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.kgk-schedule__table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.kgk-schedule__table th,
.kgk-schedule__table td {
    padding: 12px 14px;
    border: 1px solid #e5e8ed;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    vertical-align: top;
}

.kgk-schedule__table th {
    background: #f3f6fa;
    font-weight: 600;
}

@keyframes schedule-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@media screen and (max-width: 1100px) {
    .kgk-schedule .limitation-search {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .kgk-schedule .form-title {
        width: 100%;
    }

    .kgk-schedule__field {
        flex: 1 1 calc(33.333% - 12px);
    }

    .kgk-schedule__button,
    .kgk-schedule .Search-Button {
        min-width: 160px;
    }
}

@media screen and (max-width: 770px) {
    .kgk-schedule {
        margin: 18px 0;
    }

    .kgk-schedule .limitation-search {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 15px;
    }

    .kgk-schedule .main-window,
    .kgk-schedule__notice,
    .kgk-schedule__table-wrap {
        width: 100%;
    }

    .kgk-schedule .main-window {
        min-height: 0;
        padding: 24px 18px;
    }

    .kgk-schedule__field,
    .kgk-schedule__button,
    .kgk-schedule .Search-Button {
        width: 100%;
        min-width: 0;
    }

    .kgk-schedule .form-title {
        font-size: 22px;
        white-space: normal;
        text-align: center;
    }

    .kgk-schedule__field {
        flex: 0 0 auto;
    }

    .kgk-schedule__field input,
    .kgk-schedule__button,
    .kgk-schedule .Search-Button {
        height: 44px;
        line-height: 24px;
    }

    .kgk-schedule__field input {
        line-height: 44px;
    }

    .kgk-schedule__suggest {
        max-height: 42vh;
    }

    .kgk-schedule__notice {
        padding: 16px;
        font-size: 14px;
    }

    .kgk-schedule__table {
        min-width: 680px;
    }

    .kgk-schedule__table th,
    .kgk-schedule__table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media screen and (max-width: 420px) {
    .kgk-schedule .main-window {
        padding: 20px 14px;
    }

    .kgk-schedule .form-title {
        font-size: 20px;
    }

    .kgk-schedule__table {
        min-width: 620px;
    }
}

@media (hover: none) {

    .kgk-schedule__button:hover,
    .kgk-schedule .Search-Button:hover {
        animation: none;
    }
}