/**
 * MyGroceryPlan Plugin - Custom Styles
 * 
 * This file contains the CSS styles for the MyGroceryPlan WordPress plugin.
 *
 * @package   MyGroceryPlan
 * @version   1.0.0
 * @author    Shawn Pick
 * @license   GPL-2.0+
 * @link      https://yourdomain.com
 * @since     1.0.0
 */




/* Shopping lists */
.mygroceryplan-container {
    display: none;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    flex-wrap: wrap; /* This enables wrapping on smaller screens */
    margin-bottom: 300px;

}

.mygroceryplan-section {
    text-align: left;
}

.recipe-header h4,
.create-new-recipe h4,
.mygroceryplan-section h4 {
    display: inline-block !important;
}

.mygroceryplan-section .addList-btn {
    display: inline-block !important;
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    font-size: 32px;
    color: #333 ;
    border: none !important;
    box-shadow: none;
}

/* .mygroceryplan-createList {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);

    background-color: #ddd;
    padding: 10px 15px;
    border-radius: 10px;

} */
/* The div holing the input/create button */
.create-list-container {
    display: flex; /* Use Flexbox to align elements horizontally */
    justify-content: flex-start; /* Align items to the left */
    align-items: center; /* Vertically center items */
    margin-bottom: 20px; /* Add space below the section */
}
/* Style for the input box */
#create-new-recipe  input[type="text"],
#create-list-container input[type="text"] {
    flex-grow: 1; /* Make the input take up as much space as possible */
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-right: 10px; /* Space between the input and the button */
}
/* Style for the buttons */

.shoppinglist-chooser .shopping-list-item .add-to-shoppinglist-btn,
.shoppinglist-chooser .back-btn,
.create-new-recipe .create-btn,
#add-item-btn,
#delete-striked-items-btn,
.mygroceryplan-section .recipes-btn,
.create-list-container button,
.mygroceryplan-left .manage-departments-btn,
.mgp-shoppinglist-holder .manage-departments-btn,
.add-shoppinglist-item .add-item-btn,
#create-list-container button,
#add-department-btn {
    padding: 8px 13px;
    font-size: 16px !important;
    background-color: #15b5ff;
    color: #fff;
    border: 1px solid #15b5ff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.shoppinglist-chooser .shopping-list-item .add-to-shoppinglist-btn,
.mygroceryplan-section .recipes-btn {
    float: right;
}

.shoppinglist-chooser .shopping-list-item .add-to-shoppinglist-btn {
    float: none;
    display: block;
    box-shadow: none;
    width: 100%;
}



.mygroceryplan-section .recipes-btn {
    padding: 6px 8px 0 8px;
}
.mygroceryplan-section .recipes-btn i {
    margin: 0;
    font-size: 30px;
}

#department-list .create-list-container {
    margin: 10px 0 0 0;
}
#add-item-btn:hover,
.mygroceryplan-left .manage-departments-btn:hover,
.add-shoppinglist-item .add-item-popup:hover,
.create-list-container button:hover,
#create-list-container button:hover
#add-department-btn:hover {
    background-color: #fff;
    color: #15b5ff;
}

.mgp-shoppinglist-holder {
    width: 100%;
    padding: 0;

}

.mygroceryplan-container .mygroceryplan-left {
    margin-bottom: 200px;
    padding: 0;
}

input[type="text"]#department-name {
    padding: 10px 8px;
}

.create-list-container input[type="text"].capsule {
    margin-right: 10px !important;
}

.create-list-container .delete-department-btn {
    padding: 10px 10px 5px 5px !important;
    background-color: #ff5252;
    border: none;
    color: #fff;
}


/* Add Item title  */
.text-left {
    margin: 0; /* Removes default margin from paragraph */
    flex-grow: 1; /* Ensures the text takes up the remaining space */
}




/* 
    Style for the shopping list panel 
    
*/
.mygroceryplan-left {
    display: inline-block;
    width: 50%; /* 50% width for left panel */
    padding-right: 20px; /* Add padding for separation */
}

#shopping-lists {
    margin-bottom: 20px;
    margin-top: 20px;
}

