/*************
Main Item CSS
 */

#item {
    position: relative;
}

#itemBackHeader {
    display: none;
}

#itemBackHeader svg {
    transform: rotate(180deg);
}

#itemBackTitle {
    font-family: "Eames Century Modern", sans-serif;
    color: var(--primary-green);
    font-size: 16px;
    flex: 1;
    margin: 0;
}

#itemContent {
    display: none;
}

#itemContent.active {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 26px;
    grid-auto-rows: min-content;
    align-items: flex-start;
    max-width: 1200px;
    padding: 40px 20px;
    margin: auto;
}

#itemInfo,
#itemVisual {
    position: relative;
}

@media (max-width: 1000px) {
    #itemBackHeader {
        display: flex;
        align-items: center;
        margin-bottom: 23px;
        gap: 10px;
    }

    #itemContent.active {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    #itemVisual {
        grid-row: 1;
    }

    #itemVisual img {
        border-radius: 0;
    }
}

/********
Item Info
 */

#itemInfo {

}

#itemInfoHeader {
}

#itemInfoHeaderRow {
    display: flex;
    align-items: center;
}

#itemInfoNewBadge img {
    max-width: 100px;
}

#itemInfoName {
    font-family: "Eames Century Modern", sans-serif;
    color: var(--primary-green);
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    margin-top: 0;
    margin-bottom: 4px;
    position: relative;
}

#itemContent.containsAllergens #itemInfoName {
    color: var(--barn-red);
}

#itemContent.containsAllergens #itemInfoName::after {
    white-space: nowrap;
    content: "Contains Allergens";
    background: var(--barn-red);
    color: white;
    font-weight: lighter;
    text-transform: uppercase;
    border-radius: 100vh;
    padding: 5px 10px;
    position: absolute;
    display: block;
    left: 0;
    font-size: 12px;
    font-family: 'Rebrand', sans-serif;
    line-height: 1;
    top: -100%;
    z-index: 1;
}

#itemInfoCalories {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--darkgrey);
}

@media (max-width: 1000px) {
    #itemInfo {
        padding: 10px 20px;
    }

    #itemContent.containsAllergens #itemInfoName::after {
        content: none;
    }

    #itemContent.containsAllergens #itemVisual::after {
        content: "Contains Allergens";
        background: var(--barn-red);
        color: white;
        font-weight: lighter;
        text-transform: uppercase;
        border-radius: 6px 0 10px 0;
        padding: 5px 10px;
        position: absolute;
        display: block;
        font-size: 12px;
        font-family: 'Rebrand', sans-serif;
        line-height: 1;
        top: 0;
        left: 0;
        z-index: 1;
    }
}

#itemInfoRating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#itemInfoStars {
}

#itemInfoStars a {
    font-size: 16px;
    padding-left: 5px;
    display: none;
}

#itemInfoRatingDivider {
    color: var(--darkgrey);
    line-height: 17px;
    order: 2;
    font-size: 12px;
    font-weight: lighter;
}

#itemInfoScore {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--darkgrey);
    order: 3;
    line-height: 17px;
    font-size: 12px;
    font-weight: lighter;
}

#reviewCount {
    text-decoration: underline;
}

#itemInfoFavorite, #itemInfoRemoveFavorite {
    display: none;
}

#itemInfoFavorite.active, #itemInfoRemoveFavorite.active {
    display: flex;
    width: 23px;
    cursor: pointer;
}

#itemInfoFavorite img, #itemInfoRemoveFavorite img {
    width: auto;
    max-width: 23px;
}

#itemInfoFavorite.loading, #itemInfoRemoveFavorite.loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

#itemInfoFavorite.loading::after, #itemInfoRemoveFavorite.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    border: 2px solid var(--primary-green);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading 1s ease infinite;
}

#itemInfoFavorite.loading img, #itemInfoRemoveFavorite.loading img {
    display: none;
}

#itemInfoPrice {
    display: none;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    white-space: nowrap;
}

#itemInfoPrice.active {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

#itemInfoBasePrice {
    color: var(--darkgrey);
}

#itemInfoPlatePass {
    display: none;
}

#itemInfoPlatePass.active {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

#itemInfoPlatePassPrice {
    color: var(--orange);
}

#itemInfoPlatePassLearnMore {
    display: none;
}

#itemInfoPlatePassLearnMore.active {
    display: block;
    width: auto;
    cursor: pointer;
}

#itemInfoPlatePassLearnMore svg {
    fill: var(--darkgrey);
}

#itemInfoPrice.platePassMember #itemInfoBasePrice {
    order: 2;
    text-decoration: line-through;
}

