@font-face {
    font-family: 'webtrition';
    font-display: swap;
    font-style: normal;
    font-weight: normal;
    src: url('../icons/webtrition.eot?r84ksu') format('embedded-opentype'),
         url('../icons/webtrition.eot?r84ksu#iefix') format('embedded-opentype'),
         url('../icons/webtrition.woff?r84ksu') format('woff'),
         url('../icons/webtrition.ttf?r84ksu') format('truetype'),
         url('../icons/webtrition.svg?r84ksu#webtrition') format('svg');
}

[class^="i-"], [class*=" i-"] {
    font-family: 'webtrition' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.i-plus:before {
    content: "\e900";
}
.i-fit:before {
    content: "\e901";
}
.i-vegan:before {
    content: "\e902";
}
.i-vegetarian:before {
    content: "\e903";
}
.i-search:before {
    content: "\e904";
}


/***** Filters *****/
.menu-filters {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.menu-filters .filter {
    width: 100%;
    padding: 0px 0px 10px 0px;
    position: relative;
    z-index:1;
}
.menu-filters .filter label {
    font-size: 14px;
    line-height: 16px;
    display: block;
    margin-bottom: 3px;
    color: #4f4f4f;
}
.menu-filters .filter input,
.menu-filters .filter select {
    width: 100%;
    height: 35px;
}
.menu-filters .filter.date-filter {
    width: 48%;
    margin-right:2%;
}
.menu-filters .filter.meal-period {
    width: 48%;
    margin-left: 2%;
}

.menu-filters .search span {
    color: #4f4f4f;
    display: block;
    position: absolute;
    bottom: 18px;
    right: 5px;
    z-index:2;
}


/***** Main Styles *****/

.webtrition-menu {
    width: 100%;
}

.webtrition-menu h2.title {
    background-color: #6f6f6f;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    margin: 0px!important;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
}

.webtrition-menu .menu-item {
    padding: 15px;
    background-color: #fff;
    border: solid 2px #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: ease .25s all;
    position: relative; 
    z-index: 1;
}
.webtrition-menu .meal-period-group.hide,
.webtrition-menu .station-group.hide {
    display: none;
}

.webtrition-menu .station-group h4 {
    margin: 0px 0px 10px 0px;
    cursor: pointer;
    font-size: 20px;
}

.webtrition-menu .station-group h4:hover { 
    color: #4c813f;
}

.webtrition-menu .station-group h4 span {
    width: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-top: -9px;
    font-size: 30px;
    text-align: middle;
}

.webtrition-menu .station-group h4 span.show-items {
    margin-top: -4px;
}

.webtrition-menu .item {
    cursor: pointer;
}

.webtrition-menu .item:hover .name {
    color: #34582b;
}

.webtrition-menu .item:hover .name strong {
    text-decoration: underline;
}

.webtrition-menu .item.remove:hover .name {
    color: #000;
}

.webtrition-menu .menu-item .heading {
    display: flex;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 5px;
    align-items: center;
}

.webtrition-menu .menu-item .heading p {
    margin: 0px;
    font-size: 18px;
}
.webtrition-menu .menu-item .desc {
    font-size: 16px;
    line-height: 22px;
}

.webtrition-menu .menu-item .heading img.icon {
    box-shadow: none;
    border: 0px;
    display: inline;
    width: 25px;
    margin-left: 1%;
}

.add-item {
    width: 20px;
    height: 20px;
    display: block;
    margin-left: auto;
    transition: ease .25s all;
    color: #4c813f;
}

.remove-item {
    width: 20px;
    height: 20px;
    display: block;
    margin-left: auto;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: ease .25s all;
    color: #a50000;
}

.webtrition-menu .menu-item .details {
    display: flex;
}
.webtrition-menu .menu-item .details div {
    text-align: center;
    width: 50%; 
    align-self: center;
    font-size: 16px;
    line-height: 24px;
}
.webtrition-menu .menu-item .details div * {
    font-size: 16px;
    line-height: 24px;
}
.webtrition-menu .menu-item .details div span.label {
    display: block;
    border-bottom: solid 1px #ccc;
}
.webtrition-menu .menu-item .details div span span {
    display: none;
}

.webtrition-menu .menu-item .details .spacer {
    margin: 0px 2%;
    width: 2px;   
}
.webtrition-menu .menu-item .details .facts {
    font-weight: bold;
}
.webtrition-menu .menu-item .details .facts a {
    line-height: 22px;
}

.webtrition-menu .menu-item .allergens {
    font-style: italic;
    font-size: 14px;
    padding-top: 15px;
    display: none;
}

.webtrition-menu .menu-item .facts {
    position: relative;
    z-index:2;
}
.webtrition-menu .menu-item .facts .facts-list {
    display: none;
}


/* Meal List */

.menu-container {
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
    border: solid 1px #ccc;
    margin-bottom: 15px;
    height:100%;
}

.menu-container #icon-list {
    display: none;
}

.menu-container .full-menu {
    max-height: 70vh;
    overflow: auto;
    margin-top: 10px;
}

.menu-container .no-items {
    max-width: 300px;
    text-align: center;
    margin: 20px auto;
    color: #6f6f6f;
}

.meal-items {
    border: solid 2px #ccc;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 15px;
}

.meal-items .title {
    background-color: #ccc;
    padding: 5px 15px;
    font-weight: bold;
    margin: 0px 0px 5px 0px;
}

.meal-items .items {
    padding: 5px 10px 10px 10px;
}

.meal-items .items li {
    line-height: 20px;
    padding: 10px 35px 10px 5px;
    position: relative;
    border: 0;
    margin: 0;
    border-radius: 0;
    border-bottom: solid 1px #ccc;
}

.meal-items .items li:last-of-type {
    border-bottom: 0px;
}

.meal-items .items li .heading {
    margin: 0;
}

.meal-items .items li .heading img.icon {
    display: none;
}

.meal-items .items li .item.remove:hover .name strong {
    text-decoration: none;
}   

.meal-items .items li .name {
    font-size: 20px;
    line-height: 22px;
}

.meal-items .items li .name strong {
    font-weight: 400;
    line-height: 22px;
}

.meal-items .items li .desc,
.meal-items .items li .details {
    display: none;
}

.meal-items .items li .remove-item {
    position: absolute;
    top: 12px;
    right: 0px;
}

/* Totals */

.totals {
    border: solid 2px #ccc;
    background-color: #fff;
    border-radius: 4px;
}

.totals .title {
    background-color: #ccc;
    padding: 5px 15px;
    font-weight: bold;
    margin: 0px 0px 5px 0px;
}

.meal-totals {
    padding: 0px 15px 10px 15px;
}

.meal-totals ul li {
    display: flex;
    justify-content: space-between;
}

.meal-totals ul li .unit {
    width: 100px;
    display: inline-block;
    display: flex;
    justify-content:end;
}

.meal-totals ul li input {
    all: unset;
    border: 0px;
    text-align: right;
    padding: 0px;
    width: 75%;
}
.meal-totals ul li input:focus {
    outline-width: 0;
    outline: none;
}


/***** Nutrition Facts Modal *****/
.modal {
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: .5;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99;
    cursor: pointer;
}

.nutrition-facts {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: solid 2px #000;
    z-index: 100;
    height: 94vh;
    width: 334px;
}

.nutrition-facts .close {
    border-radius: 50%;
    height: 30px;
    width: 30px;
    background-color: #f44336;
    color: #fff;
    font-size: 25px;
    line-height: 25px;
    text-align: center;
    position: absolute;
    z-index: 101;
    top: -15px;
    right: -15px;
    cursor: pointer;
}

.nutrition-facts .name {
    font-weight: bold;
    padding: 15px;
    line-height: 18px;
}

.nutrition-facts .facts-wrapper {
    padding: 15px;
    overflow-y: auto;
}

.nutrition-facts .facts-wrapper h3 {
    font-size: 28px;
    line-height: 28px;
    margin: 0px;
}

.nutrition-facts .serving-size {
    border-bottom: 6px solid #000;
}

.nutrition-facts .aps {
    border-bottom: solid 1px #000;
    font-size: 14px;
    font-weight: bold;
}

.nutrition-facts ul li {
    border-top: solid 1px #000;
    font-size:16px;
}
.nutrition-facts ul ul {
    padding-left: 15px;
}

.nutrition-facts ul.cals {
    border-bottom: solid 4px #000;
}

.nutrition-facts .dvp {
    text-align: right;
    border-bottom: solid 1px #000;
    font-size: 14px;
    font-weight: bold;
}

.nutrition-facts ul li.protein {
    border-bottom: solid 6px #000;
}

.nutrition-facts ul.dv li span.itm {
    display: inline-block;
    width: 68%;
}
.nutrition-facts ul.dv li span.val {
    display: inline-block;
    width: 30%;
    text-align: right;
}

.nutrition-facts .asterisk {
    font-size: 12px;
    line-height: 16px;
    padding: 10px 0px;
    border-top: solid 1px #000;
    border-bottom: solid 2px #000;
}

.nutrition-facts .ingredients {
    font-size: 14px;
    line-height: 18px;
    margin: 10px 0px;
}

.nutrition-facts .note {
    font-size: 14px;
    line-height: 18px;
    margin: 0px 0px 10px 0px;
}

.disclaimer {
    padding: 15px;
    margin: 15px 0px;
    border: solid 2px #ccc;
    background-color: white;
}

.disclaimer * {
    line-height: 18px;
    font-size: 15px;
}
.disclaimer p:last-of-type {
    margin-bottom: 0px;
}

#icon-list {
    border: solid 2px #ccc;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px;
}

