div[data-drupal-messages] {
    position: absolute;
    background-color: transparent;
    z-index: 1;
}

.modal-open {
    overflow: hidden;
}

.recipes-wrapper .row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

.recipes-wrapper .col-4 {
    width: calc(100%/4 - 30px);
    margin: 0 15px 15px 15px;
}

.recipes-wrapper .col-3 {
    padding: 15px;
    width: calc(100%/3 - 30px);
    margin: 0 15px 15px 15px;
}

.recipes-wrapper .col-2 {
    padding: 15px;
    width: calc(100%/2 - 30px);
    margin: 0 15px 15px 15px;
}

.node--type-recipe .layout--oneplusfourgrid-section {
    margin-bottom: 2.37rem;
}

.block-views-blockrecipes-block-1 {
    margin-top: 2.37rem;
}

html {
    font-size: 14px;
}

body {
    background-image: url(../images/icons_bg.png);
}

.recipes-wrapper>form {
    margin-bottom: 1.5rem;
}

.recipes-wrapper #edit-filters {
    display: flex;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

#edit-active-filters-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#edit-active-filters-sort #edit-active-filters>div {
    display: none;
}

#edit-active-filters-sort #edit-active-filters div {
    display: flex !important;
    align-items: center;
}

#edit-active-filters-sort #edit-active-filters div+div {
    margin-left: 5px;
}

#edit-active-filters-sort #edit-active-filters .tag {
    background-color: #333333;
    padding: 0px 5px;
    color: white !important;
    margin-left: 5px;
    cursor: pointer;
}

#edit-active-filters-sort #edit-active-filters .tag span:first-child {
    margin: 0 5px;
}

#edit-active-filters-sort #edit-active-filters .tag:hover span:first-child {
    color: #da3c13;
}


#edit-active-filters-sort #edit-active-filters label,
#edit-active-filters-sort #edit-right .form-item-sort>label {
    font-size: 14px;
    text-transform: uppercase;
    color: #da3c13;
    padding-right: 5px;
    white-space: nowrap;
}

#edit-active-filters-sort #edit-right .form-item-sort>select {
    background-color: transparent;
    border: 0;
    color: unset;
}

#edit-active-filters-sort .form-item-sort {
    display: flex;
    margin: 0;
    align-items: center;
}

.recipes-wrapper .search-input {
    position: relative;
    width: 100%;
}

.recipes-wrapper .search-input i {
    position: absolute;
    padding: 24px 26px;
    color: #da3c13;
    opacity: .5;
}

.recipes-wrapper .search-input:hover i {
    opacity: 1;
}

.recipes-wrapper .search-input .form-type-textfield {
    width: 100%;
    margin: 0;
}

.recipes-wrapper .search-input .form-text {
    outline: none !important;
    padding: 20px;
    margin: 0;
    background-position: calc(100% - .8rem) center;
    border: 1px solid;
    width: 100%;
}

.recipes-wrapper .search-input .progress-delay {
    height: 2px;
    position: absolute;
    background-color: #da3c13;
    top: 1px;
    width: 1px;
    left: 1px;
    opacity: 0;
}

.recipes-wrapper .search-input .progress-delay.active {
    opacity: .5;
    width: calc(100% - 2px);
    transition: width .8s;
}

.recipes-wrapper .search-input .results-found-content {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 1;
    display: none;
    z-index: 2;
}

.recipes-wrapper .search-input .results-found-content.active {
    display: block;
}

.recipes-wrapper .search-input .results-found-content>* {
    display: flex;
    padding: 5px 10px !important;
    text-decoration: none;
    color: #888;
    background-color: white !important;
    border: 1px solid #767775;
    border-top: 0;
    font-size: 14px;
    position: relative;
    line-height: normal;
    cursor: pointer;
}

.recipes-wrapper .search-input .results-found-content>* span {
    color: #da3c13;
    padding-right: .8rem;
}

.recipes-wrapper .search-input .results-found-content>*:hover:before {
    position: absolute;
    content: "";
    background-color: #da3c13 !important;
    opacity: .1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.recipes-wrapper #edit-more-filters-btn {
    background-color: #da3c13;
    cursor: pointer;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipes-wrapper #edit-more-filters-modal {
    display: none;
}

.recipes-wrapper #edit-more-filters-modal.active {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.recipes-wrapper #edit-more-filters-modal .wrapper {
    background-color: white;
    width: 590px;
    max-width: calc(100% - 30px);
    position: relative;
    margin: auto;
    padding: 1rem 2rem;
    max-height: 80%;
    overflow-y: scroll;
}

.recipes-wrapper #edit-more-filters-modal .wrapper fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.recipes-wrapper #edit-more-filters-modal .wrapper fieldset legend {
    font-size: 20px;
}

.recipes-wrapper .results-container {
    margin-bottom: 30px;
}

.recipes-wrapper .results-container .recipe {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 30px;
}

.recipes-wrapper .results-container .recipe>div {
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipes-wrapper .results-container .recipe a {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
    opacity: 0;
}

.recipes-wrapper .results-container .recipe .field--name-field-imagem {
    line-height: 0;
}

.recipes-wrapper .results-container .recipe .field--name-field-imagem img {
    width: 100%;
}

.recipes-wrapper .results-container .recipe .field--name-title {
    padding: 15px 15px 0 15px;
    font-size: 20px;
    font-family: 'Source Sans 3';
    color: initial;
    flex-grow: 1;
}

.recipes-wrapper .results-container .recipe .inner-wrapper {
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.recipes-wrapper .results-container .recipe .inner-wrapper * {
    color: #767775;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.recipes-wrapper .results-container .recipe .field--name-field-preparation-time:before {
    content: "";
    background-image: url(../images/svg/knife.svg);
    background-position: center;
    background-size: cover;
    width: 20px;
    height: 100%;
    display: inline-block;
    margin-right: 5px;
}

.recipes-wrapper .results-container .recipe .field--name-field-difficulty:before {
    content: "";
    background-image: url(../images/svg/difficulty.svg);
    background-position: center;
    background-size: cover;
    width: 20px;
    height: 100%;
    display: inline-block;
    margin-right: 5px;
}

#block-ementasemanal {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    background-color: #da3c13;
}

#block-ementasemanal .container>div {
    display: flex;
    justify-content: space-around;
}

#block-ementasemanal h2 {
    text-align: center;
    color: white;
    padding-top: 30px;
}

#block-ementasemanal h3 {
    margin-bottom: 0;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
}

#block-ementasemanal .ementa-semana {
    margin-bottom: 30px
}

#block-ementasemanal .ementa-semana>div {
    display: flex;
    flex-direction: row;
}

#block-ementasemanal .ementa-semana>div span {
    margin-right: 5px;
    width: 68px;
    font-weight: normal !important;
    text-align: right;
    color: rgba(255, 255, 255, .5);
}

#block-ementasemanal a {
    color: white;
    text-decoration: none;
}

#block-ementasemanal a:hover {
    text-decoration: underline;
    background-color: transparent;
}

#block-publicidade {
    padding: 0;
}

#block-publicidade a img {
    width: 100%;
}

/* Small */
@media screen and (max-width: 30rem) {
    #block-ementasemanal .container>div {
        padding: 0 15px;
    }

    #block-ementasemanal .container>div>div:not(:nth-child(2)) {
        display: none;
    }
}

@media (min-width: 768px) {
    .recipes-wrapper #edit-more-filters-btn {
        width: 140px;
    }

    .recipes-wrapper .search-input .form-text {
        padding-left: 64px;
    }
}