#department {
    margin-bottom: 15px;
}




/* 
    Shopping list items styling 
    
*/
.mygroceryplan-list-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Container for shopping list items and delete buttons */
.shopping-list-item {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    margin-bottom: 10px;
}

/* Shopping list items - left of the delete button */
#shopping-lists .shopping-list-btn {
    display: inline-flex;
    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;

    flex-grow: 1; /* Makes this button take up the remaining space */
    max-width: calc(100% - 70px); /* Prevents it from growing too much */
    white-space: wrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Show ellipsis (...) for overflowed text */
}

.mygroceryplan-section .delete-list-btn {
    border-radius: 0 15px 15px 0 !important;
    background-color: #ff5252;
    color: white;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;

    flex-shrink: 0; /* Prevents this button from shrinking */
    width: 70px; /* Fixed width for the delete button */
    padding: 10px; /* Add some padding for better appearance */
}

.mygroceryplan-section .delete-list-btn:hover {
    background-color: #e53935; /* Hover color */
}

#shopping-lists .shopping-list-btn.selected {
    background-color: #64e92e; /* Selected list color */
    color: #292929;
}



#shopping-lists .shopping-list-btn:hover {
    background-color: #fff; /* Hover color */
    color: #292929;

}


/* Shopping list button Delete -  Right of the shopping-list-btn */
.mygroceryplan-list-item .delete-btn {
    color: #e91e63;
    cursor: pointer;
}

.mygroceryplan-list-item .delete-btn:hover {
    color: #c2185b;
}
#shopping-list-items {
    list-style:none;
    padding:0;
    margin:0 0 20px 0;
}

#shopping-list-items .listItemStatus {
    background-color:#efefef;
    border: 1px solid #888 !important;
    text-align: left;
    color: #333333;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 15px 0 0 15px !important;
    flex-grow: 1;
    margin-right: 10px;
    transition: none;
    box-shadow: none;
}

#shopping-list-items .listItemStatus img {
    background-color: transparent !important;
    height: 21px;
}

li.strikedOut {
    background-color: #ccc;
    color: #666;
}

/*  Striked out letters  */
#shopping-list-items li.strikedOut .listItemStatus {
    color: #ccc;
    text-decoration: line-through;
    border-color: #ccc !important;
    box-shadow: none;
    background-color: #ffff;
}

/* List Item status Delete button */
.mygroceryplan-list-item .delete-item-btn {
    border-radius: 0 15px 15px 0 !important;
    background-color: #ff5252;
    border: 1px solid #ff5252;
    color: white;
    padding: 5px 3px 0 3px;
    cursor: pointer;
    transition: none;
    margin: 0;
    box-shadow: none;
}

.mygroceryplan-list-item .delete-item-btn i {
    font-size: 24px;
}

.mygroceryplan-list-item .delete-item-btn:hover {
    color: #ff5252;
    background-color: #fff;
    border:1px solid #ff5252 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


  .add-shoppinglist-item {
    position: fixed;
    display: none;
    bottom: 80px; 
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 10px 20px 10px;    
  }

  .shoppinglist-add-bg {
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;    
    
    background-color: #000;
    box-shadow: 0 0 14px 15px #000;    
    opacity: .9;
  }
  

  .add-btn-holder {
    display: block;
    width: 100%;

    z-index: 100;

    text-align: -webkit-center;
    justify-content: center;
  }
  
  .split {
    display: block;
    width: 50%; 
  }
  
  .left {
    float: left;
    width: 80%;
    text-align: left;
    z-index: 101;
  }
  
  .add-btn-holder .left input,
  .add-btn-holder .left select {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 10px; 
    padding: 8px;
    font-size: 16px;
    z-index: 100;
    opacity: 1;
  }
  
  .right {
    float: right;
    width: 19%;
    height: 100%;
    z-index: 101;
    padding-top: 33px;

    display: flex;
    align-items:right;
    justify-content: right; 
  }
  
  .add-shoppinglist-item  .add-item-btn {
    display: inline;
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    z-index: 103;
  }
  
  .clr {
    clear: both;
  }
  
  .new-department-name-holder {
    position: relative;
    display: none;
    width: 50%; 
    padding: 0px;
    margin: 0;
    text-align: center;
    z-index: 104;
  }
  

.add-item-popup:hover {
    background-color: #ccc;
    color:navy;
}

.gradientBG {
    position: fixed;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1;
    background-color: #000;
    box-shadow: 0 0 25px 40px #000;
    opacity: .9;
}



/* Style for the add item panel */
#recipes-cover,
#cover {
    display: none;
    background-color: #000;
    position: fixed;
    left: 0px;
    bottom: 0px;
    opacity: 0.7;
    width: 100%;
    height: 100%;
}

