/* 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: color-mix(in srgb, var(--scheme-black) 2%, transparent);
    border-radius: 8px;
}

/* Taxonomy Tags Section. Single/List Pages */
.taxonomy {
    padding: .4em;
    background: color-mix(in srgb, var(--scheme-black) 2%, transparent);
    border-radius: 8px;
}

.taxonomy > div:first-child {
    font-weight: bold;
    font-size: x-small;
    color: var(--scheme-ink-muted);
    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: 100%;
    max-width: 100%;
}

.taxonomy ul li {
    padding: 0;
}

.taxonomy ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4em .8em;
    margin: 2px;
    color: var(--scheme-white);
    border-radius: 15px;
    text-decoration: none;
    transition: transform var(--ttms-duration, 0.28s) var(--ttms-ease-out, ease), box-shadow var(--ttms-duration, 0.28s) ease, background-color var(--ttms-duration, 0.28s) 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 color-mix(in srgb, var(--scheme-black) 20%, transparent);
}

/* Color schemes for different taxonomy types on pages */
.taxonomy.Tags ul li a {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.taxonomy.Tags ul li a:hover {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.taxonomy.Ingredients ul li a {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-accent-2) 100%);
}

.taxonomy.Ingredients ul li a:hover {
    background: linear-gradient(135deg, var(--scheme-accent-2) 0%, var(--scheme-button-bg) 100%);
}

.taxonomy.Cookingmethods ul li a {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.taxonomy.Cookingmethods ul li a:hover {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.taxonomy.Types ul li a {
    background: linear-gradient(135deg, var(--scheme-accent) 0%, var(--scheme-accent) 100%);
}

.taxonomy.Types ul li a:hover {
    background: linear-gradient(135deg, var(--scheme-accent) 0%, var(--scheme-accent) 100%);
}

.taxonomy.Events ul li a {
    background: linear-gradient(135deg, var(--scheme-accent-2) 0%, var(--scheme-accent) 100%);
}

.taxonomy.Events ul li a:hover {
    background: linear-gradient(135deg, var(--scheme-accent) 0%, var(--scheme-accent-2) 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: var(--scheme-ink-muted);
    margin-right: 5px;
    width: -webkit-fill-available;
    text-align: center;
}

.tag {
    display: flex;
    padding: .4em .8em 1px;
    margin: 2px;
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
    color: var(--scheme-white);
    border-radius: 15px;
    text-decoration: none;
    text-shadow: 0px 1px 5px color-mix(in srgb, var(--scheme-black) 40%, transparent), 0px -1px 5px color-mix(in srgb, var(--scheme-black) 40%, transparent), 1px 0px 6px var(--scheme-black), -1px 0px 5px var(--scheme-black);
    transition: transform var(--ttms-duration, 0.28s) var(--ttms-ease-out, ease), box-shadow var(--ttms-duration, 0.28s) ease, background-color var(--ttms-duration, 0.28s) 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 color-mix(in srgb, var(--scheme-black) 20%, transparent);
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

/* Different colors for different taxonomy types */
.tag-tags {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.tag-ingredients {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-accent-2) 100%);
}

.tag-cookingmethods {
    background: linear-gradient(135deg, var(--scheme-button-bg) 0%, var(--scheme-button-bg) 100%);
}

.tag-types {
    background: linear-gradient(135deg, var(--scheme-accent) 0%, var(--scheme-accent) 100%);
}

.tag-events {
    background: linear-gradient(135deg, var(--scheme-accent-2) 0%, var(--scheme-accent) 100%);
}

/* Main sides modal container: styles shared via sibling selectors below */

/* 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: var(--scheme-white);
    border-radius: 10px;
}

#itemSides::-webkit-scrollbar-thumb,
#itemMods::-webkit-scrollbar-thumb,
#itemAddMods::-webkit-scrollbar-thumb,
.side-items-scrollable::-webkit-scrollbar-thumb {
    background: var(--scheme-ink-muted);
    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: var(--scheme-ink-muted);
}

/* Firefox scrollbar */
.side-items-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--scheme-ink-muted) var(--scheme-white);
    height: -webkit-fill-available;
}

