#ppm-root { padding: 1em; background: #fff; }
#ppm-product-list table { width: 100%; border-collapse: collapse; }
#ppm-product-list th, #ppm-product-list td { border: 1px solid #ccc; padding: 8px; }
label { display: block; margin: 0.5em 0; }
button { margin: 2px; }

/* Filter bar: display filters horizontally */
#ppm-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    background: #fafafa;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* each filter item groups label + control */
#ppm-filter-bar .ppm-filter-item {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

/* actions area (show/add buttons) */
#ppm-filter-bar .ppm-filter-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* small helper button styles (optional) */
.btn {
    padding: 6px 10px;
    border: 1px solid #bbb;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}
.btn:hover {
    background: #f2f2f2;
}
.ppm-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #006799;
}
.ppm-btn-primary:hover {
    background: #006799;
}

/* Modal Styles */
.ppm-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background: rgba(0,0,0,0.4);
}
.ppm-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.ppm-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Allergen Section Styles */
.ppm-allergen-section {
    margin: 1em 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ppm-allergen-section > label {
    margin-bottom: 8px;
}

.ppm-allergen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.ppm-allergen-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    margin: 2px 0;
    cursor: pointer;
}

.ppm-allergen-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.ppm-allergen-checkbox span {
    cursor: pointer;
}

/* Allergen tags in product list */
.ppm-allergen-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ppm-allergen-tag {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffc107;
}