body {
    -webkit-font-smoothing: antialiased; /* Improves font rendering on macOS */
    -moz-osx-font-smoothing: grayscale;  /* For Firefox on macOS */
}

.wl-container {
    padding: 0 1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width:1568px;
}

.wl-banner-area {
    margin-top: 60px;
}

/* DESKTOP AND TABLET */
.wl-banner-area-desktop {
    max-width:1560px;
    height:112px;
    background-color:#33637E;
    border-radius: 0 0 16px 16px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
}

.wl-banner-area-pb-title {
    color: #FFFFFF;
    font-family: 'Barlow Condensed',
    sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 48px;
}

.wl-banner-area-macro {
    color: #FFFFFF;
    font-family: 'Barlow';
}

.wl-banner-area-macro-title {
    width: 100px;
    height: 29px;
    line-height: 28.8px;
    text-align: center;
    font-size:24px;
}

.wl-banner-area-macro-separator {
    width: 100px;
    font-weight: 500;
    color: #00B6B6;
    height: 19px;
    line-height: 19.2px;
    padding-top: 5px;
}

.wl-meal-type-label {
    width: fit-content;
    max-width: 90px;
    padding: 4px 4px 3px 4px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.wl-meal-type-label-breakfast {
    background-color: #CBAB00 !important;
    color: white !important;
}

.wl-meal-type-label-meal {
    background-color: #C465A0 !important;
    color: white !important;
}

.wl-meal-type-label-snack {
    background-color: #6E97FF !important;
    color: white !important;
}

.meal-card-desktop {
    height: auto !important;
}

.meal-card-desktop .meal-primary-overlay .mpc-overlay-ul {
    padding: 0 !important;
}

.meal-card-desktop .meal-content .meal-image .meal-primary-content.meal-primary-overlay {
    padding: 0 10px !important;
}

.wl-day-div {
    height: 32px;
    color: #004D4D;
    font-family: 'Barlow';
    font-size: 24px;
    margin-right: 15px;
    margin-left: 3px;
    line-height: 32px;
}

.wl-days-div {
    border-radius:8px;
    background-color:#ADE4E1;
    height:32px;
    width:420px;
    color:#004D4D;
    font-family: 'Barlow';
    font-size: 20px;
}

.wl-days-div-separator {
    color:#00B6B6;
    margin-left: 16px;
    margin-right: 16px;
    font-weight: 400 !important;
    font-family: 'Barlow';
}

.wl-days-mobile-div {
    position: relative;
    z-index: 2;
    border-radius:8px;
    background-color:#00B6B6;
    height:35px;
    /* max-width: 394px; */
    min-width: 190px;
    color:#FFFFFF;
    font-size: 16px;
    font-family:'Barlow';
}

.wl-days-mobile-div-separator {
    margin-left: 16px;
    margin-right: 16px;
}

.macro-identifier {
    font-weight: 400;
}

.wl-btn-add-to-cart {
    font-family: 'Barlow Condensed';
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
}

.wl-btn-add-to-cart-price {
    font-weight: 700;
    font-size: 16px;
    line-height: 19.2px;
}

.wl-btn-add-to-cart-discount {
    margin-right: 8px;
    font-size: 14px;
    color: #D8D9DA;
    text-decoration: line-through;
    line-height: 16.8px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .meal-card-desktop .meal-swap-btn {
        left: 0 !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
    }

    .swap-meal-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .swap-back-div a {
        width: 100% !important;
        text-align: left !important;
    }
}


@media (min-width: 768px) and (max-width: 1920px) {
    .scrollable-horizontal {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        cursor: grab; /* Change the cursor to indicate drag functionality */
    }
    
    .scrollable-horizontal.active {
        cursor: grabbing; /* Change the cursor while dragging */
    }
    
    .scrollable-horizontal::-webkit-scrollbar {
        background-color: #b9b9b9;
        height: 5px;
        border-radius: 25px;
    }

    .scrollable-horizontal::-webkit-scrollbar-thumb {
        background-color: #00b5b5;
        border-radius: 25px;
    }

    .scrollable-horizontal > div {
        display: inline-block;
        vertical-align: top;
        white-space: normal; /* Reset white-space for child elements */
        user-select: none;
    }
}

@media (width: 768px) and (height: 1024px) {
    .meal-card-swap {
        width: 240px !important;
    }

    .meal-card-swap .meal-content-swap {
        width: 240px !important;
    }

    .cgv2 .meal-wrapper .meal-image-swap {
        width: 240px !important;
    }
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

@media (min-width: 320px) and (max-width: 767px) {
    .meal-card-desktop {
        height: fit-content !important;
    }

    .meal-card-desktop .meal-content .meal-primary-content {
        padding: 0 10px 8px !important;
    }

    .meal-primary-overlay .mpc-wrapper-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        display: grid !important;
        flex-direction: column;
        gap: 10px;
        height: 100%;
        justify-content: space-around;
        width: 193px;
        padding: 2px 8px;
    }

    .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul li {
        font-size: 10px !important;
        margin-right: 6px;
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        max-width: 42px;
        height: 14px;
        color: #595B61;
    }

    .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul li.calorie-macro-list {
        min-width: 42px !important;
        max-width: 42px !important;
    }

    .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul li .label-value {
        font-size: 12px !important;
    }

    .cgv2 .meal-wrapper .meal-content {
        width: 100% !important;
        height: fit-content !important;
    }

    .meal-card-desktop .meal-content .header-content {
        padding: 0;
        margin-bottom: 2px;
        height: auto;
    }

    .meal-swap-btn {
        display: flex;
        left: 0 !important;
        width: 95% !important;
        height: 41px !important;
        margin-bottom: 10px !important;
        font-size: 20px;
    }

    .meal-swap-btn:hover {
        font-family: Montserrat Bold;
        font-size: 14px;
        background-color: #FFE0CB;
        color: #000;
        width: 95% !important;
    }

    .meal-card-desktop .meal-swap-btn, .order-quantity-wrapper {
        position: relative;
        left: 0 !important;
    }

    .meal-swap-btn .meal-swap-btn-with-add-text-mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 48px;
        margin-bottom: 1px !important;
        left: 0 !important;
    }

    #meal_swap_img_container {
        width: 193px !important;
    }

    .meal-swap-container {
        width: 100% !important;
    }

    .meal-card-desktop .meal-content .icon-counter {
        font-size: 12.5px;
    }
}