#recipes,
#recipesWeek {
    margin: 15px 0 150px 0;
    padding: 0;
}

#recipesWeek {
    margin-bottom: 40px;
}



/* 
    Adding List Items 

*/
.mygroceryplan-right,
.mygroceryplan-createList {
    display: none;
    position: fixed;
    width: calc(100% - 20px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 45%; /* 45% width for right panel */
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 10px; /* Rounded corners */
    box-sizing: border-box;
}










/* 
    Manage departments section 

*/


#department-list {
    list-style: none;
    margin: 0;
    padding: 0;;
}

#department-list li {
    margin-bottom: 10px;
}


#department-list p {
    border: 1px solid #292929;
}


/*OLD*/
#department-list li div  {
    float: none;
    width: 100%;
    margin-top: 5px;
    text-align: center;
    align-items: center; 
}

#department-list li div div {
    float: right;
    width: 49%;
    text-align: right;
}

#department-list li div:first-child {
float: left;
text-align: left;
}

#department-list li div div p {
    border: 1px solid #292929;
}
/* OLD ENDS */

/* Custom Departments panel */
.mgp-left {
    display: inline-block;
    width: 50%; /* 50% width for left panel */
    padding-right: 20px; /* Add padding for separation */
    vertical-align: top;
}

/* Style for the add item panel */
.mgp-right {
    display: inline-block;
    width: 45%; /* 45% width for right panel */
    background-color: #f1f1f1;

}

.mygroceryplan-departments {
    display:none;
    width: 100%; /* Full width for Manage Departments on large screens */
    background-color: #f1f1f1;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px; /* Rounded corners */
}

.mygroceryplan-right .delete-department-btn:hover {
    background-color: #e53935;
}

.mygroceryplan-right .delete-department-btn {
    background-color: #ff5252;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px !important;
    margin-top: 5px;
    display: inline-block;
}

.department-section {
    margin-bottom: 20px;
}

.department-section p.title {
    margin: 10px auto 5px 0;
    font-weight: bold;
}


.mygroceryplan-department-items {
    list-style: none;
    padding-left: 0;
}

.mygroceryplan-department-items li {
    border: none;
    background-color: transparent;
}


.department-items div {
    float: right;
    width: 49%;
    height: 20px;
}

.department-items:first-child {
    float: left;
    width: 49%;
    height: 20px;
}







/* 
    Back-btn
    
*/
.shoppinglist-chooser .back-btn,
body.elementor-kit-6 .recipeReader .back-btn,
.create-new-recipe .back-btn,
.mygroceryplan-left .back-btn,
.mygroceryplan-createList .back-btn,
body.elementor-kit-6 .create-new-recipe button.back-btn,
.mygroceryplan-right .back-btn {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;

    border:1px solid #f56302;
    background-color: #f56302;
    color: #FFF;
    margin: 0;
    padding: 8px 10px;
    box-shadow: none;
}




/* 
    Input fields and buttons  

*/
input[type="text"],
select,
button {
    margin-top: 10px;
    margin-bottom: 15px;
}

input[type="text"], select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out;
}

input[type="text"]:focus, select:focus {
    border-color: #8a2be2; /* Add focus color */
    outline: none;
}

button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, box-shadow 0.2s;
}