#icon-list ul li {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: solid 1px #ccc;
    align-items: center;
}
#icon-list ul li:last-of-type {
    margin: 0px;
    padding: 0px;
    border: 0px;
}

#icon-list span:first-of-type {
    flex-shrink: 0;
}

#icon-list span {
    line-height: 18px;
    font-size: 15px;
}

#icon-list img {
    box-shadow: none;
    border: 0px;
    width: 40px;
    margin-right: 10px;
}

@media screen and ( min-width: 500px ) {
    .menu-filters .filter.date-filter,
    .menu-filters .filter.meal-period {
        width: 32%;
        padding: 0px 0px 10px 0px;
        margin: 0px 2% 0px 0px;
    }

    .menu-filters .filter.search {
        padding-right: 0px;
        width: 32%;
    }

    .webtrition-menu h2.title {
        font-size: 24px;
        line-height: 30px;
    }

    .menu-container .full-menu {
        margin-top: 20px;
    }

    .webtrition-menu .station-group h4 {
        font-size: 24px;
    }

    .webtrition-menu .menu-item .heading p {
        font-size: 22px;
        line-height: 28px;
    }
    .webtrition-menu .menu-item .desc {
        font-size: 18px;
        line-height: 28px;
    }

    .webtrition-menu .menu-item .details div {
        font-size: 18px;
        line-height: 28px;
    }
    .webtrition-menu .menu-item .details div * {
        font-size: 18px;
        line-height: 28px;
    }

    .webtrition-menu .menu-item .details .facts a {
        line-height: 28px;
    }

}