.swap-back-div > a {
    font-size: 16px !important;
    font-weight: bold !important;
}

.select-new-meal {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Gotham' sans-serif;
    color: #00B6B6;
}

@media (min-width: 320px) and (max-width: 360px) {
    .d-xs-none {
        display: none !important;
    }

    .d-xs-block {
        display: block !important;
    }
}

@media (min-width: 375px) and (max-width: 767px) {
    .d-custom-sm-none {
        display: none !important;
    }

    .d-custom-sm-block {
        display: block !important;
    }

    .meal-card-desktop .meal-price-content {
        position: relative;
        margin-left: auto;
        margin-right: 10px;
        bottom: 0;
        right: 0;
        left: 0;
    }

    .checkout-col-sm-wrapper {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .checkout-col-sm-wrapper .checkout-btn {
        max-width: 100% !important;
    }

    .sticky-add-to-cart {
        position: sticky !important;
        padding: 11px 12px 11px 12px;
    }

    .sticky-add-to-cart .cart-icon {
        padding-top: 0px !important;
        font-size: 24px !important;
    }

    .swap-back-div a {
        width: 100% !important;
        text-align: left !important;
    }

    .meal-swap-btn {
        font-size: 14px;
        font-weight: 700;
    }

    .wl-container {
        padding: 0 0.5rem;
    }
}

.mobile-day-picker {
    position: relative;
    z-index: 1;
    margin-bottom: -6px;
    /* max-width: 394px; */
    min-width: 190px;
}

.mobile-day-picker-per-day {
    width: 100px;
    height: 45px;
    border-radius: 8px 8px 0px 0px;
    color: #5BCAC6;
    background-color: #D6F1F0;
    font-size: 12px;
    padding: 3px 8px 8px 8px;
    font-weight: 700;
}

.mobile-day-picker-active-day {
    background-color: #00B6B6 !important;
    color: #FFFFFF !important;
}

#back-mobile {
    display: none;
}
#back-desktop {
    display: block;
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .meal-card-desktop {
        height: auto !important;
    }
}

@media (width: 820px) and (height: 1180px) {
    .meal-card-swap {
        width: 253px !important;
    }

    .meal-card-swap .meal-content-swap {
        width: 253px !important;
    }

    .cgv2 .meal-wrapper .meal-image-swap {
        width: 253px !important;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .meal-card-swap .meal-content-swap .meal-primary-overlay .mpc-overlay-ul li {
        min-width: 58px !important;
    }
}

.size-375 .wl-days-mobile-div .justify-content-center {
    gap: 5px !important;
}

.size-375 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 15px !important;
}

.size-414 .wl-days-mobile-div .justify-content-center {
    gap: 10px !important;
}

