#publicRecipes {
    /* min-width: 500px; */
    display: block; /* Show by default */
    width: 100%; /* Ensure the panel takes full width of its container */
    max-width: 100%; /* Prevents it from exceeding the width of its parent */
    box-sizing: border-box; /* Includes padding and border in the element's width */
    padding: 0;
    overflow: visible;
}

#publicRecipes .pr_holder {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    overflow: visible; /* Prevents content from overflowing outside the container */
    
}

#publicRecipes .pr_holder .public-meal {
    margin-bottom: 10px;
    text-align: center;
    max-width: 375px;

    display: inline-block; /* Ensures the size is set by its child content */
    position: relative; /* Allows .public-alerts to be positioned relative to .public-meal */
    width: fit-content; /* Ensure the width adapts to .button_holder */
}

#publicRecipes .pr_holder .public-alerts {
    position: absolute; /* Remove it from the normal flow */
    top: -50px; /* Place it just below the .public-meal */
    left: 0;
    width: 100%; /* Match the width of .public-meal */
    box-sizing: border-box; /* Ensure padding and borders are included in the width */
}


#publicRecipes .pr_holder .public-meal .button_holder {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#publicRecipes .pr_holder #recipes button.meal-btn, 
#publicRecipes .pr_holder #recipes button.public-action-btn {
    background-color: #fff;
    color: #15b5ff;
    border: 1px solid #15b5ff;
    box-shadow: none;
}
#publicRecipes .pr_holder #recipes button.public-meal-btn {
    flex: 1;
    max-width: 99%;
    padding-left: 5px;
    min-width: 216px;
}

#publicRecipes .pr_holder button.public-meal-btn,
#publicRecipes .pr_holder button.upBtn, 
#publicRecipes .pr_holder button.downBtn,
#publicRecipes .pr_holder button.shoppinglists-btn,
#publicRecipes .pr_holder button.create-ingredient, 
#publicRecipes .pr_holder .recipe-header button.save-recipe, 
#publicRecipes .pr_holder input[type="button"], 
#publicRecipes .pr_holder input[type="submit"], 
#publicRecipes .pr_holder .elementor-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #fff;
    color: #15b5ff;
    border: 1px solid #15b5ff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    box-shadow: none;

}

#publicRecipes .pr_holder button.public-meal-btn {
    min-width: 216px;
}

button, input {
    overflow: visible;
}

button.public-meal-btn .custom-checkbox {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 1px solid #15b5ff;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}


#publicRecipes .pr_holder .public-meal-btn {
    display: inline-flex;
    align-items: flex-start;
    width: 99%;
    background-color: #292929;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    border-radius: 15px 0 0 15px !important;
    transition: background-color 0.3s ease-in-out;
    margin: 0;
    line-break: anywhere;
}


#publicRecipes .pr_holder button.public-meal-btn p {
    display: inline-block;
    margin: 0;
    white-space: break-spaces;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: keep-all;
    padding: 0;
    margin: 0;
}



#publicRecipes .pr_holder .public-action-btn {
    vertical-align: middle;
    border-radius: 0 15px 15px 0;
    background-color: #fff;
    border-color: #ff5252;
    color: #ff5252;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;
    box-shadow: none;
}

#publicRecipes .pr_holder .public-action-btn i {
    margin: 4px 5px 0 5px;
}

#publicRecipes .pr_holder .public-meal .button_holder {
    display: flex;
    justify-content: space-between;
    margin: 0;
}



/* MEal List item holder */

#publicRecipes .pr_holder .public-meal ul {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    width: 90%;
}

#publicRecipes .pr_holder .public-meal ul li {
    display: block;
    text-align: left !important;
    background-color: #fff;
    padding: 5px 10px;
    border-left: 1px solid #15b5ff;
    border-right: 1px solid #15b5ff;
    border-bottom: 1px solid #15b5ff;
    border-top: none;
    color: #15b5ff;
}

#publicRecipes .pr_holder .public-meal ul li:last-child {
    border-radius: 0 0 10px 10px;
    
}


#publicRecipes .pr_holder .public-meal ul li [type="checkbox"] {
    padding: 0;
    margin: 0 10px 0 0;
    accent-color: #15b5ff;
    color: #fff;
}


#publicRecipes .pr_holder .public-meal ul li p {
    display: inline-block;
    text-align: left;
    position: relative;
    padding: 10px 15px;
    word-wrap: break-word;
    word-break: break-word;
    color: #15b5ff;
    margin: 0;
    padding: 4px 0;
}




#publicRecipes .pr_holder .ingredentsFooterButtons {
    padding: 0 15px;
    margin-bottom: 20px;
    text-align: left;
}



#publicRecipes .pr_holder .ingredentsFooterButtons button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #292929;
    box-shadow: none;
    font-size: 15px;
}


/* .blueJacket  */
#publicRecipes .pr_holder .blueJacket button.public-meal-btn,
#publicRecipes .pr_holder .blueJacket .public-meal ul li {
    background-color: #15b5ff;
    color: #fff;
}
#publicRecipes .pr_holder .blueJacket .public-action-btn {
    background-color: #1571FF ;
    border-color: #1571FF ;
    color: #fff;
}
#publicRecipes .pr_holder .blueJacket ul li {
    background-color: #e4e4e4;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    color: #333;
}
#publicRecipes .pr_holder .blueJacket ul li p {
    color: #333;
}



/* .navyJacket  */
#publicRecipes .pr_holder .navyJacket button.public-meal-btn {
    border-color: #002366;
}
#publicRecipes .pr_holder .navyJacket button.public-meal-btn,
#publicRecipes .pr_holder .navyJacket .public-meal ul li {
    background-color: #002366;
    color: #fff;
}
#publicRecipes .pr_holder .navyJacket .public-action-btn {
    background-color: #FFD700 ;
    border-color: #FFD700 ;
    color: #fff;
}
#publicRecipes .pr_holder .navyJacket ul li {
    background-color: #eef4ff;
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    color: #333;
}
#publicRecipes .pr_holder .navyJacket ul li p {
    color: #333;
}




/* hide the recipe holder  */
.publicRecipeHolder {
    display: none;
    
}

#copyRecipeInstructions {
    text-align: left;
}