/* Order page: product categories that open and close. Plain stylesheet, not part of the compiled bundle. */

.order-category {
    /* Borders of neighbouring categories overlap into a single line. */
    margin-bottom: -2px;
    border-top: 2px solid #585E24;
    border-bottom: 2px solid #585E24;
}

.order-category-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0.5rem;
    border: 0;
    background: transparent;
    color: #585E24;
    text-align: left;
    cursor: pointer;
}

.order-category-toggle:focus {
    outline: 2px solid #959542;
    outline-offset: 2px;
}

.order-category-title {
    margin: 0 1rem 0 0;
}

.order-category-count {
    color: #8C94A0;
}

.order-category-chosen {
    margin-left: 1rem;
    padding: 0.1rem 0.75rem;
    border-radius: 1rem;
    background-color: #959542;
    color: #FCF8F4;
    font-weight: 700;
    white-space: nowrap;
}

.order-category-arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.order-category.is-open .order-category-arrow {
    transform: rotate(180deg);
}

/* Categories only close when the script that can reopen them is running. */
.has-collapsible-categories .order-category:not(.is-open) .order-category-body {
    display: none;
}

@media (max-width: 575px) {
    .order-category-toggle {
        flex-wrap: wrap;
    }

    .order-category-title {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}