#itemInfoPrice.platePassMember #itemInfoPlatePass span {
    order: 2;
}

#itemInfoCateringBundlePerPersonPrice:empty {
    display: none;
}

#itemInfoCateringBundlePerPersonPrice {
    color: var(--darkgrey);
    font-size: 14px;
}

#itemInfoDescription {
    color: var(--darkgrey);
    font-size: 16px;
    font-weight: lighter;
    max-width: 456px;
    margin-bottom: 28px;
}

#itemInfoMore {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#itemInfoMore button {
    width: auto;
    cursor: pointer;

    color: var(--primary-green);
    font-weight: lighter;
    font-size: 16px;
}

#itemInfoNutritionButton {
    text-decoration: underline;
}

#itemInfoVideo {
    display: inline;
}

#itemInfoVideo span {
    text-decoration: underline;
}

#itemInfoVideo img {
    display: inline;
    vertical-align: middle;
    width: 21px;
    margin-right: 2px;
}

.itemInfoMoreDivider {
    color: var(--primary-green);
    font-weight: lighter;
    font-size: 16px;
}

#itemInfoDietaryPreferences {
    display: none;
}

#itemInfoDietaryPreferences.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Eames Century Modern", sans-serif;
    background: var(--lightgrey);
    color: var(--primary-green);
    font-size: 18px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}

#itemInfoDietaryPreferences img {
    max-width: 32px;
}

#itemInfoQuantity {
    display: none;
}

#itemInfoQuantity.active {
    margin-bottom: 20px;
    display: block;
}

#itemInfoQuantityTitle {
    color: var(--primary-green);
    font-family: "Eames Century Modern", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}

#itemInfoQuantity quantity-input-element {
    border: none;
    max-width: 100px;
    font-family: "Eames Century Modern", sans-serif;
    color: var(--primary-green);
    margin: 0 auto;
}

#itemInfoPickLists {
    display: grid;
    row-gap: 8px;
    margin-bottom: 8px;
}

.itemInfoPickListsContainerChildren{
    padding-left: 30px;
    display: grid;
    row-gap: 8px;
    margin-top: 8px;
}

.itemInfoPickListItemRadioGroupHeader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: var(--lightgrey);
    color: var(--primary-green);
    font-family: "Eames Century Modern", sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    padding: 20px;
    margin-bottom: 15px;
}

.itemInfoPickListItemRadioGroup {
    display: flex;
    gap: 10px;
}

.itemInfoPickListItemRadio {
    flex: 1;
}

.itemInfoPickListItem {
    border-radius: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Eames Century Modern", sans-serif;
    color: var(--primary-green);
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    padding: 19px 12px;
    border: 1px solid var(--primary-green);
    line-height: 1;
}

.itemInfoPickListItem.warning {
    color: var(--barn-red);
    border-color: var(--barn-red);
}

.itemInfoPickListItem.required::after {
    content: "required";
    font-family: "Rebrand", sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.itemInfoPickListItem.complete {
    background: var(--primary-green);
    color: white;
    padding-left: 38px;
    position: relative;
}

.itemInfoPickListItem.complete::before {
    content: "";
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgNDQ4IDUxMiI+PCEtLSEgRm9udCBBd2Vzb21lIEZyZWUgNi40LjAgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UgKENvbW1lcmNpYWwgTGljZW5zZSkgQ29weXJpZ2h0IDIwMjMgRm9udGljb25zLCBJbmMuIC0tPjxzdHlsZT5zdmd7ZmlsbDojZmZmZmZmfTwvc3R5bGU+PHBhdGggZD0iTTQzOC42IDEwNS40YzEyLjUgMTIuNSAxMi41IDMyLjggMCA0NS4zbC0yNTYgMjU2Yy0xMi41IDEyLjUtMzIuOCAxMi41LTQ1LjMgMGwtMTI4LTEyOGMtMTIuNS0xMi41LTEyLjUtMzIuOCAwLTQ1LjNzMzIuOC0xMi41IDQ1LjMgMEwxNjAgMzM4LjcgMzkzLjQgMTA1LjRjMTIuNS0xMi41IDMyLjgtMTIuNSA0NS4zIDB6Ii8+PC9zdmc+");
    background-repeat: no-repeat;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
}


#itemInfoATC {
    font-size: 18px;
    background: var(--orange);
    color: white;
    padding: 25px 20px;
    cursor: pointer;
    display: none;
}

#itemInfoATC:disabled {
    color: var(--lightgrey);
    background: var(--grey);
}

#itemInfoATC.active {
    display: block;
}

#itemInfoStartOrder {
    display: none;
}

