/**
 * Estilos del buscador AJAX.
 *
 * @package Custom_Blog_Templates
 */

.cbt-blog-search {
    width: 450px;
    position: relative;
    top: 42%;
    left: 20%;
    transform: translate(-45%, -60%);
}

.cbt-blog-search__field {
    position: relative;
    width: 100%;
}

.cbt-blog-search__input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 16px;
    box-sizing: border-box;

    border: 1px solid #e5e5e5;
    border-radius: 22px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 14px;
    line-height: 1;

    outline: none;
}

.cbt-blog-search__input::placeholder {
    color: #888;
}

.cbt-blog-search__input:focus {
    border-color: #d5d5d5;
}

.cbt-blog-search__button {
    position: absolute;
    top: 50%;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    padding: 0;
    margin: 0;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    cursor: pointer;
}

.cbt-blog-search__icon {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    pointer-events: none;
}

.cbt-posts__grid {
    transition: opacity 0.15s ease;
}

@media (max-width: 767px) {
    .cbt-blog-search {
        width: 220px;
        left: 20%;
        top: 60%;
        transform: translate(-20%, -40%);
    }
}