* {
    box-sizing: border-box;
    outline: none;
}

.pointer {
  cursor: pointer;
}

.clearfix:after {
  visibility: hidden;
  display: block;
  content: "";
  clear: both;
  height: 0;
}

/*** Buttons ***/

.recipe-button__wrapper {
    display: inline-block;
    vertical-align: text-top;
}

  .pagination__wrapper .recipe-button__wrapper {
    margin-top: 30px;
  }

.recipe-button,
.KDModal--recipe-box .recipe-button {
    background: #CB857E;
    color: #fff !important;
    display: inline-block;
    font-family: 'Larsseit-Bold', arial;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 12px 10px 10px 10px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.recipe-button:hover,
.KDModal--recipe-box .recipe-button:hover {
    background: #daa7a2;
    color: #fff;
}

.recipe-button-link,
.KDModal--recipe-box .recipe-button-link {
    color: #000;
    font-family: 'Larsseit-Bold', arial;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 0;
    text-decoration: underline;
    text-transform: uppercase;
}

.recipe-button-link:hover,
.KDModal--recipe-box .recipe-button-link:hover {
    color: #000;
}

.recipe-button-reversed,
.KDModal--recipe-box .recipe-button-reversed {
  background: #9bcca8;
  color: #fff;
}

.recipe__add_icon {
    background: url(../../images/recipe-box/recipe-box-icon.svg) no-repeat 0 0;
    background-position: center center;
    background-size: 24px 15px;
    display: inline-block;
    height: 33px;
    margin: 0 7px 0 0;
    vertical-align: top;
    width: 25px;
}

.added .recipe__add_icon {
    background: url(../../images/recipe-box/checkmark-icon.svg) no-repeat 0 0;
    background-position: center center;
    background-size: 15px 15px;
}

.recipe__print_icon {
    background: url(../../images/recipe-box/print-icon.svg) no-repeat 0 0;
    background-position: center center;
    background-size: 24px 23px;
    display: inline-block;
    height: 30px;
    margin: 0 7px 0 0;
    vertical-align: top;
    width: 25px;
}


/*** Page Specific ***/

.recipe__results-item {
    position: relative;
}

.recipe__results-item-edit, .recipe__results-item-add {
    background-color: #fff;
    background-image: url('../../images/recipe-box/edit-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;

    border: none;
    height: 30px;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px;
    z-index: 30;
}
    .mobileFood.recipe-box .recipe__results-item-edit {
        display: none;
    }

.recipe__results-item-add {
    background-image: url('../../images/recipe-box/recipe-box-icon.svg');
    background-size: 24px 15px;
    background-color: transparent;
}

    .mobileFood .recipe__results-item-add {
        display: none;
    }

.added .recipe__results-item-add {
    background-color: #e3e3e3;
    background-image: url('../../images/recipe-box/checkmark-icon.svg');
    background-size: 15px 15px;
    cursor: text;
}

.recipe__results-item-edit span, .recipe__results-item-add span {
    display: inline-block;
    text-indent: -9999px;
}

.no-recipes.recipe__results-item {
    margin-bottom: 0;
}

.no-recipes .recipe__results-item-title {
    background: none;
    color: #818181;
    display: block;
    font-family: 'Larsseit-Bold', arial;
    font-size: 12px;
    left: 0;
    letter-spacing: 0.1em;
    position: absolute;
    text-transform: uppercase;
    top: 55%;
    width: 100%;
}

.filter__header {
    font-family: "Larsseit", sans-serif;
    font-size: 30px;
    text-transform: none;
}


/*
#all-facets .recipe-button__wrapper {
    margin-right: 13px;
}

#all-facets .recipe-button__wrapper .recipe-button {
}
*/

.general__facet {
    display: block;
    font-family: "Larsseit", sans-serif;
    padding: 12px 8px;
    text-transform: capitalize;
}

.general__facet:hover {
    color: #9BCCA8;
}

.general__facet[data-facet-type="label"] {
    padding-left: 15px;
}

.term__wrapper .general__facet {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn__add-recipe .general__facet {
  text-transform: none;
}


/*
    @media screen and (min-width: 781px) {
        .category {
            margin-right: 13px;
            width: 158px;
        }
    }
*/

.category[data-facet-type="label"] .term__list {
    max-height: 300px;
    overflow-y: auto;
    /*
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    */
}

.category .selection__new-content {
    margin: 0;
    text-align: left;
}

.category .recipe-button-link {
    display: inline-block;
    font-family: "Larsseit", sans-serif;
    font-size: 16px;
    letter-spacing: normal;
    padding: 15px;
    text-transform: none;
}

.term__wrapper {
    border-bottom: 1px solid #e3e3e3;
    margin: 0;
    padding: 0;
}

.term__wrapper:last-child {
    border:none;
}

/*** Modal ***/

.KDModal--recipe-box {
    height: auto;
    padding-left: 130px;
    padding-right: 130px;
    position: absolute;
    top: 33%;
    width: auto;
}

.KDModal--recipe-box-narrow {
    padding-left: 75px;
    padding-right: 75px;
}

/* Modal in mobile
    .mobileFood .KDModal--recipe-box {
        border: none;
        left: 0;
        margin: 0 !important;
        padding: 0;
        top: 0;
        width: 100%;
    }
*/


.recipe__modal {
    background: #fff;
}

.recipe__modal .bottom-spacing {
    margin-bottom: 30px;
}

.recipe__modal-header h2 {
    color: #000;
    font-family: "Larsseit", sans-serif;
    font-size: 30px;
}

.recipe__modal-header h3 {
    color: #000;
    font-family: "Larsseit", sans-serif;
    font-size: 18px;
    font-weight: normal;
    line-height: 26px;
    margin-bottom: 10px;
}


.hide-content {
    display: none;
}



/* modal: rb-modal-edit-recipe, rb-modal-add-internal-recipe */


.rb-template .recipe__modal-info {}

.rb-template .recipe__modal-save {
  line-height: 20px;
}

.rb-template .recipe__modal-actions {
    text-align: left;
}

.rb-template p.instructions,
.rb-template .recipe__modal-actions p {
    color: #818181;
    font-family: 'Larsseit-Bold', arial;
    font-size: 12px;
    text-transform: uppercase;
}

.rb-template p.instructions {
  color: #000;
}

.rb-template .recipe__modal-actions textarea {
    border: 1px solid #e3e3e3;
    display: block;
    height: 130px;
    width: 100%;
}

.rb-template .recipe__modal-actions textarea:focus {
    border-color: #9BCCA8;
}

.rb-template .recipe__modal-link-actions .recipe__modal-edit {
  float: left;
}

.rb-template .recipe__modal-link-actions .recipe__modal-delete {
  float: right;
}

.rb-template .step1 {
    margin-top: 30px;
}

.rb-template .step2 {
    width: 376px;
}

.rb-template .step2 p {
    font-size: 20px;
    line-height: 24px;
    margin: 10px 30px 25px 30px;
}

.rb-template .step2 .recipe__modal-actions .recipe-button-link {
    float: left;
    line-height: 40px;
}

.rb-template .step2 .recipe__modal-actions .recipe-button {
    float: right;
}

/* modal: rb-modal-edit-label */

#rb-edit-label {
    width: 390px /*TODO: temp value*/
}

#rb-add-confirmed-recipe {
  width: 375px /*TODO: arbitrary number */
}

/* modal: rb-modal-bookmarklet */
#rb-modal-bookmarklet {
  width: 470px /*TODO: arbitrary number */
}

