/* Ordering System - Side Categories Styles */
#sideCategoriesButtonsContainer{
    padding-inline: 1em;
    padding-block-end: .2em;
}
/* Taxonomy Tags Section - Order Modal */
#itemtaxonomytags {
    margin: .4em 0;
    padding: .4em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

/* Taxonomy Tags Section - Single/List Pages */
.taxonomy {
    padding: .4em;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.taxonomy > div:first-child {
    font-weight: bold;
    font-size: x-small;
    color: #666;
    text-align: center;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.taxonomy ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    list-style: none;
    margin: auto;
    width: min-content-webkit-fill-available;
}

.taxonomy ul li {
    padding: 0;
}

.taxonomy ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4em .8em;
    margin: 2px;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    height: min-content;
}

.taxonomy ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Color schemes for different taxonomy types on pages */
.taxonomy.Tags ul li a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.taxonomy.Tags ul li a:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.taxonomy.Ingredients ul li a {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.taxonomy.Ingredients ul li a:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.taxonomy.Cookingmethods ul li a {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.taxonomy.Cookingmethods ul li a:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.taxonomy.Types ul li a {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.taxonomy.Types ul li a:hover {
    background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
}

.taxonomy.Events ul li a {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.taxonomy.Events ul li a:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
}

.tags-container {
    display: flex;
    flex-direction: column;
}

.taxonomy-section {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.taxonomy-label {
    font-weight: bold;
    font-size: x-small;
    color: #666;
    margin-right: 5px;
    width: -webkit-fill-available;
    text-align: center;
}

.tag {
    display: flex;
    padding: .4em .8em 1px;
    margin: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    text-decoration: none;
    text-shadow: 0px 1px 5px #00000066, 0px -1px 5px #00000066, 1px 0px 6px black, -1px 0px 5px black;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
    height: min-content;
    align-items: center;
    justify-content: center;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Different colors for different taxonomy types */
.tag-tags {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tag-ingredients {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tag-cookingmethods {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tag-types {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tag-events {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Main sides modal container */
#itemSides {
}

/* Modifications modal container */
#itemMods {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Additional modifications modal container */
#itemAddMods {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollable container for side category items */
.side-items-scrollable {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0;
}

/* Side category section */
.side-category {overflow: scroll;}

/* Side category title */
.side-category h3 {
    margin-bottom: 15px;
}

/* Side item container */
.side-item-container {
    display: flex;
    align-items: center;
    padding-inline: .8em;
}

/* Quantity display */
.side-item-container b {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* Side option button */
.side-item-container .btn-side-option {
    flex: 1;
    text-align: left;
}

/* Extra button */
.side-item-container .btn-add-extra {
    min-width: 30px;
    text-align: center;
}

/* Custom scrollbar styling for webkit browsers */
#itemSides::-webkit-scrollbar,
#itemMods::-webkit-scrollbar,
#itemAddMods::-webkit-scrollbar,
.side-items-scrollable::-webkit-scrollbar {
    width: 8px;
}

#itemSides::-webkit-scrollbar-track,
#itemMods::-webkit-scrollbar-track,
#itemAddMods::-webkit-scrollbar-track,
.side-items-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#itemSides::-webkit-scrollbar-thumb,
#itemMods::-webkit-scrollbar-thumb,
#itemAddMods::-webkit-scrollbar-thumb,
.side-items-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#itemSides::-webkit-scrollbar-thumb:hover,
#itemMods::-webkit-scrollbar-thumb:hover,
#itemAddMods::-webkit-scrollbar-thumb:hover,
.side-items-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
.side-items-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    height: -webkit-fill-available;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #itemSides,
    #itemMods,
    #itemAddMods {
    }
    
    .side-items-scrollable {
    }
}

@media (max-width: 480px) {
    #itemSides,
    #itemMods,
    #itemAddMods {
    }
    
    .side-items-scrollable {
    }
}

