/* 買い物リスト管理用CSS */

/* 購入済みアイテム */
.shopping-checked {
    background-color: #f8f9fa;
}

.shopping-checked .shopping-item-title,
.shopping-checked span {
    opacity: 0.6;
}

/* チェックボタン */
.shopping-check-btn {
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.shopping-check-btn:focus {
    outline: none;
    box-shadow: none;
}

.shopping-check-btn:hover {
    opacity: 0.8;
}

/* 一時リストの行 */
.shopping-one-time-row {
    transition: background-color 0.2s ease;
}

/* 定期リストの残数 */
#remaining-count- {
    min-width: 1.5em;
    text-align: center;
}

/* レスポンシブ: スマホでは残数コントロールを折り返す */
@media (max-width: 480px) {
    .list-group-item .flex-wrap > .flex-shrink-0 {
        width: 100%;
        justify-content: flex-end;
    }

    .shopping-check-btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        margin-right: 0.6rem !important;
        min-height: 44px;
        min-width: 44px;
    }

    .shopping-one-time-row,
    .list-group-item[data-item-id] {
        padding: 0.45rem 0.65rem !important;
    }

    .card-header form .btn {
        font-size: 0.75rem;
        white-space: normal;
    }
}