#itemInfoStartOrder.active {
    display: flex;
}

@media (max-width: 1000px) {
    #itemInfoDietaryPreferences.active {
        margin-bottom: 0;
    }

    #itemInfoName {
        font-size: 22px;
    }

    #itemInfoStars {
        font-size: 16px;
    }

    #itemInfoDescription {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #itemInfoPrice {
        font-size: 16px;
    }
}

/****************
Visual
 */
#itemVisual.new::after {
    content: "NEW";
    position: absolute;
    background: var(--primary-green);
    color: #FFFFFF;
    font-weight: 400;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    line-height: 1;
    font-size: 12px;
    padding: 5px 10px 5px 20px;
    top: 10px;
    left: 0;
}

#itemVisualImage {
    border-radius: 6px;
}

#itemVisualDietIcons {
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    bottom: 8px;
    left: 10px;
}

.itemVisualDietIcon {
    width: 29px;
    height: 29px;
    border-radius: 100vh;
    border: 1px solid white;
    padding: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 29px;
}

.itemVisualDietIcon.gf {
    background: var(--orange);
    color: var(--darkgrey);
}

.itemVisualDietIcon.df {
    background: #288DC2;
    color: white;
}

.itemVisualDietIcon.vegan {
    background: var(--primary-green);
    color: white;
}

/***************
Pick List Modal
 */

#pickListModal {

}


#pickListModalBody {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 50px;
    max-width: 1200px;
}


.pickListModalItem {
    display: flex;
    gap: 16px;
    position: relative;
}

.pickListModalItem.disable {
    opacity: 0.5;
    pointer-events: none;
}

.pickListModalItemVisual {
    position: relative;
}

.pickListModalItemVisualImg {
    width: 105px;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.pickListModalItemVisualDietIcons {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    bottom: 8px;
    left: 10px;
}

.pickListModalItemVisualDietIcon {
    width: 20px;
    height: 20px;
    border-radius: 100vh;
    border: 1px solid white;
    padding: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.pickListModalItemVisualDietIcon.gf {
    background: var(--orange);
    color: var(--darkgrey);
}

.pickListModalItemVisualDietIcon.df {
    background: #288DC2;
    color: white;
}

.pickListModalItemVisualDietIcon.vegan {
    background: var(--primary-green);
    color: white;
}

.pickListModalItemContent {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pickListModalItemTitle {
    font-family: "Eames Century Modern", sans-serif;
    font-size: 16px;
    color: var(--darkgrey);
    padding-bottom: 14px;
    margin-bottom: auto;
}

.pickListModalItemServingSize {
    font-size: 14px;
    font-family: "Rebrand", sans-serif;
}

.pickListModalItemATC {
    display: none;
}

.pickListModalItemATC.active {
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    width: 100%;
    display: block;
}

.pickListModalItemQuantity {
    display: none;
}

.pickListModalItemQuantity.active {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    border-radius: 4px;
    border: 1px solid var(--mediumgrey);
    max-width: 90px;
    width: 100%;
    overflow: hidden;
}

.pickListModalItemQuantityInput {
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--darkgrey);
    padding: 0;
}

.pickListModalItemQuantityMinus,
.pickListModalItemQuantityPlus {
    color: var(--primary-green);
    background: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    line-height: 0;
    height: 40px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pickListModalItemQuantityMinus:disabled,
.pickListModalItemQuantityPlus:disabled {
    visibility: hidden;
}

.pickListModalItemNutritionButton {
    color: var(--primary-green);
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

#pickListModalSave {
    z-index: 999999999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--primary-green);
    text-align: center;
    padding: 25px 20px;
    font-family: "Eames Century Modern", sans-serif;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    text-transform: none;
}

#pickListModalSave:disabled {
    color: white;
    background: var(--barn-red);
}

@media (max-width: 800px) {
    #pickListModalBody {
        grid-template-columns: 1fr;
        row-gap: 30px;
        max-width: 400px;
    }
}

/************************* Nutrition Modal *****************/
#nutritionModalLoader.active {
    position: absolute;
    background: white;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding-top: 40px;
    left: 0;
}

#nutritionModalBody {
    max-width: 1200px;
}

#nutritionModalContent {
    display: flex;
    gap: 90px;
}

#nutritionItem, #nutritionVisual {
    width: 50%;
}

#nutritionVisual {
    position: relative;
}

#nutritionVisual img {
    border-radius: 6px;
    height: 100%;
    object-fit: cover;
}

#nutritionVisualDietIcons {
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    bottom: 29px;
    left: 10px;
}

