.meal-selection-week {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 1rem;
}

h1, h2 {
    margin-block-end: 2rem!important;
}


@media (max-width: 1366px) {
    .meal-selection-week {
        grid-template-columns:1fr 1fr;
    }
    h1, h2 {
        margin-block-end: 1rem!important;
    }

}
@media (max-width: 1024px) {
    .meal-selection-week {
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px) {
    h1, h2 {
        text-align: center!important;
    }
}


.meal-selection-week .meal-selection-row {
    display: flex;
    gap: 1rem;
    color: white;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #4f5051;
    border-radius: 15px;
    background: rgb(38 42 48);
}

.meal-selection-week .meal-selection-row .meal-image img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 2px solid var(--e-global-color-primary);
    box-shadow: 0 0 0 3px white;
}

.meal-selection-week .meal-selection-row .meal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.meal-selection-week .meal-selection-row .meal-content .meal-date{
    font-weight: 300;
    font-size: 12px;
    padding: 0 0 0.25rem 0;
    border-bottom: 1px solid var(--e-global-color-primary);
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.meal-selection-week .meal-selection-row .meal-content .meal-name {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.25rem 0 0 0;
}
.meal-selection-week .meal-selection-row .meal-content .meal-ingredients {
    font-weight: 200;
    font-size: 12px;
    padding: 0.1rem 0 0 0;
}
.meal-selection-week .meal-selection-row .meal-content .meal-desert {
    font-weight: 200;
    font-size: 12px;
    padding: 0.1rem 0 0 0;
}

.meal-selection-week .meal-selection-row .meal-badge {
    background-color: var(--e-global-color-primary);
    color: #fff;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 22px;
    width: 22px;
    font-size: 10px;
    font-weight: bold;
    left: -8px;
    top: -8px;
}

#meal-selection-form .meal-save {
    width: 100%;
    margin: 1rem 0
}


/**
 * Styles for the checkboxes.
 */


.meal-selection-row input[type=checkbox] {
    display: none;
}
.meal-selection-row input[type=checkbox] + label {
    position: relative;
    display: block;
    border: solid 5px #FFF;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--e-global-color-primary);
    /* Soften the jagged edge */
    cursor: pointer;
    transition: box-shadow 0.4s, border 0.4s;
    height: 72px;
    width: 72px;
    background-size: cover !important;
    background: var(--e-global-color-primary);
}
.meal-selection-row input[type=checkbox]:checked + label {
    border: 5px solid var(--e-global-color-primary);
    box-shadow: 0 0 0 2px #ffffff;
    /* Soften the jagged edge */
    background-blend-mode: darken;
}

.meal-selection-row input[type=checkbox]:disabled + label,
.meal-selection-row input[type=checkbox]:checked:disabled + label {
    opacity: 0.5;
    filter: grayscale(1);
    cursor: default;
}

.meal-selection-row input[type=checkbox]:checked + label::after {
    position: absolute;
    top: 0;
    left: 5px;
    right: 0;
    bottom: 7px;
    font-size: 72px;
    color: #ffffff;
    content: "✔";
    line-height: 1;
    margin: auto;
    text-align: center;
    height: 1em;
}

.meal-selection-headline {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.25rem;
    color: var(--e-global-color-primary);
    font-weight: 700;
    padding: 0 0 1rem 0;
    line-height: 1.5rem;
}
.meal-selection-slim {
    font-weight: 300;
    color: #fff;
}

/**
 * RATING
 */
.meal-rating {
    display: flex;
    flex-direction: column;
}

/**
 * TOAST
 */
.meal-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2e7d32;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 99999;
    font-size: 15px;
}

.meal-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/**
 * Tabs
 */

.meal-tabs {
    display:flex;
    gap:10px;
    margin-bottom:20px;
    flex-wrap: wrap;
}

.meal-tab-btn {
    background:#2c2c2c;
    color:#fff;
    border:0;
    padding:10px 18px;
    cursor:pointer;
    border-radius:6px;
}

.meal-tab-btn.active {
    background:#ea652c;
}

.meal-tab-content {
    display:none;
}

.meal-tab-content.active {
    display:block;
}


.meal-voting-wrap .head-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 0 1rem 0;
}

.meal-voting-wrap .meal-selection-week {
    padding: 1rem 0 0 0;
}

.meal-message {
    background:#fff3cd;
    border:1px solid #ffecb5;
    padding:12px;
    border-radius:6px;
    color: #252A30;
}

.meal-avg-rating {
    min-height:28px;
}

@media (max-width: 767px) {
    .meal-voting-wrap .head-toolbar {
        grid-template-columns: 1fr;
    }

    .meal-voting-wrap .meal-selection-week .meal-selection-row .vote-action,
    .meal-voting-wrap .meal-selection-week .meal-selection-row .meal-content .meal-date,
    .meal-voting-wrap .meal-selection-week .meal-selection-row {
        flex-direction: column;
    }
    .meal-voting-wrap .meal-selection-week .meal-selection-row .meal-content .meal-date .meal-avg-rating {
        order: 0;
    }
    .meal-voting-wrap .meal-selection-week .meal-selection-row .meal-content .meal-date a {
        order: 1;
    }
    .meal-voting-wrap .meal-selection-week .meal-selection-row .image-vote{
        width: 100% !important;
        height: 100px !important;
    }
    .meal-voting-wrap .meal-selection-week .meal-selection-row .meal-content{
        padding: 0!important;
        width: 100%;
    }
}


.meal-edit-row{
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid;
    padding-bottom: 5px;
}

@media (max-width: 767px) {
    .meal-edit-row{
        flex-direction: column;
        align-items: flex-start;
    }
    .meal-edit-actions{
        display: flex;
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
    }
}

.meal-box {
    padding: 1rem;
    border: 1px solid #4f5051;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
}


.acf-icon.small, .acf-icon.-small {
    width: 36px!important;
    height: 36px!important;
    line-height: 0!important;
    font-size: 35px!important;
}
.acf-actions.-hover {
    display: block!important;
}
#acf-new-week {
    color:#252A30;
}
.acf-input-wrap .acf-is-appended {
    height: 40px!important;
}

.acf-input-prepend, .acf-input-append {
    font-size: 18px!important;
    line-height: 40px!important;
    padding: 0 8px!important;
    background: #dd3549!important;
    border: none !important;
    min-height: 40px!important;
    color: #ffffff!important;
    border-radius: 0 !important;
}

.select2-container .select2-selection--single {
    height: 40px!important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #252A30!important;
    line-height: 40px!important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 7px 6px 0 6px!important;
    margin-left: -8px!important;
    margin-top: 4px!important;
}

.select2-container--default .select2-results__option {
    color: #252A30!important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--e-global-color-primary);
    color: #252A30!important;
}