@media screen and ( min-width: 768px ) {

    .calculator {
        display: flex;
        width: 100%;
    }
    .calculator .meal-items {
        width: 49%;
        margin-bottom: 0px;
        margin-right: 1%;
    }
    .calculator .totals {
        width: 49%;
        margin-left: 1%;
    }

    .nutrition-facts {
        width: 375px;
    }

    .webtrition-menu {
        display: flex;
        width: 100%;
    }
    
    .webtrition-menu h2.title {
        font-size: 24px;
    }
    
    .menu-container {
        width: 66%;
        padding: 15px;
        margin-right: 2%;
    }

    .menu-container .full-menu {
        max-height: 90vh;
    }

    .calculator {
        display: block;
        width: 32%;
        position: sticky;
        top: 0;
    }

    .calculator .meal-items {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0px;
    }
    .calculator .totals {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (min-width: 850px) {

    .webtrition-menu .menu-item .details div {
        text-align: left;
        width: auto; 
    }
    .webtrition-menu .menu-item .details div span.label {
        display: inline-block;
        border-bottom: 0px;
        margin-right: 2px;
    }
    .webtrition-menu .menu-item .details div span span {
        display: inline;
    }

    .webtrition-menu .menu-item .details .spacer {
        background-color: #ccc;
    }

}