#rb-modal-bookmarklet .recipe__modal-header {
  margin: 0 35px;
}

#rb-modal-bookmarklet .recipe__modal-info {
  margin: 0 15px 25px 15px;
}

#rb-modal-bookmarklet .recipe-button {
  display: inline-block;
  line-height: 20px;
}

#rb-modal-bookmarklet .bookmarklet__link {
  padding-left: 75px;
  padding-right: 75px;
}

#rb-modal-bookmarklet .bookmarklet__close {
  padding-left: 65px;
  padding-right: 65px;
}

#rb-modal-bookmarklet .recipe__modal-actions {
  margin-top: 25px;
  text-align: center;
}

/*Modal in mobile
    .mobileFood #rb-edit-label {
        margin: 0 auto;
        width: 80%;
    }
*/


#rb-edit-label .recipe__modal-save .recipe-button {
  display: inline-block;
  line-height: 20px;
  padding-left: 65px;
  padding-right: 65px;
}




/* Dropdown */
.check__box {
    width: 18px;
    height: 18px;
    background-color: #fff;
    float: left;
    margin-top: -2px;
    margin-right: 10px;
    border: 1px solid #B3B3B3;
}

.label-actions {
    float: right;
    margin: 10px 10px 0 0;
    position: relative;
}

.label-actions-sub {
    display: none;
    float: right;
    margin: 10px 10px 0 0;
    position: absolute;
    right: -8px;
    top: -7px;
}

.label-actions-sub .recipe-button {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
}

.save-rename,
.cancel-rename {
    cursor: pointer;
}

.rename,
.remove {
    background-color: transparent;
    cursor: pointer;
    display: none;
    float: right;
    font-size: 16px;
    height: 20px;
    margin-left: 10px;
    text-align: center;
    width: 20px;
    z-index: 10;
}