button:hover {
    background-color: #c2185b; /* Darker color on hover */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}



/* 
    Heading adjustments 
    
*/
.mygroceryplan-right h2,
.mygroceryplan-left h2 {
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 0;
}

.mygroceryplan-right h3,
.mygroceryplan-left h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.flex-title {
    display: flex;
    justify-content: space-between; /* Ensures text is on the left and button on the right */
    align-items: center; /* Vertically center-aligns the content */
    width: 100%; /* Full width of the container */
    padding: 10px;
}



/*
    Capsules 

*/
p.capsule,
#department-list li div div p.capsule,
input[type="text"].capsule {
    display: block;
    border-radius: 15px 0 0 15px !important;
    box-shadow: none;

}

button.capsule {
    box-shadow: none !important;
    border-radius: 0 15px 15px 0 !important;
}

p.capsule {
    width: 100%;
    padding: 8px;
    margin: 0 10px 0 0;
}







/*
    Meal Planner | Recipes
    
*/

.recipes {
    /* 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;

}



.mgp-recipes {
    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 */
    

    
    /* display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    flex-wrap: wrap;  */
}

.mgp-recipes .addRecipe-btn {
    display: inline-block !important;
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    font-size: 32px;
    color: #333 ;
    border: none !important;
    box-shadow: none;
}

.mgp-recipes h4 {
    display: inline-block;
}

body.elementor-kit-6 .mygroceryplan-right .btn-close,
body.elementor-kit-6 .create-new-recipe button,
body.elementor-kit-6 .mgp-recipes button.meal-btn, 
body.elementor-kit-6 .mgp-recipes button.upBtn,
body.elementor-kit-6 .mgp-recipes button.downBtn,
body.elementor-kit-6 .mgp-recipes button.shoppinglists-btn,
body.elementor-kit-6 .mgp-recipes button.create-ingredient,
body.elementor-kit-6 .recipe-header button.save-recipe,
body.elementor-kit-6 .mgp-recipes input[type="button"], 
body.elementor-kit-6 .mgp-recipes input[type="submit"], 
body.elementor-kit-6 .mgp-recipes .elementor-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #15b5ff;
    color: #fff;
    border: 1px solid #15b5ff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

body.elementor-kit-6 .recipe-header button.save-recipe {
    margin-bottom: 15px;
}

body.elementor-kit-6 .mgp-recipes #recipes button.meal-btn,
body.elementor-kit-6 .mgp-recipes #recipes button.delete-recipe-btn {
    background-color: #fff;
    color: #15b5ff;
    border: 1px solid #15b5ff;
    box-shadow: none;
}

body.elementor-kit-6 .mgp-recipes #recipes button.delete-recipe-btn {
    border-color: #ff5252;
    color: #ff5252;
    box-shadow: none;
}


body.elementor-kit-6 .mgp-recipes button.meal-btn {
    max-width: 99%;


    padding-left: 5px;
}

body.elementor-kit-6 .mgp-recipes button.meal-btn p {
    display: flex;
    flex: 4; /* Takes majority of the space */
    margin: 0;
    white-space: break-spaces;
    overflow-wrap:normal; /* Ensures long words break to the next line */
    word-wrap:normal; /* For older browsers supporting word-wrap */
    word-break:keep-all; /* For breaking long words */
}

/* Hide the default checkbox */
button.meal-btn input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

/* Style the custom checkbox */
button.meal-btn .custom-checkbox {
    flex: 0 0 auto; /* Do not grow or shrink, maintain natural size */
    box-sizing: border-box; /* Include padding in size calculation */

    width: 20px;
    height: 20px;
    background-color: white;
    border: 1px solid #15b5ff;
    border-radius: 4px; /* Optional: Rounded corners */
    margin-right: 10px;
    vertical-align: middle; /* Align with text */
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Checked state: when the checkbox is checked */
button.meal-btn input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #15b5ff; /* Background color when checked */
    border-color: #fff; /* Border color when checked */
}

/* Optional: Add a checkmark on checked state */
button.meal-btn input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hover state for the custom checkbox */
button.meal-btn .custom-checkbox:hover {
    border-color: darkgray;
}


body.elementor-kit-6 .mgp-recipes button.upBtn,
body.elementor-kit-6 .mgp-recipes button.downBtn {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    color: #000;
}



