/* Opens with c-search-toggle */
.c-search-overlay {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    background-color: theme('colors.primary.500');
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.c-search__submit {
    color: #fff;
    padding: 0 .75rem;
    transition: all $transition-time;
    letter-spacing: .025em;

    &:hover,
    &:focus {
        color: theme('colors.cta.600');
    }

    .c-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.c-search__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.c-search__form {
    display: flex;
    width: 80%;
    justify-content: space-between;
    padding: 0 0 .75rem;
    border-bottom: 2px solid theme('colors.gray.300');

    @screen lg {
        width: 100%;
    }
}

.c-search__input {
    color: white;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1.25;
    padding-left: .75rem;
    width: 100%;
    opacity: .8;

    &::placeholder {
        color: #fff;
        transition: opacity $transition-time;
    }

    &:focus::placeholder {
        opacity: 0;
    }
}

.c-search__common-terms-headline {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 3rem;
    color: #fff;

    @screen lg {
        margin-top: 4rem;
    }
}

.c-search__keyword-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 40rem;
    width: 90%;
    list-style: none;
    margin-top: 1rem;

    a {
        padding: .625rem 1rem;
        margin: 0 .5rem 1rem;
        border-color: #fff;
    }

    @screen sm {
        width: 80%;
    }
}
