#fg_search {
    margin: 0 auto 40px auto;
}

@media screen and (min-width: 1204px) {
    #fg_search {
        max-width: 768px;
    }
}

.fg-search-form {
    align-items: center;
    background-color: var(--wp--preset--color--fg-search-panel-bg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px;
}

.fg-search-form p {
    margin: 0;
}

input[type="text"].fg-search-field,
.fg-popup-buttons input[type="time"] {
    background-color: var(--wp--preset--color--fg-search-input-bg);
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--fg-search-input-border);
    border: none;
    color: #fff;
    font-size: 16px;
    height: 50px;
    padding: 15px 20px;
    width: 100%;
}

.fg-popup-buttons input[type="time"] {
    width: auto;
}

.fg-search-field-wrapper {
    margin-bottom: 10px;
    width: 100%;
    position: relative;
}

input[type="button"].fg-search-submit,
input[type="submit"].fg-search-submit {
    background-color: var(--wp--preset--color--fg-search-button-bg);
    border-radius: 0;
    border: 1px solid var(--wp--preset--color--fg-search-button-border);
    color: var(--wp--preset--color--fg-search-button-text);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    height: 50px;
    padding: 0px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s linear, border 0.2s linear;
}

input[type="button"].fg-search-submit:hover,
input[type="submit"].fg-search-submit:hover {
    background-color: var(--wp--preset--color--fg-search-button-hover-bg);
    border: 1px solid var(--wp--preset--color--fg-search-button-hover-border);
    color: var(--wp--preset--color--fg-search-button-hover-text);
}

.fg-search-form input[type="button"].fg-search-submit {
    width: 110px;
}

.fg-suggestions-wrapper {
    position: absolute;
    top: -10px;
    width: 100%;
}

.fg-suggestions {
    background-color: var(--wp--preset--color--fg-search-suggestions-bg);
    border: 1px solid var(--wp--preset--color--fg-search-suggestions-border);
    bottom: 0px;
    color: var(--wp--preset--color--fg-search-suggestions-text);
    list-style-type: none;
    margin: 0px;
    max-height: 245px;
    overflow: auto;
    padding: 0px;
    position: absolute;
    width: 100%;
}

.fg-suggestions li {
    cursor: pointer;
    font-size: 16px;
    overflow: hidden;
    padding: 5px 10px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.fg-suggestions li:hover {
    background-color: var(--wp--preset--color--fg-search-suggestions-hover-bg);
    color: var(--wp--preset--color--fg-search-suggestions-hover-text);
}

.fg-search-text-item {
    color: var(--wp--preset--color--fg-search-panel-text);
    text-transform: uppercase;
}

body.home .container > div > div {
    position: static;
}

.fg-popup-wrapper {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    bottom: 0px;
    display: flex;
    justify-content: center;
    left: 0px;
    position: fixed;
    right: 0px;
    top: 0px;
    z-index: 9999;
}

.fg-popup {
    background: var(--wp--preset--color--fg-search-panel-bg);
    padding: 15px 30px;
}

.fg-popup-buttons {
    align-items: center;
    display: flex;
    justify-content: center;
}

.fg-popup-buttons > div {
    margin: 10px;
}

.fg-popup-buttons > div > input[type="button"].fg-search-submit,
.fg-popup-buttons > div > input[type="submit"].fg-search-submit {
    padding-left: 10px;
    padding-right: 10px;
}

.fg-popup-text {
    color: var(--wp--preset--color--fg-search-panel-text);
    margin-bottom: 10px;
}
input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

@media screen and (min-width: 768px) {
    .fg-search-field-wrapper {
        margin-bottom: 0px;
        width: 50%;
    }

    input[type="text"].fg-search-field,
    .fg-popup-buttons input[type="time"] {
        padding: 10px 20px;
    }
}

.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: block;
    margin: 15px auto;
    position: relative;
    background: #fff;
    box-shadow: -24px 0 #fff, 24px 0 #fff;
    box-sizing: border-box;
    animation: shadowPulse 2s linear infinite;
}

@keyframes shadowPulse {
    33% {
        background: #fff;
        box-shadow: -24px 0 var(--wp--preset--color--fg-search-button-border), 24px 0 #fff;
    }
    66% {
        background: var(--wp--preset--color--fg-search-button-border);
        box-shadow: -24px 0 #fff, 24px 0 #fff;
    }
    100% {
        background: #fff;
        box-shadow: -24px 0 #fff, 24px 0 var(--wp--preset--color--fg-search-button-border);
    }
}