.rename {
    background-image: url('../../images/recipe-box/edit-icon.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px 18px;
}

.remove {
    margin-top: 3px;
}

.rename span,
.remove span {
    display: inline-block;
    font-size: 5px;
    text-indent: -9999px;
}

li:hover .rename,
li:hover .remove {
    display: inline;
}

.active-option .check__box {
    background-image: url(../../images/icon-checkmark.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px;
}
.selection__option-list {
    height: 172px;
    overflow-y: auto;
    /*
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    */
    text-align: left;
}


/*
@media screen and (max-width: 780px) {
    .openable__content {
        position: fixed;
        top: 50px;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        z-index: 410;
        padding-bottom: 15px;
    }
}
*/
.selection__option-div {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #f2f2f2;
    padding: 0;
    z-index: 9999;
    width: 100%;
}
.selection__option-div:before {
    content: ' ';
    height: 0;
    width: 0;
    position: absolute;
    border: 9px solid transparent;
    border-bottom-color: #f2f2f2;
    margin-left: 162px;
    top: -18px;
}
/*
.selection:last-of-type .term__div {
    left: auto;
    right: -50px;
}
.selection:last-of-type .term__div:before { margin-right: -5px }
*/

.open .selection__option-div { display: block }
.selection {
    margin-bottom: 13px;
    position: relative;
    display: inline-block;
    vertical-align: text-top;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
}
/*
@media screen and (min-width: 781px) {
    .selection {
        margin-right: 13px;
        width: 360px;
    }
}
@media screen and (min-width: 1280px) {
    .selection {
        margin-right: 13px;
        width: 158px;
    }
    .selection:last-of-type { margin-right: -1px }
}
*/
.selection__name {
    font-size: 1em;
    line-height: 40px;
    height: 40px;
    width: 100%;
    padding: 0 0 0 4px;
    background-color: #fff;
    border: 1px solid #f2f2f2;
    color: #333;
    display: inline-block;
    margin-right: 0;
    cursor: pointer;
    text-align: left;
    opacity: 1;
}

.open .selection__name {
    border: 1px solid #9BCCA8;
}

.error .selection__name {
    background: #f6c9c9;
    border: 1px solid #e99595;
}

.selection__name-text {
    font-family: "Larsseit", sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    padding-right: 30px;
    width: 340px;
}

.error .selection__name-text {
    color: #b01f24;
}

.selection__option-list-item {
    border-bottom: 1px solid #e3e3e3;
    display: inline-block;
    line-height: 18px;
    width: 100%;
}

.selection__option-list-item a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
}

.arrow {
    width: 0;
    height: 0;
    position: absolute;
    top: 18px;
    right: 10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #9BCCA8;
    border-bottom: 0;
}

.btn__add-recipe:hover .arrow,
.btn__add-recipe.open .arrow {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    border-bottom: 0;
}

.active-category .selection__name { background-color: #f2f2f2 }

/* Extra content in the Selection dropdown/list */
.selection__new-content {
    margin: 20px;
}
    .mobileFood .filters .selection__new-content {
        display: none;
    }

.selection__new-content input,
.KDModal--recipe-box .selection__new-content input {
    display: inline-block;
}

.selection__new-content input[type="text"] {
    border: 1px solid #e3e3e3;
    font-family: "Larsseit", sans-serif;
    font-size: 16px;
    margin-right: 10px;
    padding: 10px;
    width: 220px;

}

.selection__new-content input[type="text"]:focus {
    border-color: #9BCCA8;
    outline: none;
}

.selection__new-content input[type="submit"] {
    padding-left: 20px;
    padding-right: 20px;
}

/* Selections as a flat list */

.active-edit {
    background-color: #ffffd7;
}

.active-edit .label-actions-sub {
    display: block;
}

/*
.active-edit .rename {
    background-image: url('../../../assets/images/recipe-box/checkmark-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 19px 19px;
}
*/

.selectionFlat .general__facet:hover {
    color: #000;
}

.selectionFlat__option-list {
    height: 300px;
    margin-bottom: 10px;
    overflow-y: auto;
    /*
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    */
    padding-right: 10px;
}
    .mobileFood .selectionFlat__option-list {
        height: auto;
        overflow-y: auto;
    }

.selectionFlat__option-list-item {
    border: 1px solid #e3e3e3;
    display: inline-block;
    line-height: 18px;
    margin-bottom: 15px;
    position: relative;
    text-align: left;
    width: 100%;
}

.selectionFlat__option-list-item input {
    background-color: transparent;
    border: none;
    display: inline-block;
    font-size: 16px;
    line-height: 18px;
    padding: 10px;
    width: 205px;
}

.selectionFlat .selection__new-content {
    border-bottom: 1px solid #e3e3e3;
    margin: 15px 0;
    padding-bottom: 15px;
    text-align: left;
}

.selectionFlat .selection__new-content input[type="text"] {
    width: 289px;
}

/* Form */

.new-label-form {
    position: relative;
}

.error-popup-wrapper {
    display: none;
    left: 0;
    position: absolute;
    top: 47px;
}

.error-popup-wrapper span {
    background: #e99595;
    color: #fff;
    display: inline-block;
    font-family: "Larsseit", sans-serif;
    font-size: 14px;
    padding: 10px;
    position: relative;
    z-index: 100;
}

.error-popup-wrapper span:before {
    border: 9px solid transparent;
    border-bottom-color: #e99595;
    content: "";
    height: 0px;
    margin-left: 15px;
    position: absolute;
    top: -18px;
    width: 0px;
}

.recipe__url-input.error{
    border-color: #f57856;
    content: 'Recipe URL';
}

.recipe-add-url-modal .recipe__url-input {
    font: normal 18px "Larsseit", sans-serif;
    padding: 5px 10px;
    width: 400px;
    text-align: center;
}

.recipe-add-url-modal .recipe-button {
    margin: 10px auto 0 auto;
}

.recipe-wrapper .recipe__top_section_addrb {
    display: none;
}