body.elementor-kit-6 .alert-dismissible .btn-close,
body.elementor-kit-6 .mygroceryplan-right .btn-close,
body.elementor-kit-6 .create-new-recipe .alert .btn-close {
    background-color: transparent !important;
    box-shadow: none;
    border-color: #292929;

}

body.elementor-kit-6 .alert-dismissible .btn-close {
    padding: 11px 16px;
}

body.elementor-kit-6 .mgp-recipes  .addRecipe-btn {
    padding-left: 0 !important;
    color: #000;
}

body.elementor-kit-6 .mgp-recipes button.shoppinglists-btn {
    float: right;
    padding: 6px 8px 0 8px;

}
body.elementor-kit-6 .mgp-recipes button.shoppinglists-btn i {
    font-size: 30px;
    padding: 0;    
}



/* Meal Planner items */
body.elementor-kit-6 .mgp-recipes .shopping-list-btn {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Container for shopping list items and delete buttons */
body.elementor-kit-6 .mgp-recipes .meal {
    margin-bottom: 10px;
    text-align: center;
}

body.elementor-kit-6 .mgp-recipes .meal .button_holder {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}


body.elementor-kit-6 .mgp-recipes .meal.selected .button_holder .meal-btn {
    background-color: #15b5ff;
    color: #fff;
}

/* Shopping list items - left of the delete button */
body.elementor-kit-6 .mgp-recipes .meal-btn {
    display: inline-flex;
    align-items: flex-start; /* Do not stretch items; align them to the top */

    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;
}

body.elementor-kit-6 .mgp-recipes .delete-recipe-btn {
    vertical-align: middle;
    border-radius: 0 15px 15px 0;
    background-color: #ff5252;
    border-color: #ff5252;
    color: white;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;    
}

body.elementor-kit-6 .mgp-recipes .delete-recipe-btn i {
    margin: 4px 5px 0 5px;
}

body.elementor-kit-6 .mgp-recipes .delete-recipe-btn:hover {
    background-color: #e53935; /* Hover color */
}



body.elementor-kit-6 .mgp-recipes .meal.selected .meal-btn,
body.elementor-kit-6 .mgp-recipes .meal-btn:hover {
    background-color: #15b5ff; /* Hover color */
    color: #fff;
}


/* Shopping list button Delete -  Right of the shopping-list-btn */
body.elementor-kit-6 .mgp-recipes .delete-btn {
    font-size: 18px;
    color: #e91e63;
    cursor: pointer;
}

body.elementor-kit-6 .mgp-recipes .delete-btn:hover {
    color: #c2185b;
}

body.elementor-kit-6 .mgp-recipes .meal.selected .button_holder {
    margin-bottom: 0;
}

body.elementor-kit-6 .mgp-recipes .meal ul {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
    width: 90%;
}


body.elementor-kit-6 .mgp-recipes .meal ul.days-container li {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

body.elementor-kit-6 .mgp-recipes .meal ul.days-container li:last-child {
    border-radius: none;
    border: none;
    box-shadow: none;
}

body.elementor-kit-6 .mgp-recipes .meal ul li {
    text-align: left;
    background-color: #e4e4e4;
    padding: 5px 10px;
    /* border-left: 1px solid #666;
    border-right: 1px solid #666; */
    border-bottom: 1px solid #ccc;
}

body.elementor-kit-6 .mgp-recipes #recipes .meal ul li {
    text-align: left;
    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;
    
}

body.elementor-kit-6 .mgp-recipes .meal ul li.needError {
    background-color: #ff8383;
}

body.elementor-kit-6 .mgp-recipes .meal ul li.cleared {
    /* background-color: #9ecf9c; */
}

body.elementor-kit-6 .mgp-recipes .meal ul li button.need {
    padding: 0;
    margin: 10px 0 0 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    float: right;
    color: #292929;
    font-size: 20px;
}

body.elementor-kit-6 .mgp-recipes .meal ul li span {
    font-size: 20px;
} 

body.elementor-kit-6 .mgp-recipes #recipes .meal ul li button.need {
    color: #15b5ff;
}


body.elementor-kit-6 .mgp-recipes .meal ul li [type="checkbox"] {
    padding: 0;
    margin: 0 10px 0 0;
    accent-color: #15b5ff;
    color: #fff;
}