.size-414 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 20px !important;
}

.size-390 .wl-days-mobile-div .justify-content-center {
    gap: 5px !important;
}

.size-390 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 15px !important;
}

.size-430 .wl-days-mobile-div .justify-content-center {
    gap: 15px !important;
}

.size-430 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 25px !important;
}

.size-412 .wl-days-mobile-div .justify-content-center {
    gap: 15px !important;
}

.size-412 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 20px !important;
}

.size-360 .wl-days-mobile-div .justify-content-center {
    gap: 2px !important;
}

.size-360 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 10px !important;
}

.size-360 .w-100.wl-days-mobile-div {
    width: 102.5% !important;
}

.size-375 .wl-title {
    gap: 20px !important;
    font-size: 14px;
}

.size-414 .wl-title {
    gap: 30px !important;
    font-size: 16px;
}

.size-390 .wl-title {
    gap: 35px !important;
    font-size: 14px;
}

.size-430 .wl-title {
    gap: 45px !important;
    font-size: 16px;
}

.size-412 .wl-title {
    gap: 45px !important;
    font-size: 15px;
}

.size-360 .wl-title {
    gap: 8px !important;
    font-size: 14px;
}

.size-344 .wl-title {
    gap: 8px !important;
    font-size: 13px;
}

.size-344 .wl-days-mobile-div .justify-content-center {
    gap: 0px !important;
}

.size-344 .wl-days-mobile-div .justify-content-center .wl-macros {
    gap: 10px !important;
}

.size-344 .mobile-day-picker-per-day {
    width: 39.8px !important;
}

.wl-container .meal-card-desktop .meal-primary-content {
    position: relative;
    bottom: unset;
}

.wl-container .meal-card-desktop .meal-swap-btn, .meal-card-desktop .meal-content .meal-swap-btn {
    width: 90% !important;
    max-width: unset;
    width: 90%;
    font-size: 14px !important;
    position: unset;
}

/* Media Query Updates - 24-10-21 */
@media (min-width: 768px) and (max-width: 1023px) {
    .swap-meal-wrapper .meal-card-desktop {
        margin-right: unset;
        padding-right: unset;
    }

    .cgv2 .swap-meal-wrapper .meal-content {
        width: 260px !important;
    }

    .cgv2 .swap-meal-wrapper .meal-image {
        width: 100% !important;
    }

    .meal-card-swap .meal-content-swap .meal-primary-overlay .mpc-overlay-ul li {
        min-width: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 820px) {
    .cgv2 .swap-meal-wrapper .meal-content {
        width: 230px !important;
    }
}

@media (max-width: 767px) {
    #back-to-pb-recom {
        margin-left: 0 !important;
    }
    .wl-container {
        padding: 0 10px;
    }

    .meal-card-desktop {
        margin-right: unset;
        height: fit-content !important;
        margin-bottom: 16px !important;
    }

    .wl-days-mobile-div {
        padding-left: 16px;
    }

    .wl-meal-type-label {
        font-size: 12px;
    }

    .wl-container .meal-card-desktop .meal-content {
        width: 100% !important;
        height: fit-content !important;
    }

    .meal-card-desktop .meal-content .header-content .meal-title {
        font-size: 16px;
    }

    .meal-card-desktop .meal-content .header-content .meal-title-split {
        font-size: 12px !important;
    }

    .tooltip img {
        width: 193px;
    }

    .wl-container .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul {
        padding: 0 !important;
    }

    .wl-container .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul li {
        min-width: 50px;
        max-width: 50px;
        margin-right: -5px !important;
    }

    .wl-container .meal-card-desktop .meal-primary-overlay .mpc-overlay-ul li span{
        font-size: 12px !important;
    }

    .wl-container .meal-card-desktop .meal-swap-btn, .meal-card-desktop .meal-content .meal-swap-btn {
        max-width: unset;
        width: 90%;
        font-size: 14px !important;
        position: unset;
    }
    
    .meal-swap-btn-additional-text {
        font-size: 10px !important;
    }

    .meal-selection-page .meal-swap-container {
        padding: unset !important;
    }

    .meal-selection-page .pr-pl-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (width: 540px) {
    .wl-days-mobile-div {
        padding-right: 16px;
    }

    .wl-days-mobile-div .wl-days-mobile-macro {
        display: flex;
        justify-content: space-between;
    }

    .wl-days-mobile-div .wl-days-mobile-macro span {
        margin-right: 67px !important;
    }

    .wl-days-mobile-div .wl-days-mobile-macro > span:last-child {
        margin-right: unset !important;
    }
}

@media (max-width: 430px) {
    #back-mobile {
        display: block;
    }
    #back-desktop {
        display: none;
    }
    .filter-group {
        margin-top: 10px !important;
    }
}

