/* Search Bar Styling */
.mmrm-search-wrap {
    margin: 10px 20px;
    text-align: left;
    /* width: 100%; */
}

.mmrm-gutenburg-header .mmrm-search-wrap {
    width: 100%;
}

.mmrm-search-input {
    padding: 10px 20px !important;
    width: 100%;
    border: 1px solid #e7dfdf !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.3s ease;
}

.mmrm-search-input:focus {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Centering loading spinner */
.mmrm-loading-spinner {
    display: block;
    margin: 20px auto;
    width: 50px;
    height: 50px;
}

/*/* Filter Section */ 
.mmrm-filter-section {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 10px 0;
	margin-bottom: 20px;
}

.mmrm-filter-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.mmrm-filter-toggle input[type="checkbox"] {
	appearance: none;
	width: 40px;
	height: 20px;
	background-color: #ddd;
	border-radius: 20px;
	position: relative;
	outline: none;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.mmrm-filter-toggle input[type="checkbox"]:checked {
	background-color: #4CAF50;
}

.mmrm-filter-toggle input[type="checkbox"]:before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	background-color: white;
	border-radius: 50%;
	transition: left 0.3s ease;
}

.mmrm-filter-toggle input[type="checkbox"]:checked:before {
	left: 23px;
}

.mmrm-filter-label {
	font-size: 16px;
	font-weight: bold;
	color: #333;
}


/* Styling for the toggle switches */
.mmrm-filters-wrap {
    display: flex;
    gap: 20px; /* Space between the filters */
   
	 margin: 20px 20px;
	padding: 5px;
	overflow-x:scroll;
	scrollbar-width: none; 
}

.mmrm-filters-wrap::-webkit-scrollbar {
  display: none; /* Hides scrollbar in WebKit-based browsers */
}

@media (min-width: 768px){
	.mmrm-filters-wrap {
    justify-content: flex-end;
	}
}


.mmrm-public-toggle {
    display: flex;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    min-width: fit-content;
	font-weight:500;
}

.mmrm-public-toggle input {
    display: none; /* Hide the default checkbox */
}

.mmrm-public-slider {
    position: relative;
    width: 40px;
    height: 15px;
    background-color: #ccc;
    border-radius: 20px;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.mmrm-public-slider::before {
    content: "";
    position: absolute;
	bottom: -1.5px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
	-webkit-box-shadow: 0 0 2px 2px #00000040; /* Safari, older Chrome */
	-moz-box-shadow: 0 0 2px 2px #00000040; /* Firefox */
	box-shadow: 0 0 2px 2px #00000040; /* Standard */
}

.mmrm-public-toggle input:checked + .mmrm-public-slider {
    background-color: #4caf50; /* Green for checked state */
}

.mmrm-public-toggle input:checked + .mmrm-public-slider::before {
    transform: translateX(22px); /* Move the toggle to the right */
}


@media (max-width: 768px) {

    .mmrm-public-toggle {
    
        font-size: 14px;
        }
        
    .mmrm-public-slider {
    
        width: 30px;
        height: 15px;
        }
    .mmrm-public-slider::before {
        width: 15px;
        height: 15px;
        bottom: 0px;
        }
        
    .mmrm-public-toggle input:checked + .mmrm-public-slider::before {
        transform: translateX(15px); /* Move the toggle to the right */	
    }


    /* Style for the loading spinner */
    .mmrm-loading-spinner {
        display: block;
        margin: 20px auto;
        width: 50px;
        height: 50px;
    }
}

/* Menu style */
/* Two-column layout for menu items */
.mmrm-menu-items {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media only screen and (min-width: 992px) {
	.mmrm-food-item {
		width : calc(50% - 20px) !important;
		
	}
}

.mmrm-category-title{
    font-size: 24px;
    margin-bottom: 40px;
	margin-top:60px;
    margin-left: 10px;
	font-weight: 700;
}

#mmrm-ajax-results > section:first-of-type .mmrm-category-title {
    margin-top: 0px;
}

.mmrm-food-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 15px;
    border-bottom: 1px solid #ddd;
    width: 100%;
    max-width: 600px;
    margin-bottom:20px;
	min-width:300px;
}

.mmrm-product-title  {
	font-size: 18px;
	font-weight: 500;
	color: #0e0e0e;
	margin-top:0px;
	margin-bottom: 8px;
}

.mmrm-title{
	margin-bottom:8px;
}

span.mmrm-price {
    font-size: 15px;
    font-weight: 500;
    color: #2b2b2b;
}

.mmrm-body {
	margin-bottom:10px;
}

.mmrm-body p {
    font-size: 14px;
    font-weight: 400;
    color: #696f76;
	margin-bottom:1px;
}

/* Image Container */
.mmrm-image-wrap {
    width: 125px;
	margin-bottom:20px;
}

.mmrm-image-wrap .mmrm-feature-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    overflow: hidden;
}