body.elementor-kit-6 .mgp-recipes .meal ul li select {
    display: inline-block;
    padding: 5px;
    margin: 0 0 5px 0;
    width: 100%;
    background-color: transparent;
    border-radius: 4px;
    line-height: 20px;
    background-color: #fff;

}

body.elementor-kit-6 .mgp-recipes .meal ul li:last-child {
    border-radius: 0 0 10px 10px;
    padding-bottom: 18px;
}


body.elementor-kit-6 .mgp-recipes .meal ul li span {
    display: inline-flex;
    max-width: 65%;
    position: relative;
    padding: 10px 15px;
    word-wrap: break-word; /* Break long words to wrap */
    word-break: break-word; /* Ensures proper word breaking */

}
body.elementor-kit-6 .mgp-recipes .meal ul li span img {
    display: block;
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    height: 100%;

}

body.elementor-kit-6 .mgp-recipes .ingredentsFooterButtons {
    padding: 0 15px;
    margin-bottom: 20px;
    text-align: left;
}

body.elementor-kit-6 .mgp-recipes .ingredentsFooterButtons button {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #292929;
    box-shadow: none;
    font-size: 20px;

}
body.elementor-kit-6 .mgp-recipes .ingredentsFooterButtons button.right {
    float: right;
    justify-content: right;
}

body.elementor-kit-6 .mgp-recipes .ingredentsFooterButtons button:disabled {
    color: #ccc;
}



/* Create Recipes Panel */
.create-new-recipe {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: #f1f1f1;
    border-radius: 10px;
    /* margin: 0 8px 20px 8px; */
    width: calc(100% - 20px);    
    max-width: 500px;

}

.shoppinglist-chooser .back-btn,
.recipe-header .back-btn,
.create-new-recipe .back-btn {
    float: right;
    font-size: 20px;
}

#meal-items {
    list-style:none;
    padding:0;
    margin:0 0 20px 0;
}

/*  */
body.elementor-kit-6 .mgp-recipes .addIngredent-btn {
    display: block;
    background-color: #15b5ff;
    margin: 0;
    padding: 0 20px 0 10px;
    color: #000;
    float: left;
    border: none;
    border-radius: 0;
    box-shadow: none;
    

}

body.elementor-kit-6 .mgp-recipes .ingredentInput {
    padding: 5px 10px;
}

body.elementor-kit-6 .mgp-recipes .ingredentInput p {
    display: block;
    width: 100%;
    padding: 0 0 6px 0;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

#ingredient_name,
body.elementor-kit-6 .mgp-recipes #recipes .ingredentInput [type='text'] {
    display: inline-block;
    width: 93%;
    padding: 3px;
    margin: 5px 0 10px 0;
    border-color: #15b5ff;
    color: #15b5ff;
    accent-color: #15b5ff;
}

#ingredient_name {
    border-color: transparent;
}

body.elementor-kit-6 .mgp-recipes .ingredentInput button {
    padding: 8px 10px;
    float: right;
}

.clr {
    width: 100%;
    height: 0;
    clear: both;
}


/* Alert boxes */
#alert-container-newItem-recipes {
}

#alert-container-newItem-recipes .btn-close {
    background-color: transparent;
    box-shadow: none;
    border: none;
}

.page-content .alert {
    padding: 6px 8px;

}


.shoppinglist-chooser {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f1f1f1;
    padding: 30px;
    border-radius: 10px;
    width: calc(100% - 20px); 

}

.shoppinglist-chooser .recipe-header {
    width: 100%;


}

ul.shoppinglists-choose li,
ul.shoppinglists-choose {
    display: block;
}
ul#shoppinglists-choose {
    padding: 0;
}



.recipeReader {
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    width: 50%;
    transform: translate(-50%, -80%);
    background-color: #f1f1f1;
    border-radius: 10px;
    /* width: calc(100% - 20px);     */
}

.mygroceryplan-createList,
.recipeReader,
.create-new-recipe {
    padding:10px;
}

#recipe_instructions {
    max-height: 400px;
    min-height: 200px;
}



