/* Planty WPRM Shopping List Styles */

.planty-shopping-list-wrapper {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px;
}

.planty-shopping-list-wrapper h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #6e8929;
}

.planty-shopping-button {
    background: #6e8929;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.planty-shopping-button:hover {
    background: #5f7324;
}

.planty-shopping-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.planty-shopping-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
}

.planty-shopping-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.planty-shopping-item input[type="checkbox"] {
    margin: 0;
}

.planty-shopping-item span {
    flex: 1;
}

/* Grid layout for categorized shopping list */
/*
 * Make the category grid flexible: automatically fit as many columns as
 * possible with a minimum width.  This allows an additional Vorräte column
 * without hard‑coding the number of columns.
 */
.planty-shopping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Individual category section */
.planty-shopping-category {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

/* Style the Vorräte column differently to indicate it is the pantry */
.planty-shopping-pantry {
    background: #f1f8ec;
    border-color: #d8e6c8;
}

.planty-shopping-category-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #6e8929;
    font-weight: 600;
}

/* Reset list styles for items within categories */
.planty-shopping-category .planty-shopping-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Adjust spacing for items inside category lists */
.planty-shopping-category .planty-shopping-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.planty-shopping-category .planty-shopping-item:last-child {
    border-bottom: none;
}

/* Style for the pantry toggle icon */
.planty-pantry-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    line-height: 1;
    padding: 0;
    /* Always show the star icon in a subtle grey so users know where to click.
       Hover and active states will override this color. */
    color: #bbb;
}
.planty-pantry-toggle:hover {
    color: #6e8929;
}

/* When a pantry toggle is active (item is in Vorräte), highlight the star */
.planty-pantry-toggle.active {
    color: #d79a00; /* warm gold tone */
}