@media (max-width: 375px) {
    .tooltip img {
        width: 178px !important;
    }

    #meal_swap_img_container {
        width: 178px !important;
    }

    .meal-card-desktop .meal-content .header-content .meal-title {
        font-size: 14px;
    }

    .meal-primary-overlay .mpc-wrapper-overlay {
        padding-left: 3.5px !important;
    }

    .meal-primary-content {
        padding: unset;
    }
}

@media (max-width: 389px) {
    .wl-days-mobile-div {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .meal-swap-btn {
        margin-bottom: 6px !important;
    }
}

@media (max-width: 320px) {
    .wl-container {
        padding: unset !important;
    }

    .sticky-add-to-cart .checkout-btn {
        max-width: 100% !important;
    }
}

.modal-view-meal-meta .meal-image-cover img {
    width: 100% !important;
}

@media (max-width: 820px) {
    .modal-view-meal-meta {
        top: 70px;
    }

    .custom-modal-close-button {
        right: 0 !important;
        top: 0 !important;
    }

    .custom-modal-close-button a:before, .custom-modal-close-button a:after {
        height: 20px !important;
    }
}


.select2-results__option {
    align-items: center;
    height: 40px;
    padding: 10px 20px 10px 16px;
    gap: 12px;
    font-family: Barlow;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}
.select2-results {
    box-shadow: 0 4px 4px 0 #00000040;
    border-radius: 8px !important;
}
.select2-dropdown {
    border: none !important;
}
.select2-results__options {
    border-radius: 8px !important;
}
.select2-selection--single {
    height: 100% !important;
}

#select2-meal_pref_select-results > li {
    height: 100% !important;
}

/* Remove background from the dropdown options */
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: transparent !important;
    color: inherit !important;
}

/* Optional: Remove hover effect too */
.select2-container--default .select2-results__option--highlighted {
    background-color: transparent !important;
    color: inherit !important;
}

.checkbox-wrapper {
    display: flex;
    align-items: center; /* Aligns checkbox and text */
    gap: 8px; /* Adds space between checkbox and text */
}
.select2-radio {
    margin-right: 2px;
    font-family: Barlow;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #344054;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
    right: 10px;
}

/* Optional: Make scrollbar smaller */
#select-div::-webkit-scrollbar {
    display: none;
}

.select-container {
    gap: 12px;
}
.select-container .custom-multi-select {
    width: 163px;
}
.select-container #meal_pref_select {
    width: 198px;
}
.select-container #breakfast_multi_select {
    width: 175px;
}
.select-container .reset-filter {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #FF6A21;
    cursor: pointer;
}

.select-container #apply-filter {
    width: 113px;
    height: 48px;
    background-color: #FF6A21;
    box-shadow: 0 4px 4px 0 #0000001A;
    font-family: Barlow Condensed;
    font-weight: 800;
    font-style: italic;
    font-size: 20px;
    line-height: 100%;
    color: white;
    border-radius: 8px;
    border: none;
    outline: none;
    cursor: pointer;
}

.select2-container {
    height: 48px;
}
.select2-container .select2-search--inline .select2-search__field {
    margin-top: unset !important;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    height: 48px;
    border: none;
}
.select2-container--default .select2-selection--single {
    height: 48px;
    background-color: #EDEDED;
    border: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 14px 16px;
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    color: #595B61;
    height: 48px;
}
.select2-dropdown--below {
    width: 240px !important;
}
.select2-radio {
    accent-color: teal;
}
.select2-results__option[aria-disabled="true"] {
    pointer-events: none; /* Prevent clicks */
    background-color: #EDEDED !important; /* Light gray background */
}

#back-to-pb-recom {
    font-family: Barlow Condensed;
    font-weight: 700;
    font-style: italic;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--typography-low, #85878B);
    margin-left: 10px;
}

.personalised-plan {
    width: 350px;
    min-height: 48px;
    gap: 8px;
    padding-top: 13px;
}

.personalised-plan-btn {
    padding: 13px 16px;
    border-radius: 8px;
    border-width: 1px;
    background: var(--teal-100, #D6F1F0);
    border: 1px solid var(--teal-900, #004D4D);
    font-family: Montserrat;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #004D4D;
}
.personalised-plan-btn:hover {
    color: #004D4D; /* Same as default */
    text-decoration: none; /* Prevent underline */
}