.days-container {
    display: flex;
    gap: 10px; /* Space between each day item */
    border-radius: none;
    background-color: transparent;
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    align-items: flex-end; /* Align items to the top */
}

.daysofweek {
    display: inline-flex;
    flex-direction: column-reverse; /* Flip the order to put checkbox at the bottom */
    align-items: center;
    background-color: #e4e4e4;
    flex: 1;
}

body.elementor-kit-6 .mgp-recipes .meal ul.days-container {
    width: 100%;
    display: flex;
}

body.elementor-kit-6 .mgp-recipes .meal ul li.daysofweek [type="radio"] {
    margin: 0 3px 0 0;
}



.daysofweek label {
    writing-mode: vertical-rl; /* Makes the text vertical */
    transform: rotate(180deg); /* Flip the text to make it readable top-to-bottom */
    font-size: 12px; /* Adjust size as necessary to fit the layout */
    text-align: center; /* Center-aligns the label */
    margin: 0; /* Remove extra margin */
    margin: 0 4px 5px 0;
}

body.elementor-kit-6 .recipe-header h4,
body.elementor-kit-6 .mygroceryplan-departments h4 {
    font-size: 28px;
}


/* 
    Responsive behavior 
    
*/
@media screen and (max-width: 1024px) {

    /* 
        Style for the Departments
        
    */
    .manage-departments-btn {
        width:100%;
    }

    #department-list li div  {
        width: 100% !important;
        margin-top: 20px;
    }

    #department-list li div div {
        width: 49% !important;
    }

    .mgp-left, .mgp-right {
        width:95%;
        display: block;
        box-sizing: border-box;
        min-width: 122px;
        padding: 0;
        margin: 0 8px;
    }


    #shopping-list-items .listItemStatus {
        /* max-width: 284px; */
        white-space: normal; 
        word-wrap: break-word;  /* Break long words if needed */
        word-break: break-word;  /* Ensure long words are wrapped */
        display: inline-block;     /* Ensure the button stays inline */

    }

    .mgp-recipes .recipes h4 {
        font-size: 23px;
    }

    #mygroceryplan h4 {
        font-size: 23px;
    }

    /* 
        Main Plugin container 
        
    */
    .mygroceryplan-container {
        display: none; 
        text-align: center;
        margin-bottom: 300px;
    }

    .mygroceryplan-left, .mygroceryplan-departments {
        width: 100%; /* Full width for smaller screens */
        margin-bottom: 20px;
        padding: 8px 8px 20px 8px;
        margin: 0 0 200px 0;
    }

    .mygroceryplan-right {
        position: fixed;
        width: calc(100% - 20px);    
    }

    .mygroceryplan-createList {
        width: calc(100% - 20px);
    }

    #ingredient_name,
    body.elementor-kit-6 .mgp-recipes .ingredentInput [type='text'] {
        max-width: 75%;
        margin: 0;
    }
    


    body.elementor-kit-6 .mgp-recipes .meal-btn {
        width: 90%;
    }

    body.elementor-kit-6 .mgp-recipes .meal ul li button.need {
        font-size: 16px;
    }

    body.elementor-kit-6 .mgp-recipes button.meal-btn {
        max-width: 90%;
    }

    body.elementor-kit-6 .mgp-recipes .meal ul li span {
        font-size: 16px;
        padding: 10px 8px 10px 0;
    }
    body.elementor-kit-6 .mgp-recipes .ingredentsFooterButtons button {
        font-size: 16px;
    }





    /* 
        Shopping list items styling 
        
    */
    .mygroceryplan-list-item {
        padding: 0px;
    }

    body.elementor-kit-6 .recipe-header h4,
    body.elementor-kit-6 .mygroceryplan-departments h4 {
        font-size: 16px;
    }


    .add-btn-holder {
        width: 100%;
        text-align: left;
        justify-content: left;

    }

    .split {
        width: 100%;        
    }
    .split .left {
        width:60%;
    }

    .split .right {
        width:39%;
    }

    .new-department-name-holder {
        width: 100%;
    }



    .recipeReader {
        width: 95%;
        margin: 0 auto;
        box-sizing: border-box;

    }

}