#nutritionItemTitle {
    font-family: "Eames Century Modern", sans-serif;
    font-size: 21px;
    font-weight: bold;
    color: var(--darkgrey);
    margin-bottom: 18px;
}

#nutritionItemAllergensTitle, #nutritionItemInfoTitle, #nutritionItemIngredientsTitle {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

#nutritionItemAmounts {
    display: flex;
    gap: 9px;
    margin-bottom: 37px;
}

.nutritionItemAmount {
    background: var(--primary-green);
    padding: 18px;
    min-width: 74px;
    font-size: 21px;
    font-weight: lighter;
    color: white;
    text-align: center;
}

.nutritionItemAmountLabel {
    text-align: center;
    font-size: 12px;
    display: block;
}

#nutritionItemAllergens {
    margin-bottom: 18px;
}

#nutritionItemAllergensItems {
    font-size: 14px;
    font-weight: lighter;
    color: var(--darkgrey);
}

#nutritionItemInfo {
    margin-bottom: 18px;
}

#nutritionItemInfoText {
    font-size: 14px;
    font-weight: lighter;
    color: var(--darkgrey);
}

#nutritionItemIngredientItems {
    font-size: 14px;
    font-weight: lighter;
    color: var(--darkgrey);
}

@media (max-width: 1000px) {
    #nutritionModal .dialogTopBar {
        margin-bottom: 0;
    }

    #nutritionModalBody {
        padding: 0;
    }

    #nutritionModalContent {
        flex-direction: column-reverse;
        gap: 18px;
        padding: 0;
    }

    #nutritionItem, #nutritionVisual {
        width: 100%;
    }

    #nutritionItem {
        padding: 0 20px 100px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #nutritionItemTitle {
        text-align: center;
    }

    #nutritionItemAmounts {
        max-width: 300px;
        margin: 0 auto 43px auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    #nutritionItemInfoText {
        text-align: center;
    }

    #nutritionItemIngredientItems {
        text-align: center;
    }

    #nutritionItemAllergensItems {
        text-align: center;
    }

    #nutritionItemAllergensTitle,
    #nutritionItemInfoTitle,
    #nutritionItemIngredientsTitle {
        text-align: center;
    }

    #nutritionVisual img {
        border-radius: 0;
    }
}

/*************************** How It's Made Modal ********************/

#howItsMadeModalBody {
    max-width: 1000px;
    height: calc(100% - 104px);
}

#howItsMadeModalVideo {
    width: 100%;
    height: 100%;
}

/************************* Plate Pass Not Available Modal *****************/
.platePassNotAvailableTitle {
    text-align: center;
    font-family: "Eames Century Modern", sans-serif;
    color: var(--primary-green);
    font-size: 18px;
    font-weight: bold;
    line-height: 26px;
    margin-bottom: 10px;
}

.platePassNotAvailableText {
    text-align: center;
    margin-bottom: 50px;
}

.platePassNotAvailableText, .platePassNotAvailableList {
    color: var(--darkgrey);
    font-size: 16px;
    line-height: 24px;
}

/************************* Legal *****************/

#legal {
    font-size: 12px;
    font-weight: lighter;
    text-align: center;
    color: var(--darkgrey);
    max-width: 800px;
    padding: 40px 20px;
    margin: auto;
}

/************************* Skeleton *****************/
#itemSkeleton {
    opacity: 0;
    visibility: hidden;
    transition: 0.2s linear;
    position: absolute;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100vh;
    background: white;
    top: 91px;
}

#itemSkeletonInner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    column-gap: 26px;
    align-items: flex-start;
    max-width: 1200px;
    padding: 40px 20px;
    margin: auto;
}

#itemSkeleton.active {
    opacity: 1;
    visibility: visible;
}

#itemSkeletonInfo {
}

#itemSkeletonInfoHeader {
    margin-bottom: 20px;
}

#itemSkeletonInfoDescription {
    margin-bottom: 28px;
}

#itemSkeletonInfoMore {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#itemSkeletonInfoDietaryPreferences {
    margin-bottom: 23px;
    grid-column: 1/3;
}

#itemSkeletonInfoPickLists {
    margin-bottom: 8px;
}

#itemSkeletonVisual {
    height: 378px;
}

@media (max-width: 1000px) {
    #itemSkeleton {
        top: 62px;
    }

    #itemSkeletonInner {
        grid-template-columns: 1fr;
        padding: 0;
    }

    #itemSkeletonInfo {
        order: 2;
    }

    #itemSkeletonVisual {
        height: 619px;
    }

    #itemSkeletonInfo {
        padding: 10px 20px;
    }
}

@media (max-width: 600px) {
    #itemSkeletonVisual {
        height: 235px;
    }
}