.mmrm-content-wrap {
    flex: 1;
    padding-right: 10px;
}



/*tag containers  */
.mmrm-food-tags-container {
    
    display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 10px; /* Spacing for the icon */
	column-gap:5px;
}

/* Style for the Veg and Non-Veg Icons */

.mmrm-food-type-icon-container {
    width: 14px;
    height: 14px;
    border: 2px solid #4caf50;
	display:flex;
	align-items: center;
	justify-content: center;
	border-radius:3px;
}

.mmrm-food-type-icon-container .food-icon {
    border-radius: 100%;
    background: #4caf50;
    width: 6px;
    height: 6px;
}

/* Non-Veg Icon Styling */
.mmrm-food-type-icon-container.nveg {
    border-color: #954324;
}

.mmrm-food-type-icon-container.nveg .food-icon {
    background: #fff;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #954324;
    border-radius: 0 !important;
}


/* Veg and Non-Veg icons remain unchanged */

/* Combos Chip */
.mmrm-combo-chip {
    background-color: #c564ef; /* Blue background for Combos */
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight:500;
    line-height: 0.5;
}

/* Style for description and "Read More" link */
.mmrm-short-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Display only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; /* Approx. 2 lines */
    transition: max-height 0.3s ease;
}

/* Expanded state for the description */
.mmrm-short-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.mmrm-read-more {
    color: #636363 !important;
    font-size: 12px;
	font-weight:600;
    cursor: pointer;
    display: inline-block;
    margin-top: 1px;
}

.mmrm-no-menu-items {
    margin: 10px;
    padding: 10px;
}

button#mmrm-reset-filters {
    color: #d51f70;
    border: 2px solid #d51f70;
    border-radius: 20px;
}

.mmrm-category-listing-title h2{
    font-size: 24px;
    font-weight: 600;
    line-height: 3.5rem;
    margin: 0;
}

.mmrm-category-listing-body{
    display: flex;
    flex-direction: column;
    gap: .5em;
}
.mmrm-category-listing-body a{
    color: #4A4A4A;
    text-decoration: none !important;
    font-weight: 500;
    line-height: 2rem;
    font-size: 15px;
}
.mmrm-category-listing-body a:hover, .mmrm-category-listing-body .active{
    color: #FFC300;
}

.elementor-element-1341d01f{
    position: sticky !important;
    top:0;
    z-index: 10 !important;
}

.mmrm-gutenburg-header{
    position: sticky !important;
    top:0;
    z-index: 10 !important;
    background-color: #fff;
}

.elementor-widget-shortcode:has(.mmrm-category-wrapper) {
    position: sticky !important;
    top:210px;
    z-index: 10 !important;
}

.mmrm-gutenburg-category-listing .mmrm-category-wrapper{
    position: sticky !important;
    top:134px;
}

.entry-content:has(#mmrm-ajax-results){
    background-color: #fff;
}

.page:has(#mmrm-ajax-results) .entry-title {
    display: none;
}

.mmrm-category-wrapper-mobile{
    display: none;
}

@media (max-width: 767px) {
    .mmrm-category-wrapper{
        display: none;
    }

    .wp-block-columns:has(.mmrm-gutenburg-category-listing){
        padding: 0;
        margin: 0;
    }

    .mmrm-gutenburg-header{
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .mmrm-category-wrapper-mobile{
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        background-color: #000;
        color: #fff;
        border-radius: 10px;
        z-index: 10;
    }

    .mmrm-gutenburg-category-listing .mmrm-category-wrapper, .elementor-widget-shortcode:has(.mmrm-category-wrapper) .mmrm-category-wrapper {
        position: fixed !important;
        bottom: 68px;
        left: 50%;
        text-align: center;
        transform: translateX(-50%);
        background-color: #000;
        color: #fff;
        width: 80%;
        border-radius: 20px;
        border: 0;
        top: 50%;
        padding-bottom: 10px;
        overflow-y: scroll;
    }

    .elementor-widget-shortcode:has(.mmrm-category-wrapper){
        padding-bottom: 0;
    }

    .mmrm-category-wrapper h2, .mmrm-category-wrapper a{
        color: #fff;
    }

    .mmrm-category-wrapper a:focus{
        outline: none;
    }
}